Finish re-working tests to run on test database
This commit is contained in:
parent
09fc211623
commit
1abca77bdc
50 changed files with 535 additions and 265 deletions
|
@ -4,6 +4,7 @@ declare(strict_types=1);
|
|||
|
||||
namespace Tests\Feature;
|
||||
|
||||
use App\Models\Note;
|
||||
use Tests\TestCase;
|
||||
|
||||
class SearchControllerTest extends TestCase
|
||||
|
@ -11,6 +12,9 @@ class SearchControllerTest extends TestCase
|
|||
/** @test */
|
||||
public function searchPageReturnsResult(): void
|
||||
{
|
||||
Note::factory()->create([
|
||||
'note' => 'I love [duckduckgo.com](https://duckduckgo.com)',
|
||||
]);
|
||||
$response = $this->get('/search?terms=love');
|
||||
$response->assertSee('duckduckgo.com');
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue