Skip to content

Commit fdeacef

Browse files
committed
fix test
1 parent f443ac3 commit fdeacef

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

tests/FilterTest.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -216,9 +216,9 @@
216216
});
217217

218218
it('can filter many columns with one field', function () {
219-
TestModel::factory()->create(['name' => 'Baro Nil']);
220-
TestModel::factory()->create(['name' => 'Baro Joe']);
221-
TestModel::factory()->create(['name' => 'Billy Nil']);
219+
TestModel::factory()->create(['name' => 'Baro', 'title' => 'Nil']);
220+
TestModel::factory()->create(['name' => 'Baro', 'title' => 'Joe']);
221+
TestModel::factory()->create(['name' => 'Billy', 'title' => 'Nil']);
222222

223223
injectRequest(['name' => 'Baro']);
224224

tests/TestCase.php

+1
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ protected function setUpDatabase(Application $app)
2929
$app['db']->connection()->getSchemaBuilder()->create('test_models', function (Blueprint $table) {
3030
$table->increments('id');
3131
$table->string('name');
32+
$table->string('title')->nullable();
3233
$table->unsignedTinyInteger('type_flag')->default(0);
3334
$table->boolean('is_visible')->default(true);
3435
$table->unsignedInteger('related_model_id')->nullable();

0 commit comments

Comments
 (0)