diff -u b/core/tests/Drupal/Tests/Core/Batch/BatchNotFoundTest.php b/core/tests/Drupal/Tests/Core/Batch/BatchNotFoundTest.php --- b/core/tests/Drupal/Tests/Core/Batch/BatchNotFoundTest.php +++ b/core/tests/Drupal/Tests/Core/Batch/BatchNotFoundTest.php @@ -10,7 +10,7 @@ use Drupal\simpletest\WebTestBase; /** - * Tests if Drupal returns page not found error when batch Id does not exist. + * Tests if Drupal returns page not found error when batch ID does not exist. * * @group Batch */ @@ -35,7 +35,7 @@ /** * Tests for page not found error if batch ID does not exist. */ - function testBatchNotFound() { + public function testBatchNotFound() { $this->drupalLogin($this->user); $batch_id = mt_rand(0, 1000); @@ -47,7 +47,7 @@ ), )); - $this->assertResponse(404, 'The requested page could not be found. '); + $this->assertResponse(404); } }