From 5e9ea2b3659eebf6d21c253771e477abe16496c9 Mon Sep 17 00:00:00 2001 From: Bernhard Posselt Date: Wed, 28 May 2014 02:12:01 +0200 Subject: fix 8757, get rid of service locator antipattern --- tests/lib/appframework/middleware/MiddlewareDispatcherTest.php | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'tests/lib/appframework/middleware/MiddlewareDispatcherTest.php') diff --git a/tests/lib/appframework/middleware/MiddlewareDispatcherTest.php b/tests/lib/appframework/middleware/MiddlewareDispatcherTest.php index b1a58e21289..b1e221aab99 100644 --- a/tests/lib/appframework/middleware/MiddlewareDispatcherTest.php +++ b/tests/lib/appframework/middleware/MiddlewareDispatcherTest.php @@ -124,15 +124,9 @@ class MiddlewareDispatcherTest extends \PHPUnit_Framework_TestCase { } - private function getAPIMock(){ - return $this->getMock('OC\AppFramework\DependencyInjection\DIContainer', - array('getAppName'), array('app')); - } - - private function getControllerMock(){ return $this->getMock('OCP\AppFramework\Controller', array('method'), - array($this->getAPIMock(), new Request(array('method' => 'GET')))); + array('app', new Request(array('method' => 'GET')))); } -- cgit v1.2.3