Completed
Push — master ( ff4be6...afe7b9 )
by AJ
14:59 queued 03:46
created

ShopifyDatabaseComponentTest::setUp()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 14
Code Lines 12

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 14
rs 9.4285
c 0
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\Cakephpify\Test\TestCase\Controller\Component;
17
18
use Multidimensional\Cakephpify\Controller\Component\ShopifyDatabaseComponent;
19
20
use Multidimensional\Cakephpify\Test\Fixture\ShopsFixture;
21
use Multidimensional\Cakephpify\Test\Fixture\AccessTokensFixture;
22
23
use Cake\Controller\Controller;
24
use Cake\Controller\ComponentRegistry;
25
use Cake\Event\Event;
26
use Cake\Network\Request;
27
use Cake\Network\Response;
28
use Cake\TestSuite\TestCase;
29
30
class ShopifyDatabaseComponentTest extends TestCase
31
{
32
33
    public $component = null;
34
    public $controller = null;
35
36
    public $fixtures = ['plugin.Multidimensional/Cakephpify.Shops',
37
                            'plugin.Multidimensional/Cakephpify.AccessTokens'];
38
39
    public function setUp()
40
    {
41
        parent::setUp();
42
        $request = new Request();
43
        $response = new Response();
44
        $this->controller = $this->getMockBuilder('Cake\Controller\Controller')
45
        ->setConstructorArgs([$request, $response])
46
        ->setMethods(null)
47
        ->getMock();
48
        $registry = new ComponentRegistry($this->controller);
49
        $this->component = new ShopifyDatabaseComponent($registry);
50
        $event = new Event('Controller.startup', $this->controller);
51
        $this->component->startup($event);
52
    }
53
54
    public function tearDown()
55
    {
56
        parent::tearDown();
57
        unset($this->component, $this->controller);
58
    }
59
60
    public function testShopDataToDatabase()
61
    {
62
        $this->markTestIncomplete('Not implemented yet.');
63
    }
64
65
    public function testAccessTokenToDatabase()
66
    {
67
        $this->markTestIncomplete('Not implemented yet.');
68
    }
69
70
    public function testGetShopIdFromDomain()
71
    {
72
        $this->markTestIncomplete('Not implemented yet.');
73
    }
74
75
    public function testGetShopDataFromAccessToken()
76
    {
77
        $this->markTestIncomplete('Not implemented yet.');
78
    }
79
80
    public function testGetAccessTokenFromShopDomain()
81
    {
82
        $this->markTestIncomplete('Not implemented yet.');
83
    }
84
}
85