Completed
Push — master ( 1a65d7...018a8e )
by Nil
03:48
created

JsonApiControllerTest   A

Complexity

Total Complexity 7

Size/Duplication

Total Lines 33
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 7
c 1
b 0
f 0
lcom 0
cbo 2
dl 0
loc 33
rs 10

7 Methods

Rating   Name   Duplication   Size   Complexity  
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
    public function testListAction()
19
    {
20
        $response = $this->call('GET', 'http://localhost/api/v1/employees');
21
22
        $this->assertEquals(200, $response->getStatusCode());
23
    }
24
25
    public function testGetDataModel()
26
    {
27
    }
28
29
    public function testGetAction()
30
    {
31
    }
32
33
    public function testPostAction()
34
    {
35
    }
36
37
    public function testPatchAction()
38
    {
39
    }
40
41
    public function testPutAction()
42
    {
43
    }
44
45
    public function testDeleteAction()
46
    {
47
    }
48
}
49