1
0
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:
Awilum
2020-10-18 22:22:01 +03:00
parent 8d036fbefc
commit 3bf3c0c3b3

View File

@@ -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'));
});