From d98526f6392d7e3d85c9cc4f9c1132e6534514d1 Mon Sep 17 00:00:00 2001 From: Ben Thomson Date: Fri, 14 Aug 2020 10:20:03 +0800 Subject: [PATCH] Change deprecated PHPUnit calls in MediaLibrary tests --- tests/unit/system/classes/MediaLibraryTest.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/unit/system/classes/MediaLibraryTest.php b/tests/unit/system/classes/MediaLibraryTest.php index 54c4a6a3e..6a281eba8 100644 --- a/tests/unit/system/classes/MediaLibraryTest.php +++ b/tests/unit/system/classes/MediaLibraryTest.php @@ -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()