public function ConvertTokensTest::testConvertTokensNull in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/user/tests/src/Unit/Plugin/migrate/process/ConvertTokensTest.php \Drupal\Tests\user\Unit\Plugin\migrate\process\ConvertTokensTest::testConvertTokensNull()
Tests conversion of user tokens with a NULL value.
File
- core/
modules/ user/ tests/ src/ Unit/ Plugin/ migrate/ process/ ConvertTokensTest.php, line 39 - Contains \Drupal\Tests\user\Unit\Plugin\migrate\process\ConvertTokensTest.
Class
- ConvertTokensTest
- Tests the ConvertTokens plugin.
Namespace
Drupal\Tests\user\Unit\Plugin\migrate\processCode
public function testConvertTokensNull() {
$value = $this->plugin
->transform(NULL, $this->migrateExecutable, $this->row, 'destinationproperty');
$this
->assertEquals('', $value);
}