Upgrade to Laravel 9 (#252)
This commit is contained in:
parent
16a4d89d18
commit
78bd468d3d
28 changed files with 2235 additions and 3426 deletions
|
@ -143,7 +143,7 @@ class ContactsTest extends TestCase
|
|||
$file = fopen(__DIR__ . '/../../aaron.png', 'rb');
|
||||
$mock = new MockHandler([
|
||||
new Response(200, ['Content-Type' => 'text/html'], $html),
|
||||
new Response(200, ['Content-Type' => 'iamge/png'], $file),
|
||||
new Response(200, ['Content-Type' => 'image/png'], $file),
|
||||
]);
|
||||
$handler = HandlerStack::create($mock);
|
||||
$client = new Client(['handler' => $handler]);
|
||||
|
|
|
@ -1,24 +0,0 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Tests\Feature;
|
||||
|
||||
use App\Models\Note;
|
||||
use Illuminate\Foundation\Testing\RefreshDatabase;
|
||||
use Tests\TestCase;
|
||||
|
||||
class SearchControllerTest extends TestCase
|
||||
{
|
||||
use RefreshDatabase;
|
||||
|
||||
/** @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