diff options
Diffstat (limited to 'tests/Unit/Controllers/Metrics/StatsTest.php')
-rw-r--r-- | tests/Unit/Controllers/Metrics/StatsTest.php | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/Unit/Controllers/Metrics/StatsTest.php b/tests/Unit/Controllers/Metrics/StatsTest.php index 9ecd4a66..fa78d8c3 100644 --- a/tests/Unit/Controllers/Metrics/StatsTest.php +++ b/tests/Unit/Controllers/Metrics/StatsTest.php @@ -109,6 +109,25 @@ class StatsTest extends TestCase } /** + * @covers \Engelsystem\Controllers\Metrics\Stats::databaseRead + * @covers \Engelsystem\Controllers\Metrics\Stats::databaseWrite + */ + public function testDatabase() + { + $this->initDatabase(); + + $stats = new Stats($this->database); + + $read = $stats->databaseRead(); + $write = $stats->databaseWrite(); + + $this->assertIsFloat($read); + $this->assertNotEmpty($read); + $this->assertIsFloat($write); + $this->assertNotEmpty($write); + } + + /** * @covers \Engelsystem\Controllers\Metrics\Stats::logEntries */ public function testLogEntries() |