diff --git a/core/modules/migrate/tests/src/Kernel/MigrateBundleTest.php b/core/modules/migrate/tests/src/Kernel/MigrateBundleTest.php index b6c3051330..1aaba4bd07 100644 --- a/core/modules/migrate/tests/src/Kernel/MigrateBundleTest.php +++ b/core/modules/migrate/tests/src/Kernel/MigrateBundleTest.php @@ -18,7 +18,7 @@ class MigrateBundleTest extends MigrateTestBase { * * @var array */ - public static $modules = ['taxonomy', 'text', 'user']; + public static $modules = ['filter', 'taxonomy', 'text']; /** * {@inheritdoc} diff --git a/core/modules/migrate/tests/src/Kernel/MigrateRollbackTest.php b/core/modules/migrate/tests/src/Kernel/MigrateRollbackTest.php index de1666be63..886c86dc97 100644 --- a/core/modules/migrate/tests/src/Kernel/MigrateRollbackTest.php +++ b/core/modules/migrate/tests/src/Kernel/MigrateRollbackTest.php @@ -20,7 +20,7 @@ class MigrateRollbackTest extends MigrateTestBase { * * @var array */ - public static $modules = ['field', 'taxonomy', 'text', 'user']; + public static $modules = ['field', 'filter', 'taxonomy', 'text']; /** * {@inheritdoc} diff --git a/core/modules/search/tests/src/Functional/SearchPageCacheTagsTest.php b/core/modules/search/tests/src/Functional/SearchPageCacheTagsTest.php index 2b36a33c4f..fbee603aad 100644 --- a/core/modules/search/tests/src/Functional/SearchPageCacheTagsTest.php +++ b/core/modules/search/tests/src/Functional/SearchPageCacheTagsTest.php @@ -181,6 +181,7 @@ public function testSearchTagsBubbling() { // Default search cache tags. $default_search_tags = [ + 'config:filter.format.plain_text', 'config:search.page.node_search', 'search_index', 'search_index:node_search', diff --git a/core/modules/taxonomy/tests/src/Kernel/Migrate/MigrateTaxonomyTermStubTest.php b/core/modules/taxonomy/tests/src/Kernel/Migrate/MigrateTaxonomyTermStubTest.php index 2da51e4a43..649dcb6ae4 100644 --- a/core/modules/taxonomy/tests/src/Kernel/Migrate/MigrateTaxonomyTermStubTest.php +++ b/core/modules/taxonomy/tests/src/Kernel/Migrate/MigrateTaxonomyTermStubTest.php @@ -20,7 +20,12 @@ class MigrateTaxonomyTermStubTest extends MigrateDrupalTestBase { /** * {@inheritdoc} */ - public static $modules = ['taxonomy', 'text', 'taxonomy_term_stub_test']; + public static $modules = [ + 'filter', + 'taxonomy', + 'text', + 'taxonomy_term_stub_test', + ]; /** * {@inheritdoc} diff --git a/core/modules/taxonomy/tests/src/Kernel/Migrate/d7/MigrateTaxonomyTermTest.php b/core/modules/taxonomy/tests/src/Kernel/Migrate/d7/MigrateTaxonomyTermTest.php index b8b0169bbd..94e5d35765 100644 --- a/core/modules/taxonomy/tests/src/Kernel/Migrate/d7/MigrateTaxonomyTermTest.php +++ b/core/modules/taxonomy/tests/src/Kernel/Migrate/d7/MigrateTaxonomyTermTest.php @@ -17,6 +17,7 @@ class MigrateTaxonomyTermTest extends MigrateDrupal7TestBase { 'comment', 'content_translation', 'datetime', + 'filter', 'image', 'language', 'link', diff --git a/core/modules/taxonomy/tests/src/Kernel/PendingRevisionTest.php b/core/modules/taxonomy/tests/src/Kernel/PendingRevisionTest.php index e4b2cc051c..9436edd00a 100644 --- a/core/modules/taxonomy/tests/src/Kernel/PendingRevisionTest.php +++ b/core/modules/taxonomy/tests/src/Kernel/PendingRevisionTest.php @@ -20,7 +20,7 @@ class PendingRevisionTest extends KernelTestBase { /** * {@inheritdoc} */ - public static $modules = ['taxonomy', 'node', 'user', 'text', 'field', 'system']; + public static $modules = ['taxonomy', 'node', 'user', 'text', 'field', 'filter', 'system']; /** * {@inheritdoc} diff --git a/core/modules/taxonomy/tests/src/Kernel/Views/TaxonomyViewsFieldAccessTest.php b/core/modules/taxonomy/tests/src/Kernel/Views/TaxonomyViewsFieldAccessTest.php index e62232befd..6608278a11 100644 --- a/core/modules/taxonomy/tests/src/Kernel/Views/TaxonomyViewsFieldAccessTest.php +++ b/core/modules/taxonomy/tests/src/Kernel/Views/TaxonomyViewsFieldAccessTest.php @@ -16,7 +16,7 @@ class TaxonomyViewsFieldAccessTest extends FieldFieldAccessTestBase { /** * {@inheritdoc} */ - public static $modules = ['taxonomy', 'text', 'entity_test']; + public static $modules = ['filter', 'taxonomy', 'text', 'entity_test']; /** * {@inheritdoc} diff --git a/core/modules/text/src/Plugin/Field/FieldType/TextItemBase.php b/core/modules/text/src/Plugin/Field/FieldType/TextItemBase.php index e70fadacb1..1de5597a98 100644 --- a/core/modules/text/src/Plugin/Field/FieldType/TextItemBase.php +++ b/core/modules/text/src/Plugin/Field/FieldType/TextItemBase.php @@ -49,7 +49,9 @@ public function applyDefaultValue($notify = TRUE) { */ public function isEmpty() { $value = $this->get('value')->getValue(); - return $value === NULL || $value === ''; + $format = $this->get('format')->getValue(); + + return ($value === NULL || $value === '') && ($format === NULL || $format === ''); } /** diff --git a/core/modules/tracker/tests/src/Kernel/Migrate/d7/MigrateTrackerNodeTest.php b/core/modules/tracker/tests/src/Kernel/Migrate/d7/MigrateTrackerNodeTest.php index 3d762a959b..c2f34b905c 100644 --- a/core/modules/tracker/tests/src/Kernel/Migrate/d7/MigrateTrackerNodeTest.php +++ b/core/modules/tracker/tests/src/Kernel/Migrate/d7/MigrateTrackerNodeTest.php @@ -16,7 +16,7 @@ class MigrateTrackerNodeTest extends MigrateDrupal7TestBase { * {@inheritdoc} */ public static $modules = [ - 'menu_ui', + 'filter', 'node', 'text', 'tracker', diff --git a/core/modules/tracker/tests/src/Kernel/Migrate/d7/MigrateTrackerUserTest.php b/core/modules/tracker/tests/src/Kernel/Migrate/d7/MigrateTrackerUserTest.php index 8d1f80e832..8c5d58d414 100644 --- a/core/modules/tracker/tests/src/Kernel/Migrate/d7/MigrateTrackerUserTest.php +++ b/core/modules/tracker/tests/src/Kernel/Migrate/d7/MigrateTrackerUserTest.php @@ -16,7 +16,7 @@ class MigrateTrackerUserTest extends MigrateDrupal7TestBase { * {@inheritdoc} */ public static $modules = [ - 'menu_ui', + 'filter', 'node', 'text', 'tracker', diff --git a/core/tests/Drupal/KernelTests/Core/Theme/TwigWhiteListTest.php b/core/tests/Drupal/KernelTests/Core/Theme/TwigWhiteListTest.php index 6721e5cb0b..d2fd464d17 100644 --- a/core/tests/Drupal/KernelTests/Core/Theme/TwigWhiteListTest.php +++ b/core/tests/Drupal/KernelTests/Core/Theme/TwigWhiteListTest.php @@ -35,7 +35,16 @@ class TwigWhiteListTest extends KernelTestBase { /** * {@inheritdoc} */ - public static $modules = ['node', 'taxonomy', 'user', 'system', 'text', 'field', 'entity_reference']; + public static $modules = [ + 'filter', + 'node', + 'taxonomy', + 'user', + 'system', + 'text', + 'field', + 'entity_reference', + ]; /** * {@inheritdoc}