From d59b1c8812f62848acc2bf19f020abf4949e75ef Mon Sep 17 00:00:00 2001 From: msquare Date: Sun, 9 Oct 2016 09:40:11 +0200 Subject: fix phpunit config --- test/model/LogEntriesModelTest.php | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 test/model/LogEntriesModelTest.php (limited to 'test/model/LogEntriesModelTest.php') diff --git a/test/model/LogEntriesModelTest.php b/test/model/LogEntriesModelTest.php new file mode 100644 index 00000000..b4cef725 --- /dev/null +++ b/test/model/LogEntriesModelTest.php @@ -0,0 +1,32 @@ +assertNotFalse(LogEntry_create('test', 'test_LogEntry_create')); + + // There should be one more log entry now + $this->assertEquals(count(LogEntries()), $count + 1); + } + + public function test_LogEntries_clear_all() { + $this->create_LogEntry(); + $this->assertTrue(count(LogEntries()) > 0); + $this->assertNotFalse(LogEntries_clear_all()); + $this->assertEquals(count(LogEntries()), 0); + } + + /** + * @after + */ + public function teardown() { + LogEntries_clear_all(); + } +} + +?> -- cgit v1.2.3-54-g00ecf