diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2018-11-01 11:29:29 +0100 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2018-11-02 19:20:37 +0100 |
commit | 0e5147f0013b3ef19736e0ccc4a23e46defbe14c (patch) | |
tree | a2beb34377f4df88ddd06ff41725fc4c0cf57112 /tests/lib/AppFramework/DependencyInjection | |
parent | bfb5ef4b296fdada6da2674c998bd3b7d8477574 (diff) | |
download | nextcloud-server-0e5147f0013b3ef19736e0ccc4a23e46defbe14c.tar.gz nextcloud-server-0e5147f0013b3ef19736e0ccc4a23e46defbe14c.zip |
Fix tests
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'tests/lib/AppFramework/DependencyInjection')
-rw-r--r-- | tests/lib/AppFramework/DependencyInjection/DIContainerTest.php | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/tests/lib/AppFramework/DependencyInjection/DIContainerTest.php b/tests/lib/AppFramework/DependencyInjection/DIContainerTest.php index d4581aaaf23..5f089e96018 100644 --- a/tests/lib/AppFramework/DependencyInjection/DIContainerTest.php +++ b/tests/lib/AppFramework/DependencyInjection/DIContainerTest.php @@ -40,7 +40,6 @@ class DIContainerTest extends \Test\TestCase { /** @var DIContainer|\PHPUnit_Framework_MockObject_MockObject */ private $container; - private $api; protected function setUp(){ parent::setUp(); @@ -78,12 +77,8 @@ class DIContainerTest extends \Test\TestCase { public function testMiddlewareDispatcherIncludesSecurityMiddleware(){ $this->container['Request'] = new Request( ['method' => 'GET'], - $this->getMockBuilder(ISecureRandom::class) - ->disableOriginalConstructor() - ->getMock(), - $this->getMockBuilder(IConfig::class) - ->disableOriginalConstructor() - ->getMock() + $this->createMock(ISecureRandom::class), + $this->createMock(IConfig::class) ); $security = $this->container['SecurityMiddleware']; $dispatcher = $this->container['MiddlewareDispatcher']; |