-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added PagesTest cases && code clean up
- Loading branch information
Showing
4 changed files
with
39 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<?php | ||
|
||
namespace Tests\Feature; | ||
|
||
use Illuminate\Foundation\Testing\RefreshDatabase; | ||
use Illuminate\Foundation\Testing\WithFaker; | ||
use Tests\TestCase; | ||
|
||
class PagesTest extends TestCase | ||
{ | ||
/** | ||
* A basic feature test example. | ||
* | ||
* @return void | ||
*/ | ||
public function test_hompage_is_operating_normally() | ||
{ | ||
$response = $this->get('/'); | ||
|
||
$response->assertStatus(200); | ||
} | ||
|
||
public function test_creative_writing_page_is_operating_normally() | ||
{ | ||
$response = $this->get(route('creative-writing')); | ||
|
||
$response->assertSee('Submit Essay'); | ||
$response->assertStatus(200); | ||
} | ||
|
||
public function test_kids_2_action_page_is_operating_normally() | ||
{ | ||
$response = $this->get(route('kids2action')); | ||
|
||
$response->assertSee('KIDS2ACTION CAMPAIGN'); | ||
$response->assertStatus(200); | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.