mirror of
https://github.com/nextcloud/server.git
synced 2026-06-14 19:20:35 -04:00
Fix unit tests
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
7362145dec
commit
963a03e108
1 changed files with 12 additions and 0 deletions
|
|
@ -116,6 +116,10 @@ class ManagerTest extends TestCase {
|
|||
|
||||
$this->manager->registerSection('personal', \OCA\WorkflowEngine\Settings\Section::class);
|
||||
|
||||
$this->container->method('query')
|
||||
->with(\OCA\Settings\Personal\Additional::class)
|
||||
->willReturn($this->createMock(\OCA\Settings\Personal\Additional::class));
|
||||
|
||||
$this->url->expects($this->exactly(3))
|
||||
->method('imagePath')
|
||||
->willReturnMap([
|
||||
|
|
@ -183,6 +187,10 @@ class ManagerTest extends TestCase {
|
|||
['core', 'clients/phone.svg', '3'],
|
||||
]);
|
||||
|
||||
$this->container->method('query')
|
||||
->with(\OCA\Settings\Personal\Additional::class)
|
||||
->willReturn($this->createMock(\OCA\Settings\Personal\Additional::class));
|
||||
|
||||
$this->assertArraySubset([
|
||||
0 => [new Section('personal-info', 'Personal info', 0, '1')],
|
||||
5 => [new Section('security', 'Security', 0, '2')],
|
||||
|
|
@ -290,6 +298,10 @@ class ManagerTest extends TestCase {
|
|||
['settings', 'help.svg', '4'],
|
||||
]);
|
||||
|
||||
$this->container->method('query')
|
||||
->with(\OCA\Settings\Personal\Additional::class)
|
||||
->willReturn($this->createMock(\OCA\Settings\Personal\Additional::class));
|
||||
|
||||
$this->assertEquals([
|
||||
0 => [new Section('personal-info', 'Personal info', 0, '1')],
|
||||
5 => [new Section('security', 'Security', 0, '2')],
|
||||
|
|
|
|||
Loading…
Reference in a new issue