public function RowTest::testSetFrozenRow in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/migrate/tests/src/Unit/RowTest.php \Drupal\Tests\migrate\Unit\RowTest::testSetFrozenRow()
Tests setting on a frozen row.
@expectedException \Exception @expectedExceptionMessage The source is frozen and can't be changed any more
File
- core/
modules/ migrate/ tests/ src/ Unit/ RowTest.php, line 113 - Contains \Drupal\Tests\migrate\Unit\RowTest.
Class
- RowTest
- @coversDefaultClass \Drupal\migrate\Row @group migrate
Namespace
Drupal\Tests\migrate\UnitCode
public function testSetFrozenRow() {
$row = new Row($this->testValues, $this->testSourceIds);
$row
->freezeSource();
$row
->setSourceProperty('title', 'new title');
}