Completed
Push — master ( 018a8e...106059 )
by Nil
02:26
created

JsonApiControllerTest   A

Complexity

Total Complexity 8

Size/Duplication

Total Lines 42
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 2
Bugs 0 Features 0
Metric Value
wmc 8
c 2
b 0
f 0
lcom 0
cbo 2
dl 0
loc 42
rs 10

8 Methods

Rating   Name   Duplication   Size   Complexity  
A setUp() 0 4 1
A testListAction() 0 6 1
A testGetDataModel() 0 3 1
A testGetAction() 0 3 1
A testPostAction() 0 3 1
A testPatchAction() 0 3 1
A testPutAction() 0 3 1
A testDeleteAction() 0 3 1
1
<?php
2
/**
3
 * Author: Nil Portugués Calderó <[email protected]>
4
 * Date: 12/9/15
5
 * Time: 3:05 PM.
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 */
10
11
namespace NilPortugues\Tests\Laravel5\JsonApi;
12
13
/**
14
 * Class JsonApiControllerTest.
15
 */
16
class JsonApiControllerTest extends LaravelTestCase
17
{
18
   
19
    /**
20
     * Setup DB before each test.
21
     */
22
    public function setUp()
23
    {
24
        parent::setUp();
25
    }
26
27
    public function testListAction()
28
    {
29
        $response = $this->call('GET', 'http://localhost/api/v1/employees');
30
31
        $this->assertEquals(200, $response->getStatusCode());
32
    }
33
34
    public function testGetDataModel()
35
    {
36
    }
37
38
    public function testGetAction()
39
    {
40
    }
41
42
    public function testPostAction()
43
    {
44
    }
45
46
    public function testPatchAction()
47
    {
48
    }
49
50
    public function testPutAction()
51
    {
52
    }
53
54
    public function testDeleteAction()
55
    {
56
    }
57
}
58