mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
Changing the test with get to use version instead auth.
This commit is contained in:
parent
123b2256c5
commit
c4743a2438
1 changed files with 2 additions and 2 deletions
|
@ -731,13 +731,13 @@ class HttpSocketTest extends CakeTestCase {
|
|||
|
||||
$this->RequestSocket->expects($this->at(4))
|
||||
->method('request')
|
||||
->with(array('method' => 'GET', 'uri' => 'http://www.google.com/', 'auth' => array('user' => 'foo', 'pass' => 'bar')));
|
||||
->with(array('method' => 'GET', 'uri' => 'http://www.google.com/', 'version' => '1.0'));
|
||||
|
||||
$this->RequestSocket->get('http://www.google.com/');
|
||||
$this->RequestSocket->get('http://www.google.com/', array('foo' => 'bar'));
|
||||
$this->RequestSocket->get('http://www.google.com/', 'foo=bar');
|
||||
$this->RequestSocket->get('http://www.google.com/?foo=bar', array('foobar' => '42', 'foo' => '23'));
|
||||
$this->RequestSocket->get('http://www.google.com/', null, array('auth' => array('user' => 'foo', 'pass' => 'bar')));
|
||||
$this->RequestSocket->get('http://www.google.com/', null, array('version' => '1.0'));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue