public function CallbackTest::testCallbackWithFunction in Zircon Profile 8.0
Same name and namespace in other branches
- 8 core/modules/migrate/tests/src/Unit/process/CallbackTest.php \Drupal\Tests\migrate\Unit\process\CallbackTest::testCallbackWithFunction()
Test callback with a function as callable.
File
- core/
modules/ migrate/ tests/ src/ Unit/ process/ CallbackTest.php, line 30 - Contains \Drupal\Tests\migrate\Unit\process\CallbackTest.
Class
- CallbackTest
- Tests the callback process plugin.
Namespace
Drupal\Tests\migrate\Unit\processCode
public function testCallbackWithFunction() {
$this->plugin
->setCallable('strtolower');
$value = $this->plugin
->transform('FooBar', $this->migrateExecutable, $this->row, 'destinationproperty');
$this
->assertSame($value, 'foobar');
}