mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-09-06 11:32:40 +00:00
remove LIBS constant
libs always means the Cake lib - so use the CAKE constant
This commit is contained in:
parent
ff2d9e244a
commit
afa8f6b441
67 changed files with 571 additions and 434 deletions
|
@ -242,7 +242,7 @@ class TestTaskTest extends CakeTestCase {
|
|||
$out = $this->getMock('ConsoleOutput', array(), array(), '', false);
|
||||
$in = $this->getMock('ConsoleInput', array(), array(), '', false);
|
||||
|
||||
$this->Task = $this->getMock('TestTask',
|
||||
$this->Task = $this->getMock('TestTask',
|
||||
array('in', 'err', 'createFile', '_stop', 'isLoadableClass'),
|
||||
array($out, $out, $in)
|
||||
);
|
||||
|
@ -542,7 +542,7 @@ class TestTaskTest extends CakeTestCase {
|
|||
* @return void
|
||||
*/
|
||||
function testInteractiveWithPlugin() {
|
||||
$testApp = LIBS . 'Test' . DS . 'test_app' . DS . 'Plugin' . DS;
|
||||
$testApp = CAKE . 'Test' . DS . 'test_app' . DS . 'Plugin' . DS;
|
||||
App::build(array(
|
||||
'plugins' => array($testApp)
|
||||
), true);
|
||||
|
@ -555,8 +555,8 @@ class TestTaskTest extends CakeTestCase {
|
|||
->will($this->onConsecutiveCalls(
|
||||
5, //helper
|
||||
1 //OtherHelper
|
||||
));
|
||||
|
||||
));
|
||||
|
||||
$this->Task->expects($this->once())
|
||||
->method('createFile')
|
||||
->with($path, $this->anything());
|
||||
|
@ -564,7 +564,7 @@ class TestTaskTest extends CakeTestCase {
|
|||
$this->Task->stdout->expects($this->at(21))
|
||||
->method('write')
|
||||
->with('1. OtherHelperHelper');
|
||||
|
||||
|
||||
$this->Task->execute();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue