Update to Laravel 12
This commit is contained in:
parent
b30973d0fe
commit
736b0ea831
82 changed files with 683 additions and 720 deletions
|
@ -6,6 +6,7 @@ namespace Tests\Feature;
|
|||
|
||||
use App\Models\Contact;
|
||||
use Illuminate\Foundation\Testing\RefreshDatabase;
|
||||
use PHPUnit\Framework\Attributes\Test;
|
||||
use Tests\TestCase;
|
||||
|
||||
class ContactsTest extends TestCase
|
||||
|
@ -14,9 +15,8 @@ class ContactsTest extends TestCase
|
|||
|
||||
/**
|
||||
* Check the `/contacts` page gives a good response.
|
||||
*
|
||||
* @test
|
||||
*/
|
||||
#[Test]
|
||||
public function contactsPageLoadsWithoutError(): void
|
||||
{
|
||||
$response = $this->get('/contacts');
|
||||
|
@ -25,9 +25,8 @@ class ContactsTest extends TestCase
|
|||
|
||||
/**
|
||||
* Test an individual contact page with default profile image.
|
||||
*
|
||||
* @test
|
||||
*/
|
||||
#[Test]
|
||||
public function contactPageShouldFallbackToDefaultProfilePic(): void
|
||||
{
|
||||
Contact::factory()->create([
|
||||
|
@ -39,9 +38,8 @@ class ContactsTest extends TestCase
|
|||
|
||||
/**
|
||||
* Test an individual contact page with a specific profile image.
|
||||
*
|
||||
* @test
|
||||
*/
|
||||
#[Test]
|
||||
public function contactPageShouldUseSpecificProfilePicIfPresent(): void
|
||||
{
|
||||
Contact::factory()->create([
|
||||
|
@ -52,7 +50,7 @@ class ContactsTest extends TestCase
|
|||
$response->assertViewHas('image', '/assets/profile-images/aaronparecki.com/image');
|
||||
}
|
||||
|
||||
/** @test */
|
||||
#[Test]
|
||||
public function unknownContactReturnsNotFoundResponse(): void
|
||||
{
|
||||
$response = $this->get('/contacts/unknown');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue