function BcEngineTest::testPage

Tests that .engine theme engines still work.

File

core/modules/system/tests/src/Functional/Theme/BcEngineTest.php, line 28

Class

BcEngineTest
Tests theme engine BC layer.

Namespace

Drupal\Tests\system\Functional\Theme

Code

public function testPage() : void {
  $this->expectDeprecation('Drupal\\Core\\Theme\\ActiveTheme::getOwner() is deprecated in drupal:11.3.0 and is removed from drupal:12.0.0. Theme engines are now tagged services instead of extensions. See https://www.drupal.org/node/3547356');
  $this->expectDeprecation('Using .engine files for theme engines is deprecated in drupal:11.3.0 and is removed from drupal:12.0.0. Convert test_theme_engine.engine to a service. See https://www.drupal.org/node/3547356');
  $this->drupalGet('');
  $this->assertSession()
    ->statusCodeEquals(200);
}

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