]> BookStack Code Mirror - bookstack/blobdiff - tests/Api/SearchApiTest.php
Added "page_include_parse" theme event
[bookstack] / tests / Api / SearchApiTest.php
index eb323fdd92a0e7267c68179d2dba235814f7a800..1f38c7fd98441b17371273730598e2877c5c98be 100644 (file)
@@ -46,7 +46,7 @@ class SearchApiTest extends TestCase
         $resp = $this->actingAsApiAdmin()->getJson($this->baseEndpoint . '?query=superuniquevalue');
         $resp->assertJsonFragment([
             'type' => 'page',
-            'url' => $page->getUrl(),
+            'url'  => $page->getUrl(),
         ]);
     }
 
@@ -59,12 +59,12 @@ class SearchApiTest extends TestCase
 
         $resp = $this->actingAsApiAdmin()->getJson($this->baseEndpoint . '?query=superuniquevalue');
         $resp->assertJsonFragment([
-            'type' => 'book',
-            'url' => $book->getUrl(),
+            'type'         => 'book',
+            'url'          => $book->getUrl(),
             'preview_html' => [
-                'name' => 'name with <strong>superuniquevalue</strong> within',
+                'name'    => 'name with <strong>superuniquevalue</strong> within',
                 'content' => 'Description with <strong>superuniquevalue</strong> within',
-            ]
+            ],
         ]);
     }