267cc3447c12a290c16952fc5e075e852a404b15
[yaffs-website] / web / core / modules / ban / tests / src / Kernel / Plugin / migrate / source / d7 / BlockedIpsTest.php
1 <?php
2
3 namespace Drupal\Tests\ban\Kernel\Plugin\migrate\source\d7;
4
5 use Drupal\Tests\migrate\Kernel\MigrateSqlSourceTestBase;
6
7 /**
8  * Tests D7 blocked_ip source plugin.
9  *
10  * @covers \Drupal\ban\Plugin\migrate\source\d7\BlockedIps
11  * @group ban
12  */
13 class BlockedIpsTest extends MigrateSqlSourceTestBase {
14
15   /**
16    * {@inheritdoc}
17    */
18   public static $modules = ['ban', 'migrate_drupal'];
19
20   /**
21    * {@inheritdoc}
22    */
23   public function providerSource() {
24     $tests = [];
25
26     $tests[0]['source_data']['blocked_ips'] = [
27       [
28         'iid' => 1,
29         'ip' => '127.0.0.1',
30       ]
31     ];
32     $tests[0]['expected_data'] = [
33       [
34         'ip' => '127.0.0.1',
35       ],
36     ];
37     return $tests;
38   }
39
40 }