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/MiddlewareTest.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/MiddlewareTest.php')
-rw-r--r-- | tests/lib/appframework/middleware/MiddlewareTest.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/lib/appframework/middleware/MiddlewareTest.php b/tests/lib/appframework/middleware/MiddlewareTest.php index 814efdd8118..9d952f61573 100644 --- a/tests/lib/appframework/middleware/MiddlewareTest.php +++ b/tests/lib/appframework/middleware/MiddlewareTest.php @@ -44,8 +44,10 @@ class MiddlewareTest extends \PHPUnit_Framework_TestCase { protected function setUp(){ $this->middleware = new ChildMiddleware(); - $this->api = $this->getMock('OC\AppFramework\DependencyInjection\DIContainer', - array(), array('test')); + $this->api = $this->getMockBuilder( + 'OC\AppFramework\DependencyInjection\DIContainer') + ->disableOriginalConstructor() + ->getMock(); $this->controller = $this->getMock('OCP\AppFramework\Controller', array(), array($this->api, new Request())); |