From 5977b8881ed8051cbb3497a737ba4b2a0cf8c51b Mon Sep 17 00:00:00 2001 From: Caen De Silva Date: Mon, 5 Aug 2024 15:46:33 +0200 Subject: [PATCH] Test against accessors --- packages/framework/tests/Unit/Support/MediaFileUnitTest.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/framework/tests/Unit/Support/MediaFileUnitTest.php b/packages/framework/tests/Unit/Support/MediaFileUnitTest.php index f07bf42cc61..5a0fa4af492 100644 --- a/packages/framework/tests/Unit/Support/MediaFileUnitTest.php +++ b/packages/framework/tests/Unit/Support/MediaFileUnitTest.php @@ -147,9 +147,9 @@ public function testConstructorWithVariousInputFormats() public function testConstructorSetsProperties() { $file = new MediaFile('foo.txt'); - $this->assertNotNull($file->length); - $this->assertNotNull($file->mimeType); - $this->assertNotNull($file->hash); + $this->assertNotNull($file->getContentLength()); + $this->assertNotNull($file->getMimeType()); + $this->assertNotNull($file->getHash()); } public function testNormalizePathWithAbsolutePath()