public function testBaseActionCanGetAndSetName() { $baseAction = new Action\Base(); $this->assertEquals('Base', $baseAction->getName()); $baseAction->setName('Foo'); $this->assertEquals('Foo', $baseAction->getName()); }
public function testAddActionCanHandleActionObjects() { $fooAction = new Action\Base(); $fooAction->setName('Foo'); $this->_repository->addAction($fooAction); $this->assertEquals(1, count($this->_repository)); $this->assertEquals('Zend\\Tool\\Framework\\Action\\Base', get_class($this->_repository->getAction('Foo'))); }