aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/appframework/middleware/MiddlewareDispatcherTest.php
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2014-05-28 02:12:01 +0200
committerBernhard Posselt <dev@bernhard-posselt.com>2014-05-28 02:15:16 +0200
commit5e9ea2b3659eebf6d21c253771e477abe16496c9 (patch)
treeb5d93d0eaa553e129a7d64fc080e57a08e15468f /tests/lib/appframework/middleware/MiddlewareDispatcherTest.php
parent4e2cdb2f8af807767a978a175ef5415cd3d651eb (diff)
downloadnextcloud-server-5e9ea2b3659eebf6d21c253771e477abe16496c9.tar.gz
nextcloud-server-5e9ea2b3659eebf6d21c253771e477abe16496c9.zip
fix 8757, get rid of service locator antipattern
Diffstat (limited to 'tests/lib/appframework/middleware/MiddlewareDispatcherTest.php')
-rw-r--r--tests/lib/appframework/middleware/MiddlewareDispatcherTest.php8
1 files changed, 1 insertions, 7 deletions
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'))));
}