InstallControllerTest   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 32
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

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

4 Methods

Rating   Name   Duplication   Size   Complexity  
A setUp() 0 4 1
A testValidate() 0 8 1
A testIndex() 0 6 1
A testRedirect() 0 4 1
1
<?php
2
/**
3
 * CakePHPify : CakePHP Plugin for Shopify API Authentication
4
 * Copyright (c) Multidimension.al (http://multidimension.al)
5
 * Github : https://github.com/multidimension-al/cakephpify
6
 *
7
 * Licensed under The MIT License
8
 * For full copyright and license information, please see the LICENSE file
9
 * Redistributions of files must retain the above copyright notice.
10
 *
11
 * @copyright (c) Multidimension.al (http://multidimension.al)
12
 * @link      https://github.com/multidimension-al/cakephpify CakePHPify Github
13
 * @license   http://www.opensource.org/licenses/mit-license.php MIT License
14
 */
15
16
namespace Multidimensional\Cakephpify\Test\TestCase\Controller;
17
18
use Cake\TestSuite\IntegrationTestCase;
19
use Multidimensional\Cakephpify\Controller\InstallController;
20
21
class InstallControllerTest extends IntegrationTestCase
22
{
23
24
    public $fixtures = ['plugin.Multidimensional/Cakephpify.Shops',
25
                        'plugin.Multidimensional/Cakephpify.AccessTokens'];
26
27
    public function setUp()
0 ignored issues
show
introduced by
Missing function doc comment
Loading history...
28
    {
29
        parent::setUp();
30
    }
31
32
    public function testValidate()
0 ignored issues
show
introduced by
Missing function doc comment
Loading history...
33
    {
34
        $this->markTestIncomplete('Not implemented yet.');
35
        /*$this->get('/shopify/install/');
0 ignored issues
show
Unused Code Comprehensibility introduced by
66% of this comment could be valid code. Did you maybe forget this after debugging?

Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have checked you do not need it.

The code might also have been commented out for debugging purposes. In this case it is vital that someone uncomments it again or your project may behave in very unexpected ways in production.

This check looks for comments that seem to be mostly valid code and reports them.

Loading history...
36
        $this->assertResponseOk();
37
        $this->get('/shopify/' . md5(rand(1, 10)) . '/install/');
38
        $this->assertResponseError();*/
39
    }
40
41
    public function testIndex()
0 ignored issues
show
introduced by
Missing function doc comment
Loading history...
42
    {
43
        $this->markTestIncomplete('Not implemented yet.');
44
        /*$this->get('/shopify/install/');
0 ignored issues
show
Unused Code Comprehensibility introduced by
79% of this comment could be valid code. Did you maybe forget this after debugging?

Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have checked you do not need it.

The code might also have been commented out for debugging purposes. In this case it is vital that someone uncomments it again or your project may behave in very unexpected ways in production.

This check looks for comments that seem to be mostly valid code and reports them.

Loading history...
45
        $this->assertResponseOk();*/
46
    }
47
48
    public function testRedirect()
0 ignored issues
show
introduced by
Missing function doc comment
Loading history...
49
    {
50
        $this->markTestIncomplete('Not implemented yet.');
51
    }
52
}
53