diff options
author | Jean Baptiste Noblot <noblot.jb@gmail.com> | 2020-05-27 00:09:50 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-27 00:09:50 +0300 |
commit | 588dd53be0cdb46389157e6859e944578b2b4771 (patch) | |
tree | 116fe534f93763e6a59eaf6895fc136eb1a3bc6e /plugins | |
parent | fae60dbc6b4f68025967ba1a29a3458486404bbf (diff) |
Typing Core/Access (#15983)
Diffstat (limited to 'plugins')
m--------- | plugins/TagManager | 0 | ||||
-rw-r--r-- | plugins/UsersManager/tests/Integration/APITest.php | 30 | ||||
-rw-r--r-- | plugins/UsersManager/tests/Integration/UsersManagerTest.php | 2 |
3 files changed, 16 insertions, 16 deletions
diff --git a/plugins/TagManager b/plugins/TagManager -Subproject bb8cc3b28952b6f3a7891b5b10737f603d46374 +Subproject 78cfc26a0178d0dc899b553bbb36b1a65dcc027 diff --git a/plugins/UsersManager/tests/Integration/APITest.php b/plugins/UsersManager/tests/Integration/APITest.php index 5dfc9f207b..3150f154b9 100644 --- a/plugins/UsersManager/tests/Integration/APITest.php +++ b/plugins/UsersManager/tests/Integration/APITest.php @@ -31,27 +31,27 @@ class TestCap1 extends Capability { const ID = 'test_cap1'; - public function getId() + public function getId(): string { return self::ID; } - public function getCategory() + public function getCategory(): string { return 'Test'; } - public function getName() + public function getName(): string { return 'Cap1'; } - public function getDescription() + public function getDescription(): string { return ''; } - public function getIncludedInRoles() + public function getIncludedInRoles(): array { return array( Admin::ID @@ -63,27 +63,27 @@ class TestCap2 extends Capability { const ID = 'test_cap2'; - public function getId() + public function getId(): string { return self::ID; } - public function getCategory() + public function getCategory(): string { return 'Test'; } - public function getName() + public function getName(): string { return 'Cap2'; } - public function getDescription() + public function getDescription(): string { return ''; } - public function getIncludedInRoles() + public function getIncludedInRoles(): array { return array( Write::ID, Admin::ID @@ -95,27 +95,27 @@ class TestCap3 extends Capability { const ID = 'test_cap3'; - public function getId() + public function getId(): string { return self::ID; } - public function getCategory() + public function getCategory(): string { return 'Test'; } - public function getName() + public function getName(): string { return 'Cap3'; } - public function getDescription() + public function getDescription(): string { return ''; } - public function getIncludedInRoles() + public function getIncludedInRoles(): array { return array(Admin::ID); } diff --git a/plugins/UsersManager/tests/Integration/UsersManagerTest.php b/plugins/UsersManager/tests/Integration/UsersManagerTest.php index 38a3ea9c87..bd8807f1c7 100644 --- a/plugins/UsersManager/tests/Integration/UsersManagerTest.php +++ b/plugins/UsersManager/tests/Integration/UsersManagerTest.php @@ -1039,7 +1039,7 @@ class UsersManagerTest extends IntegrationTestCase 'id' => 'write', 'name' => 'UsersManager_PrivWrite', 'description' => 'UsersManager_PrivWriteDescription', - 'helpUrl' => '' + 'helpUrl' => 'https://matomo.org/faq/general/faq_26910' ), array ( 'id' => 'admin', |