diff options
Diffstat (limited to 'test/model/LogEntriesModelTest.php')
-rw-r--r-- | test/model/LogEntriesModelTest.php | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/test/model/LogEntriesModelTest.php b/test/model/LogEntriesModelTest.php index 4da6fd4b..25d46fc4 100644 --- a/test/model/LogEntriesModelTest.php +++ b/test/model/LogEntriesModelTest.php @@ -1,9 +1,11 @@ <?php - namespace Engelsystem\Test; -class LogEntriesModelTest extends \PHPUnit_Framework_TestCase +use \PHPUnit\Framework\TestCase; + +class LogEntriesModelTest extends TestCase { + public function create_LogEntry() { LogEntry_create('test', 'test'); @@ -13,7 +15,7 @@ class LogEntriesModelTest extends \PHPUnit_Framework_TestCase { $count = count(LogEntries()); $this->assertNotFalse(LogEntry_create('test', 'test_LogEntry_create')); - + // There should be one more log entry now $this->assertEquals(count(LogEntries()), $count + 1); } |