adrema/tests/Feature/Member/SearchTest.php

29 lines
696 B
PHP
Raw Normal View History

2023-02-26 20:51:59 +01:00
<?php
namespace Tests\Feature\Member;
use App\Member\Member;
use Illuminate\Foundation\Testing\DatabaseTransactions;
use Tests\TestCase;
class SearchTest extends TestCase
{
use DatabaseTransactions;
public function testItHasSearchIndex(): void
{
$this->withoutExceptionHandling()->login();
$member = Member::factory()->defaults()->create([
'firstname' => '::firstname::',
'lastname' => '::lastname::',
'address' => 'Kölner Str 3',
'zip' => 33333,
'location' => 'Hilden',
]);
$this->assertEquals('::firstname:: ::lastname:: Kölner Str 3, 33333 Hilden', $member->search_text);
}
}