From f4633017804a9aa9fe16a0d815c05f1789f45d03 Mon Sep 17 00:00:00 2001 From: Awilum Date: Mon, 19 Oct 2020 00:24:33 +0300 Subject: [PATCH] feat(tests): add tests for MediaFolders getDirectoryLocation() method #477 --- tests/Foundation/Media/MediaFoldersTest.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/Foundation/Media/MediaFoldersTest.php b/tests/Foundation/Media/MediaFoldersTest.php index 78028cb0..c051f941 100644 --- a/tests/Foundation/Media/MediaFoldersTest.php +++ b/tests/Foundation/Media/MediaFoldersTest.php @@ -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')); +});