diff --git a/core/tests/Drupal/KernelTests/Core/Form/ExternalFormUrlTest.php b/core/tests/Drupal/KernelTests/Core/Form/ExternalFormUrlTest.php
index f3fbc4f76c..9ca5e62214 100644
--- a/core/tests/Drupal/KernelTests/Core/Form/ExternalFormUrlTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Form/ExternalFormUrlTest.php
@@ -85,7 +85,7 @@ public function testActionUrlBehavior() {
     $this->setRawContent($markup);
     $elements = $this->xpath('//form/@action');
     $action = (string) $elements[0];
-    $this->assertEqual($original_request->getSchemeAndHttpHost() . '//example.org', $action);
+    $this->assertEquals($original_request->getSchemeAndHttpHost() . '//example.org', $action);
 
     // Create a new request which has a request uri with a single leading slash
     // and make it the master request.
@@ -100,7 +100,7 @@ public function testActionUrlBehavior() {
     $this->setRawContent($markup);
     $elements = $this->xpath('//form/@action');
     $action = (string) $elements[0];
-    $this->assertEqual('/example.org', $action);
+    $this->assertEquals('/example.org', $action);
   }
 
 }
diff --git a/core/tests/Drupal/KernelTests/Core/Form/FormCacheTest.php b/core/tests/Drupal/KernelTests/Core/Form/FormCacheTest.php
index f6fb4f8713..21d6fc49bd 100644
--- a/core/tests/Drupal/KernelTests/Core/Form/FormCacheTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Form/FormCacheTest.php
@@ -59,9 +59,9 @@ public function testCacheToken() {
 
     $cached_form_state = new FormState();
     $cached_form = \Drupal::formBuilder()->getCache($this->formBuildId, $cached_form_state);
-    $this->assertEqual($this->form['#property'], $cached_form['#property']);
+    $this->assertEquals($this->form['#property'], $cached_form['#property']);
     $this->assertTrue(!empty($cached_form['#cache_token']), 'Form has a cache token');
-    $this->assertEqual($this->formState->get('example'), $cached_form_state->get('example'));
+    $this->assertEquals($this->formState->get('example'), $cached_form_state->get('example'));
 
     // Test that the form cache isn't loaded when the session/token has changed.
     // Change the private key. (We cannot change the session ID because this
@@ -94,9 +94,9 @@ public function testNoCacheToken() {
 
     $cached_form_state = new FormState();
     $cached_form = \Drupal::formBuilder()->getCache($this->formBuildId, $cached_form_state);
-    $this->assertEqual($this->form['#property'], $cached_form['#property']);
+    $this->assertEquals($this->form['#property'], $cached_form['#property']);
     $this->assertTrue(empty($cached_form['#cache_token']), 'Form has no cache token');
-    $this->assertEqual($this->formState->get('example'), $cached_form_state->get('example'));
+    $this->assertEquals($this->formState->get('example'), $cached_form_state->get('example'));
 
     // Restore user account.
     $account_switcher->switchBack();
diff --git a/core/tests/Drupal/KernelTests/Core/Form/FormValidationMessageOrderTest.php b/core/tests/Drupal/KernelTests/Core/Form/FormValidationMessageOrderTest.php
index 1d20340819..cf7ddb0061 100644
--- a/core/tests/Drupal/KernelTests/Core/Form/FormValidationMessageOrderTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Form/FormValidationMessageOrderTest.php
@@ -83,10 +83,10 @@ public function testLimitValidationErrors() {
     $messages = drupal_get_messages();
     $this->assertTrue(isset($messages['error']));
     $error_messages = $messages['error'];
-    $this->assertEqual($error_messages[0], 'Three field is required.');
-    $this->assertEqual($error_messages[1], 'Four field is required.');
-    $this->assertEqual($error_messages[2], 'Two field is required.');
-    $this->assertEqual($error_messages[3], 'One field is required.');
+    $this->assertEquals($error_messages[0], 'Three field is required.');
+    $this->assertEquals($error_messages[1], 'Four field is required.');
+    $this->assertEquals($error_messages[2], 'Two field is required.');
+    $this->assertEquals($error_messages[3], 'One field is required.');
   }
 
 }
diff --git a/core/tests/Drupal/KernelTests/Core/Form/TriggeringElementProgrammedTest.php b/core/tests/Drupal/KernelTests/Core/Form/TriggeringElementProgrammedTest.php
index b2552c8cca..eb418f3313 100644
--- a/core/tests/Drupal/KernelTests/Core/Form/TriggeringElementProgrammedTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Form/TriggeringElementProgrammedTest.php
@@ -54,7 +54,7 @@ public function buildForm(array $form, FormStateInterface $form_state) {
    */
   public function validateForm(array &$form, FormStateInterface $form_state) {
     // Verify that the only submit button was recognized as triggering_element.
-    $this->assertEqual($form['actions']['submit']['#array_parents'], $form_state->getTriggeringElement()['#array_parents']);
+    $this->assertEquals($form['actions']['submit']['#array_parents'], $form_state->getTriggeringElement()['#array_parents']);
   }
 
   /**
