Skip to content

Commit

Permalink
add test for collection page
Browse files Browse the repository at this point in the history
  • Loading branch information
mvdnbrk committed Jan 10, 2025
1 parent feeb20a commit b2dadb1
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions tests/Feature/ViewCollectionPageTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?php

namespace Tests\Feature;

use Illuminate\Foundation\Testing\RefreshDatabase;
use PHPUnit\Framework\Attributes\Test;
use Tests\TestCase;

class ViewCollectionPageTest extends TestCase
{
use RefreshDatabase;

#[Test]
public function a_request_to_the_collection_page_should_return_a_200_status_code(): void
{
$this->get('/collection')->assertOk()->assertViewIs('collection');
}
}

0 comments on commit b2dadb1

Please sign in to comment.