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\Shell; |
17
|
|
|
|
18
|
|
|
use Cake\Console\ConsoleIo; |
19
|
|
|
use Cake\TestSuite\Stub\ConsoleOutput; |
20
|
|
|
use Cake\TestSuite\TestCase; |
21
|
|
|
use Multidimensional\Cakephpify\Shell\ShopifyInstallShell; |
22
|
|
|
use Symfony\Component\Console\Output\NullOutput; |
23
|
|
|
|
24
|
|
|
class ShopifyInstallShellTest extends TestCase |
25
|
|
|
{ |
26
|
|
|
|
27
|
|
|
public function setUp() |
|
|
|
|
28
|
|
|
{ |
29
|
|
|
parent::setUp(); |
30
|
|
|
|
31
|
|
|
$this->out = new ConsoleOutput(); |
|
|
|
|
32
|
|
|
$io = new ConsoleIo($this->out); |
|
|
|
|
33
|
|
|
$this->Shell = $this->getMockBuilder('ShopifyInstallShell') |
|
|
|
|
34
|
|
|
->setMethods(['in', 'err', '_stop', 'clear']) |
35
|
|
|
->setConstructorArgs([$io]) |
36
|
|
|
->getMock(); |
|
|
|
|
37
|
|
|
} |
38
|
|
|
|
39
|
|
|
public function tearDown() |
|
|
|
|
40
|
|
|
{ |
41
|
|
|
parent::tearDown(); |
42
|
|
|
unset($this->shell); |
43
|
|
|
} |
44
|
|
|
|
45
|
|
|
public function testMain() |
|
|
|
|
46
|
|
|
{ |
47
|
|
|
$this->markTestIncomplete('Not implemented yet.'); |
48
|
|
|
/*$this->Shell->main(); |
|
|
|
|
49
|
|
|
$output = $this->out->messages(); |
50
|
|
|
$expected = "/(.*)/"; |
51
|
|
|
$this->assertRegExp($expected, $output); |
52
|
|
|
*/ |
53
|
|
|
} |
54
|
|
|
} |
55
|
|
|
|