Skip to content

Commit

Permalink
Adding discrete tests to Folder::addPathElement
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Oct 28, 2009
1 parent 00d7c65 commit 23ab845
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions cake/tests/cases/libs/folder.test.php
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,18 @@ function testZeroAsDirectory() {
$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
*
Expand Down

0 comments on commit 23ab845

Please sign in to comment.