Skip to content

Commit

Permalink
Add assertion on this test
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Nov 13, 2024
1 parent 210a2bd commit 2b764e5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/phpunit/AccountingAccountTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -200,13 +200,19 @@ public function testGetCurrentPeriodOfFiscalYear()
print __METHOD__." date_start = ".dol_print_date($result['date_start'], 'dayhour', 'gmt')."\n";
print __METHOD__." date_end = ".dol_print_date($result['date_end'], 'dayhour', 'gmt')."\n";

$this->assertArrayHasKey('date_start', $result);
$this->assertArrayHasKey('date_end', $result);


$result = getCurrentPeriodOfFiscalYear($db, $conf, null, 'gmt');
var_dump($result);

print __METHOD__." date_start = ".dol_print_date($result['date_start'], 'dayhour', 'gmt')."\n";
print __METHOD__." date_end = ".dol_print_date($result['date_end'], 'dayhour', 'gmt')."\n";

$this->assertArrayHasKey('date_start', $result);
$this->assertArrayHasKey('date_end', $result);

return $result;
}
}

0 comments on commit 2b764e5

Please sign in to comment.