function BlockedIpsTest::providerSource
Same name in other branches
- 9 core/modules/ban/tests/src/Kernel/Plugin/migrate/source/d7/BlockedIpsTest.php \Drupal\Tests\ban\Kernel\Plugin\migrate\source\d7\BlockedIpsTest::providerSource()
- 10 core/modules/ban/tests/src/Kernel/Plugin/migrate/source/d7/BlockedIpsTest.php \Drupal\Tests\ban\Kernel\Plugin\migrate\source\d7\BlockedIpsTest::providerSource()
- 11.x core/modules/ban/tests/src/Kernel/Plugin/migrate/source/d7/BlockedIpsTest.php \Drupal\Tests\ban\Kernel\Plugin\migrate\source\d7\BlockedIpsTest::providerSource()
Overrides MigrateSourceTestBase::providerSource
File
-
core/
modules/ ban/ tests/ src/ Kernel/ Plugin/ migrate/ source/ d7/ BlockedIpsTest.php, line 23
Class
- BlockedIpsTest
- Tests D7 blocked_ip source plugin.
Namespace
Drupal\Tests\ban\Kernel\Plugin\migrate\source\d7Code
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;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.