Skip to content
Snippets Groups Projects
Commit 9a546f99 authored by Vladyslav Shcherbyna's avatar Vladyslav Shcherbyna
Browse files

MAGETWO-47397: Fix L1

parent 3d8218b7
Branches
No related merge requests found
......@@ -11,12 +11,9 @@ class DesignTest extends \PHPUnit_Framework_TestCase
{
$subjectMock = $this->getMock('Magento\Framework\App\Action\Action', [], [], '', false);
$designLoaderMock = $this->getMock('Magento\Framework\View\DesignLoader', [], [], '', false);
$closureMock = function () {
return 'Expected';
};
$requestMock = $this->getMock('Magento\Framework\App\RequestInterface');
$plugin = new \Magento\Framework\App\Action\Plugin\Design($designLoaderMock);
$designLoaderMock->expects($this->once())->method('load');
$this->assertEquals('Expected', $plugin->aroundDispatch($subjectMock, $closureMock, $requestMock));
$plugin->beforeDispatch($subjectMock,$requestMock);
}
}
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment