Skip to content

Instantly share code, notes, and snippets.

@jsdecena
Created March 8, 2018 01:20
Show Gist options
  • Save jsdecena/f23d2c3d215a03762044ab3122c94894 to your computer and use it in GitHub Desktop.
Save jsdecena/f23d2c3d215a03762044ab3122c94894 to your computer and use it in GitHub Desktop.
Carousel Feature Test File
<?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