Issue #3143096 by jedihe, jyotimishra123, shetpooja04, alexpott, mradcliffe:...
Issue #3143096 by jedihe, jyotimishra123, shetpooja04, alexpott, mradcliffe: [DX]: throw an exception if #lazy_builder callback does not return a (renderable) array
(cherry picked from commit e9a53cb2)
$this->expectExceptionMessage('#lazy_builder callbacks must return a valid renderable array, got boolean from Drupal\Tests\Core\Render\PlaceholdersTest::callbackNonArrayReturn');
$this->renderer->renderRoot($element);
}
/**
* Tests lazy builders (array callable) that do not return a renderable.
$this->expectExceptionMessage('#lazy_builder callbacks must return a valid renderable array, got boolean from Drupal\Tests\Core\Render\PlaceholdersTest::callbackNonArrayReturn');
$this->renderer->renderRoot($element);
}
/**
* Tests lazy builders (closure) that do not return a renderable.