class UrlAliasLanguageDeprecatedTest
Tests error message from deprecated UrlAliasLanguage process plugin.
@group path
@group legacy
@coversDefaultClass \Drupal\path\Plugin\migrate\process\d6\UrlAliasLanguage
Hierarchy
- class \Drupal\Tests\UnitTestCase uses \Drupal\Tests\Traits\PhpUnitWarnings, \Drupal\Tests\PhpUnitCompatibilityTrait, \Symfony\Bridge\PhpUnit\ExpectDeprecationTrait extends \PHPUnit\Framework\TestCase
- class \Drupal\Tests\migrate\Unit\MigrateTestCase extends \Drupal\Tests\UnitTestCase
- class \Drupal\Tests\migrate\Unit\process\MigrateProcessTestCase extends \Drupal\Tests\migrate\Unit\MigrateTestCase
- class \Drupal\Tests\path\Unit\migrate\process\d6\UrlAliasLanguageDeprecatedTest extends \Drupal\Tests\migrate\Unit\process\MigrateProcessTestCase
- class \Drupal\Tests\migrate\Unit\process\MigrateProcessTestCase extends \Drupal\Tests\migrate\Unit\MigrateTestCase
- class \Drupal\Tests\migrate\Unit\MigrateTestCase extends \Drupal\Tests\UnitTestCase
Expanded class hierarchy of UrlAliasLanguageDeprecatedTest
File
-
core/
modules/ path/ tests/ src/ Unit/ migrate/ process/ d6/ UrlAliasLanguageDeprecatedTest.php, line 15
Namespace
Drupal\Tests\path\Unit\migrate\process\d6View source
class UrlAliasLanguageDeprecatedTest extends MigrateProcessTestCase {
/**
* Tests legacy UrlAliasLanguage process plugin.
*/
public function testUrlAliasLanguageDeprecation() {
$this->expectDeprecation("Drupal\\path\\Plugin\\migrate\\process\\d6\\UrlAliasLanguage is deprecated in drupal:9.3.0 and is removed from drupal:10.0.0. No direct replacement is provided. See https://www.drupal.org/node/3219051");
new UrlAliasLanguage([], 'test', []);
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.