Completed
Pull Request — master (#6)
by AJ
12:51
created

ShopifyAPIComponentTest::setUp()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 14
Code Lines 12

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
dl 0
loc 14
rs 9.4285
c 2
b 0
f 0
cc 1
eloc 12
nc 1
nop 0
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\Shopify\Tests\Controller\Component;
17
18
use Multidimensional\Shopify\Controller\Component\ShopifyAPIComponent;
19
20
use Cake\Controller\Controller;
21
use Cake\Controller\ComponentRegistry;
22
use Cake\Event\Event;
23
use Cake\Network\Request;
24
use Cake\Network\Response;
25
use Cake\TestSuite\TestCase;
26
27
class ShopifyAPIComponentTest extends TestCase
28
{
29
30
    public $component = null;
31
    public $controller = null;
32
    public $fixtures = ['plugin.Multidimensional/Shopify.Shops', 'plugin.Multidimensional/Shopify.AccessTokens'];
33
34
    public function setUp()
35
    {
36
        parent::setUp();
37
        $request = new Request();
38
        $response = new Response();
39
        $this->controller = $this->getMockBuilder('Cake\Controller\Controller')
40
        ->setConstructorArgs([$request, $response])
41
        ->setMethods(null)
42
        ->getMock();
43
        $registry = new ComponentRegistry($this->controller);
44
        $this->component = new ShopifyAPIComponent($registry);
45
        $event = new Event('Controller.startup', $this->controller);
46
        $this->component->startup($event);
47
    }
48
49
    public function tearDown()
50
    {
51
        parent::tearDown();
52
        unset($this->component, $this->controller);
53
    }
54
55
    public function testSetShopDomain()
56
    {
57
        $this->markTestIncomplete('Not implemented yet.');
58
    }
59
60
    public function testGetShopDomain()
61
    {
62
        $this->markTestIncomplete('Not implemented yet.');
63
    }
64
65
    public function testSetAccessToken()
66
    {
67
        $this->markTestIncomplete('Not implemented yet.');
68
    }
69
70
    public function testGetAuthorizeUrl()
71
    {
72
        $this->markTestIncomplete('Not implemented yet.');
73
    }
74
75
    public function testGetAccessToken()
76
    {
77
        $this->markTestIncomplete('Not implemented yet.');
78
    }
79
80
    public function testSetNonce()
81
    {
82
        $this->markTestIncomplete('Not implemented yet.');
83
    }
84
85
    public function testGetNonce()
86
    {
87
        $this->markTestIncomplete('Not implemented yet.');
88
    }
89
}
90