diff --git a/lib/Cake/Test/Case/View/MediaViewTest.php b/lib/Cake/Test/Case/View/MediaViewTest.php index d3b8dc70d..4fc0a7242 100644 --- a/lib/Cake/Test/Case/View/MediaViewTest.php +++ b/lib/Cake/Test/Case/View/MediaViewTest.php @@ -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(); } diff --git a/lib/Cake/View/MediaView.php b/lib/Cake/View/MediaView.php index 00b5e5ec6..a03888a39 100644 --- a/lib/Cake/View/MediaView.php +++ b/lib/Cake/View/MediaView.php @@ -93,7 +93,6 @@ class MediaView extends View { if ($compress) { $this->response->compress(); } - $this->response->send(); } }