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
|
|
|
|
|
{
|
2016-06-17 00:03:47 +00:00
|
|
|
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'
|
|
|
|
|
]);
|
|
|
|
|
}
|
|
|
|
|
}
|