]>
BookStack Code Mirror - bookstack/blobdiff - tests/Entity/SearchOptionsTest.php
projects
/
bookstack
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added additional testing for editor switching permissions
[bookstack]
/
tests
/
Entity
/
SearchOptionsTest.php
diff --git
a/tests/Entity/SearchOptionsTest.php
b/tests/Entity/SearchOptionsTest.php
index c9e116523ed0fdf943622fc4c6a77a7d07ceb689..25a0ae7209572b18145e1cf9411c8fff4b2edd93 100644
(file)
--- a/
tests/Entity/SearchOptionsTest.php
+++ b/
tests/Entity/SearchOptionsTest.php
@@
-1,4
+1,6
@@
-<?php namespace Tests\Entity;
+<?php
+
+namespace Tests\Entity;
use BookStack\Entities\Tools\SearchOptions;
use Tests\TestCase;
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}';
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'];
$options->searches = ['cat'];
$options->exacts = ['dog'];
$options->tags = ['tag=good'];
@@
-36,8
+38,8
@@
class SearchOptionsTest extends TestCase
$this->assertEquals([
'is_tree' => '',
$this->assertEquals([
'is_tree' => '',
- 'name' => 'dan',
- 'cat' => 'happy',
+ 'name'
=> 'dan',
+ 'cat'
=> 'happy',
], $opts->filters);
}
}
], $opts->filters);
}
}