diff --git a/core/tests/Drupal/KernelTests/Core/Test/BrowserTestBaseTest.php b/core/tests/Drupal/KernelTests/Core/Test/BrowserTestBaseTest.php
index c93069c8e4..b41022ac19 100644
--- a/core/tests/Drupal/KernelTests/Core/Test/BrowserTestBaseTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Test/BrowserTestBaseTest.php
@@ -37,7 +37,7 @@ public function testMethodRequiresModule() {
       $this->fail('Missing required module throws skipped test exception.');
     }
     catch (\PHPUnit_Framework_SkippedTestError $e) {
-      $this->assertEqual('Required modules: module_does_not_exist', $e->getMessage());
+      $this->assertEquals('Required modules: module_does_not_exist', $e->getMessage());
     }
   }
 
@@ -64,7 +64,7 @@ public function testRequiresModule() {
       $this->fail('Missing required module throws skipped test exception.');
     }
     catch (\PHPUnit_Framework_SkippedTestError $e) {
-      $this->assertEqual('Required modules: module_does_not_exist', $e->getMessage());
+      $this->assertEquals('Required modules: module_does_not_exist', $e->getMessage());
     }
   }
 
