public function testGetActionClassName() { $className = 'name of class'; $module = 'module'; $prefix = 'Controller'; $actionPath = 'action path'; $this->nameBuilderMock->expects($this->once())->method('buildClassName')->with([$module, $prefix, $actionPath])->willReturn($className); $this->assertEquals($className, $this->model->getActionClassName($module, $actionPath)); }
public function testGetControllerClassName() { $this->assertEquals('Magento\\Framework\\Controller\\Index', $this->_model->getActionClassName('Magento_Framework', 'index')); }