BlockedIpsTest.php in Drupal 8
File
core/modules/ban/tests/src/Kernel/Plugin/migrate/source/d7/BlockedIpsTest.php
View source
<?php
namespace Drupal\Tests\ban\Kernel\Plugin\migrate\source\d7;
use Drupal\Tests\migrate\Kernel\MigrateSqlSourceTestBase;
class BlockedIpsTest extends MigrateSqlSourceTestBase {
public static $modules = [
'ban',
'migrate_drupal',
];
public function providerSource() {
$tests = [];
$tests[0]['source_data']['blocked_ips'] = [
[
'iid' => 1,
'ip' => '127.0.0.1',
],
];
$tests[0]['expected_data'] = [
[
'ip' => '127.0.0.1',
],
];
return $tests;
}
}