public function testWrongMethodCall()
 {
     $this->getModel($this->validatorMock);
     $this->setExpectedException(
         '\BadMethodCallException',
         'Method "methodThatNotExist" does not exist in Magento\Framework\Session\Config'
     );
     $this->config->methodThatNotExist();
 }
Beispiel #2
0
 public function testWrongMethodCall()
 {
     $this->setExpectedException('\\BadMethodCallException', 'Method "methodThatNotExist" does not exist in Magento\\Framework\\Session\\Config');
     $this->_model->methodThatNotExist();
 }