diff options
author | ArthurHoaro <arthur@hoa.ro> | 2017-05-25 15:54:20 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-25 15:54:20 +0200 |
commit | 3e395a6bc63cba16b0772a382f6cbac0ce4ab906 (patch) | |
tree | 220eaf3400aeeea821b7e150855a1d44f1b5bfe9 /tests/api/controllers/InfoTest.php | |
parent | b2e2aa42e288e0becaa95bf9cc3be679743fc98e (diff) | |
parent | 7d86f40bdb2135655b5b4fe8cbcc1ac102114f86 (diff) | |
download | Shaarli-3e395a6bc63cba16b0772a382f6cbac0ce4ab906.tar.gz Shaarli-3e395a6bc63cba16b0772a382f6cbac0ce4ab906.tar.zst Shaarli-3e395a6bc63cba16b0772a382f6cbac0ce4ab906.zip |
Merge pull request #841 from ArthurHoaro/feature/search-no-tag
Empty tag search will look for not tagged links
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 e85eb281..f7e63bfa 100644 --- a/tests/api/controllers/InfoTest.php +++ b/tests/api/controllers/InfoTest.php | |||
@@ -81,7 +81,7 @@ class InfoTest extends \PHPUnit_Framework_TestCase | |||
81 | $this->assertEquals(200, $response->getStatusCode()); | 81 | $this->assertEquals(200, $response->getStatusCode()); |
82 | $data = json_decode((string) $response->getBody(), true); | 82 | $data = json_decode((string) $response->getBody(), true); |
83 | 83 | ||
84 | $this->assertEquals(8, $data['global_counter']); | 84 | $this->assertEquals(\ReferenceLinkDB::$NB_LINKS_TOTAL, $data['global_counter']); |
85 | $this->assertEquals(2, $data['private_counter']); | 85 | $this->assertEquals(2, $data['private_counter']); |
86 | $this->assertEquals('Shaarli', $data['settings']['title']); | 86 | $this->assertEquals('Shaarli', $data['settings']['title']); |
87 | $this->assertEquals('?', $data['settings']['header_link']); | 87 | $this->assertEquals('?', $data['settings']['header_link']); |
@@ -104,7 +104,7 @@ class InfoTest extends \PHPUnit_Framework_TestCase | |||
104 | $this->assertEquals(200, $response->getStatusCode()); | 104 | $this->assertEquals(200, $response->getStatusCode()); |
105 | $data = json_decode((string) $response->getBody(), true); | 105 | $data = json_decode((string) $response->getBody(), true); |
106 | 106 | ||
107 | $this->assertEquals(8, $data['global_counter']); | 107 | $this->assertEquals(\ReferenceLinkDB::$NB_LINKS_TOTAL, $data['global_counter']); |
108 | $this->assertEquals(2, $data['private_counter']); | 108 | $this->assertEquals(2, $data['private_counter']); |
109 | $this->assertEquals($title, $data['settings']['title']); | 109 | $this->assertEquals($title, $data['settings']['title']); |
110 | $this->assertEquals($headerLink, $data['settings']['header_link']); | 110 | $this->assertEquals($headerLink, $data['settings']['header_link']); |