mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-12 13:24:25 +00:00
fix test failing due to microseconds difference
This commit is contained in:
parent
4e9879ba92
commit
213da59b0b
@ -50,8 +50,8 @@ final class PersonAddressMoveEventTest extends TestCase
|
|||||||
|
|
||||||
$this->assertSame($previousAddress, $event->getPreviousAddress());
|
$this->assertSame($previousAddress, $event->getPreviousAddress());
|
||||||
$this->assertSame($nextAddress, $event->getNextAddress());
|
$this->assertSame($nextAddress, $event->getNextAddress());
|
||||||
$this->assertEquals(new DateTime('1 month ago'), $nextAddress->getValidFrom());
|
$this->assertEquals((new DateTime('1 month ago'))->format('Y-m-d'), $nextAddress->getValidFrom()->format('Y-m-d'));
|
||||||
$this->assertEquals(new DateTime('1 month ago'), $event->getMoveDate());
|
$this->assertEquals((new DateTime('1 month ago'))->format('Y-m-d'), $event->getMoveDate()->format('Y-m-d'));
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testPersonChangeHousehold()
|
public function testPersonChangeHousehold()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user