public function testGetStringAction() { $action = new ShowAction(); $pool = new ActionPool(); $pool->addAction($action); $factory = new ActionFactory($pool); $this->assertInstanceOf('Vardius\\Bundle\\CrudBundle\\Actions\\Action\\ShowAction', $factory->get($action->getName())); }