atk4\data\tests\TypecastingTest::testDirtyTimestamp PHP Méthode

testDirtyTimestamp() public méthode

public testDirtyTimestamp ( )
    public function testDirtyTimestamp()
    {
        $sql_time = '2016-10-25 11:44:08';
        $a = ['types' => [['date' => $sql_time]]];
        $this->setDB($a);
        $db = new Persistence_SQL($this->db->connection);
        $m = new Model($db, ['table' => 'types']);
        $m->addField('ts', ['actual' => 'date', 'type' => 'datetime']);
        $m->loadAny();
        $m['ts'] = clone $m['ts'];
        $this->assertFalse($m->isDirty('ts'));
    }