function BlockedIpsTest::providerSource

Same name in other branches
  1. 9 core/modules/ban/tests/src/Kernel/Plugin/migrate/source/d7/BlockedIpsTest.php \Drupal\Tests\ban\Kernel\Plugin\migrate\source\d7\BlockedIpsTest::providerSource()
  2. 8.9.x core/modules/ban/tests/src/Kernel/Plugin/migrate/source/d7/BlockedIpsTest.php \Drupal\Tests\ban\Kernel\Plugin\migrate\source\d7\BlockedIpsTest::providerSource()
  3. 10 core/modules/ban/tests/src/Kernel/Plugin/migrate/source/d7/BlockedIpsTest.php \Drupal\Tests\ban\Kernel\Plugin\migrate\source\d7\BlockedIpsTest::providerSource()

File

core/modules/ban/tests/src/Kernel/Plugin/migrate/source/d7/BlockedIpsTest.php, line 25

Class

BlockedIpsTest
Tests D7 blocked_ip source plugin.

Namespace

Drupal\Tests\ban\Kernel\Plugin\migrate\source\d7

Code

public static 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.