You are here

public function ThemeTest::testNegotiatorPriorities in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/system/src/Tests/Theme/ThemeTest.php \Drupal\system\Tests\Theme\ThemeTest::testNegotiatorPriorities()

Tests the priority of some theme negotiators.

File

core/modules/system/src/Tests/Theme/ThemeTest.php, line 130
Contains \Drupal\system\Tests\Theme\ThemeTest.

Class

ThemeTest
Tests low-level theme functions.

Namespace

Drupal\system\Tests\Theme

Code

public function testNegotiatorPriorities() {
  $this
    ->drupalGet('theme-test/priority');

  // Ensure that the custom theme negotiator was not able to set the theme.
  $this
    ->assertNoText('Theme hook implementor=test_theme_theme_test__suggestion(). Foo=template_preprocess_theme_test', 'Theme hook suggestion ran with data available from a preprocess function for the base hook.');
}