diff options
author | Igor Scheller <igor.scheller@igorshp.de> | 2019-07-28 17:24:26 +0200 |
---|---|---|
committer | Igor Scheller <igor.scheller@igorshp.de> | 2019-07-28 19:20:04 +0200 |
commit | d2e69875b063929451f04ce5190cf96915d7e6d8 (patch) | |
tree | 02f07ef7d0c43249b08201326a1a1dc2f1d4aa3f /tests/Unit/Models/LogEntryTest.php | |
parent | 1da69bebd9687dd415df591f7dd43803898ead9e (diff) |
Tests: Added ModelTest class for model tests
Diffstat (limited to 'tests/Unit/Models/LogEntryTest.php')
-rw-r--r-- | tests/Unit/Models/LogEntryTest.php | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/tests/Unit/Models/LogEntryTest.php b/tests/Unit/Models/LogEntryTest.php index 0a0efa3c..84111bce 100644 --- a/tests/Unit/Models/LogEntryTest.php +++ b/tests/Unit/Models/LogEntryTest.php @@ -3,14 +3,10 @@ namespace Engelsystem\Test\Unit\Models; use Engelsystem\Models\LogEntry; -use Engelsystem\Test\Unit\HasDatabase; -use PHPUnit\Framework\TestCase; use Psr\Log\LogLevel; -class LogEntryTest extends TestCase +class LogEntryTest extends ModelTest { - use HasDatabase; - /** * @covers \Engelsystem\Models\LogEntry::filter */ @@ -32,12 +28,4 @@ class LogEntryTest extends TestCase $this->assertCount(3, LogEntry::filter(LogLevel::INFO)); $this->assertCount(1, LogEntry::filter('Oops')); } - - /** - * Prepare test - */ - protected function setUp(): void - { - $this->initDatabase(); - } } |