MediaLibrary test updates (#3580)
Updates for depreciated methods and empty tests
This commit is contained in:
parent
19acc0afc0
commit
749cbace1b
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue