From 749cbace1bca7ca34458dd77e2ab6b16136a937a Mon Sep 17 00:00:00 2001 From: Viamage Date: Tue, 5 Jun 2018 00:48:45 +0200 Subject: [PATCH] MediaLibrary test updates (#3580) Updates for depreciated methods and empty tests --- tests/unit/system/classes/MediaLibraryTest.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/unit/system/classes/MediaLibraryTest.php b/tests/unit/system/classes/MediaLibraryTest.php index b549231a0..fc9400bb7 100644 --- a/tests/unit/system/classes/MediaLibraryTest.php +++ b/tests/unit/system/classes/MediaLibraryTest.php @@ -41,8 +41,9 @@ class MediaLibraryTest extends TestCase // @codingStandardsIgnoreLine */ public function testInvalidPathsOnValidatePath($path) { - $this->setExpectedException('ApplicationException'); + $this->expectException('ApplicationException'); MediaLibrary::validatePath($path); + } /** @@ -50,6 +51,7 @@ class MediaLibraryTest extends TestCase // @codingStandardsIgnoreLine */ public function testValidPathsOnValidatePath($path) { - MediaLibrary::validatePath($path); + $result = MediaLibrary::validatePath($path); + $this->assertInternalType('string', $result); } }