public function testComponentsActionWithError()
 {
     $this->composerInformation->expects($this->once())->method('getInstalledMagentoPackages')->will($this->throwException(new \Exception("Test error message")));
     $jsonModel = $this->controller->componentsAction();
     $this->assertInstanceOf('Zend\\View\\Model\\JsonModel', $jsonModel);
     $variables = $jsonModel->getVariables();
     $this->assertArrayHasKey('responseType', $variables);
     $this->assertEquals(ResponseTypeInterface::RESPONSE_TYPE_ERROR, $variables['responseType']);
 }
 public function testIndexAction()
 {
     $model = $this->controller->indexAction();
     $this->assertInstanceOf('Zend\\View\\Model\\ViewModel', $model);
 }