Skip to content

Commit

Permalink
Replace assertResponse with ->assertSession()->statusCodeEquals(); (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
LOBsTerr authored and jmolivas committed Jan 8, 2018
1 parent e11c3ba commit 7af7c4b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion templates/module/src/Tests/js-test.php.twig
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,6 @@ class {{ class }} extends JavaScriptTestBase {% endblock %}
public function testFrontpage() {
$this->drupalGet(Url::fromRoute('<front>'));
$page = $this->getSession()->getPage();
$this->assertResponse(200);
$this->assertSession()->statusCodeEquals(200);
}
{% endblock %}
2 changes: 1 addition & 1 deletion templates/module/src/Tests/load-test.php.twig
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,6 @@ class LoadTest extends BrowserTestBase {% endblock %}
*/
public function testLoad() {
$this->drupalGet(Url::fromRoute('<front>'));
$this->assertResponse(200);
$this->assertSession()->statusCodeEquals(200);
}
{% endblock %}

0 comments on commit 7af7c4b

Please sign in to comment.