1 year ago
18 lines336 B
<?php | |
| |
namespace Tests\Feature; | |
| |
use Tests\TestCase; | |
| |
class CoursePagesTest extends TestCase | |
{ | |
public function test_course_list_loads() | |
{ | |
$this->get('/courses')->assertOk()->assertSee('Python'); | |
} | |
| |
public function test_unknown_course_is_404() | |
{ | |
$this->get('/courses/nope')->assertNotFound(); | |
} | |
} |