You are here

public function RowTest::testRowWithInvalidData in Drupal 10

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

Tests object creation: invalid values.

File

core/modules/migrate/tests/src/Unit/RowTest.php, line 114

Class

RowTest
@coversDefaultClass \Drupal\migrate\Row @group migrate

Namespace

Drupal\Tests\migrate\Unit

Code

public function testRowWithInvalidData() {
  $invalid_values = [
    'title' => 'node X',
  ];
  $this
    ->expectException(\Exception::class);
  new Row($invalid_values, $this->testSourceIds);
}