Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 563f0de

Browse files
committed
minor EasyCorp#995 Improved tests for the "search" view (javiereguiluz)
This PR was merged into the master branch. Discussion ---------- Improved tests for the "search" view We've fixed the same problem three times: here (https://github.com/javiereguiluz/EasyAdminBundle/pull/894), here (https://github.com/javiereguiluz/EasyAdminBundle/pull/863) and here (https://github.com/javiereguiluz/EasyAdminBundle/pull/994). Let's improve the test to forget about this issue forever. Commits ------- a4a36ea Improved tests for the "search" view
2 parents a8be8ae + a4a36ea commit 563f0de

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Tests/Controller/DefaultBackendTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -490,8 +490,8 @@ public function testSearchViewTitle()
490490
{
491491
$crawler = $this->requestSearchView();
492492

493-
$this->assertEquals('200 results found', trim($crawler->filter('head title')->text()));
494-
$this->assertEquals('200 results found', trim($crawler->filter('h1.title')->text()));
493+
$this->assertEquals('200 results found', trim($crawler->filter('head title')->html()), 'The page title does not contain HTML tags.');
494+
$this->assertEquals('<strong>200</strong> results found', trim($crawler->filter('h1.title')->html()), 'The visible content contains HTML tags.');
495495
}
496496

497497
public function testSearchViewTableIdColumn()

0 commit comments

Comments
 (0)