/** * インストール用のURLかどうかを判定 * * @param bool $expect 期待値 * @param string $url URL文字列 * @return void * @dataProvider isInstallDataProvider */ public function testIsInstall($expect, $url) { $request = $this->_getRequest($url); $this->assertEquals($expect, $this->requestFilter->isInstall($request)); }
/** * インストール用のURLかどうかを判定 * * @param bool $expect 期待値 * @param string $url URL文字列 * @return void * @dataProvider isInstallDataProvider */ public function testIsInstall($expect, $url) { Configure::write('BcRequest.isInstalled', false); $request = $this->_getRequest($url); $this->assertEquals($expect, $this->requestFilter->isInstall($request)); }