function testPerformOK() { $object = new Object(); $object->__class_name = 'Object'; $object->set('title', $title = 'any title'); $toolkit =& Limb :: toolkit(); $command = new RegisterObjectCommand($object); $this->assertEqual($command->perform(), LIMB_STATUS_OK); $uow =& $toolkit->getUOW(); $this->assertTrue($uow->isNew($object)); }
function performRegisterEntity() { include_once LIMB_DIR . '/core/commands/RegisterObjectCommand.class.php'; $command = new RegisterObjectCommand($this->entity); return $command->perform(); }