aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/AppFramework/DependencyInjection
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2018-11-01 11:29:29 +0100
committerRoeland Jago Douma <roeland@famdouma.nl>2018-11-02 19:20:37 +0100
commit0e5147f0013b3ef19736e0ccc4a23e46defbe14c (patch)
treea2beb34377f4df88ddd06ff41725fc4c0cf57112 /tests/lib/AppFramework/DependencyInjection
parentbfb5ef4b296fdada6da2674c998bd3b7d8477574 (diff)
downloadnextcloud-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.php9
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'];