diff options
Diffstat (limited to 'tests/api/controllers/InfoTest.php')
-rw-r--r-- | tests/api/controllers/InfoTest.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/api/controllers/InfoTest.php b/tests/api/controllers/InfoTest.php index 4beef3f7..5d6a2329 100644 --- a/tests/api/controllers/InfoTest.php +++ b/tests/api/controllers/InfoTest.php | |||
@@ -80,7 +80,7 @@ class InfoTest extends \PHPUnit_Framework_TestCase | |||
80 | $this->assertEquals(200, $response->getStatusCode()); | 80 | $this->assertEquals(200, $response->getStatusCode()); |
81 | $data = json_decode((string) $response->getBody(), true); | 81 | $data = json_decode((string) $response->getBody(), true); |
82 | 82 | ||
83 | $this->assertEquals(8, $data['global_counter']); | 83 | $this->assertEquals(\ReferenceLinkDB::$NB_LINKS_TOTAL, $data['global_counter']); |
84 | $this->assertEquals(2, $data['private_counter']); | 84 | $this->assertEquals(2, $data['private_counter']); |
85 | $this->assertEquals('Shaarli', $data['settings']['title']); | 85 | $this->assertEquals('Shaarli', $data['settings']['title']); |
86 | $this->assertEquals('?', $data['settings']['header_link']); | 86 | $this->assertEquals('?', $data['settings']['header_link']); |
@@ -103,7 +103,7 @@ class InfoTest extends \PHPUnit_Framework_TestCase | |||
103 | $this->assertEquals(200, $response->getStatusCode()); | 103 | $this->assertEquals(200, $response->getStatusCode()); |
104 | $data = json_decode((string) $response->getBody(), true); | 104 | $data = json_decode((string) $response->getBody(), true); |
105 | 105 | ||
106 | $this->assertEquals(8, $data['global_counter']); | 106 | $this->assertEquals(\ReferenceLinkDB::$NB_LINKS_TOTAL, $data['global_counter']); |
107 | $this->assertEquals(2, $data['private_counter']); | 107 | $this->assertEquals(2, $data['private_counter']); |
108 | $this->assertEquals($title, $data['settings']['title']); | 108 | $this->assertEquals($title, $data['settings']['title']); |
109 | $this->assertEquals($headerLink, $data['settings']['header_link']); | 109 | $this->assertEquals($headerLink, $data['settings']['header_link']); |