Skip to content

Commit

Permalink
Fixes tests.
Browse files Browse the repository at this point in the history
Signed-off-by: Mior Muhammad Zaki <[email protected]>
  • Loading branch information
crynobone committed Dec 30, 2019
1 parent 18a3c31 commit b34e679
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/Feature/Concerns/AdvancedSearchableTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace Orchestra\Model\Tests\Feature\Concerns;

use Orchestra\Model\Concerns\AdvancedSearchable;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Orchestra\Model\Tests\Feature\TestCase;
use Orchestra\Model\User;
Expand Down Expand Up @@ -86,7 +87,9 @@ public function it_can_search_by_wildcard_array_rules_when_keyword_doesnt_match(

class StubUser extends User
{
public function getSearchableRules(): array
use AdvancedSearchable;

public function getSearchableTerms(): array
{
return [
'is:inactive' => function ($query) {
Expand Down

0 comments on commit b34e679

Please sign in to comment.