]> BookStack Code Mirror - bookstack/blobdiff - tests/Entity/SearchOptionsTest.php
Added more complexity in an attempt to make ldap host failover fit
[bookstack] / tests / Entity / SearchOptionsTest.php
index c9e116523ed0fdf943622fc4c6a77a7d07ceb689..cac9c67f145f5780c6be173849162693bf295120 100644 (file)
@@ -1,6 +1,8 @@
-<?php namespace Tests\Entity;
+<?php
 
-use BookStack\Entities\Tools\SearchOptions;
+namespace Tests\Entity;
+
+use BookStack\Search\SearchOptions;
 use Tests\TestCase;
 
 class SearchOptionsTest extends 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);
     }
 }