8000 Remove Spaceless Blocks From Twig Templates by chrisguitarguy · Pull Request #11278 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

Remove Spaceless Blocks From Twig Templates #11278

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 9 commits into from
Prev Previous commit
Next Next commit
Only Assert That Attribute is Not Present
No need to match against the whole string: only confirm that `false`
attributes are not present.
  • Loading branch information
chrisguitarguy committed Jul 3, 2014
commit de4a268afd9919c4568db0963a745934087119ad
6 A688 changes: 2 additions & 4 deletions src/Symfony/Component/Form/Tests/AbstractLayoutTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -1929,8 +1929,7 @@ public function testWidgetAttributeHiddenIfFalse()

$html = $this->renderWidget($form->createView());

// no foo
$this->assertSame('<input type="text" id="text" name="text" required="required" value="value" />', $html);
$this->assertNotContains('foo="', $html);
}

public function testButtonAttributes()
Expand Down Expand Up @@ -1966,8 +1965,7 @@ public function testButtonAttributeHiddenIfFalse()

$html = $this->renderWidget($form->createView());

// no foo
$this->assertSame('<button type="button" id="button" name="button">[trans]Button[/trans]</button>', $html);
$this->assertNotContains('foo="', $html);
}

public function testTextareaWithWhitespaceOnlyContentRetainsValue()
Expand Down
0