Sistema de controles da União de Ciclistas do Brasil
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
|
|
<?php
|
|
|
|
|
|
namespace Tests\Feature\Collaborators\Associates;
|
|
|
|
|
|
use App\Collaborator;
|
|
|
use Illuminate\Foundation\Testing\RefreshDatabase;
|
|
|
use Illuminate\Foundation\Testing\WithFaker;
|
|
|
use Livewire\Livewire;
|
|
|
use Tests\TestCase;
|
|
|
|
|
|
class IndexTest extends TestCase
|
|
|
{
|
|
|
use RefreshDatabase;
|
|
|
|
|
|
/** @test */
|
|
|
public function a_collaborator_can_view_index_page()
|
|
|
{
|
|
|
$collaborator = factory(Collaborator::class)->create();
|
|
|
$this->be($collaborator, 'collaborators');
|
|
|
|
|
|
$this->get(route('collaborators.associates.index'))
|
|
|
->assertSuccessful()
|
|
|
->assertSeeLivewire('collaborators.associates.index');
|
|
|
}
|
|
|
}
|