Skip to content

Commit 4518d02

Browse files
committed
feat(tests): adjust basic access test
- add testing env to gitignore
1 parent 6d8b39d commit 4518d02

File tree

3 files changed

+28
-22
lines changed

3 files changed

+28
-22
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,4 @@ yarn-error.log
1212
/composer.lock
1313
*.env
1414
/composer.phar
15+
*.env.testing

tests/Feature/AccessTest.php

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<?php
2+
3+
namespace Tests\Feature;
4+
5+
use Illuminate\Foundation\Testing\RefreshDatabase;
6+
use Illuminate\Foundation\Testing\WithFaker;
7+
use Tests\TestCase;
8+
9+
class AccessTest extends TestCase
10+
{
11+
use RefreshDatabase;
12+
13+
/**
14+
* Test landing page access
15+
*
16+
* @return void
17+
*/
18+
public function test_canAccessHomepage()
19+
{
20+
// Ensure 'about' is present to access, otherwise it will error
21+
$this->artisan('add-text-pages');
22+
23+
$response = $this->get('/');
24+
25+
$response->assertStatus(200);
26+
}
27+
}

tests/Feature/LorekeeperTest.php

Lines changed: 0 additions & 22 deletions
This file was deleted.

0 commit comments

Comments
 (0)