summaryrefslogtreecommitdiff
path: root/tests/units
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-05-03 11:48:18 -0400
committerFrederic Guillot <fred@kanboard.net>2015-05-03 11:48:18 -0400
commit46d711cf510b3795b02bf9a58b64fecb16f4a0b6 (patch)
tree814ec4267f14546ebebc757c846ceb9417dd9815 /tests/units
parentfa59a1487c01b27fb7128c22c472a09c34a7891b (diff)
Fix bug: task references are not unique
Diffstat (limited to 'tests/units')
-rw-r--r--tests/units/GitlabWebhookTest.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/units/GitlabWebhookTest.php b/tests/units/GitlabWebhookTest.php
index 0f2a5c12..cea4e839 100644
--- a/tests/units/GitlabWebhookTest.php
+++ b/tests/units/GitlabWebhookTest.php
@@ -88,9 +88,12 @@ class GitlabWebhookTest extends Base
// Create a task with the issue reference
$this->assertEquals(1, $tc->create(array('title' => 'A', 'project_id' => 1, 'reference' => 103361)));
- $task = $tf->getByReference(103361);
+ $task = $tf->getByReference(1, 103361);
$this->assertNotEmpty($task);
+ $task = $tf->getByReference(2, 103361);
+ $this->assertEmpty($task);
+
$this->assertTrue($g->handleIssueClosed($event['object_attributes']));
$called = $this->container['dispatcher']->getCalledListeners();