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

JobControllerTest::testManagerIndex()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 4
dl 0
loc 7
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
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