summaryrefslogtreecommitdiff
path: root/tests/units/GithubWebhookTest.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-06-20 20:55:50 -0400
committerFrederic Guillot <fred@kanboard.net>2015-06-20 20:55:50 -0400
commit98fd34bfe340fae6d0fd3b7333b6f9a6647cbae2 (patch)
treed22b7bff634a05e73f89d423938776df43554f52 /tests/units/GithubWebhookTest.php
parent7b947ebdbd3b6bcd9de10ea4255bfa11fc88695c (diff)
Improve automatic action to create comments based on commit messages
Diffstat (limited to 'tests/units/GithubWebhookTest.php')
-rw-r--r--tests/units/GithubWebhookTest.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/units/GithubWebhookTest.php b/tests/units/GithubWebhookTest.php
index 65aa045f..8d9d7144 100644
--- a/tests/units/GithubWebhookTest.php
+++ b/tests/units/GithubWebhookTest.php
@@ -451,5 +451,8 @@ class GithubWebhookTest extends Base
$this->assertEquals(1, $data['project_id']);
$this->assertEquals(1, $data['task_id']);
$this->assertEquals('boo', $data['title']);
+ $this->assertEquals("Update README to fix #1\n\n[Commit made by @fguillot on Github](https://github.com/kanboardapp/webhook/commit/98dee3e49ee7aa66ffec1f761af93da5ffd711f6)", $data['commit_comment']);
+ $this->assertEquals('Update README to fix #1', $data['commit_message']);
+ $this->assertEquals('https://github.com/kanboardapp/webhook/commit/98dee3e49ee7aa66ffec1f761af93da5ffd711f6', $data['commit_url']);
}
}