Created
March 8, 2018 01:20
-
-
Save jsdecena/f23d2c3d215a03762044ab3122c94894 to your computer and use it in GitHub Desktop.
Carousel Feature Test File
This file contains hidden or 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
<?php | |
namespace Tests\Feature\Admin\Carousels; | |
use Tests\TestCase; | |
class CarouselFeatureTest extends TestCase | |
{ | |
/** @test */ | |
public function it_can_show_the_create_carousel_page() | |
{ | |
$employee = factory(User::class)->create(); | |
$this | |
->actingAs($employee, 'admin') | |
->get(route('admin.carousel.create')) | |
->assertStatus(200) | |
->assertSee('Title') | |
->assertSee('Subtitle') | |
->assertSee('Link') | |
->assertSee('Link Text') | |
->assertSee('Image'); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment