Skip to content

Commit

Permalink
add test to be sure the docs are working
Browse files Browse the repository at this point in the history
  • Loading branch information
Nielsvanpach committed Oct 31, 2023
1 parent 96041f9 commit 68994c3
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
14 changes: 14 additions & 0 deletions tests/Http/Controllers/DocsControllerTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?php

namespace Http\Controllers;

it('can load the docs', function () {
$this
->get(route('docs'))
->assertOk()
->assertSee('lighthouse-php')
->assertSee('laravel-comments')
->assertSee('laravel-backup')
->assertSee('laravel-data')
;
});
6 changes: 5 additions & 1 deletion tests/Http/HomeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,9 @@
it('loads the homepage', function () {
$this
->get(route('home'))
->assertSuccessful();
->assertSuccessful()
->assertSee('Solid expertise')
->assertSee('We craft web applications, software, courses')
->assertSee('Mailcoach Cloud')
;
});

0 comments on commit 68994c3

Please sign in to comment.