diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-05-28 02:12:01 +0200 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-05-28 02:15:16 +0200 |
commit | 5e9ea2b3659eebf6d21c253771e477abe16496c9 (patch) | |
tree | b5d93d0eaa553e129a7d64fc080e57a08e15468f /tests/lib/appframework/middleware/MiddlewareTest.php | |
parent | 4e2cdb2f8af807767a978a175ef5415cd3d651eb (diff) | |
download | nextcloud-server-5e9ea2b3659eebf6d21c253771e477abe16496c9.tar.gz nextcloud-server-5e9ea2b3659eebf6d21c253771e477abe16496c9.zip |
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())); |