mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
Mocking out clear() on all the shell tests as it wreaks havoc on the CLI runner.
This commit is contained in:
parent
6974a8752f
commit
309d08d4ef
16 changed files with 16 additions and 16 deletions
|
@ -64,7 +64,7 @@ class AclShellTest extends CakeTestCase {
|
||||||
|
|
||||||
$this->Dispatcher = $this->getMock(
|
$this->Dispatcher = $this->getMock(
|
||||||
'ShellDispatcher',
|
'ShellDispatcher',
|
||||||
array('getInput', 'stdout', 'stderr', '_stop', '_initEnvironment', 'dispatch')
|
array('getInput', 'stdout', 'stderr', '_stop', '_initEnvironment', 'dispatch', 'clear')
|
||||||
);
|
);
|
||||||
$this->Task = $this->getMock(
|
$this->Task = $this->getMock(
|
||||||
'AclShell',
|
'AclShell',
|
||||||
|
|
|
@ -50,7 +50,7 @@ class ApiShellTest extends CakeTestCase {
|
||||||
public function startTest() {
|
public function startTest() {
|
||||||
$this->Dispatcher = $this->getMock(
|
$this->Dispatcher = $this->getMock(
|
||||||
'ShellDispatcher',
|
'ShellDispatcher',
|
||||||
array('getInput', 'stdout', 'stderr', '_stop', '_initEnvironment', 'dispatch')
|
array('getInput', 'stdout', 'stderr', '_stop', '_initEnvironment', 'dispatch', 'clear')
|
||||||
);
|
);
|
||||||
$this->Shell = $this->getMock(
|
$this->Shell = $this->getMock(
|
||||||
'ApiShell',
|
'ApiShell',
|
||||||
|
|
|
@ -61,7 +61,7 @@ class BakeShellTest extends CakeTestCase {
|
||||||
public function startTest() {
|
public function startTest() {
|
||||||
$this->Dispatcher = $this->getMock(
|
$this->Dispatcher = $this->getMock(
|
||||||
'ShellDispatcher',
|
'ShellDispatcher',
|
||||||
array('getInput', 'stdout', 'stderr', '_stop', '_initEnvironment')
|
array('getInput', 'stdout', 'stderr', '_stop', '_initEnvironment', 'clear')
|
||||||
);
|
);
|
||||||
$this->Shell = $this->getMock(
|
$this->Shell = $this->getMock(
|
||||||
'BakeShell',
|
'BakeShell',
|
||||||
|
|
|
@ -122,7 +122,7 @@ class SchemaShellTest extends CakeTestCase {
|
||||||
public function startTest() {
|
public function startTest() {
|
||||||
$this->Dispatcher = $this->getMock(
|
$this->Dispatcher = $this->getMock(
|
||||||
'ShellDispatcher',
|
'ShellDispatcher',
|
||||||
array('getInput', 'stdout', 'stderr', '_stop', '_initEnvironment')
|
array('getInput', 'stdout', 'stderr', '_stop', '_initEnvironment', 'clear')
|
||||||
);
|
);
|
||||||
$this->Shell = $this->getMock(
|
$this->Shell = $this->getMock(
|
||||||
'SchemaShell',
|
'SchemaShell',
|
||||||
|
|
|
@ -116,7 +116,7 @@ class ShellTest extends CakeTestCase {
|
||||||
|
|
||||||
$this->Dispatcher = $this->getMock(
|
$this->Dispatcher = $this->getMock(
|
||||||
'ShellDispatcher',
|
'ShellDispatcher',
|
||||||
array('getInput', 'stdout', 'stderr', '_stop', '_initEnvironment')
|
array('getInput', 'stdout', 'stderr', '_stop', '_initEnvironment', 'clear')
|
||||||
);
|
);
|
||||||
$this->Shell =& new TestShell($this->Dispatcher);
|
$this->Shell =& new TestShell($this->Dispatcher);
|
||||||
}
|
}
|
||||||
|
|
|
@ -78,7 +78,7 @@ class ControllerTaskTest extends CakeTestCase {
|
||||||
*/
|
*/
|
||||||
public function startTest() {
|
public function startTest() {
|
||||||
$this->Dispatcher = $this->getMock('ShellDispatcher', array(
|
$this->Dispatcher = $this->getMock('ShellDispatcher', array(
|
||||||
'getInput', 'stdout', 'stderr', '_stop', '_initEnvironment'
|
'getInput', 'stdout', 'stderr', '_stop', '_initEnvironment', 'clear'
|
||||||
));
|
));
|
||||||
$this->Task = $this->getMock('ControllerTask',
|
$this->Task = $this->getMock('ControllerTask',
|
||||||
array('in', 'out', 'err', 'hr', 'createFile', '_stop', '_checkUnitTest'),
|
array('in', 'out', 'err', 'hr', 'createFile', '_stop', '_checkUnitTest'),
|
||||||
|
|
|
@ -70,7 +70,7 @@ class DbConfigTaskTest extends CakeTestCase {
|
||||||
*/
|
*/
|
||||||
public function startTest() {
|
public function startTest() {
|
||||||
$this->Dispatcher = $this->getMock('ShellDispatcher', array(
|
$this->Dispatcher = $this->getMock('ShellDispatcher', array(
|
||||||
'getInput', 'stdout', 'stderr', '_stop', '_initEnvironment'
|
'getInput', 'stdout', 'stderr', '_stop', '_initEnvironment', 'clear'
|
||||||
));
|
));
|
||||||
$this->Task = $this->getMock('DbConfigTask',
|
$this->Task = $this->getMock('DbConfigTask',
|
||||||
array('in', 'out', 'err', 'hr', 'createFile', '_stop', '_checkUnitTest', '_verify'),
|
array('in', 'out', 'err', 'hr', 'createFile', '_stop', '_checkUnitTest', '_verify'),
|
||||||
|
|
|
@ -50,7 +50,7 @@ class ExtractTaskTest extends CakeTestCase {
|
||||||
*/
|
*/
|
||||||
public function setUp() {
|
public function setUp() {
|
||||||
$this->Dispatcher = $this->getMock('ShellDispatcher', array(
|
$this->Dispatcher = $this->getMock('ShellDispatcher', array(
|
||||||
'getInput', 'stdout', 'stderr', '_stop', '_initEnvironment'
|
'getInput', 'stdout', 'stderr', '_stop', '_initEnvironment', 'clear'
|
||||||
));
|
));
|
||||||
$this->Task =& new ExtractTask($this->Dispatcher);
|
$this->Task =& new ExtractTask($this->Dispatcher);
|
||||||
}
|
}
|
||||||
|
|
|
@ -56,7 +56,7 @@ class FixtureTaskTest extends CakeTestCase {
|
||||||
*/
|
*/
|
||||||
public function startTest() {
|
public function startTest() {
|
||||||
$this->Dispatcher = $this->getMock('ShellDispatcher', array(
|
$this->Dispatcher = $this->getMock('ShellDispatcher', array(
|
||||||
'getInput', 'stdout', 'stderr', '_stop', '_initEnvironment'
|
'getInput', 'stdout', 'stderr', '_stop', '_initEnvironment', 'clear'
|
||||||
));
|
));
|
||||||
$this->Task = $this->getMock('FixtureTask',
|
$this->Task = $this->getMock('FixtureTask',
|
||||||
array('in', 'err', 'createFile', '_stop'),
|
array('in', 'err', 'createFile', '_stop'),
|
||||||
|
|
|
@ -59,7 +59,7 @@ class ModelTaskTest extends CakeTestCase {
|
||||||
*/
|
*/
|
||||||
public function startTest() {
|
public function startTest() {
|
||||||
$this->Dispatcher = $this->getMock('ShellDispatcher', array(
|
$this->Dispatcher = $this->getMock('ShellDispatcher', array(
|
||||||
'getInput', 'stdout', 'stderr', '_stop', '_initEnvironment'
|
'getInput', 'stdout', 'stderr', '_stop', '_initEnvironment', 'clear'
|
||||||
));
|
));
|
||||||
$this->Task = $this->getMock('ModelTask',
|
$this->Task = $this->getMock('ModelTask',
|
||||||
array('in', 'err', 'createFile', '_stop', '_checkUnitTest'),
|
array('in', 'err', 'createFile', '_stop', '_checkUnitTest'),
|
||||||
|
|
|
@ -55,7 +55,7 @@ class PluginTaskTest extends CakeTestCase {
|
||||||
*/
|
*/
|
||||||
public function startTest() {
|
public function startTest() {
|
||||||
$this->Dispatcher = $this->getMock('ShellDispatcher', array(
|
$this->Dispatcher = $this->getMock('ShellDispatcher', array(
|
||||||
'getInput', 'stdout', 'stderr', '_stop', '_initEnvironment'
|
'getInput', 'stdout', 'stderr', '_stop', '_initEnvironment', 'clear'
|
||||||
));
|
));
|
||||||
$this->Task = $this->getMock('PluginTask',
|
$this->Task = $this->getMock('PluginTask',
|
||||||
array('in', 'err', 'createFile', '_stop'),
|
array('in', 'err', 'createFile', '_stop'),
|
||||||
|
|
|
@ -51,7 +51,7 @@ class ProjectTaskTest extends CakeTestCase {
|
||||||
*/
|
*/
|
||||||
public function startTest() {
|
public function startTest() {
|
||||||
$this->Dispatcher = $this->getMock('ShellDispatcher', array(
|
$this->Dispatcher = $this->getMock('ShellDispatcher', array(
|
||||||
'getInput', 'stdout', 'stderr', '_stop', '_initEnvironment'
|
'getInput', 'stdout', 'stderr', '_stop', '_initEnvironment', 'clear'
|
||||||
));
|
));
|
||||||
$this->Task = $this->getMock('ProjectTask',
|
$this->Task = $this->getMock('ProjectTask',
|
||||||
array('in', 'err', 'createFile', '_stop'),
|
array('in', 'err', 'createFile', '_stop'),
|
||||||
|
|
|
@ -50,7 +50,7 @@ class TemplateTaskTest extends CakeTestCase {
|
||||||
*/
|
*/
|
||||||
public function startTest() {
|
public function startTest() {
|
||||||
$this->Dispatcher = $this->getMock('ShellDispatcher', array(
|
$this->Dispatcher = $this->getMock('ShellDispatcher', array(
|
||||||
'getInput', 'stdout', 'stderr', '_stop', '_initEnvironment'
|
'getInput', 'stdout', 'stderr', '_stop', '_initEnvironment', 'clear'
|
||||||
));
|
));
|
||||||
$this->Task = $this->getMock('TemplateTask',
|
$this->Task = $this->getMock('TemplateTask',
|
||||||
array('in', 'err', 'createFile', '_stop'),
|
array('in', 'err', 'createFile', '_stop'),
|
||||||
|
|
|
@ -249,7 +249,7 @@ class TestTaskTest extends CakeTestCase {
|
||||||
*/
|
*/
|
||||||
public function startTest() {
|
public function startTest() {
|
||||||
$this->Dispatcher = $this->getMock('ShellDispatcher', array(
|
$this->Dispatcher = $this->getMock('ShellDispatcher', array(
|
||||||
'getInput', 'stdout', 'stderr', '_stop', '_initEnvironment'
|
'getInput', 'stdout', 'stderr', '_stop', '_initEnvironment', 'clear'
|
||||||
));
|
));
|
||||||
$this->Task = $this->getMock('TestTask',
|
$this->Task = $this->getMock('TestTask',
|
||||||
array('in', 'err', 'createFile', '_stop', 'isLoadableClass'),
|
array('in', 'err', 'createFile', '_stop', 'isLoadableClass'),
|
||||||
|
|
|
@ -232,7 +232,7 @@ class ViewTaskTest extends CakeTestCase {
|
||||||
*/
|
*/
|
||||||
public function startTest() {
|
public function startTest() {
|
||||||
$this->Dispatcher = $this->getMock('ShellDispatcher', array(
|
$this->Dispatcher = $this->getMock('ShellDispatcher', array(
|
||||||
'getInput', 'stdout', 'stderr', '_stop', '_initEnvironment'
|
'getInput', 'stdout', 'stderr', '_stop', '_initEnvironment', 'clear'
|
||||||
));
|
));
|
||||||
$this->Task = $this->getMock('ViewTask',
|
$this->Task = $this->getMock('ViewTask',
|
||||||
array('in', 'err', 'createFile', '_stop'),
|
array('in', 'err', 'createFile', '_stop'),
|
||||||
|
|
|
@ -44,7 +44,7 @@ class TestSuiteShellTest extends CakeTestCase {
|
||||||
public function setUp() {
|
public function setUp() {
|
||||||
$this->Dispatcher = $this->getMock(
|
$this->Dispatcher = $this->getMock(
|
||||||
'ShellDispatcher',
|
'ShellDispatcher',
|
||||||
array('getInput', 'stdout', 'stderr', '_stop', '_initEnvironment')
|
array('getInput', 'stdout', 'stderr', '_stop', '_initEnvironment', 'clear')
|
||||||
);
|
);
|
||||||
$this->Shell = $this->getMock(
|
$this->Shell = $this->getMock(
|
||||||
'TestSuiteShell',
|
'TestSuiteShell',
|
||||||
|
|
Loading…
Reference in a new issue