diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/unit/ContactsMenu/Provider/DetailsProviderTest.php | 14 | ||||
-rw-r--r-- | tests/unit/Service/SocialApiServiceTest.php | 8 |
2 files changed, 11 insertions, 11 deletions
diff --git a/tests/unit/ContactsMenu/Provider/DetailsProviderTest.php b/tests/unit/ContactsMenu/Provider/DetailsProviderTest.php index 41e73050..10a4f058 100644 --- a/tests/unit/ContactsMenu/Provider/DetailsProviderTest.php +++ b/tests/unit/ContactsMenu/Provider/DetailsProviderTest.php @@ -59,12 +59,12 @@ class DetailsProviderTest extends Base { protected function setUp(): void { parent::setUp(); - $this->urlGenerator = $this->createMock(IURLGenerator::class); + $this->urlGenerator = $this->createMock(IURLGenerator::class); $this->actionFactory = $this->createMock(IActionFactory::class); - $this->l10n = $this->createMock(IL10N::class); - $this->manager = $this->createMock(IManager::class); - $this->config = $this->createMock(IConfig::class); - $this->provider = new DetailsProvider( + $this->l10n = $this->createMock(IL10N::class); + $this->manager = $this->createMock(IManager::class); + $this->config = $this->createMock(IConfig::class); + $this->provider = new DetailsProvider( $this->urlGenerator, $this->actionFactory, $this->l10n, @@ -91,8 +91,8 @@ class DetailsProviderTest extends Base { * @param string $resultUri */ public function testProcessNC16AndAbove($version, $frontControllerActive, $resultUri) { - $entry = $this->createMock(IEntry::class); - $action = $this->createMock(ILinkAction::class); + $entry = $this->createMock(IEntry::class); + $action = $this->createMock(ILinkAction::class); $addressbook = $this->createMock(IAddressBook::class); // DATA diff --git a/tests/unit/Service/SocialApiServiceTest.php b/tests/unit/Service/SocialApiServiceTest.php index eba6d9a3..9c2ab925 100644 --- a/tests/unit/Service/SocialApiServiceTest.php +++ b/tests/unit/Service/SocialApiServiceTest.php @@ -109,10 +109,10 @@ class SocialApiServiceTest extends TestCase { public function updateAddressbookProvider() { return [ - 'not user enabled' => ['yes', 'no', Http::STATUS_FORBIDDEN], - 'not admin allowed' => ['no', 'yes', Http::STATUS_FORBIDDEN], - 'not allowed, not enabled' => ['no', 'no', Http::STATUS_FORBIDDEN], - 'allowed and enabled' => ['yes', 'yes', Http::STATUS_OK], + 'not user enabled' => ['yes', 'no', Http::STATUS_FORBIDDEN], + 'not admin allowed' => ['no', 'yes', Http::STATUS_FORBIDDEN], + 'not allowed, not enabled' => ['no', 'no', Http::STATUS_FORBIDDEN], + 'allowed and enabled' => ['yes', 'yes', Http::STATUS_OK], ]; } |