Issue #2646766 by neclimdul: TwigSandboxTest::testExtendedClass() doen't test anything

8.1.x
Alex Pott 2016-01-19 14:29:07 +00:00
parent 991bb0856b
commit c9ee3b52b9
1 changed files with 1 additions and 1 deletions

View File

@ -69,7 +69,7 @@ class TwigSandboxTest extends UnitTestCase {
* Tests that white listed classes can be extended.
*/
public function testExtendedClass() {
$this->twig->render('{{ attribute.addClass("kitten") }}', ['attribute' => new TestAttribute()]);
$this->assertEquals(' class="kitten"', $this->twig->render('{{ attribute.addClass("kitten") }}', ['attribute' => new TestAttribute()]));
}
/**