mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 02:56:15 +00:00
Fixing Folder test case after recent updates in folder casing
This commit is contained in:
parent
5f56642e0e
commit
1930452da0
1 changed files with 5 additions and 5 deletions
|
@ -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';
|
||||||
|
|
Loading…
Add table
Reference in a new issue