Upgrade to Laravel 9 (#252)

This commit is contained in:
Jonny Barnes 2022-02-27 19:42:49 +00:00 committed by GitHub
parent 16a4d89d18
commit 78bd468d3d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
28 changed files with 2235 additions and 3426 deletions

View file

@ -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]);

View file

@ -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');
}
}