Skip to content

Commit d064882

Browse files
Tweak tests
1 parent de6a10d commit d064882

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/FilterTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -681,6 +681,8 @@ public function __invoke(Builder $query, $value, string $property): Builder
681681
});
682682

683683
it('should apply a nullable filter when filter exists and is null', function () {
684+
DB::enableQueryLog();
685+
684686
TestModel::create(['name' => null]);
685687
TestModel::create(['name' => 'UniqueJohn Deer']);
686688

@@ -690,6 +692,7 @@ public function __invoke(Builder $query, $value, string $property): Builder
690692
->allowedFilters(AllowedFilter::exact('name')->nullable())
691693
->get();
692694

695+
$this->assertQueryLogContains("select * from `test_models` where `test_models`.`name` is null");
693696
expect($models->count())->toEqual(1);
694697
});
695698

0 commit comments

Comments
 (0)