Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixing failing tests that waited on stdin indefinetly.
  • Loading branch information
markstory committed Apr 30, 2011
1 parent 53b4a12 commit 47176bf
Showing 1 changed file with 2 additions and 0 deletions.
Expand Up @@ -292,6 +292,7 @@ function testAutoAjaxLayout() {
function testStartupCallback() {
$_SERVER['REQUEST_METHOD'] = 'PUT';
$_SERVER['CONTENT_TYPE'] = 'application/xml';
$this->Controller->request = $this->getMock('CakeRequest', array('_readStdin'));
$this->RequestHandler->startup($this->Controller);
$this->assertTrue(is_array($this->Controller->data));
$this->assertFalse(is_object($this->Controller->data));
Expand All @@ -305,6 +306,7 @@ function testStartupCallback() {
function testStartupCallbackCharset() {
$_SERVER['REQUEST_METHOD'] = 'PUT';
$_SERVER['CONTENT_TYPE'] = 'application/xml; charset=UTF-8';
$this->Controller->request = $this->getMock('CakeRequest', array('_readStdin'));
$this->RequestHandler->startup($this->Controller);
$this->assertTrue(is_array($this->Controller->data));
$this->assertFalse(is_object($this->Controller->data));
Expand Down

0 comments on commit 47176bf

Please sign in to comment.