/**
  * {@inheritdoc}
  */
 protected function setUp()
 {
     // Disable the required cache contexts, so that this test can test just the
     // placeholder replacement behavior.
     $this->rendererConfig['required_cache_contexts'] = [];
     parent::setUp();
 }
Example #2
0
 /**
  * {@inheritdoc}
  */
 protected function setUp() {
   parent::setUp();
   // Reset the static list of SafeStrings to prevent bleeding between tests.
   $reflected_class = new \ReflectionClass('\Drupal\Component\Utility\SafeMarkup');
   $reflected_property = $reflected_class->getProperty('safeStrings');
   $reflected_property->setAccessible(true);
   $reflected_property->setValue([]);
 }
 /**
  * {@inheritdoc}
  */
 protected function setUp()
 {
     // Disable the required cache contexts, so that this test can test just the
     // bubbling behavior.
     $this->rendererConfig['required_cache_contexts'] = [];
     parent::setUp();
     $this->setUpRequest();
     $this->setupMemoryCache();
 }
 /**
  * {@inheritdoc}
  */
 protected function setUp()
 {
     parent::setUp();
     $this->setUpRequest();
     $this->setupMemoryCache();
 }