Attendize/tests/OrganiserTest.php

25 lines
764 B
PHP
Raw Normal View History

2016-04-27 23:06:17 +00:00
<?php
use Illuminate\Foundation\Testing\WithoutMiddleware;
use Illuminate\Foundation\Testing\DatabaseMigrations;
use Illuminate\Foundation\Testing\DatabaseTransactions;
use App\Models\Organiser;
class OrganiserTest extends TestCase
{
public function test_create_organiser_is_successful()
2016-04-27 23:06:17 +00:00
{
$this->actingAs($this->test_user)
->visit(route('showCreateOrganiser'))
->type($this->faker->name, 'name')
->type($this->faker->email, 'email')
->type($this->faker->email, 'about')
->type($this->faker->word, 'facebook')
->type($this->faker->word, 'twitter')
->press('Create Organiser')
->seeJson([
'status' => 'success'
]);
}
}