mirror of
https://github.com/flextype/flextype.git
synced 2025-08-08 14:16:46 +02:00
feat(tests): add tests for MediaFolders move() method #477
This commit is contained in:
@@ -8,9 +8,15 @@ beforeEach(function() {
|
||||
});
|
||||
|
||||
afterEach(function (): void {
|
||||
filesystem()->directory(PATH['project'] . '/uploads/.meta')->delete();
|
||||
filesystem()->directory(PATH['project'] . '/uploads')->delete();
|
||||
});
|
||||
|
||||
test('test create() method', function () {
|
||||
$this->assertTrue(flextype('media_folders')->create('foo'));
|
||||
});
|
||||
|
||||
test('test move() method', function () {
|
||||
$this->assertTrue(flextype('media_folders')->create('foo'));
|
||||
$this->assertTrue(flextype('media_folders')->move('foo', 'bar'));
|
||||
});
|
||||
|
Reference in New Issue
Block a user