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