namespace Drupal\Tests\Component\Plugin;
use Drupal\Component\Plugin\Exception\PluginNotFoundException;
-use Drupal\Tests\UnitTestCase;
+use PHPUnit\Framework\TestCase;
/**
* @coversDefaultClass \Drupal\Component\Plugin\PluginManagerBase
* @group Plugin
*/
-class PluginManagerBaseTest extends UnitTestCase {
+class PluginManagerBaseTest extends TestCase {
/**
* A callback method for mocking FactoryInterface objects.
$configuration_array = ['config' => 'something'];
$result = $manager->createInstance('valid', $configuration_array);
$this->assertEquals('valid', $result['plugin_id']);
- $this->assertArrayEquals($configuration_array, $result['configuration']);
+ $this->assertEquals($configuration_array, $result['configuration']);
}
/**
$factory_ref->setValue($manager, $this->getMockFactoryInterface(1));
$no_fallback_result = $manager->createInstance('valid', $configuration_array);
$this->assertEquals('valid', $no_fallback_result['plugin_id']);
- $this->assertArrayEquals($configuration_array, $no_fallback_result['configuration']);
+ $this->assertEquals($configuration_array, $no_fallback_result['configuration']);
// Test with fallback interface and invalid plugin_id.
$factory_ref->setValue($manager, $this->getMockFactoryInterface(2));
$fallback_result = $manager->createInstance('invalid', $configuration_array);
$this->assertEquals('invalid_fallback', $fallback_result['plugin_id']);
- $this->assertArrayEquals($configuration_array, $fallback_result['configuration']);
+ $this->assertEquals($configuration_array, $fallback_result['configuration']);
}
}