Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use better function for 'Continue Shopping' url #8341

Merged
merged 8 commits into from
Feb 3, 2017
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix Code Sniffer errors.
Fix line exceeded max length issue. Use ::class syntax.
  • Loading branch information
Matt Davis authored Jan 31, 2017
commit fab492166512eb2c84a18a1eb67636c4bfda702e
Original file line number Diff line number Diff line change
@@ -70,7 +70,11 @@ protected function setUp()
->getMock();
$scopeConfig->expects($this->any())
->method('getValue')
->with($this->stringContains('advanced/modules_disable_output/'), \Magento\Store\Model\ScopeInterface::SCOPE_STORE)
->with(
$this->stringContains(
'advanced/modules_disable_output/'),
\Magento\Store\Model\ScopeInterface::SCOPE_STORE
)
->will($this->returnValue(false));

$context = $this->getMockBuilder(\Magento\Framework\View\Element\Template\Context::class)
@@ -157,7 +161,7 @@ public function invisibleStatusesProvider()

public function testGetContinueUrl()
{
$storeMock = $this->getMock('Magento\Store\Model\Store', [], [], '', false);
$storeMock = $this->getMock(\Magento\Store\Model\Store::class, [], [], '', false);
$this->storeManagerMock->expects($this->once())->method('getStore')->will($this->returnValue($storeMock));
$storeMock->expects($this->once())->method('getBaseUrl')->will($this->returnValue('Expected Result'));