mirror of
https://github.com/BookStackApp/BookStack.git
synced 2026-01-03 23:42:28 +03:00
Apply fixes from StyleCI
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user