mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
Adding discrete tests to Folder::addPathElement
This commit is contained in:
parent
00d7c655ce
commit
23ab84596a
1 changed files with 12 additions and 0 deletions
|
@ -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
|
||||
*
|
||||
|
|
Loading…
Reference in a new issue