summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authordependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>2021-03-16 07:58:12 +0000
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2021-03-16 09:54:14 +0100
commit2a3950e425d0caac6ba3fa7bbbe84003f6f5cb99 (patch)
treea29d67a7fdd0c1a1bc66a45619ef82583165db61 /tests
parent64b1808c02f67f7cf0c8ba66c8fd9a1ca793f08a (diff)
Bump nextcloud/coding-standard from 0.3.0 to 0.5.0
Bumps [nextcloud/coding-standard](https://github.com/nextcloud/coding-standard) from 0.3.0 to 0.5.0. - [Release notes](https://github.com/nextcloud/coding-standard/releases) - [Changelog](https://github.com/nextcloud/coding-standard/blob/master/CHANGELOG.md) - [Commits](https://github.com/nextcloud/coding-standard/compare/v0.3.0...v0.5.0) Signed-off-by: dependabot[bot] <support@github.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/ContactsMenu/Provider/DetailsProviderTest.php14
-rw-r--r--tests/unit/Service/SocialApiServiceTest.php8
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],
];
}