Commit 146069d4 authored by alexpott's avatar alexpott

Issue #2403815 by benjy: Test migration of signature_format with assertIdentical

parent 722c8dd2
......@@ -157,14 +157,14 @@ public function testUser() {
}
// Get the user signature format.
$migration_format = entity_load('migration', 'd6_filter_format');
$signature_format = $migration_format->getIdMap()->lookupDestinationId(array($source->signature_format));
$signature_format = $source->signature_format === '0' ? [NULL] : $migration_format->getIdMap()->lookupDestinationId(array($source->signature_format));
$user = User::load($source->uid);
$this->assertEqual($user->id(), $source->uid);
$this->assertEqual($user->label(), $source->name);
$this->assertEqual($user->getEmail(), $source->mail);
$this->assertEqual($user->getSignature(), $source->signature);
$this->assertEqual($user->getSignatureFormat(), reset($signature_format));
$this->assertIdentical($user->getSignatureFormat(), reset($signature_format));
$this->assertEqual($user->getCreatedTime(), $source->created);
$this->assertEqual($user->getLastAccessedTime(), $source->access);
$this->assertEqual($user->getLastLoginTime(), $source->login);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment