summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Pott2015-01-22 14:03:13 (GMT)
committerAlex Pott2015-01-22 14:03:13 (GMT)
commit146069d455acf3cad18ba478e191046b110de215 (patch)
treec446b30f811068078845ca870f7451f67a714b85
parent722c8dd25da210dbc58d37ed4026cb237933d2e2 (diff)
Issue #2403815 by benjy: Test migration of signature_format with assertIdentical
-rw-r--r--core/modules/migrate_drupal/src/Tests/d6/MigrateUserTest.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/modules/migrate_drupal/src/Tests/d6/MigrateUserTest.php b/core/modules/migrate_drupal/src/Tests/d6/MigrateUserTest.php
index f6db184..7ca1274 100644
--- a/core/modules/migrate_drupal/src/Tests/d6/MigrateUserTest.php
+++ b/core/modules/migrate_drupal/src/Tests/d6/MigrateUserTest.php
@@ -157,14 +157,14 @@ class MigrateUserTest extends MigrateDrupalTestBase {
}
// 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);