24 private $objectManagerHelper;
38 $this->subjectMock = $this->getMockBuilder(StoreSwitcherBlock::class)
39 ->disableOriginalConstructor()
41 $this->requestMock = $this->getMockBuilder(RequestInterface::class)
42 ->getMockForAbstractClass();
44 $this->objectManagerHelper =
new ObjectManagerHelper($this);
45 $this->plugin = $this->objectManagerHelper->getObject(StoreSwitcherBlockPlugin::class);
56 $this->requestMock->expects(static::once())
58 ->with(ConfigStructurePlugin::REQUEST_PARAM_COUNTRY)
59 ->willReturn($countryParam);
60 $this->subjectMock->expects(static::any())
61 ->method(
'getRequest')
62 ->willReturn($this->requestMock);
64 $this->assertEquals([
'', $getUrlParams], $this->plugin->beforeGetUrl($this->subjectMock,
'', []));
73 [
'any value', [ConfigStructurePlugin::REQUEST_PARAM_COUNTRY =>
null]],
testBeforeGetUrl($countryParam, $getUrlParams)
beforeGetUrlDataProvider()