only in patch2: unchanged: --- a/core/tests/Drupal/KernelTests/Core/Entity/RouteProviderTest.php +++ b/core/tests/Drupal/KernelTests/Core/Entity/RouteProviderTest.php @@ -84,13 +84,13 @@ public function testHtmlRoutes() { $entity->save(); $this->setRawContent($this->httpKernelHandle($entity->toUrl()->toString())); - $this->assertTitle('Test title | '); + $this->assertSession()->titleEquals('Test title | '); $this->setRawContent($this->httpKernelHandle($entity->toUrl('edit-form')->toString())); - $this->assertTitle('Edit Test title | '); + $this->assertSession()->titleEquals('Edit Test title | '); $this->setRawContent($this->httpKernelHandle($entity->toUrl('delete-form')->toString())); - $this->assertTitle('Are you sure you want to delete the test entity - data table Test title? | '); + $this->assertSession()->titleEquals('Are you sure you want to delete the test entity - data table Test title? | '); } /** @@ -127,13 +127,13 @@ public function testAdminHtmlRoutes() { $entity->save(); $this->setRawContent($this->httpKernelHandle($entity->toUrl()->toString())); - $this->assertTitle('Test title | '); + $this->assertSession()->titleEquals('Test title | '); $this->setRawContent($this->httpKernelHandle($entity->toUrl('edit-form')->toString())); - $this->assertTitle('Edit Test title | '); + $this->assertSession()->titleEquals('Edit Test title | '); $this->setRawContent($this->httpKernelHandle($entity->toUrl('delete-form')->toString())); - $this->assertTitle('Are you sure you want to delete the test entity - admin routes Test title? | '); + $this->assertSession()->titleEquals('Are you sure you want to delete the test entity - admin routes Test title? | '); } }