class SqlDeprecationTest
Tests deprecation notice in Sql constructor.
@group migrate @group legacy
Hierarchy
- class \Drupal\KernelTests\KernelTestBase extends \Drupal\Core\DependencyInjection\ServiceProviderInterface uses \Drupal\KernelTests\AssertLegacyTrait, \Drupal\KernelTests\AssertContentTrait, \Drupal\Tests\RandomGeneratorTrait, \Drupal\Tests\ConfigTestTrait, \Drupal\Tests\ExtensionListTestTrait, \Drupal\Tests\TestRequirementsTrait, \Drupal\Tests\Traits\PhpUnitWarnings, \Drupal\Tests\PhpUnitCompatibilityTrait, \Symfony\Bridge\PhpUnit\ExpectDeprecationTrait implements \PHPUnit\Framework\TestCase
- class \Drupal\Tests\migrate\Kernel\Plugin\id_map\SqlDeprecationTest implements \Drupal\KernelTests\KernelTestBase
Expanded class hierarchy of SqlDeprecationTest
File
-
core/
modules/ migrate/ tests/ src/ Kernel/ Plugin/ id_map/ SqlDeprecationTest.php, line 14
Namespace
Drupal\Tests\migrate\Kernel\Plugin\id_mapView source
class SqlDeprecationTest extends KernelTestBase {
/**
* {@inheritdoc}
*/
protected static $modules = [
'migrate',
];
/**
* @covers ::__construct
*/
public function testOptionalParametersDeprecation() : void {
$migration = $this->prophesize('\\Drupal\\migrate\\Plugin\\MigrationInterface')
->reveal();
$this->expectDeprecation('Calling Sql::__construct() without the $migration_manager argument is deprecated in drupal:9.5.0 and the $migration_manager argument will be required in drupal:11.0.0. See https://www.drupal.org/node/3277306');
new Sql([], 'sql', [], $migration, $this->container
->get('event_dispatcher'));
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.