mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 00:48:25 +00:00
Fixed basic proxy test.
This commit is contained in:
parent
99407282e5
commit
575da672b0
1 changed files with 2 additions and 2 deletions
|
@ -53,13 +53,13 @@ class BasicMethodTest extends CakeTestCase {
|
||||||
*/
|
*/
|
||||||
public function testProxyAuthentication() {
|
public function testProxyAuthentication() {
|
||||||
$http = new HttpSocket();
|
$http = new HttpSocket();
|
||||||
$http->request['proxy'] = array(
|
$proxy = array(
|
||||||
'method' => 'Basic',
|
'method' => 'Basic',
|
||||||
'user' => 'mark',
|
'user' => 'mark',
|
||||||
'pass' => 'secret'
|
'pass' => 'secret'
|
||||||
);
|
);
|
||||||
|
|
||||||
BasicAuthentication::proxyAuthentication($http);
|
BasicAuthentication::proxyAuthentication($http, $proxy);
|
||||||
$this->assertEqual($http->request['header']['Proxy-Authorization'], 'Basic bWFyazpzZWNyZXQ=');
|
$this->assertEqual($http->request['header']['Proxy-Authorization'], 'Basic bWFyazpzZWNyZXQ=');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue