$this->
assertEquals($uid,
$revision->
getRevisionUser()->
id());
$this->
assertEquals($log,
$revision->revision_log->value
);
$this->
assertEquals($timestamp,
$revision->
getRevisionCreationTime());
} /**
* Tests node migration from Drupal 7 to 8.
*/
public function testNode() { // Confirm there are only classic node migration map tables. This shows
// that only the classic migration ran.
$results =
$this->
nodeMigrateMapTableCount('7'
);
$this->
assertSame(9,
$results['node'
]);
$this->
assertSame(0,
$results['node_complete'
]);
$this->
assertEntity(1, 'test_content_type', 'en', 'An English Node', '2', TRUE, '1421727515', '1441032132', TRUE, FALSE
);
$this->
assertRevision(1, 'An English Node', '1', NULL, '1441032132'
);
$node = Node::
load(1
);
$this->
assertNotEmpty($node->field_boolean->value
);
$this->
assertEquals('99-99-99-99',
$node->field_phone->value
);
$this->
assertSame('2015-01-20T04:15:00',
$node->field_date->value
);
$this->
assertSame('2015-01-20',
$node->field_date_without_time->value
);