Adding discrete tests to Folder::addPathElement

This commit is contained in:
mark_story 2009-10-27 21:04:14 -04:00
parent 00d7c655ce
commit 23ab84596a

View file

@ -215,6 +215,18 @@ class FolderTest extends CakeTestCase {
$result = $Folder->delete($new);
$this->assertTrue($result);
}
/**
* test Adding path elements to a path
*
* @return void
**/
function testAddPathElement() {
$result = Folder::addPathElement(DS . 'some' . DS . 'dir', 'another_path');
$this->assertEqual($result, DS . 'some' . DS . 'dir' . DS . 'another_path');
$result = Folder::addPathElement(DS . 'some' . DS . 'dir' . DS, 'another_path');
$this->assertEqual($result, DS . 'some' . DS . 'dir' . DS . 'another_path');
}
/**
* testFolderRead method
*