]> BookStack Code Mirror - bookstack/blobdiff - tests/Entity/SearchOptionsTest.php
Fixes padding issues of the sidebar's items
[bookstack] / tests / Entity / SearchOptionsTest.php
index c9e116523ed0fdf943622fc4c6a77a7d07ceb689..25a0ae7209572b18145e1cf9411c8fff4b2edd93 100644 (file)
@@ -1,4 +1,6 @@
-<?php namespace Tests\Entity;
+<?php
+
+namespace Tests\Entity;
 
 use BookStack\Entities\Tools\SearchOptions;
 use Tests\TestCase;
@@ -18,7 +20,7 @@ class SearchOptionsTest extends TestCase
     public function test_to_string_includes_all_items_in_the_correct_format()
     {
         $expected = 'cat "dog" [tag=good] {is_tree}';
-        $options = new SearchOptions;
+        $options = new SearchOptions();
         $options->searches = ['cat'];
         $options->exacts = ['dog'];
         $options->tags = ['tag=good'];
@@ -36,8 +38,8 @@ class SearchOptionsTest extends TestCase
 
         $this->assertEquals([
             'is_tree' => '',
-            'name' => 'dan',
-            'cat' => 'happy',
+            'name'    => 'dan',
+            'cat'     => 'happy',
         ], $opts->filters);
     }
 }