public function CallbackTest::providerCallbackArray in Drupal 9
Data provider for ::testCallbackArray().
File
- core/
modules/ migrate/ tests/ src/ Unit/ process/ CallbackTest.php, line 52
Class
- CallbackTest
- Tests the callback process plugin.
Namespace
Drupal\Tests\migrate\Unit\processCode
public function providerCallbackArray() {
return [
'date format' => [
'date',
[
'Y-m-d',
995328000,
],
'2001-07-17',
],
'rtrim' => [
'rtrim',
[
'https://www.example.com/',
'/',
],
'https://www.example.com',
],
'str_replace' => [
'str_replace',
[
[
'One',
'two',
],
[
'1',
'2',
],
'One, two, three!',
],
'1, 2, three!',
],
];
}