32 $expected_file_name =
'info.xml';
33 $expected_owner_id = 6;
34 $expected_version_number = 99;
35 $expected_mime_type =
'text/xml';
39 $this->storage_handler_factory,
50 $expected_version_number,
60 $this->assertEquals($identification->serialize(), $resource->getIdentification()->serialize());
61 $this->assertEquals($expected_version_number, $resource->getCurrentRevision()->getVersionNumber());
62 $this->assertEquals($expected_version_number, $resource->getMaxRevision());
63 $this->assertEquals($expected_file_name, $resource->getCurrentRevision()->getTitle());
64 $this->assertEquals($expected_owner_id, $resource->getCurrentRevision()->getOwnerId());
65 $this->assertEquals($expected_file_name, $resource->getCurrentRevision()->getInformation()->getTitle());
66 $this->assertEquals($expected_mime_type, $resource->getCurrentRevision()->getInformation()->getMimeType());
67 $this->assertEquals($expected_size, $resource->getCurrentRevision()->getInformation()->getSize());
ILIAS ResourceStorage Resource ResourceBuilder $resource_builder
mockResourceAndRevision(string $expected_file_name, string $expected_mime_type, int $expected_size, int $expected_version_number, int $expected_owner_id)