Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
53 lines (36 sloc) 867 Bytes
<?php
class ExampleTest extends TestCase {
public function setUp()
{
parent::setUp();
Session::start();
}
/** @test */
public function it_displays_default_flash_notifications()
{
Flash::message('Welcome Aboard');
$this->call('GET', '/');
$this->see('Welcome Aboard', '.alert-info');
}
/** @test */
public function it_displays_success_flash_notifications()
{
Flash::success('Welcome Aboard');
$this->call('GET', '/');
$this->see('Welcome Aboard', '.alert-success');
}
/** @test */
public function it_displays_error_flash_notifications()
{
Flash::error('Uh Oh!');
$this->call('GET', '/');
$this->see('Uh Oh!', '.alert-danger');
}
/** @test */
public function it_displays_flash_overlay_notifications()
{
Flash::overlay('Welcome Aboard');
$this->call('GET', '/');
$this->see('Welcome Aboard', '.modal');
}
}