mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-12-06 11:09:29 +00:00
Fixed logentryRepositoryTest
It seems that this was always wrong, but this was never noticed, because normally the log timestamps are all the same
This commit is contained in:
parent
1156bb52af
commit
17f123ba8a
1 changed files with 2 additions and 1 deletions
|
|
@ -112,7 +112,8 @@ class LogEntryRepositoryTest extends KernelTestCase
|
||||||
$this->assertCount(2, $logs);
|
$this->assertCount(2, $logs);
|
||||||
|
|
||||||
//The first one must be newer than the second one
|
//The first one must be newer than the second one
|
||||||
$this->assertGreaterThanOrEqual($logs[0]->getTimestamp(), $logs[1]->getTimestamp());
|
$this->assertGreaterThanOrEqual($logs[1]->getTimestamp(), $logs[0]->getTimestamp());
|
||||||
|
$this->assertGreaterThanOrEqual($logs[1]->getID(), $logs[0]->getID());
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testGetElementExistedAtTimestamp(): void
|
public function testGetElementExistedAtTimestamp(): void
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue