Completed
Push — allow-managers-to-edit-job-pos... ( e10d0a...708fd6 )
by
unknown
19:48 queued 08:28
created

JobControllerTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 5
dl 0
loc 14
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A testManagerIndex() 0 7 1
1
<?php
2
3
namespace Tests\Unit;
4
5
use Tests\TestCase;
6
use Illuminate\Foundation\Testing\WithFaker;
7
use Illuminate\Foundation\Testing\RefreshDatabase;
8
9
use App\Models\Manager;
10
11
class JobControllerTest extends TestCase
12
{
13
    /**
14
     * Ensure a manager can view their index page.
15
     *
16
     * @return void
17
     */
18
    public function testManagerIndex()
19
    {
20
        $manager = factory(Manager::class)->create();
21
22
        $response = $this->actingAs($manager->user)
23
                        ->get('manager/jobs');
24
        $response->assertStatus(200);
25
    }
26
}
27