|
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() |
|
|
|
|
|
|
28
|
|
|
{ |
|
29
|
|
|
parent::setUp(); |
|
30
|
|
|
} |
|
31
|
|
|
|
|
32
|
|
|
public function testValidate() |
|
|
|
|
|
|
33
|
|
|
{ |
|
34
|
|
|
$this->markTestIncomplete('Not implemented yet.'); |
|
35
|
|
|
/*$this->get('/shopify/install/'); |
|
|
|
|
|
|
36
|
|
|
$this->assertResponseOk(); |
|
37
|
|
|
$this->get('/shopify/' . md5(rand(1, 10)) . '/install/'); |
|
38
|
|
|
$this->assertResponseError();*/ |
|
39
|
|
|
} |
|
40
|
|
|
|
|
41
|
|
|
public function testIndex() |
|
|
|
|
|
|
42
|
|
|
{ |
|
43
|
|
|
$this->markTestIncomplete('Not implemented yet.'); |
|
44
|
|
|
/*$this->get('/shopify/install/'); |
|
|
|
|
|
|
45
|
|
|
$this->assertResponseOk();*/ |
|
46
|
|
|
} |
|
47
|
|
|
|
|
48
|
|
|
public function testRedirect() |
|
|
|
|
|
|
49
|
|
|
{ |
|
50
|
|
|
$this->markTestIncomplete('Not implemented yet.'); |
|
51
|
|
|
} |
|
52
|
|
|
} |
|
53
|
|
|
|