Beispiel #1
0
 /**
  * @expectedException \Exception
  * @expectedExceptionMessage Missing following extensions: 'foo'
  */
 public function testCheckExtensionsError()
 {
     $this->phpReadinessCheck->expects($this->once())->method('checkPhpExtensions')->willReturn(
         ['responseType' => \Magento\Setup\Controller\ResponseTypeInterface::RESPONSE_TYPE_ERROR,
         'data'=>['required'=>['foo', 'bar'], 'missing'=>['foo']]]
     );
     $this->object->checkExtensions();
 }