Change deprecated PHPUnit calls in MediaLibrary tests

This commit is contained in:
Ben Thomson 2020-08-14 10:20:03 +08:00
parent a6fca1e317
commit d98526f639
No known key found for this signature in database
GPG Key ID: 8BDB18DD0909BE22
1 changed files with 4 additions and 4 deletions

View File

@ -78,10 +78,10 @@ class MediaLibraryTest extends TestCase // @codingStandardsIgnoreLine
$this->assertNotEmpty($contents, 'Media library item is not discovered');
$item = reset($contents);
$this->assertAttributeEquals('file', 'type', $item, 'Media library item does not have the right type');
$this->assertAttributeEquals('/text.txt', 'path', $item, 'Media library item does not have the right path');
$this->assertAttributeNotEmpty('lastModified', $item, 'Media library item last modified is empty');
$this->assertAttributeNotEmpty('size', $item, 'Media library item size is empty');
$this->assertEquals('file', $item->type, 'Media library item does not have the right type');
$this->assertEquals('/text.txt', $item->path, 'Media library item does not have the right path');
$this->assertNotEmpty($item->lastModified, 'Media library item last modified is empty');
$this->assertNotEmpty($item->size, 'Media library item size is empty');
}
protected function setUpStorage()