remove LIBS constant

libs always means the Cake lib - so use the CAKE constant
This commit is contained in:
AD7six 2011-04-17 12:35:21 +02:00
parent ff2d9e244a
commit afa8f6b441
67 changed files with 571 additions and 434 deletions

View file

@ -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();
}