Skip to content

Commit

Permalink
Changing the test with get to use version instead auth.
Browse files Browse the repository at this point in the history
  • Loading branch information
jrbasso committed Dec 4, 2010
1 parent 123b225 commit c4743a2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cake/tests/cases/libs/http_socket.test.php
Expand Up @@ -731,13 +731,13 @@ public function testGet() {

$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'));
}

/**
Expand Down

0 comments on commit c4743a2

Please sign in to comment.