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

testGetAccessTokenFromShopDomain()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
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\ShopifyDatabaseComponent;
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 ShopifyDatabaseComponentTest extends TestCase
28
{
29
30
    public $component = null;
31
    public $controller = null;
32
33
    public $fixtures = ['plugin.Multidimensional/Shopify.Shops',
34
                            'plugin.Multidimensional/Shopify.AccessTokens'];
35
36
    public function setUp()
37
    {
38
        parent::setUp();
39
        $request = new Request();
40
        $response = new Response();
41
        $this->controller = $this->getMockBuilder('Cake\Controller\Controller')
42
        ->setConstructorArgs([$request, $response])
43
        ->setMethods(null)
44
        ->getMock();
45
        $registry = new ComponentRegistry($this->controller);
46
        $this->component = new ShopifyDatabaseComponent($registry);
47
        $event = new Event('Controller.startup', $this->controller);
48
        $this->component->startup($event);
49
    }
50
51
    public function tearDown()
52
    {
53
        parent::tearDown();
54
        unset($this->component, $this->controller);
55
    }
56
57
    public function testShopDataToDatabase()
58
    {
59
        $this->markTestIncomplete('Not implemented yet.');
60
    }
61
62
    public function testAccessTokenToDatabase()
63
    {
64
        $this->markTestIncomplete('Not implemented yet.');
65
    }
66
67
    public function testGetShopIdFromDomain()
68
    {
69
        $this->markTestIncomplete('Not implemented yet.');
70
    }
71
72
    public function testGetShopDataFromAccessToken()
73
    {
74
        $this->markTestIncomplete('Not implemented yet.');
75
    }
76
77
    public function testGetAccessTokenFromShopDomain()
78
    {
79
        $this->markTestIncomplete('Not implemented yet.');
80
    }
81
}
82