FallbackServiceTest   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 32
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Importance

Changes 0
Metric Value
dl 0
loc 32
rs 10
c 0
b 0
f 0
wmc 3
lcom 0
cbo 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A setUp() 0 5 1
A tearDown() 0 4 1
A testArticlesIndex() 0 5 1
1
<?php
2
/**
3
 * Copyright 2016 - 2018, Cake Development Corporation (http://cakedc.com)
4
 *
5
 * Licensed under The MIT License
6
 * Redistributions of files must retain the above copyright notice.
7
 *
8
 * @copyright Copyright 2016 - 2018, Cake Development Corporation (http://cakedc.com)
9
 * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
10
 */
11
12
namespace CakeDC\Api\Test\TestCase\Integration\Service;
13
14
use CakeDC\Api\Test\ConfigTrait;
15
use CakeDC\Api\TestSuite\IntegrationTestCase;
16
use CakeDC\Api\Test\FixturesTrait;
17
use Cake\Core\Configure;
18
19
class FallbackServiceTest extends IntegrationTestCase
20
{
21
    use FixturesTrait;
22
    use ConfigTrait;
23
24
    /**
25
     * setUp
26
     *
27
     * @return void
28
     */
29
    public function setUp()
30
    {
31
        $this->_publicAccess();
32
        parent::setUp();
33
    }
34
35
    /**
36
     * tearDown
37
     *
38
     * @return void
39
     */
40
    public function tearDown()
41
    {
42
        parent::tearDown();
43
    }
44
45
    public function testArticlesIndex()
46
    {
47
        $this->sendRequest('/articles', 'GET', ['limit' => 5]);
48
        $this->assertResponseOk();
49
    }
50
}
51