Skip to content
Snippets Groups Projects
Unverified Commit 9559bde3 authored by Alex Pott's avatar Alex Pott
Browse files

Issue #3126784 by quietone, jungle:...

Issue #3126784 by quietone, jungle: \Drupal\ban\Plugin\migrate\destination\BlockedIP is not identical with its filename BlockedIp.php

(cherry picked from commit aafcd8d6)
parent c58a76fe
No related branches found
No related tags found
No related merge requests found
......@@ -16,7 +16,7 @@
* id = "blocked_ip"
* )
*/
class BlockedIP extends DestinationBase implements ContainerFactoryPluginInterface {
class BlockedIp extends DestinationBase implements ContainerFactoryPluginInterface {
/**
* The IP ban manager.
......@@ -26,7 +26,7 @@ class BlockedIP extends DestinationBase implements ContainerFactoryPluginInterfa
protected $banManager;
/**
* Constructs a BlockedIP object.
* Constructs a BlockedIp object.
*
* @param array $configuration
* Plugin configuration.
......
......@@ -10,7 +10,7 @@
*
* @group ban
*/
class MigrateBlockedIPsTest extends MigrateDrupal7TestBase {
class MigrateBlockedIpsTest extends MigrateDrupal7TestBase {
use SchemaCheckTestTrait;
......@@ -33,7 +33,7 @@ protected function setUp() {
/**
* Tests migration of blocked IPs.
*/
public function testBlockedIPs() {
public function testBlockedIps() {
$this->assertTrue(\Drupal::service('ban.ip_manager')->isBanned('111.111.111.111'));
}
......
......@@ -2,7 +2,7 @@
namespace Drupal\Tests\migrate_drupal\Kernel\Plugin\migrate;
use Drupal\ban\Plugin\migrate\destination\BlockedIP;
use Drupal\ban\Plugin\migrate\destination\BlockedIp;
use Drupal\color\Plugin\migrate\destination\Color;
use Drupal\KernelTests\FileSystemModuleDiscoveryDataProviderTrait;
use Drupal\migrate\Plugin\migrate\destination\ComponentEntityDisplayBase;
......@@ -121,7 +121,7 @@ protected function getContentClasses() {
return [
EntityContentBase::class,
UrlAlias::class,
BlockedIP::class,
BlockedIp::class,
NodeCounter::class,
UserData::class,
];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment