/** * {@inheritdoc} */ public function isSecure($url) { $pluginInfo = $this->pluginList->getNext($this->subjectType, 'isSecure'); if (!$pluginInfo) { return parent::isSecure($url); } else { return $this->___callPlugins('isSecure', func_get_args(), $pluginInfo); } }
/** * @param string $url * @param bool $expected * @dataProvider secureUrlDataProvider */ public function testIsSecureChecksIfUrlIsInSecureList($url, $expected) { $this->assertEquals($expected, $this->_model->isSecure($url)); }
/** * @param string $url * @param bool $expected * @dataProvider secureUrlDataProvider */ public function testIsSecureChecksIfUrlIsInSecureList($url, $expected) { $this->_scopeConfigMock->expects($this->once())->method('getValue')->will($this->returnValue(true)); $this->assertEquals($expected, $this->_model->isSecure($url)); }