summaryrefslogtreecommitdiff
path: root/tests/Unit/Models/User
diff options
context:
space:
mode:
authorIgor Scheller <igor.scheller@igorshp.de>2019-04-24 10:45:00 +0200
committermsquare <msquare@notrademark.de>2019-04-25 17:56:06 +0200
commitc74fa7955d9392aea954c2e45ed4137fb2bebcbe (patch)
tree034c93b4b3ccc31e6cc9c27dd87f139569c10c72 /tests/Unit/Models/User
parentb74835a0968c35ad9a0955dd8b5e2f3cf9b72a56 (diff)
phpunit: Upgrade to version 8, fixed tests, formatting
Use `dms/phpunit-arraysubset-asserts` after `assertArraySubset` got deprecated
Diffstat (limited to 'tests/Unit/Models/User')
-rw-r--r--tests/Unit/Models/User/HasUserModelTest.php2
-rw-r--r--tests/Unit/Models/User/UserTest.php4
2 files changed, 4 insertions, 2 deletions
diff --git a/tests/Unit/Models/User/HasUserModelTest.php b/tests/Unit/Models/User/HasUserModelTest.php
index 07f3d726..58c01e1e 100644
--- a/tests/Unit/Models/User/HasUserModelTest.php
+++ b/tests/Unit/Models/User/HasUserModelTest.php
@@ -26,7 +26,7 @@ class HasUserModelTest extends TestCase
/**
* Prepare test
*/
- protected function setUp()
+ protected function setUp(): void
{
$this->initDatabase();
}
diff --git a/tests/Unit/Models/User/UserTest.php b/tests/Unit/Models/User/UserTest.php
index 9e967892..478c02dd 100644
--- a/tests/Unit/Models/User/UserTest.php
+++ b/tests/Unit/Models/User/UserTest.php
@@ -2,6 +2,7 @@
namespace Engelsystem\Test\Unit\Models;
+use DMS\PHPUnitExtensions\ArraySubset\ArraySubsetAsserts;
use Engelsystem\Models\User\Contact;
use Engelsystem\Models\User\HasUserModel;
use Engelsystem\Models\User\PersonalData;
@@ -13,6 +14,7 @@ use PHPUnit\Framework\TestCase;
class UserTest extends TestCase
{
+ use ArraySubsetAsserts;
use HasDatabase;
protected $data = [
@@ -91,7 +93,7 @@ class UserTest extends TestCase
/**
* Prepare test
*/
- protected function setUp()
+ protected function setUp(): void
{
$this->initDatabase();
}