17 $expected_file_name =
'info.xml';
18 $expected_owner_id = 6;
19 $expected_version_number = 99;
20 $expected_mime_type =
'text/xml';
24 $this->storage_handler_factory,
25 $this->revision_repository,
26 $this->resource_repository,
27 $this->information_repository,
28 $this->stakeholder_repository,
36 $expected_size, $expected_version_number, $expected_owner_id
45 $this->assertEquals($identification->serialize(), $resource->getIdentification()->serialize());
46 $this->assertEquals($expected_version_number, $resource->getCurrentRevision()->getVersionNumber());
47 $this->assertEquals($expected_version_number, $resource->getMaxRevision());
48 $this->assertEquals($expected_file_name, $resource->getCurrentRevision()->getTitle());
49 $this->assertEquals($expected_owner_id, $resource->getCurrentRevision()->getOwnerId());
50 $this->assertEquals($expected_file_name, $resource->getCurrentRevision()->getInformation()->getTitle());
51 $this->assertEquals($expected_mime_type, $resource->getCurrentRevision()->getInformation()->getMimeType());
52 $this->assertEquals($expected_size, $resource->getCurrentRevision()->getInformation()->getSize());
Class ResourceBuilderTest.
Class AbstractBaseResourceBuilderTest.
mockResourceAndRevision(string $expected_file_name, string $expected_mime_type, int $expected_size, int $expected_version_number, int $expected_owner_id)