Skip to content
Snippets Groups Projects
Commit a5ee548e authored by Eddie Lau's avatar Eddie Lau
Browse files

MAGETWO-44072: Contribute Bugfixes by Ogres

- fixing unit test
parent 749c20fa
Branches
No related merge requests found
...@@ -58,7 +58,7 @@ class AdminConfigTest extends \PHPUnit_Framework_TestCase ...@@ -58,7 +58,7 @@ class AdminConfigTest extends \PHPUnit_Framework_TestCase
->getMock(); ->getMock();
$backendUrl = $this->getMock('\Magento\Backend\Model\Url', [], [], '', false); $backendUrl = $this->getMock('\Magento\Backend\Model\Url', [], [], '', false);
$backendUrl->expects($this->once())->method('getBaseUrl')->will($this->returnValue('/')); $backendUrl->expects($this->once())->method('getBaseUrl')->will($this->returnValue('/'));
$this->backendUrlFactory = $this->getMock('Magento\Backend\Model\UrlFactory', [], [], '', false); $this->backendUrlFactory = $this->getMock('Magento\Backend\Model\UrlFactory', ['create'], [], '', false);
$this->backendUrlFactory->expects($this->any())->method('create')->willReturn($backendUrl); $this->backendUrlFactory->expects($this->any())->method('create')->willReturn($backendUrl);
$this->filesystemMock = $this->getMock('\Magento\Framework\Filesystem', [], [], '', false); $this->filesystemMock = $this->getMock('\Magento\Framework\Filesystem', [], [], '', false);
......
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