31 $this->configMock = $this->getMockBuilder(ConfigInterface::class)->getMockForAbstractClass();
33 $context = $this->getMockBuilder(
36 [
'getRequest',
'getResponse']
37 )->disableOriginalConstructor(
40 $context->expects($this->any())
41 ->method(
'getRequest')
44 $this->getMockBuilder(RequestInterface::class)->getMockForAbstractClass()
48 $context->expects($this->any())
49 ->method(
'getResponse')
52 $this->getMockBuilder(ResponseInterface::class)->getMockForAbstractClass()
56 $this->controller = new \Magento\Contact\Test\Unit\Controller\Stub\IndexStub(
69 $this->configMock->method(
'isEnabled')->willReturn(
false);
71 $this->controller->dispatch(
72 $this->getMockBuilder(RequestInterface::class)->getMockForAbstractClass()