mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
Merge pull request #5467 from cakephp/2.6-mediaview
Don't send response from view.
This commit is contained in:
commit
96c458f300
2 changed files with 0 additions and 11 deletions
|
@ -77,9 +77,6 @@ class MediaViewTest extends CakeTestCase {
|
|||
array('name' => null, 'download' => null)
|
||||
);
|
||||
|
||||
$this->MediaView->response->expects($this->once())
|
||||
->method('send');
|
||||
|
||||
$this->MediaView->render();
|
||||
}
|
||||
|
||||
|
@ -115,9 +112,6 @@ class MediaViewTest extends CakeTestCase {
|
|||
)
|
||||
);
|
||||
|
||||
$this->MediaView->response->expects($this->once())
|
||||
->method('send');
|
||||
|
||||
$this->MediaView->render();
|
||||
}
|
||||
|
||||
|
@ -137,10 +131,6 @@ class MediaViewTest extends CakeTestCase {
|
|||
->with('jpg')
|
||||
->will($this->returnArgument(0));
|
||||
|
||||
$this->MediaView->response->expects($this->at(0))
|
||||
->method('send')
|
||||
->will($this->returnValue(true));
|
||||
|
||||
$this->MediaView->render();
|
||||
}
|
||||
|
||||
|
|
|
@ -93,7 +93,6 @@ class MediaView extends View {
|
|||
if ($compress) {
|
||||
$this->response->compress();
|
||||
}
|
||||
$this->response->send();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue