From 46d711cf510b3795b02bf9a58b64fecb16f4a0b6 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sun, 3 May 2015 11:48:18 -0400 Subject: Fix bug: task references are not unique --- tests/units/GitlabWebhookTest.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'tests') 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(); -- cgit v1.2.3