Ejemplo n.º 1
0
 public function testActions()
 {
     $package = new PackageSchema();
     $module = $package->getKeeko()->getKeekoPackage('module');
     $this->assertEquals(0, $module->getActionNames()->size());
     $action = new ActionSchema('create-sth');
     $action->setClass('keeko\\user\\actions\\CreateSthAction');
     $action->setTitle('Create something');
     $this->assertEquals('create-sth', $action->getName());
     $this->assertEquals('keeko\\user\\actions\\CreateSthAction', $action->getClass());
     $this->assertEquals('Create something', $action->getTitle());
     $module->addAction($action);
     $this->assertEquals(1, $module->getActionNames()->size());
 }