Jackalope\Transport\DoctrineDBAL\ClientTest::testDate PHP Method

testDate() public method

The date value should not change when saving.
public testDate ( )
    public function testDate()
    {
        $rootNode = $this->session->getNode('/');
        $child1 = $rootNode->addNode('child1');
        $date = new \DateTime();
        $before = $date->format('c');
        $child1->setProperty('date', $date);
        $this->session->save();
        $after = $date->format('c');
        $this->assertEquals($before, $after);
    }