Skip to content
Permalink
Browse files

Make fragile test less fragile.

  • Loading branch information...
markstory committed Nov 2, 2012
1 parent ddd3baf commit 118dd8c534b6d8be0f45352577f6967ca63a8249
Showing with 8 additions and 5 deletions.
  1. +8 −5 lib/Cake/Test/Case/View/MediaViewTest.php
@@ -132,11 +132,14 @@ public function testRenderWithUnknownFileTypeGeneric() {
$this->MediaView->response->expects($this->at(1))
->method('header')
->with(array(
'Date' => gmdate('D, d M Y H:i:s', time()) . ' GMT',
'Expires' => '0',
'Cache-Control' => 'private, must-revalidate, post-check=0, pre-check=0',
'Pragma' => 'no-cache'
->with($this->logicalAnd(
$this->arrayHasKey('Date'),
$this->arrayHasKey('Expires'),
$this->arrayHasKey('Cache-Control'),
$this->arrayHasKey('Pragma'),
$this->contains('0'),
$this->contains('private, must-revalidate, post-check=0, pre-check=0'),
$this->contains('no-cache')
));
$this->MediaView->response->expects($this->once())

0 comments on commit 118dd8c

Please sign in to comment.
You can’t perform that action at this time.