MediaLibrary test updates (#3580)

Updates for depreciated methods and empty tests
This commit is contained in:
Viamage 2018-06-05 00:48:45 +02:00 committed by Luke Towers
parent 19acc0afc0
commit 749cbace1b
1 changed files with 4 additions and 2 deletions

View File

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