/** * Creates a new component object from the resolved data. * * @param ResolvedComponentData $resolved The resolved component data * * @return ComponentInterface The newly created and populated component */ protected function getComponentFromResolvedComponentData(ResolvedComponentData $resolved) { /** @var $component ComponentInterface */ $component = new $this->componentClass(); $component->setModel($resolved->getModel()); $component->setData($resolved->getData()); $component->setIdentifier($resolved->getIdentifier()); return $component; }
public function testNoDataSetReturnsNull() { $this->if($action = new TestedModel('user', 1))->variable($action->getData())->isNull(); }