@@ 41-54 (lines=14) @@ | ||
38 | /** |
|
39 | * Gets run before each test |
|
40 | */ |
|
41 | protected function setUp(): void { |
|
42 | $this->appName = 'tasks'; |
|
43 | $this->userId = 'admin'; |
|
44 | $this->settings = $this->getMockBuilder(IConfig::class) |
|
45 | ->disableOriginalConstructor() |
|
46 | ->getMock(); |
|
47 | $this->l10n = $this->createMock(IL10N::class); |
|
48 | $this->collectionsService = new CollectionsService( |
|
49 | $this->userId, |
|
50 | $this->l10n, |
|
51 | $this->settings, |
|
52 | $this->appName |
|
53 | ); |
|
54 | } |
|
55 | ||
56 | public function testGetAll() { |
|
57 | $return = [ |
@@ 41-56 (lines=16) @@ | ||
38 | /** |
|
39 | * Gets run before each test |
|
40 | */ |
|
41 | protected function setUp(): void { |
|
42 | $this->appName = 'tasks'; |
|
43 | $this->userId = 'admin'; |
|
44 | $this->config = $this->getMockBuilder(IConfig::class) |
|
45 | ->disableOriginalConstructor() |
|
46 | ->getMock(); |
|
47 | $this->appManager = $this->getMockBuilder(IAppManager::class) |
|
48 | ->disableOriginalConstructor() |
|
49 | ->getMock(); |
|
50 | $this->settingsService = new SettingsService( |
|
51 | $this->userId, |
|
52 | $this->config, |
|
53 | $this->appName, |
|
54 | $this->appManager |
|
55 | ); |
|
56 | } |
|
57 | ||
58 | public function testGet() { |
|
59 | $return = [ |