summaryrefslogtreecommitdiffstats
path: root/tests/lib/CapabilitiesManagerTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lib/CapabilitiesManagerTest.php')
-rw-r--r--tests/lib/CapabilitiesManagerTest.php20
1 files changed, 10 insertions, 10 deletions
diff --git a/tests/lib/CapabilitiesManagerTest.php b/tests/lib/CapabilitiesManagerTest.php
index e7d519a7493..536355f9697 100644
--- a/tests/lib/CapabilitiesManagerTest.php
+++ b/tests/lib/CapabilitiesManagerTest.php
@@ -53,7 +53,7 @@ class CapabilitiesManagerTest extends TestCase {
* Test a valid capabilitie
*/
public function testValidCapability() {
- $this->manager->registerCapability(function() {
+ $this->manager->registerCapability(function () {
return new SimpleCapability();
});
@@ -65,13 +65,13 @@ class CapabilitiesManagerTest extends TestCase {
* Test a public capabilitie
*/
public function testPublicCapability() {
- $this->manager->registerCapability(function() {
+ $this->manager->registerCapability(function () {
return new PublicSimpleCapability1();
});
- $this->manager->registerCapability(function() {
+ $this->manager->registerCapability(function () {
return new SimpleCapability2();
});
- $this->manager->registerCapability(function() {
+ $this->manager->registerCapability(function () {
return new SimpleCapability3();
});
@@ -86,7 +86,7 @@ class CapabilitiesManagerTest extends TestCase {
$this->expectException(\InvalidArgumentException::class);
$this->expectExceptionMessage('The given Capability (Test\\NoCapability) does not implement the ICapability interface');
- $this->manager->registerCapability(function() {
+ $this->manager->registerCapability(function () {
return new NoCapability();
});
@@ -98,13 +98,13 @@ class CapabilitiesManagerTest extends TestCase {
* Test a bunch of merged Capabilities
*/
public function testMergedCapabilities() {
- $this->manager->registerCapability(function() {
+ $this->manager->registerCapability(function () {
return new SimpleCapability();
});
- $this->manager->registerCapability(function() {
+ $this->manager->registerCapability(function () {
return new SimpleCapability2();
});
- $this->manager->registerCapability(function() {
+ $this->manager->registerCapability(function () {
return new SimpleCapability3();
});
@@ -124,10 +124,10 @@ class CapabilitiesManagerTest extends TestCase {
* Test deep identical capabilities
*/
public function testDeepIdenticalCapabilities() {
- $this->manager->registerCapability(function() {
+ $this->manager->registerCapability(function () {
return new DeepCapability();
});
- $this->manager->registerCapability(function() {
+ $this->manager->registerCapability(function () {
return new DeepCapability();
});