You are here

public function MigrateSourceTest::testHighwaterTrackChangesIncompatible in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/migrate/tests/src/Unit/MigrateSourceTest.php \Drupal\Tests\migrate\Unit\MigrateSourceTest::testHighwaterTrackChangesIncompatible()

@covers ::__construct

File

core/modules/migrate/tests/src/Unit/MigrateSourceTest.php, line 157
Contains \Drupal\Tests\migrate\Unit\MigrateSourceTest.

Class

MigrateSourceTest
@coversDefaultClass \Drupal\migrate\Plugin\migrate\source\SourcePluginBase @group migrate

Namespace

Drupal\Tests\migrate\Unit

Code

public function testHighwaterTrackChangesIncompatible() {
  $source_config = [
    'track_changes' => TRUE,
    'high_water_property' => [
      'name' => 'something',
    ],
  ];
  $this
    ->expectException(MigrateException::class);
  $this
    ->getSource($source_config);
}