X-Git-Url: http://www.aleph1.co.uk/gitweb/?a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Fsimpletest%2Fsrc%2FAssertContentTrait.php;h=3c33e5879fe1c866ce32f0635758546a141703f6;hb=9917807b03b64faf00f6a1f29dcb6eafc454efa5;hp=5a6c8c06ef5ed68c78fec8ff82650967a607d345;hpb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;p=yaffs-website diff --git a/web/core/modules/simpletest/src/AssertContentTrait.php b/web/core/modules/simpletest/src/AssertContentTrait.php index 5a6c8c06e..3c33e5879 100644 --- a/web/core/modules/simpletest/src/AssertContentTrait.php +++ b/web/core/modules/simpletest/src/AssertContentTrait.php @@ -874,7 +874,7 @@ trait AssertContentTrait { // The string cast is necessary because theme functions return // MarkupInterface objects. This means we can assert that $expected // matches the theme output without having to worry about 0 == ''. - $output = (string) $renderer->executeInRenderContext(new RenderContext(), function() use ($callback, $variables) { + $output = (string) $renderer->executeInRenderContext(new RenderContext(), function () use ($callback, $variables) { return \Drupal::theme()->render($callback, $variables); }); $this->verbose(