|
| 1 | +<?php |
| 2 | +/** |
| 3 | + * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) |
| 4 | + * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) |
| 5 | + * |
| 6 | + * Licensed under The MIT License |
| 7 | + * For full copyright and license information, please see the LICENSE.txt |
| 8 | + * Redistributions of files must retain the above copyright notice. |
| 9 | + * |
| 10 | + * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) |
| 11 | + * @link http://cakephp.org CakePHP(tm) Project |
| 12 | + * @since 3.0.0 |
| 13 | + * @license http://www.opensource.org/licenses/mit-license.php MIT License |
| 14 | + */ |
| 15 | +namespace Cake\Test\TestCase\Console\Command; |
| 16 | + |
| 17 | +use Cake\Console\Command\OrmCacheShell; |
| 18 | +use Cake\Cache\Cache; |
| 19 | +use Cake\TestSuite\TestCase; |
| 20 | + |
| 21 | +/** |
| 22 | + * OrmCacheShell test. |
| 23 | + */ |
| 24 | +class OrmCacheShellTest extends TestCase { |
| 25 | + |
| 26 | +/** |
| 27 | + * setup method |
| 28 | + * |
| 29 | + * @return void |
| 30 | + */ |
| 31 | + public function setUp() { |
| 32 | + parent::setUp(); |
| 33 | + $this->io = $this->getMock('Cake\Console\ConsoleIo'); |
| 34 | + $this->Shell = new OrmCacheShell($this->io); |
| 35 | + } |
| 36 | + |
| 37 | +/** |
| 38 | + * Test build() with no args. |
| 39 | + * |
| 40 | + * @return void |
| 41 | + */ |
| 42 | + public function testBuildNoArgs() { |
| 43 | + $this->markTestIncomplete(); |
| 44 | + } |
| 45 | + |
| 46 | +/** |
| 47 | + * Test build() with one arg. |
| 48 | + * |
| 49 | + * @return void |
| 50 | + */ |
| 51 | + public function testBuildNamedModel() { |
| 52 | + $this->markTestIncomplete(); |
| 53 | + } |
| 54 | + |
| 55 | +/** |
| 56 | + * Test build() with a non-existing connection name. |
| 57 | + * |
| 58 | + * @return void |
| 59 | + */ |
| 60 | + public function testBuildInvalidConnection() { |
| 61 | + $this->markTestIncomplete(); |
| 62 | + } |
| 63 | + |
| 64 | +/** |
| 65 | + * Test clear() with no args. |
| 66 | + * |
| 67 | + * @return void |
| 68 | + */ |
| 69 | + public function testClearInvalidConnection() { |
| 70 | + $this->markTestIncomplete(); |
| 71 | + } |
| 72 | + |
| 73 | +/** |
| 74 | + * Test clear() with once arg. |
| 75 | + * |
| 76 | + * @return void |
| 77 | + */ |
| 78 | + public function testClearNoArgs() { |
| 79 | + $this->markTestIncomplete(); |
| 80 | + } |
| 81 | + |
| 82 | +/** |
| 83 | + * Test clear() with a model name. |
| 84 | + * |
| 85 | + * @return void |
| 86 | + */ |
| 87 | + public function testClearNamedModel() { |
| 88 | + $this->markTestIncomplete(); |
| 89 | + } |
| 90 | + |
| 91 | +} |
0 commit comments