mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-18 18:46:17 +00:00
updating folder test
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5838 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
3e4f219df4
commit
9ba2857f0d
1 changed files with 3 additions and 3 deletions
|
@ -119,11 +119,11 @@ class FolderTest extends UnitTestCase {
|
|||
$result = $Folder->create($new);
|
||||
$this->assertTrue($result);
|
||||
|
||||
$result = $Folder->read(true);
|
||||
$result = $Folder->read(true, true);
|
||||
$expected = array(array('0', 'cache', 'logs', 'sessions', 'tests'), array());
|
||||
$this->assertEqual($expected, $result);
|
||||
|
||||
$result = $Folder->read(true, array('.', '..', 'logs'));
|
||||
$result = $Folder->read(true, array('.', '..', 'logs', '.svn'));
|
||||
$expected = array(array('0', 'cache', 'sessions', 'tests'), array());
|
||||
$this->assertEqual($expected, $result);
|
||||
|
||||
|
@ -134,7 +134,7 @@ class FolderTest extends UnitTestCase {
|
|||
function testFolderRead() {
|
||||
$Folder =& new Folder(TMP);
|
||||
$expected = array('cache', 'logs', 'sessions', 'tests');
|
||||
$results = $Folder->read();
|
||||
$results = $Folder->read(true, true);
|
||||
$this->assertEqual($results[0], $expected);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue