X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fcore%2Ftests%2FDrupal%2FTests%2FCore%2FTemplate%2FTwigSandboxTest.php;h=cf39a8bb3ab19b8a53b4ab9003ff2ec7f18824e4;hp=e599463485a8f6f276d58a36c0af2aacb96d4001;hb=9917807b03b64faf00f6a1f29dcb6eafc454efa5;hpb=aea91e65e895364e460983b890e295aa5d5540a5 diff --git a/web/core/tests/Drupal/Tests/Core/Template/TwigSandboxTest.php b/web/core/tests/Drupal/Tests/Core/Template/TwigSandboxTest.php index e59946348..cf39a8bb3 100644 --- a/web/core/tests/Drupal/Tests/Core/Template/TwigSandboxTest.php +++ b/web/core/tests/Drupal/Tests/Core/Template/TwigSandboxTest.php @@ -16,6 +16,7 @@ use Drupal\Tests\UnitTestCase; * Tests the twig sandbox policy. * * @group Template + * @group legacy * * @coversDefaultClass \Drupal\Core\Template\TwigSandboxPolicy */ @@ -84,14 +85,14 @@ class TwigSandboxTest extends UnitTestCase { ->with('test') ->willReturn(TRUE); $result = $this->twig->render('{{ entity.hasLinkTemplate("test") }}', ['entity' => $entity]); - $this->assertTrue((bool)$result, 'Sandbox policy allows has* functions to be called.'); + $this->assertTrue((bool) $result, 'Sandbox policy allows has* functions to be called.'); $entity = $this->getMock('Drupal\Core\Entity\EntityInterface'); $entity->expects($this->atLeastOnce()) ->method('isNew') ->willReturn(TRUE); $result = $this->twig->render('{{ entity.isNew }}', ['entity' => $entity]); - $this->assertTrue((bool)$result, 'Sandbox policy allows is* functions to be called.'); + $this->assertTrue((bool) $result, 'Sandbox policy allows is* functions to be called.'); $entity = $this->getMock('Drupal\Core\Entity\EntityInterface'); $entity->expects($this->atLeastOnce())