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/UsersManager/tests/Integration/APITest.php | |
parent | fae60dbc6b4f68025967ba1a29a3458486404bbf (diff) |
Typing Core/Access (#15983)
Diffstat (limited to 'plugins/UsersManager/tests/Integration/APITest.php')
-rw-r--r-- | plugins/UsersManager/tests/Integration/APITest.php | 30 |
1 files changed, 15 insertions, 15 deletions
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); } |