Issue #3155495 Refactor system/Kernel/Theme/ThemeTest::testThemeDataTypes
Open
requested to merge issue/drupal-3155495:3155495-refactor-systemkernelthemethemetesttestthemedatatypes into 11.x
1 unresolved thread
Compare changes
@@ -55,16 +55,19 @@ public function testThemeDataTypes(): void {
@@ -55,16 +55,19 @@ public function testThemeDataTypes(): void {
$types = ['null' => NULL, 'false' => FALSE, 'integer' => 1, 'string' => 'foo', 'empty_string' => ''];
$this->assertTrue($output instanceof MarkupInterface || is_string($output), "\Drupal::theme() returns an object that implements MarkupInterface or a string for data type $type.");
I had to read this a few times. At first I thought, "// Check a string is returned when the theme should return an empty string." would be better. But I think this can be even simpler.