Fixing Folder test case after recent updates in folder casing

This commit is contained in:
Jose Lorenzo Rodriguez 2011-05-14 23:42:55 -04:30
parent 5f56642e0e
commit 1930452da0

View file

@ -69,10 +69,10 @@ class FolderTest extends CakeTestCase {
$result = Folder::isSlashTerm($inside); $result = Folder::isSlashTerm($inside);
$this->assertTrue($result); $this->assertTrue($result);
$result = $Folder->realpath('tests/'); $result = $Folder->realpath('Test/');
$this->assertEqual($result, $path . DS .'tests' . DS); $this->assertEqual($result, $path . DS .'Test' . DS);
$result = $Folder->inPath('tests' . DS); $result = $Folder->inPath('Test' . DS);
$this->assertTrue($result); $this->assertTrue($result);
$result = $Folder->inPath(DS . 'non-existing' . $inside); $result = $Folder->inPath(DS . 'non-existing' . $inside);
@ -147,7 +147,7 @@ class FolderTest extends CakeTestCase {
* @return void * @return void
*/ */
function testOperations() { function testOperations() {
$path = LIBS . 'console' . DS . 'templates' . DS . 'skel'; $path = LIBS . 'Console' . DS . 'templates' . DS . 'skel';
$Folder = new Folder($path); $Folder = new Folder($path);
$result = is_dir($Folder->pwd()); $result = is_dir($Folder->pwd());
@ -220,7 +220,7 @@ class FolderTest extends CakeTestCase {
public function testChmod() { public function testChmod() {
$this->skipIf(DIRECTORY_SEPARATOR === '\\', '%s Folder permissions tests not supported on Windows'); $this->skipIf(DIRECTORY_SEPARATOR === '\\', '%s Folder permissions tests not supported on Windows');
$path = LIBS . 'console' . DS . 'templates' . DS . 'skel'; $path = LIBS . 'Console' . DS . 'templates' . DS . 'skel';
$Folder = new Folder($path); $Folder = new Folder($path);
$subdir = 'test_folder_new'; $subdir = 'test_folder_new';