function LegacyAssetTest::testDeprecatedDrupalFlushCssJs
Same name in other branches
- 10 core/tests/Drupal/KernelTests/Core/Asset/LegacyAssetTest.php \Drupal\KernelTests\Core\Asset\LegacyAssetTest::testDeprecatedDrupalFlushCssJs()
Tests the deprecation.
File
-
core/
tests/ Drupal/ KernelTests/ Core/ Asset/ LegacyAssetTest.php, line 18
Class
- LegacyAssetTest
- Tests deprecated asset functions.
Namespace
Drupal\KernelTests\Core\AssetCode
public function testDeprecatedDrupalFlushCssJs() : void {
$this->expectDeprecation('_drupal_flush_css_js is deprecated in drupal:10.2.0 and is removed from drupal:11.0.0. Use \\Drupal\\Core\\Asset\\AssetQueryStringInterface::reset() instead. See https://www.drupal.org/node/3358337');
_drupal_flush_css_js();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.