aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/api/controllers/GetLinksTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/api/controllers/GetLinksTest.php')
-rw-r--r--tests/api/controllers/GetLinksTest.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/api/controllers/GetLinksTest.php b/tests/api/controllers/GetLinksTest.php
index 10330cd9..f1b262bc 100644
--- a/tests/api/controllers/GetLinksTest.php
+++ b/tests/api/controllers/GetLinksTest.php
@@ -94,7 +94,7 @@ class GetLinksTest extends \PHPUnit_Framework_TestCase
94 $this->assertEquals($this->refDB->countLinks(), count($data)); 94 $this->assertEquals($this->refDB->countLinks(), count($data));
95 95
96 // Check order 96 // Check order
97 $order = [41, 8, 6, 7, 0, 1, 4, 42]; 97 $order = [41, 8, 6, 7, 0, 1, 9, 4, 42];
98 $cpt = 0; 98 $cpt = 0;
99 foreach ($data as $link) { 99 foreach ($data as $link) {
100 $this->assertEquals(self::NB_FIELDS_LINK, count($link)); 100 $this->assertEquals(self::NB_FIELDS_LINK, count($link));
@@ -163,7 +163,7 @@ class GetLinksTest extends \PHPUnit_Framework_TestCase
163 $data = json_decode((string) $response->getBody(), true); 163 $data = json_decode((string) $response->getBody(), true);
164 $this->assertEquals($this->refDB->countLinks(), count($data)); 164 $this->assertEquals($this->refDB->countLinks(), count($data));
165 // Check order 165 // Check order
166 $order = [41, 8, 6, 7, 0, 1, 4, 42]; 166 $order = [41, 8, 6, 7, 0, 1, 9, 4, 42];
167 $cpt = 0; 167 $cpt = 0;
168 foreach ($data as $link) { 168 foreach ($data as $link) {
169 $this->assertEquals(self::NB_FIELDS_LINK, count($link)); 169 $this->assertEquals(self::NB_FIELDS_LINK, count($link));