From e3c57ea103792880777f8aa42cbc95664de171bf Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Thu, 19 Mar 2020 21:21:19 +0000 Subject: [PATCH] 4g: Install filter config Install the configuration from the filter module, so that there are filters created and to avoid the `id() on bool` error. This fails are there is a missing database table. --- .../my_module/tests/src/Kernel/ArticleRepositoryTest.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/web/modules/custom/my_module/tests/src/Kernel/ArticleRepositoryTest.php b/web/modules/custom/my_module/tests/src/Kernel/ArticleRepositoryTest.php index 8fae5b9..91e3fc5 100644 --- a/web/modules/custom/my_module/tests/src/Kernel/ArticleRepositoryTest.php +++ b/web/modules/custom/my_module/tests/src/Kernel/ArticleRepositoryTest.php @@ -15,6 +15,14 @@ class ArticleRepositoryTest extends EntityKernelTestBase { 'my_module', ]; + protected function setUp() { + parent::setUp(); + + $this->installConfig([ + 'filter', + ]); + } + /** @test */ public function nodes_that_are_not_articles_are_not_returned() { $this->createNode(['type' => 'article'])->save();