summaryrefslogtreecommitdiffstats
path: root/core/modules/field/src/Tests/DisplayApiTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/modules/field/src/Tests/DisplayApiTest.php')
-rw-r--r--core/modules/field/src/Tests/DisplayApiTest.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/core/modules/field/src/Tests/DisplayApiTest.php b/core/modules/field/src/Tests/DisplayApiTest.php
index 6fc8174..eff812b 100644
--- a/core/modules/field/src/Tests/DisplayApiTest.php
+++ b/core/modules/field/src/Tests/DisplayApiTest.php
@@ -119,6 +119,9 @@ class DisplayApiTest extends FieldUnitTestBase {
function testFieldItemListView() {
$items = $this->entity->get($this->fieldName);
+ \Drupal::service('theme_handler')->install(['classy']);
+ $this->config('system.theme')->set('default', 'classy')->save();
+
// No display settings: check that default display settings are used.
$build = $items->view();
$this->render($build);