Issue #2558079 by Aki Tendo, Jo Fitzgerald, Wim Leers, borisson_: Assertions in DrupalTemplateTwigExtension