mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
Adding skip for BakeShell test, if a User class exists bake all cannot be tested.
This commit is contained in:
parent
c669f8c998
commit
3edb84d77c
1 changed files with 5 additions and 0 deletions
|
@ -95,6 +95,11 @@ class BakeShellTestCase extends CakeTestCase {
|
||||||
* @access public
|
* @access public
|
||||||
*/
|
*/
|
||||||
function testAllWithModelName() {
|
function testAllWithModelName() {
|
||||||
|
App::import('Model', 'User');
|
||||||
|
$userExists = class_exists('User');
|
||||||
|
if ($this->skipIf($userExists, 'User class exists, cannot test `bake all [param]`. %s')) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
$this->Shell->Model =& new BakeShellMockModelTask();
|
$this->Shell->Model =& new BakeShellMockModelTask();
|
||||||
$this->Shell->Controller =& new BakeShellMockControllerTask();
|
$this->Shell->Controller =& new BakeShellMockControllerTask();
|
||||||
$this->Shell->View =& new BakeShellMockModelTask();
|
$this->Shell->View =& new BakeShellMockModelTask();
|
||||||
|
|
Loading…
Reference in a new issue