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:
gwoo 2007-10-21 23:37:31 +00:00
parent 3e4f219df4
commit 9ba2857f0d

View file

@ -119,11 +119,11 @@ class FolderTest extends UnitTestCase {
$result = $Folder->create($new); $result = $Folder->create($new);
$this->assertTrue($result); $this->assertTrue($result);
$result = $Folder->read(true); $result = $Folder->read(true, true);
$expected = array(array('0', 'cache', 'logs', 'sessions', 'tests'), array()); $expected = array(array('0', 'cache', 'logs', 'sessions', 'tests'), array());
$this->assertEqual($expected, $result); $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()); $expected = array(array('0', 'cache', 'sessions', 'tests'), array());
$this->assertEqual($expected, $result); $this->assertEqual($expected, $result);
@ -134,7 +134,7 @@ class FolderTest extends UnitTestCase {
function testFolderRead() { function testFolderRead() {
$Folder =& new Folder(TMP); $Folder =& new Folder(TMP);
$expected = array('cache', 'logs', 'sessions', 'tests'); $expected = array('cache', 'logs', 'sessions', 'tests');
$results = $Folder->read(); $results = $Folder->read(true, true);
$this->assertEqual($results[0], $expected); $this->assertEqual($results[0], $expected);
} }