/** * Checks that a getFilePath call does not call the info storage * * @test * @group rendering * @group small * @group dev */ public function test_getFilePath() { // ARRANGE $id = 'MEDIA-4100188d-48f1-49ea-99a1-71b518810b1c-MEDIA'; $name = 'Name of ' . $id; $filePath = '/file/path/of/' . $id; $size = 15; $lastModified = time() - 3600; $item1 = array('id' => $id, 'name' => $name, 'filePath' => $filePath, 'size' => $size, 'lastModified' => $lastModified); $itemMap = array($item1['id'] => $item1); $mediaContext = $this->getMediaContext($itemMap); $mediaId = 'MEDIA-4100188d-48f1-49ea-99a1-71b518810b1c-MEDIA'; $mediaItem = new MediaItem($mediaContext, $mediaId); // ACT & ASSERT $this->assertEquals($filePath, $mediaItem->getFilePath()); }
protected function getFilePath() { return $this->mediaItem->getFilePath(); }