Skip to content

Commit

Permalink
avoid deprecation notices while running tests with Symfony 4.4
Browse files Browse the repository at this point in the history
  • Loading branch information
craue committed Nov 1, 2019
1 parent 5bb3336 commit 0e4251d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Tests/IntegrationTestCase.php
Expand Up @@ -159,7 +159,7 @@ private function getNodeAttribute($selector, $attribute, Crawler $crawler) {
*/
private function getNodeText($selector, Crawler $crawler) {
try {
return $crawler->filter($selector)->text();
return $crawler->filter($selector)->text(null, true);
} catch (\InvalidArgumentException $e) {
$this->fail(sprintf("No node found for selector '%s'. Content:\n%s", $selector, static::$client->getResponse()->getContent()));
}
Expand Down
1 change: 1 addition & 0 deletions Tests/config/config.yml
Expand Up @@ -29,3 +29,4 @@ security:
twig:
debug: '%kernel.debug%'
strict_variables: '%kernel.debug%'
exception_controller: ~

0 comments on commit 0e4251d

Please sign in to comment.