diff options
author | Lukas Reschke <lukas@statuscode.ch> | 2014-05-29 21:35:47 +0200 |
---|---|---|
committer | Lukas Reschke <lukas@statuscode.ch> | 2014-05-29 21:35:47 +0200 |
commit | 45d93cc6ece0989a88edcc72a3515c1f49e2d56c (patch) | |
tree | 9e70cde918f804c0464e81271444d64615d1888d /tests/lib/appframework/middleware/MiddlewareDispatcherTest.php | |
parent | b14564480edc68f7dc86eee59f8bd86220a6ecbc (diff) | |
parent | d5e48a48062d1b82dbdbae36d9f045d344204ec6 (diff) | |
download | nextcloud-server-45d93cc6ece0989a88edcc72a3515c1f49e2d56c.tar.gz nextcloud-server-45d93cc6ece0989a88edcc72a3515c1f49e2d56c.zip |
Merge pull request #8759 from owncloud/fix-phpunit
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.php | 8 |
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')))); } |