mirror of
https://github.com/flextype/flextype.git
synced 2025-08-08 14:16:46 +02:00
feat(tests): add tests for MediaFolders getDirectoryLocation() method #477
This commit is contained in:
@@ -31,3 +31,9 @@ test('test delete() method', function () {
|
||||
$this->assertTrue(flextype('media_folders')->delete('foo'));
|
||||
$this->assertFalse(flextype('media_folders')->delete('bar'));
|
||||
});
|
||||
|
||||
test('test getDirectoryLocation entry', function () {
|
||||
$this->assertTrue(flextype('media_folders')->create('foo'));
|
||||
$this->assertStringContainsString('/foo',
|
||||
flextype('media_folders')->getDirectoryLocation('foo'));
|
||||
});
|
||||
|
Reference in New Issue
Block a user