function testImportOverwritesIdOfNewObject() { $object = new TestOneTableObject(); $object->setId(1); $source = array('id' => 1000, 'annotation' => 'Some annotation', 'content' => 'Some content'); $object->import($source); $this->assertEqual($object->getId(), 1000); $this->assertEqual($object->getAnnotation(), 'Some annotation'); $this->assertEqual($object->getContent(), 'Some content'); }