Fix member index test
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
This commit is contained in:
parent
21ea72047c
commit
24b8ac182e
|
@ -156,6 +156,10 @@ services:
|
|||
MARIADB_ALLOW_EMPTY_ROOT_PASSWORD: yes
|
||||
- name: redis
|
||||
image: redis
|
||||
- name: meilisearch
|
||||
image: getmeili/meilisearch:v1.6
|
||||
commands:
|
||||
- meilisearch --master-key="abc"
|
||||
|
||||
trigger:
|
||||
event:
|
||||
|
|
|
@ -6,15 +6,23 @@ use App\Group;
|
|||
use App\Invoice\Models\Invoice;
|
||||
use App\Invoice\Models\InvoicePosition;
|
||||
use App\Member\Member;
|
||||
use App\Payment\Payment;
|
||||
use Illuminate\Foundation\Testing\DatabaseMigrations;
|
||||
use Tests\RequestFactories\Child;
|
||||
use Illuminate\Support\Facades\Artisan;
|
||||
use Laravel\Scout\Console\SyncIndexSettingsCommand;
|
||||
use Tests\TestCase;
|
||||
|
||||
class MemberIndexTest extends TestCase
|
||||
{
|
||||
use DatabaseMigrations;
|
||||
|
||||
public function setUp(): void
|
||||
{
|
||||
parent::setUp();
|
||||
|
||||
config()->set('scout.driver', 'meilisearch');
|
||||
Artisan::call(SyncIndexSettingsCommand::class);
|
||||
}
|
||||
|
||||
public function testItHandlesFullTextSearch(): void
|
||||
{
|
||||
$this->withoutExceptionHandling()->login()->loginNami();
|
||||
|
|
Loading…
Reference in New Issue