/**
* {@inheritdoc}
*/
protected function setUp(): void
{ parent::
setUp();
// Define two data collections,
$this->collections =
[0 => 'zero', 1 => 'one'
];
// Create several objects for testing.
for ($i = 0;
$i <= 5;
$i++
) { $this->objects
[$i] =
$this->
randomObject();
} } /**
* Tests CRUD operations.
*/
public function testCRUD() { $stores =
$this->
createStorage();
// Verify that each store returns its own collection name.
$this->
assertSame($this->collections
[0
],
$stores[0
]->
getCollectionName());
$this->
assertSame($this->collections
[1
],
$stores[1
]->
getCollectionName());