Changing the test with get to use version instead auth.

This commit is contained in:
Juan Basso 2010-12-04 01:41:45 -02:00
parent 123b2256c5
commit c4743a2438

View file

@ -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'));
}
/**