KimaiTest\Ki_Invoice_PrivateFuncTest::testext_invoice_empty_entry PHP Method

testext_invoice_empty_entry() public method

    public function testext_invoice_empty_entry()
    {
        $keys = array('type', 'desc', 'start', 'end', 'hour', 'fDuration', 'duration', 'timestamp', 'amount', 'description', 'rate', 'comment', 'username', 'useralias', 'location', 'trackingNr', 'projectID', 'projectName', 'projectComment', 'date');
        $actual = ext_invoice_empty_entry();
        foreach ($keys as $key) {
            $this->assertArrayHasKey($key, $actual);
        }
        $this->assertEquals(count($keys), count(array_keys($actual)));
    }