/** * @test * @covers \TYPO3\CMS\Core\Category\Collection\CategoryCollection::fromArray * @return void */ public function checkIfFromArrayMethodSetCorrectProperties() { $this->subject->fromArray($this->collectionRecord); $this->assertEquals($this->collectionRecord['uid'], $this->subject->getIdentifier()); $this->assertEquals($this->collectionRecord['uid'], $this->subject->getUid()); $this->assertEquals($this->collectionRecord['title'], $this->subject->getTitle()); $this->assertEquals($this->collectionRecord['description'], $this->subject->getDescription()); $this->assertEquals($this->collectionRecord['table_name'], $this->subject->getItemTableName()); }