summaryrefslogtreecommitdiff
path: root/tests/Unit/Models
diff options
context:
space:
mode:
authorIgor Scheller <igor.scheller@igorshp.de>2019-04-24 11:01:37 +0200
committermsquare <msquare@notrademark.de>2019-04-25 18:17:19 +0200
commit79c92da8c14de61dccc015f04c3900aac4bd4179 (patch)
tree7b4e0f51d2bd2508905fdc697b31a73810a1b5d5 /tests/Unit/Models
parent7c3a0c70e8d23f47287ead148c6b8682216352c6 (diff)
Formatting
```bash php-cs-fixer fix --allow-risky=yes --rules=@PSR2,psr4,mb_str_functions.php_unit_construct,php_unit_ordered_covers,trailing_comma_in_multiline_array --rules='{"array_syntax": {"syntax":"short"}}' [tests/|src/] ```
Diffstat (limited to 'tests/Unit/Models')
-rw-r--r--tests/Unit/Models/EventConfigTest.php3
-rw-r--r--tests/Unit/Models/User/Stub/HasUserModelImplementation.php1
-rw-r--r--tests/Unit/Models/User/UserTest.php10
3 files changed, 6 insertions, 8 deletions
diff --git a/tests/Unit/Models/EventConfigTest.php b/tests/Unit/Models/EventConfigTest.php
index 5a0286b5..e2ab5d10 100644
--- a/tests/Unit/Models/EventConfigTest.php
+++ b/tests/Unit/Models/EventConfigTest.php
@@ -102,8 +102,7 @@ class EventConfigTest extends TestCase
*/
protected function getEventConfig()
{
- return new class extends EventConfig
- {
+ return new class extends EventConfig {
/**
* @param string $value
* @param string $type
diff --git a/tests/Unit/Models/User/Stub/HasUserModelImplementation.php b/tests/Unit/Models/User/Stub/HasUserModelImplementation.php
index 0456eb6a..6d442bdd 100644
--- a/tests/Unit/Models/User/Stub/HasUserModelImplementation.php
+++ b/tests/Unit/Models/User/Stub/HasUserModelImplementation.php
@@ -6,5 +6,4 @@ use Engelsystem\Models\User\HasUserModel;
class HasUserModelImplementation extends HasUserModel
{
-
}
diff --git a/tests/Unit/Models/User/UserTest.php b/tests/Unit/Models/User/UserTest.php
index 478c02dd..0e17d137 100644
--- a/tests/Unit/Models/User/UserTest.php
+++ b/tests/Unit/Models/User/UserTest.php
@@ -37,14 +37,14 @@ class UserTest extends TestCase
'dect' => '1234567',
'email' => 'foo@bar.batz',
'mobile' => '1234/12341234',
- ]
+ ],
],
[
PersonalData::class,
'personalData',
[
- 'first_name' => 'Foo'
- ]
+ 'first_name' => 'Foo',
+ ],
],
[
Settings::class,
@@ -52,14 +52,14 @@ class UserTest extends TestCase
[
'language' => 'de_DE',
'theme' => 4,
- ]
+ ],
],
[
State::class,
'state',
[
'force_active' => true,
- ]
+ ],
],
];
}