aboutsummaryrefslogtreecommitdiffstats
path: root/tests/Settings
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2017-04-25 23:16:52 +0200
committerLukas Reschke <lukas@statuscode.ch>2017-04-26 20:07:51 +0200
commit3f9aaac4a25c0727ebc8974adbd65ef40612ca55 (patch)
treedd68f59bbb005c8e8c9e9b3b401be78d297f84ac /tests/Settings
parentd4ba8198fe73d86d264eef4eeeba12bc560306c4 (diff)
downloadnextcloud-server-3f9aaac4a25c0727ebc8974adbd65ef40612ca55.tar.gz
nextcloud-server-3f9aaac4a25c0727ebc8974adbd65ef40612ca55.zip
Adjust tests
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
Diffstat (limited to 'tests/Settings')
-rw-r--r--tests/Settings/Controller/AppSettingsControllerTest.php12
1 files changed, 11 insertions, 1 deletions
diff --git a/tests/Settings/Controller/AppSettingsControllerTest.php b/tests/Settings/Controller/AppSettingsControllerTest.php
index 14dc33ca191..3b76594f933 100644
--- a/tests/Settings/Controller/AppSettingsControllerTest.php
+++ b/tests/Settings/Controller/AppSettingsControllerTest.php
@@ -22,6 +22,7 @@
namespace Tests\Settings\Controller;
+use OC\App\AppStore\Bundles\BundleFetcher;
use OC\App\AppStore\Fetcher\AppFetcher;
use OC\App\AppStore\Fetcher\CategoryFetcher;
use OC\Settings\Controller\AppSettingsController;
@@ -60,6 +61,8 @@ class AppSettingsControllerTest extends TestCase {
private $appFetcher;
/** @var IFactory|\PHPUnit_Framework_MockObject_MockObject */
private $l10nFactory;
+ /** @var BundleFetcher|\PHPUnit_Framework_MockObject_MockObject */
+ private $bundleFetcher;
public function setUp() {
parent::setUp();
@@ -75,6 +78,7 @@ class AppSettingsControllerTest extends TestCase {
$this->categoryFetcher = $this->createMock(CategoryFetcher::class);
$this->appFetcher = $this->createMock(AppFetcher::class);
$this->l10nFactory = $this->createMock(IFactory::class);
+ $this->bundleFetcher = $this->createMock(BundleFetcher::class);
$this->appSettingsController = new AppSettingsController(
'settings',
@@ -85,7 +89,8 @@ class AppSettingsControllerTest extends TestCase {
$this->appManager,
$this->categoryFetcher,
$this->appFetcher,
- $this->l10nFactory
+ $this->l10nFactory,
+ $this->bundleFetcher
);
}
@@ -102,6 +107,11 @@ class AppSettingsControllerTest extends TestCase {
'displayName' => 'Enabled apps',
],
[
+ 'id' => 3,
+ 'ident' => 'app-bundles',
+ 'displayName' => 'App bundles',
+ ],
+ [
'id' => 1,
'ident' => 'disabled',
'displayName' => 'Disabled apps',