summaryrefslogtreecommitdiff
path: root/tests/Feature/model/LogEntriesModelTest.php
diff options
context:
space:
mode:
authorIgor Scheller <igor.scheller@igorshp.de>2017-10-31 14:23:23 +0100
committerIgor Scheller <igor.scheller@igorshp.de>2017-10-31 14:30:37 +0100
commite15e86362585f5d00d118653232584ed0920e533 (patch)
tree0e3e4750e91b3deab2173334e2b7e9b05742d3fc /tests/Feature/model/LogEntriesModelTest.php
parent411ea5bb6d0ecf32e6c989a99fac120502db9fe9 (diff)
Added tests for base_path and config_path
Diffstat (limited to 'tests/Feature/model/LogEntriesModelTest.php')
-rw-r--r--tests/Feature/model/LogEntriesModelTest.php38
1 files changed, 0 insertions, 38 deletions
diff --git a/tests/Feature/model/LogEntriesModelTest.php b/tests/Feature/model/LogEntriesModelTest.php
deleted file mode 100644
index 6d7b0ebc..00000000
--- a/tests/Feature/model/LogEntriesModelTest.php
+++ /dev/null
@@ -1,38 +0,0 @@
-<?php
-
-namespace Engelsystem\Test;
-
-use PHPUnit\Framework\TestCase;
-use Psr\Log\LogLevel;
-
-class LogEntriesModelTest extends TestCase
-{
- public static function setUpBeforeClass()
- {
- require_once __DIR__ . '/../../../includes/engelsystem_provider.php';
- }
-
- public function testCreateLogEntry()
- {
- LogEntries_clear_all();
- $count = count(LogEntries());
- $this->assertNotFalse(LogEntry_create(LogLevel::WARNING, 'test_LogEntry_create'));
-
- // There should be one more log entry now
- $this->assertEquals(count(LogEntries()), $count + 1);
- }
-
- public function testClearAllLogEntries()
- {
- LogEntry_create(LogLevel::WARNING, 'test');
- $this->assertTrue(count(LogEntries()) > 0);
-
- $this->assertNotFalse(LogEntries_clear_all());
- $this->assertCount(0, LogEntries());
- }
-
- public function tearDown()
- {
- LogEntries_clear_all();
- }
-}