LegacyAssetTest.php

Same filename and directory in other branches
  1. 10 core/tests/Drupal/KernelTests/Core/Asset/LegacyAssetTest.php

Namespace

Drupal\KernelTests\Core\Asset

File

core/tests/Drupal/KernelTests/Core/Asset/LegacyAssetTest.php

View source
<?php

namespace Drupal\KernelTests\Core\Asset;

use Drupal\KernelTests\KernelTestBase;

/**
 * Tests deprecated asset functions.
 *
 * @group Asset
 * @group legacy
 */
class LegacyAssetTest extends KernelTestBase {
    
    /**
     * Tests the deprecation.
     */
    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();
    }

}

Classes

Title Deprecated Summary
LegacyAssetTest Tests deprecated asset functions.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.