public function SkipShippingDefaultTest::providerTestInvalidType in Commerce Migrate 8.2
Same name and namespace in other branches
- 3.1.x modules/magento/tests/src/Unit/Plugin/migrate/process/SkipShippingDefaultTest.php \Drupal\Tests\commerce_migrate_magento\Unit\Plugin\migrate\process\SkipShippingDefaultTest::providerTestInvalidType()
- 3.0.x modules/magento/tests/src/Unit/Plugin/migrate/process/SkipShippingDefaultTest.php \Drupal\Tests\commerce_migrate_magento\Unit\Plugin\migrate\process\SkipShippingDefaultTest::providerTestInvalidType()
Data provider for testInvalidType().
File
- modules/
magento/ tests/ src/ Unit/ Plugin/ migrate/ process/ SkipShippingDefaultTest.php, line 87
Class
- SkipShippingDefaultTest
- Tests the skip default shipping row process plugin.
Namespace
Drupal\Tests\commerce_migrate_magento\Unit\Plugin\migrate\processCode
public function providerTestInvalidType() {
$xml_str = <<<XML
<?xml version='1.0'?>
<mathematician>
<name>Ada Lovelace</name>
</mathematician>
XML;
$object = (object) [
'one' => 'test1',
'two' => 'test2',
'three' => 'test3',
];
return [
'empty string' => [
'',
],
'string' => [
'Extract Test',
],
'integer' => [
1,
],
'float' => [
1.0,
],
'NULL' => [
NULL,
],
'boolean' => [
TRUE,
],
'xml' => [
$xml_str,
],
'object' => [
$object,
],
];
}