We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 00d7c65 commit 23ab845Copy full SHA for 23ab845
cake/tests/cases/libs/folder.test.php
@@ -215,6 +215,18 @@ function testZeroAsDirectory() {
215
$result = $Folder->delete($new);
216
$this->assertTrue($result);
217
}
218
+/**
219
+ * test Adding path elements to a path
220
+ *
221
+ * @return void
222
+ **/
223
+ function testAddPathElement() {
224
+ $result = Folder::addPathElement(DS . 'some' . DS . 'dir', 'another_path');
225
+ $this->assertEqual($result, DS . 'some' . DS . 'dir' . DS . 'another_path');
226
+
227
+ $result = Folder::addPathElement(DS . 'some' . DS . 'dir' . DS, 'another_path');
228
229
+ }
230
/**
231
* testFolderRead method
232
*
0 commit comments