From b34e679c86f87327b23779f7db9ef64f94871621 Mon Sep 17 00:00:00 2001 From: Mior Muhammad Zaki Date: Mon, 30 Dec 2019 13:38:53 +0800 Subject: [PATCH] Fixes tests. Signed-off-by: Mior Muhammad Zaki --- tests/Feature/Concerns/AdvancedSearchableTest.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/Feature/Concerns/AdvancedSearchableTest.php b/tests/Feature/Concerns/AdvancedSearchableTest.php index 3ee372d..8a6bb2a 100644 --- a/tests/Feature/Concerns/AdvancedSearchableTest.php +++ b/tests/Feature/Concerns/AdvancedSearchableTest.php @@ -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; @@ -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) {