aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/api/controllers
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2020-10-12 12:23:57 +0200
committerArthurHoaro <arthur@hoa.ro>2020-10-16 20:31:49 +0200
commitf1a148ab92c061ac129b5b2976de02d45b6a71e7 (patch)
tree89b085ac6c4cd7608526f855f452d1a797dbb333 /tests/api/controllers
parent4e3875c0ce7f3b17e3d358dc5ecb1f8bed64546b (diff)
downloadShaarli-f1a148ab92c061ac129b5b2976de02d45b6a71e7.tar.gz
Shaarli-f1a148ab92c061ac129b5b2976de02d45b6a71e7.tar.zst
Shaarli-f1a148ab92c061ac129b5b2976de02d45b6a71e7.zip
add search highlight unit tests
Diffstat (limited to 'tests/api/controllers')
-rw-r--r--tests/api/controllers/links/GetLinksTest.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/api/controllers/links/GetLinksTest.php b/tests/api/controllers/links/GetLinksTest.php
index 0f5073b4..b1c46ee2 100644
--- a/tests/api/controllers/links/GetLinksTest.php
+++ b/tests/api/controllers/links/GetLinksTest.php
@@ -398,7 +398,7 @@ class GetLinksTest extends \Shaarli\TestCase
398 $response = $this->controller->getLinks($request, new Response()); 398 $response = $this->controller->getLinks($request, new Response());
399 $this->assertEquals(200, $response->getStatusCode()); 399 $this->assertEquals(200, $response->getStatusCode());
400 $data = json_decode((string) $response->getBody(), true); 400 $data = json_decode((string) $response->getBody(), true);
401 $this->assertEquals(4, count($data)); 401 $this->assertEquals(5, count($data));
402 $this->assertEquals(6, $data[0]['id']); 402 $this->assertEquals(6, $data[0]['id']);
403 403
404 // wildcard: placeholder at the middle 404 // wildcard: placeholder at the middle