Merge pull request #5467 from cakephp/2.6-mediaview

Don't send response from view.
This commit is contained in:
Mark Story 2014-12-23 11:24:47 -05:00
commit 96c458f300
2 changed files with 0 additions and 11 deletions

View file

@ -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();
}

View file

@ -93,7 +93,6 @@ class MediaView extends View {
if ($compress) {
$this->response->compress();
}
$this->response->send();
}
}