mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Make fragile test less fragile.
This commit is contained in:
parent
ddd3baf703
commit
118dd8c534
1 changed files with 8 additions and 5 deletions
|
@ -132,11 +132,14 @@ class MediaViewTest extends CakeTestCase {
|
|||
|
||||
$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())
|
||||
|
|
Loading…
Reference in a new issue