You are here

public function MigrateSqlIdMapTest::testSetMessage in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/migrate/tests/src/Unit/MigrateSqlIdMapTest.php \Drupal\Tests\migrate\Unit\MigrateSqlIdMapTest::testSetMessage()

Tests the SQL ID map set message method.

File

core/modules/migrate/tests/src/Unit/MigrateSqlIdMapTest.php, line 177
Contains \Drupal\Tests\migrate\Unit\MigrateSqlIdMapTest.

Class

MigrateSqlIdMapTest
Tests the SQL ID map plugin.

Namespace

Drupal\Tests\migrate\Unit

Code

public function testSetMessage() {
  $message = $this
    ->getMock('Drupal\\migrate\\MigrateMessageInterface');
  $id_map = $this
    ->getIdMap();
  $id_map
    ->setMessage($message);
  $this
    ->assertAttributeEquals($message, 'message', $id_map);
}