BlockedIpsTest.php

Same filename and directory in other branches
  1. 9 core/modules/ban/tests/src/Kernel/Plugin/migrate/source/d7/BlockedIpsTest.php
  2. 8.9.x core/modules/ban/tests/src/Kernel/Plugin/migrate/source/d7/BlockedIpsTest.php
  3. 10 core/modules/ban/tests/src/Kernel/Plugin/migrate/source/d7/BlockedIpsTest.php

Namespace

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

File

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

View source
<?php

declare (strict_types=1);
namespace Drupal\Tests\ban\Kernel\Plugin\migrate\source\d7;

use Drupal\Tests\migrate\Kernel\MigrateSqlSourceTestBase;

/**
 * Tests D7 blocked_ip source plugin.
 *
 * @covers \Drupal\ban\Plugin\migrate\source\d7\BlockedIps
 * @group ban
 */
class BlockedIpsTest extends MigrateSqlSourceTestBase {
    
    /**
     * {@inheritdoc}
     */
    protected static $modules = [
        'ban',
        'migrate_drupal',
    ];
    
    /**
     * {@inheritdoc}
     */
    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;
    }

}

Classes

Title Deprecated Summary
BlockedIpsTest Tests D7 blocked_ip source plugin.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.