diff --git a/core/modules/action/tests/src/Functional/BulkFormTest.php b/core/modules/action/tests/src/Functional/BulkFormTest.php
index 439ffe4d6d..2a564d2111 100644
--- a/core/modules/action/tests/src/Functional/BulkFormTest.php
+++ b/core/modules/action/tests/src/Functional/BulkFormTest.php
@@ -106,7 +106,7 @@ public function testBulkForm() {
 
     $this->drupalGet('test_bulk_form');
     $options = $this->xpath('//select[@id=:id]/option', [':id' => 'edit-action']);
-    $this->assertEqual(count($options), 2);
+    $this->assertEquals(count($options), 2);
     $this->assertOption('edit-action', 'node_make_sticky_action');
     $this->assertOption('edit-action', 'node_make_unsticky_action');
 
@@ -123,7 +123,7 @@ public function testBulkForm() {
     // Check the default title.
     $this->drupalGet('test_bulk_form');
     $result = $this->xpath('//label[@for="edit-action"]');
-    $this->assertEqual('Action', $result[0]->getText());
+    $this->assertEquals('Action', $result[0]->getText());
 
     // Setup up a different bulk form title.
     $view = Views::getView('test_bulk_form');
@@ -133,7 +133,7 @@ public function testBulkForm() {
 
     $this->drupalGet('test_bulk_form');
     $result = $this->xpath('//label[@for="edit-action"]');
-    $this->assertEqual('Test title', $result[0]->getText());
+    $this->assertEquals('Test title', $result[0]->getText());
 
     $this->drupalGet('test_bulk_form');
     // Call the node delete action.
diff --git a/core/modules/aggregator/src/Tests/AggregatorTestBase.php b/core/modules/aggregator/src/Tests/AggregatorTestBase.php
index f42248975a..10f95b213d 100644
--- a/core/modules/aggregator/src/Tests/AggregatorTestBase.php
+++ b/core/modules/aggregator/src/Tests/AggregatorTestBase.php
@@ -187,7 +187,7 @@ public function updateFeedItems(FeedInterface $feed, $expected_count = NULL) {
 
     if ($expected_count !== NULL) {
       $feed->item_count = count($feed->items);
-      $this->assertEqual($expected_count, $feed->item_count, format_string('Total items in feed equal to the total items in database (@val1 != @val2)', ['@val1' => $expected_count, '@val2' => $feed->item_count]));
+      $this->assertEquals($expected_count, $feed->item_count, format_string('Total items in feed equal to the total items in database (@val1 != @val2)', ['@val1' => $expected_count, '@val2' => $feed->item_count]));
     }
   }
 
diff --git a/core/modules/aggregator/tests/src/Functional/AggregatorAdminTest.php b/core/modules/aggregator/tests/src/Functional/AggregatorAdminTest.php
index 4b278d6247..e034af1b94 100644
--- a/core/modules/aggregator/tests/src/Functional/AggregatorAdminTest.php
+++ b/core/modules/aggregator/tests/src/Functional/AggregatorAdminTest.php
@@ -65,7 +65,7 @@ public function testOverviewPage() {
 
     $result = $this->xpath('//table/tbody/tr');
     // Check if the amount of feeds in the overview matches the amount created.
-    $this->assertEqual(1, count($result), 'Created feed is found in the overview');
+    $this->assertEquals(1, count($result), 'Created feed is found in the overview');
     // Check if the fields in the table match with what's expected.
     $link = $this->xpath('//table/tbody/tr//td[1]/a');
     $this->assertEquals($feed->label(), $link[0]->getText());
diff --git a/core/modules/aggregator/tests/src/Functional/AggregatorCronTest.php b/core/modules/aggregator/tests/src/Functional/AggregatorCronTest.php
index bb7c90ae32..344afd6a02 100644
--- a/core/modules/aggregator/tests/src/Functional/AggregatorCronTest.php
+++ b/core/modules/aggregator/tests/src/Functional/AggregatorCronTest.php
@@ -21,11 +21,11 @@ public function testCron() {
     $this->createSampleNodes();
     $feed = $this->createFeed();
     $this->cronRun();
-    $this->assertEqual(5, db_query('SELECT COUNT(*) FROM {aggregator_item} WHERE fid = :fid', [':fid' => $feed->id()])->fetchField());
+    $this->assertEquals(5, db_query('SELECT COUNT(*) FROM {aggregator_item} WHERE fid = :fid', [':fid' => $feed->id()])->fetchField());
     $this->deleteFeedItems($feed);
-    $this->assertEqual(0, db_query('SELECT COUNT(*) FROM {aggregator_item} WHERE fid = :fid', [':fid' => $feed->id()])->fetchField());
+    $this->assertEquals(0, db_query('SELECT COUNT(*) FROM {aggregator_item} WHERE fid = :fid', [':fid' => $feed->id()])->fetchField());
     $this->cronRun();
-    $this->assertEqual(5, db_query('SELECT COUNT(*) FROM {aggregator_item} WHERE fid = :fid', [':fid' => $feed->id()])->fetchField());
+    $this->assertEquals(5, db_query('SELECT COUNT(*) FROM {aggregator_item} WHERE fid = :fid', [':fid' => $feed->id()])->fetchField());
 
     // Test feed locking when queued for update.
     $this->deleteFeedItems($feed);
@@ -36,7 +36,7 @@ public function testCron() {
       ])
       ->execute();
     $this->cronRun();
-    $this->assertEqual(0, db_query('SELECT COUNT(*) FROM {aggregator_item} WHERE fid = :fid', [':fid' => $feed->id()])->fetchField());
+    $this->assertEquals(0, db_query('SELECT COUNT(*) FROM {aggregator_item} WHERE fid = :fid', [':fid' => $feed->id()])->fetchField());
     db_update('aggregator_feed')
       ->condition('fid', $feed->id())
       ->fields([
@@ -44,7 +44,7 @@ public function testCron() {
       ])
       ->execute();
     $this->cronRun();
-    $this->assertEqual(5, db_query('SELECT COUNT(*) FROM {aggregator_item} WHERE fid = :fid', [':fid' => $feed->id()])->fetchField());
+    $this->assertEquals(5, db_query('SELECT COUNT(*) FROM {aggregator_item} WHERE fid = :fid', [':fid' => $feed->id()])->fetchField());
   }
 
 }
diff --git a/core/modules/aggregator/tests/src/Functional/AggregatorRenderingTest.php b/core/modules/aggregator/tests/src/Functional/AggregatorRenderingTest.php
index 37e6470847..293c8a3606 100644
--- a/core/modules/aggregator/tests/src/Functional/AggregatorRenderingTest.php
+++ b/core/modules/aggregator/tests/src/Functional/AggregatorRenderingTest.php
@@ -128,7 +128,7 @@ public function testFeedPage() {
     $this->drupalLogin($this->adminUser);
     $this->drupalGet('aggregator/rss');
     $this->assertResponse(200);
-    $this->assertEqual($this->drupalGetHeader('Content-type'), 'application/rss+xml; charset=utf-8');
+    $this->assertEquals($this->drupalGetHeader('Content-type'), 'application/rss+xml; charset=utf-8');
 
     // Check the opml aggregator page.
     $this->drupalGet('aggregator/opml');
diff --git a/core/modules/aggregator/tests/src/Functional/AggregatorTestBase.php b/core/modules/aggregator/tests/src/Functional/AggregatorTestBase.php
index ddd98bb82f..39317693b3 100644
--- a/core/modules/aggregator/tests/src/Functional/AggregatorTestBase.php
+++ b/core/modules/aggregator/tests/src/Functional/AggregatorTestBase.php
@@ -184,7 +184,7 @@ public function updateFeedItems(FeedInterface $feed, $expected_count = NULL) {
 
     if ($expected_count !== NULL) {
       $feed->item_count = count($feed->items);
-      $this->assertEqual($expected_count, $feed->item_count, format_string('Total items in feed equal to the total items in database (@val1 != @val2)', ['@val1' => $expected_count, '@val2' => $feed->item_count]));
+      $this->assertEquals($expected_count, $feed->item_count, format_string('Total items in feed equal to the total items in database (@val1 != @val2)', ['@val1' => $expected_count, '@val2' => $feed->item_count]));
     }
   }
 
diff --git a/core/modules/aggregator/tests/src/Functional/DeleteFeedTest.php b/core/modules/aggregator/tests/src/Functional/DeleteFeedTest.php
index 7d75696281..916ecc46c0 100644
--- a/core/modules/aggregator/tests/src/Functional/DeleteFeedTest.php
+++ b/core/modules/aggregator/tests/src/Functional/DeleteFeedTest.php
@@ -36,7 +36,7 @@ public function testDeleteFeed() {
     $this->assertText($feed2->label());
     $block_storage = $this->container->get('entity.manager')->getStorage('block');
     $this->assertNull($block_storage->load($block->id()), 'Block for the deleted feed was deleted.');
-    $this->assertEqual($block2->id(), $block_storage->load($block2->id())->id(), 'Block for not deleted feed still exists.');
+    $this->assertEquals($block2->id(), $block_storage->load($block2->id())->id(), 'Block for not deleted feed still exists.');
 
     // Check feed source.
     $this->drupalGet('aggregator/sources/' . $feed1->id());
diff --git a/core/modules/aggregator/tests/src/Functional/FeedLanguageTest.php b/core/modules/aggregator/tests/src/Functional/FeedLanguageTest.php
index 7e3d672c06..3dfe040fc9 100644
--- a/core/modules/aggregator/tests/src/Functional/FeedLanguageTest.php
+++ b/core/modules/aggregator/tests/src/Functional/FeedLanguageTest.php
@@ -66,8 +66,8 @@ public function testFeedLanguage() {
     $feeds[2] = $this->createFeed(NULL, ['langcode[0][value]' => $this->langcodes[2]]);
 
     // Make sure that the language has been assigned.
-    $this->assertEqual($feeds[1]->language()->getId(), $this->langcodes[1]);
-    $this->assertEqual($feeds[2]->language()->getId(), $this->langcodes[2]);
+    $this->assertEquals($feeds[1]->language()->getId(), $this->langcodes[1]);
+    $this->assertEquals($feeds[2]->language()->getId(), $this->langcodes[2]);
 
     // Create example nodes to create feed items from and then update the feeds.
     $this->createSampleNodes();
@@ -80,7 +80,7 @@ public function testFeedLanguage() {
       $items = entity_load_multiple_by_properties('aggregator_item', ['fid' => $feed->id()]);
       $this->assertTrue(count($items) > 0, 'Feed items were created.');
       foreach ($items as $item) {
-        $this->assertEqual($item->language()->getId(), $feed->language()->getId());
+        $this->assertEquals($item->language()->getId(), $feed->language()->getId());
       }
     }
   }
diff --git a/core/modules/aggregator/tests/src/Functional/FeedParserTest.php b/core/modules/aggregator/tests/src/Functional/FeedParserTest.php
index ecb2e50c76..2c24f341b6 100644
--- a/core/modules/aggregator/tests/src/Functional/FeedParserTest.php
+++ b/core/modules/aggregator/tests/src/Functional/FeedParserTest.php
@@ -57,7 +57,7 @@ public function testAtomSample() {
     $this->assertText('Atom-Powered Robots Run Amok');
     $this->assertLinkByHref('http://example.org/2003/12/13/atom03');
     $this->assertText('Some text.');
-    $this->assertEqual('urn:uuid:1225c695-cfb8-4ebb-aaaa-80da344efa6a', db_query('SELECT guid FROM {aggregator_item} WHERE link = :link', [':link' => 'http://example.org/2003/12/13/atom03'])->fetchField(), 'Atom entry id element is parsed correctly.');
+    $this->assertEquals('urn:uuid:1225c695-cfb8-4ebb-aaaa-80da344efa6a', db_query('SELECT guid FROM {aggregator_item} WHERE link = :link', [':link' => 'http://example.org/2003/12/13/atom03'])->fetchField(), 'Atom entry id element is parsed correctly.');
 
     // Check for second feed entry.
     $this->assertText('We tried to stop them, but we failed.');
@@ -66,7 +66,7 @@ public function testAtomSample() {
     $db_guid = db_query('SELECT guid FROM {aggregator_item} WHERE link = :link', [
       ':link' => 'http://example.org/2003/12/14/atom03',
     ])->fetchField();
-    $this->assertEqual('urn:uuid:1225c695-cfb8-4ebb-bbbb-80da344efa6a', $db_guid, 'Atom entry id element is parsed correctly.');
+    $this->assertEquals('urn:uuid:1225c695-cfb8-4ebb-bbbb-80da344efa6a', $db_guid, 'Atom entry id element is parsed correctly.');
   }
 
   /**
@@ -90,7 +90,7 @@ public function testRedirectFeed() {
     $feed->refreshItems();
 
     // Make sure that the feed URL was updated correctly.
-    $this->assertEqual($feed->getUrl(), \Drupal::url('aggregator_test.feed', [], ['absolute' => TRUE]));
+    $this->assertEquals($feed->getUrl(), \Drupal::url('aggregator_test.feed', [], ['absolute' => TRUE]));
   }
 
   /**
diff --git a/core/modules/aggregator/tests/src/Functional/FeedProcessorPluginTest.php b/core/modules/aggregator/tests/src/Functional/FeedProcessorPluginTest.php
index bdc63f56b0..f66daff843 100644
--- a/core/modules/aggregator/tests/src/Functional/FeedProcessorPluginTest.php
+++ b/core/modules/aggregator/tests/src/Functional/FeedProcessorPluginTest.php
@@ -61,7 +61,7 @@ public function testPostProcess() {
     // Reload the feed to get new values.
     $feed = Feed::load($feed_id);
     // Make sure its refresh rate doubled.
-    $this->assertEqual($feed->getRefreshRate(), 3600);
+    $this->assertEquals($feed->getRefreshRate(), 3600);
   }
 
 }
diff --git a/core/modules/aggregator/tests/src/Functional/ImportOpmlTest.php b/core/modules/aggregator/tests/src/Functional/ImportOpmlTest.php
index 2500b9ebb5..f366f1163e 100644
--- a/core/modules/aggregator/tests/src/Functional/ImportOpmlTest.php
+++ b/core/modules/aggregator/tests/src/Functional/ImportOpmlTest.php
@@ -63,7 +63,7 @@ public function validateImportFormFields() {
     $this->assertText(t('The URL invalidUrl://empty is not valid.'), 'Error if the URL is invalid.');
 
     $after = db_query('SELECT COUNT(*) FROM {aggregator_feed}')->fetchField();
-    $this->assertEqual($before, $after, 'No feeds were added during the three last form submissions.');
+    $this->assertEquals($before, $after, 'No feeds were added during the three last form submissions.');
   }
 
   /**
@@ -81,7 +81,7 @@ protected function submitImportForm() {
     $this->assertText(t('No new feed has been added.'), 'Attempting to load empty OPML from remote URL.');
 
     $after = db_query('SELECT COUNT(*) FROM {aggregator_feed}')->fetchField();
-    $this->assertEqual($before, $after, 'No feeds were added during the two last form submissions.');
+    $this->assertEquals($before, $after, 'No feeds were added during the two last form submissions.');
 
     db_delete('aggregator_feed')->execute();
 
@@ -97,7 +97,7 @@ protected function submitImportForm() {
     $this->assertRaw(t('A feed named %title already exists.', ['%title' => $feeds[1]['title[0][value]']]), 'Verifying that a duplicate title was identified');
 
     $after = db_query('SELECT COUNT(*) FROM {aggregator_feed}')->fetchField();
-    $this->assertEqual($after, 2, 'Verifying that two distinct feeds were added.');
+    $this->assertEquals($after, 2, 'Verifying that two distinct feeds were added.');
 
     $feeds_from_db = db_query("SELECT title, url, refresh FROM {aggregator_feed}");
     $refresh = TRUE;
@@ -107,8 +107,8 @@ protected function submitImportForm() {
       $refresh = $refresh && $feed->refresh == 900;
     }
 
-    $this->assertEqual($title[$feeds[0]['url[0][value]']], $feeds[0]['title[0][value]'], 'First feed was added correctly.');
-    $this->assertEqual($url[$feeds[1]['title[0][value]']], $feeds[1]['url[0][value]'], 'Second feed was added correctly.');
+    $this->assertEquals($title[$feeds[0]['url[0][value]']], $feeds[0]['title[0][value]'], 'First feed was added correctly.');
+    $this->assertEquals($url[$feeds[1]['title[0][value]']], $feeds[1]['url[0][value]'], 'Second feed was added correctly.');
     $this->assertTrue($refresh, 'Refresh times are correct.');
   }
 
diff --git a/core/modules/aggregator/tests/src/Kernel/FeedValidationTest.php b/core/modules/aggregator/tests/src/Kernel/FeedValidationTest.php
index d8804dd9c3..156e613fd5 100644
--- a/core/modules/aggregator/tests/src/Kernel/FeedValidationTest.php
+++ b/core/modules/aggregator/tests/src/Kernel/FeedValidationTest.php
@@ -39,7 +39,7 @@ public function testValidation() {
     ]);
 
     $violations = $feed->validate();
-    $this->assertEqual(count($violations), 0);
+    $this->assertEquals(count($violations), 0);
 
     $feed->save();
 
@@ -53,13 +53,13 @@ public function testValidation() {
 
     $violations = $feed->validate();
 
-    $this->assertEqual(count($violations), 2);
-    $this->assertEqual($violations[0]->getPropertyPath(), 'title');
-    $this->assertEqual($violations[0]->getMessage(), t('A feed named %value already exists. Enter a unique title.', [
+    $this->assertEquals(count($violations), 2);
+    $this->assertEquals($violations[0]->getPropertyPath(), 'title');
+    $this->assertEquals($violations[0]->getMessage(), t('A feed named %value already exists. Enter a unique title.', [
       '%value' => $feed->label(),
     ]));
-    $this->assertEqual($violations[1]->getPropertyPath(), 'url');
-    $this->assertEqual($violations[1]->getMessage(), t('A feed with this URL %value already exists. Enter a unique URL.', [
+    $this->assertEquals($violations[1]->getPropertyPath(), 'url');
+    $this->assertEquals($violations[1]->getMessage(), t('A feed with this URL %value already exists. Enter a unique URL.', [
       '%value' => $feed->getUrl(),
     ]));
   }
diff --git a/core/modules/aggregator/tests/src/Kernel/Migrate/d7/MigrateAggregatorItemTest.php b/core/modules/aggregator/tests/src/Kernel/Migrate/d7/MigrateAggregatorItemTest.php
index 83e59d9707..0ec1cddaf0 100644
--- a/core/modules/aggregator/tests/src/Kernel/Migrate/d7/MigrateAggregatorItemTest.php
+++ b/core/modules/aggregator/tests/src/Kernel/Migrate/d7/MigrateAggregatorItemTest.php
@@ -46,7 +46,7 @@ public function testAggregatorItem() {
       $this->assertIdentical($original->title, $item->label());
       // If $original->author is an empty string, getAuthor() returns NULL so
       // we need to use assertEqual() here.
-      $this->assertEqual($original->author, $item->getAuthor());
+      $this->assertEquals($original->author, $item->getAuthor());
       $this->assertIdentical($original->description, $item->getDescription());
       $this->assertIdentical($original->link, $item->getLink());
       $this->assertIdentical($original->timestamp, $item->getPostedTime());
diff --git a/core/modules/aggregator/tests/src/Kernel/Views/IntegrationTest.php b/core/modules/aggregator/tests/src/Kernel/Views/IntegrationTest.php
index 39f57b2518..a29741db90 100644
--- a/core/modules/aggregator/tests/src/Kernel/Views/IntegrationTest.php
+++ b/core/modules/aggregator/tests/src/Kernel/Views/IntegrationTest.php
@@ -115,19 +115,19 @@ public function testAggregatorItemView() {
       $output = $renderer->executeInRenderContext(new RenderContext(), function () use ($view, $row) {
         return $view->field['title']->advancedRender($row);
       });
-      $this->assertEqual($output, $expected_link->getGeneratedLink(), 'Ensure the right link is generated');
+      $this->assertEquals($output, $expected_link->getGeneratedLink(), 'Ensure the right link is generated');
 
       $expected_author = Xss::filter($items[$iid]->getAuthor(), _aggregator_allowed_tags());
       $output = $renderer->executeInRenderContext(new RenderContext(), function () use ($view, $row) {
         return $view->field['author']->advancedRender($row);
       });
-      $this->assertEqual($output, $expected_author, 'Ensure the author got filtered');
+      $this->assertEquals($output, $expected_author, 'Ensure the author got filtered');
 
       $expected_description = Xss::filter($items[$iid]->getDescription(), _aggregator_allowed_tags());
       $output = $renderer->executeInRenderContext(new RenderContext(), function () use ($view, $row) {
         return $view->field['description']->advancedRender($row);
       });
-      $this->assertEqual($output, $expected_description, 'Ensure the author got filtered');
+      $this->assertEquals($output, $expected_description, 'Ensure the author got filtered');
     }
   }
 
diff --git a/core/modules/ban/tests/src/Functional/IpAddressBlockingTest.php b/core/modules/ban/tests/src/Functional/IpAddressBlockingTest.php
index 778f3dba97..478d65d9d4 100644
--- a/core/modules/ban/tests/src/Functional/IpAddressBlockingTest.php
+++ b/core/modules/ban/tests/src/Functional/IpAddressBlockingTest.php
@@ -88,7 +88,7 @@ public function testIPAddressValidation() {
     $query->fields('bip', ['iid']);
     $query->condition('bip.ip', $ip);
     $ip_count = $query->execute()->fetchAll();
-    $this->assertEqual(1, count($ip_count));
+    $this->assertEquals(1, count($ip_count));
     $ip = '';
     $banIp->banIp($ip);
     $banIp->banIp($ip);
@@ -96,7 +96,7 @@ public function testIPAddressValidation() {
     $query->fields('bip', ['iid']);
     $query->condition('bip.ip', $ip);
     $ip_count = $query->execute()->fetchAll();
-    $this->assertEqual(1, count($ip_count));
+    $this->assertEquals(1, count($ip_count));
   }
 
 }
diff --git a/core/modules/basic_auth/tests/src/Functional/BasicAuthTest.php b/core/modules/basic_auth/tests/src/Functional/BasicAuthTest.php
index f844cb9305..6f8d000dbe 100644
--- a/core/modules/basic_auth/tests/src/Functional/BasicAuthTest.php
+++ b/core/modules/basic_auth/tests/src/Functional/BasicAuthTest.php
@@ -50,7 +50,7 @@ public function testBasicAuth() {
     $this->mink->resetSessions();
 
     $this->drupalGet($url);
-    $this->assertEqual($this->drupalGetHeader('WWW-Authenticate'), SafeMarkup::format('Basic realm="@realm"', ['@realm' => \Drupal::config('system.site')->get('name')]));
+    $this->assertEquals($this->drupalGetHeader('WWW-Authenticate'), SafeMarkup::format('Basic realm="@realm"', ['@realm' => \Drupal::config('system.site')->get('name')]));
     $this->assertResponse('401', 'Not authenticated on the route that allows only basic_auth. Prompt to authenticate received.');
 
     $this->drupalGet('admin');
@@ -67,7 +67,7 @@ public function testBasicAuth() {
     // cache if basic auth credentials are provided.
     $url = Url::fromRoute('router_test.10');
     $this->drupalGet($url);
-    $this->assertEqual($this->drupalGetHeader('X-Drupal-Cache'), 'MISS');
+    $this->assertEquals($this->drupalGetHeader('X-Drupal-Cache'), 'MISS');
     $this->basicAuthGet($url, $account->getUsername(), $account->pass_raw);
     $this->assertFalse($this->drupalGetHeader('X-Drupal-Cache'));
     $this->assertIdentical(strpos($this->drupalGetHeader('Cache-Control'), 'public'), FALSE, 'No page cache response when requesting a cached page with basic auth credentials.');
diff --git a/core/modules/big_pipe/tests/src/Functional/BigPipeTest.php b/core/modules/big_pipe/tests/src/Functional/BigPipeTest.php
index 92d1a866da..21fc625e58 100644
--- a/core/modules/big_pipe/tests/src/Functional/BigPipeTest.php
+++ b/core/modules/big_pipe/tests/src/Functional/BigPipeTest.php
@@ -184,11 +184,11 @@ public function testBigPipe() {
     $this->assertTrue(in_array('big_pipe/big_pipe', explode(',', $this->getDrupalSettings()['ajaxPageState']['libraries'])), 'BigPipe asset library is present.');
 
     // Verify that the two expected exceptions are logged as errors.
-    $this->assertEqual($log_count + 2, db_query('SELECT COUNT(*) FROM {watchdog}')->fetchField(), 'Two new watchdog entries.');
+    $this->assertEquals($log_count + 2, db_query('SELECT COUNT(*) FROM {watchdog}')->fetchField(), 'Two new watchdog entries.');
     $records = db_query('SELECT * FROM {watchdog} ORDER BY wid DESC LIMIT 2')->fetchAll();
-    $this->assertEqual(RfcLogLevel::ERROR, $records[0]->severity);
+    $this->assertEquals(RfcLogLevel::ERROR, $records[0]->severity);
     $this->assertTrue(FALSE !== strpos((string) unserialize($records[0]->variables)['@message'], 'Oh noes!'));
-    $this->assertEqual(RfcLogLevel::ERROR, $records[1]->severity);
+    $this->assertEquals(RfcLogLevel::ERROR, $records[1]->severity);
     $this->assertTrue(FALSE !== strpos((string) unserialize($records[1]->variables)['@message'], 'You are not allowed to say llamas are not cool!'));
 
     // Verify that 4xx responses work fine. (4xx responses are handled by
@@ -251,7 +251,7 @@ public function testBigPipeNoJs() {
     ]);
 
     $this->pass('Verifying there are no BigPipe placeholders & replacements…', 'Debug');
-    $this->assertEqual('<none>', $this->drupalGetHeader('BigPipe-Test-Placeholders'));
+    $this->assertEquals('<none>', $this->drupalGetHeader('BigPipe-Test-Placeholders'));
     $this->pass('Verifying BigPipe start/stop signals are absent…', 'Debug');
     $this->assertNoRaw(BigPipe::START_SIGNAL, 'BigPipe start signal absent.');
     $this->assertNoRaw(BigPipe::STOP_SIGNAL, 'BigPipe stop signal absent.');
@@ -315,8 +315,8 @@ public function testBigPipeMultiOccurrencePlaceholders() {
   protected function assertBigPipeResponseHeadersPresent() {
     $this->pass('Verifying BigPipe response headers…', 'Debug');
     $this->assertTrue(FALSE !== strpos($this->drupalGetHeader('Cache-Control'), 'private'), 'Cache-Control header set to "private".');
-    $this->assertEqual('no-store, content="BigPipe/1.0"', $this->drupalGetHeader('Surrogate-Control'));
-    $this->assertEqual('no', $this->drupalGetHeader('X-Accel-Buffering'));
+    $this->assertEquals('no-store, content="BigPipe/1.0"', $this->drupalGetHeader('Surrogate-Control'));
+    $this->assertEquals('no', $this->drupalGetHeader('X-Accel-Buffering'));
   }
 
   /**
@@ -363,28 +363,28 @@ protected function assertBigPipePlaceholders(array $expected_big_pipe_placeholde
       $expected_placeholder_replacement = '<script type="application/vnd.drupal-ajax" data-big-pipe-replacement-for-placeholder-with-id="' . $big_pipe_placeholder_id . '">';
       $result = $this->xpath('//script[@data-big-pipe-replacement-for-placeholder-with-id=:id]', [':id' => Html::decodeEntities($big_pipe_placeholder_id)]);
       if ($expected_ajax_response === NULL) {
-        $this->assertEqual(0, count($result));
+        $this->assertEquals(0, count($result));
         $this->assertNoRaw($expected_placeholder_replacement);
         continue;
       }
-      $this->assertEqual($expected_ajax_response, trim($result[0]->getText()));
+      $this->assertEquals($expected_ajax_response, trim($result[0]->getText()));
       $this->assertRaw($expected_placeholder_replacement);
       $pos = strpos($this->getRawContent(), $expected_placeholder_replacement);
       $placeholder_replacement_positions[$pos] = $big_pipe_placeholder_id;
     }
     ksort($placeholder_positions, SORT_NUMERIC);
-    $this->assertEqual(array_keys($expected_big_pipe_placeholders), array_values($placeholder_positions));
+    $this->assertEquals(array_keys($expected_big_pipe_placeholders), array_values($placeholder_positions));
     $placeholders = array_map(function (NodeElement $element) {
       return $element->getAttribute('data-big-pipe-placeholder-id');
     }, $this->cssSelect('[data-big-pipe-placeholder-id]'));
-    $this->assertEqual(count($expected_big_pipe_placeholders), count(array_unique($placeholders)));
+    $this->assertEquals(count($expected_big_pipe_placeholders), count(array_unique($placeholders)));
     $expected_big_pipe_placeholders_with_replacements = [];
     foreach ($expected_big_pipe_placeholder_stream_order as $big_pipe_placeholder_id) {
       $expected_big_pipe_placeholders_with_replacements[$big_pipe_placeholder_id] = $expected_big_pipe_placeholders[$big_pipe_placeholder_id];
     }
-    $this->assertEqual($expected_big_pipe_placeholders_with_replacements, array_filter($expected_big_pipe_placeholders));
+    $this->assertEquals($expected_big_pipe_placeholders_with_replacements, array_filter($expected_big_pipe_placeholders));
     $this->assertSetsEqual(array_keys($expected_big_pipe_placeholders_with_replacements), array_values($placeholder_replacement_positions));
-    $this->assertEqual(count($expected_big_pipe_placeholders_with_replacements), preg_match_all('/' . preg_quote('<script type="application/vnd.drupal-ajax" data-big-pipe-replacement-for-placeholder-with-id="', '/') . '/', $this->getRawContent()));
+    $this->assertEquals(count($expected_big_pipe_placeholders_with_replacements), preg_match_all('/' . preg_quote('<script type="application/vnd.drupal-ajax" data-big-pipe-replacement-for-placeholder-with-id="', '/') . '/', $this->getRawContent()));
 
     $this->pass('Verifying BigPipe start/stop signals…', 'Debug');
     $this->assertRaw(BigPipe::START_SIGNAL, 'BigPipe start signal present.');
@@ -402,7 +402,7 @@ protected function assertBigPipePlaceholders(array $expected_big_pipe_placeholde
         $stop_signal_position => BigPipe::STOP_SIGNAL,
       ];
     ksort($actual_stream_order, SORT_NUMERIC);
-    $this->assertEqual($expected_stream_order, array_values($actual_stream_order));
+    $this->assertEquals($expected_stream_order, array_values($actual_stream_order));
   }
 
   /**
@@ -446,7 +446,7 @@ protected function assertSessionCookieExists($expected) {
    * Asserts whether a cookie exists on the client or not.
    */
   protected function assertCookieExists($cookie_name, $expected, $cookie_label) {
-    $this->assertEqual($expected, !empty($this->getSession()->getCookie($cookie_name)), $expected ? "$cookie_label cookie exists." : "$cookie_label cookie does not exist.");
+    $this->assertEquals($expected, !empty($this->getSession()->getCookie($cookie_name)), $expected ? "$cookie_label cookie exists." : "$cookie_label cookie does not exist.");
   }
 
   /**
@@ -466,19 +466,19 @@ protected function assertBigPipeNoJsMetaRefreshRedirect() {
     $statuses[1] = $this->getSession()->getStatusCode();
     $this->getSession()->getDriver()->getClient()->followRedirects(TRUE);
 
-    $this->assertEqual($original_url, $this->getSession()->getCurrentUrl(), 'Redirected back to the original location.');
+    $this->assertEquals($original_url, $this->getSession()->getCurrentUrl(), 'Redirected back to the original location.');
 
     // First response: redirect.
-    $this->assertEqual(302, $statuses[0], 'The first response was a 302 (redirect).');
+    $this->assertEquals(302, $statuses[0], 'The first response was a 302 (redirect).');
     $this->assertIdentical(0, strpos($headers[0]['Set-Cookie'][0], 'big_pipe_nojs=1'), 'The first response sets the big_pipe_nojs cookie.');
-    $this->assertEqual($original_url, $headers[0]['Location'][0], 'The first response redirected back to the original page.');
+    $this->assertEquals($original_url, $headers[0]['Location'][0], 'The first response redirected back to the original page.');
     $this->assertTrue(empty(array_diff(['cookies:big_pipe_nojs', 'session.exists'], explode(' ', $headers[0]['X-Drupal-Cache-Contexts'][0]))), 'The first response varies by the "cookies:big_pipe_nojs" and "session.exists" cache contexts.');
     $this->assertFalse(isset($headers[0]['Surrogate-Control']), 'The first response has no "Surrogate-Control" header.');
 
     // Second response: redirect followed.
-    $this->assertEqual(200, $statuses[1], 'The second response was a 200.');
+    $this->assertEquals(200, $statuses[1], 'The second response was a 200.');
     $this->assertTrue(empty(array_diff(['cookies:big_pipe_nojs', 'session.exists'], explode(' ', $headers[0]['X-Drupal-Cache-Contexts'][0]))), 'The first response varies by the "cookies:big_pipe_nojs" and "session.exists" cache contexts.');
-    $this->assertEqual('no-store, content="BigPipe/1.0"', $headers[1]['Surrogate-Control'][0], 'The second response has a "Surrogate-Control" header.');
+    $this->assertEquals('no-store, content="BigPipe/1.0"', $headers[1]['Surrogate-Control'][0], 'The second response has a "Surrogate-Control" header.');
 
     $this->assertNoRaw('<noscript><meta http-equiv="Refresh" content="0; URL=', 'Once the BigPipe no-JS cookie is set, the <meta> refresh is absent: only one redirect ever happens.');
   }
diff --git a/core/modules/block/tests/src/Functional/BlockLanguageTest.php b/core/modules/block/tests/src/Functional/BlockLanguageTest.php
index cf1b87720a..e8c720b2b8 100644
--- a/core/modules/block/tests/src/Functional/BlockLanguageTest.php
+++ b/core/modules/block/tests/src/Functional/BlockLanguageTest.php
@@ -93,7 +93,7 @@ public function testLanguageBlockVisibilityLanguageDelete() {
 
     // Check that we have the language in config after saving the setting.
     $visibility = $block->getVisibility();
-    $this->assertEqual('fr', $visibility['language']['langcodes']['fr'], 'Language is set in the block configuration.');
+    $this->assertEquals('fr', $visibility['language']['langcodes']['fr'], 'Language is set in the block configuration.');
 
     // Delete the language.
     $this->drupalPostForm('admin/config/regional/language/delete/fr', [], t('Delete'));
diff --git a/core/modules/block/tests/src/Functional/BlockSystemBrandingTest.php b/core/modules/block/tests/src/Functional/BlockSystemBrandingTest.php
index 89ce0c4b45..e83cc74c39 100644
--- a/core/modules/block/tests/src/Functional/BlockSystemBrandingTest.php
+++ b/core/modules/block/tests/src/Functional/BlockSystemBrandingTest.php
@@ -54,7 +54,7 @@ public function testSystemBrandingSettings() {
       ->save();
     $this->drupalGet('');
     $site_slogan_element = $this->xpath($site_slogan_xpath);
-    $this->assertEqual($site_slogan_element[0]->getText(), 'alert("Community carpentry");', 'The site slogan was XSS-filtered.');
+    $this->assertEquals($site_slogan_element[0]->getText(), 'alert("Community carpentry");', 'The site slogan was XSS-filtered.');
 
     // Turn just the logo off.
     $this->config('block.block.site-branding')
diff --git a/core/modules/block/tests/src/Functional/BlockTemplateSuggestionsTest.php b/core/modules/block/tests/src/Functional/BlockTemplateSuggestionsTest.php
index fd4fd5138c..9a30b21d5e 100644
--- a/core/modules/block/tests/src/Functional/BlockTemplateSuggestionsTest.php
+++ b/core/modules/block/tests/src/Functional/BlockTemplateSuggestionsTest.php
@@ -42,7 +42,7 @@ public function testBlockThemeHookSuggestions() {
     $variables['elements']['#derivative_plugin_id'] = $plugin->getDerivativeId();
     $variables['elements']['content'] = [];
     $suggestions = block_theme_suggestions_block($variables);
-    $this->assertEqual($suggestions, ['block__system', 'block__system_menu_block', 'block__system_menu_block__admin', 'block__machinename']);
+    $this->assertEquals($suggestions, ['block__system', 'block__system_menu_block', 'block__system_menu_block__admin', 'block__machinename']);
   }
 
 }
diff --git a/core/modules/block/tests/src/Functional/BlockTest.php b/core/modules/block/tests/src/Functional/BlockTest.php
index 7518c82dc1..a84d3fe7f6 100644
--- a/core/modules/block/tests/src/Functional/BlockTest.php
+++ b/core/modules/block/tests/src/Functional/BlockTest.php
@@ -149,12 +149,12 @@ public function testAddBlockFromLibraryWithWeight() {
         'theme' => $default_theme
       ]);
       $links = $this->xpath('//a[contains(@href, :href)]', [':href' => $add_url->toString()]);
-      $this->assertEqual(1, count($links), 'Found one matching link.');
-      $this->assertEqual(t('Place block'), $links[0]->getText(), 'Found the expected link text.');
+      $this->assertEquals(1, count($links), 'Found one matching link.');
+      $this->assertEquals(t('Place block'), $links[0]->getText(), 'Found the expected link text.');
 
       list($path, $query_string) = explode('?', $links[0]->getAttribute('href'), 2);
       parse_str($query_string, $query_parts);
-      $this->assertEqual($weight, $query_parts['weight'], 'Found the expected weight query string.');
+      $this->assertEquals($weight, $query_parts['weight'], 'Found the expected weight query string.');
 
       // Create a random title for the block.
       $title = $this->randomMachineName(8);
@@ -169,7 +169,7 @@ public function testAddBlockFromLibraryWithWeight() {
       // Ensure that the block was created with the expected weight.
       /** @var \Drupal\block\BlockInterface $block */
       $block = Block::load($block_id);
-      $this->assertEqual($weight, $block->getWeight(), 'Found the block with expected weight.');
+      $this->assertEquals($weight, $block->getWeight(), 'Found the block with expected weight.');
     }
   }
 
@@ -198,7 +198,7 @@ public function testBlock() {
     // Check to see if the block was created by checking its configuration.
     $instance = Block::load($block['id']);
 
-    $this->assertEqual($instance->label(), $block['settings[label]'], 'Stored block title found.');
+    $this->assertEquals($instance->label(), $block['settings[label]'], 'Stored block title found.');
 
     // Check whether the block can be moved to all available regions.
     foreach ($this->regions as $region) {
@@ -371,12 +371,12 @@ public function testBlockCacheTags() {
 
     // Prime the page cache.
     $this->drupalGet('<front>');
-    $this->assertEqual($this->drupalGetHeader('X-Drupal-Cache'), 'MISS');
+    $this->assertEquals($this->drupalGetHeader('X-Drupal-Cache'), 'MISS');
 
     // Verify a cache hit, but also the presence of the correct cache tags in
     // both the page and block caches.
     $this->drupalGet('<front>');
-    $this->assertEqual($this->drupalGetHeader('X-Drupal-Cache'), 'HIT');
+    $this->assertEquals($this->drupalGetHeader('X-Drupal-Cache'), 'HIT');
     $cid_parts = [\Drupal::url('<front>', [], ['absolute' => TRUE]), 'html'];
     $cid = implode(':', $cid_parts);
     $cache_entry = \Drupal::cache('page')->get($cid);
@@ -404,20 +404,20 @@ public function testBlockCacheTags() {
     $block->setRegion('content');
     $block->save();
     $this->drupalGet('<front>');
-    $this->assertEqual($this->drupalGetHeader('X-Drupal-Cache'), 'MISS');
+    $this->assertEquals($this->drupalGetHeader('X-Drupal-Cache'), 'MISS');
 
     // Now we should have a cache hit again.
     $this->drupalGet('<front>');
-    $this->assertEqual($this->drupalGetHeader('X-Drupal-Cache'), 'HIT');
+    $this->assertEquals($this->drupalGetHeader('X-Drupal-Cache'), 'HIT');
 
     // Place the "Powered by Drupal" block another time; verify a cache miss.
     $block_2 = $this->drupalPlaceBlock('system_powered_by_block', ['id' => 'powered-2']);
     $this->drupalGet('<front>');
-    $this->assertEqual($this->drupalGetHeader('X-Drupal-Cache'), 'MISS');
+    $this->assertEquals($this->drupalGetHeader('X-Drupal-Cache'), 'MISS');
 
     // Verify a cache hit, but also the presence of the correct cache tags.
     $this->drupalGet('<front>');
-    $this->assertEqual($this->drupalGetHeader('X-Drupal-Cache'), 'HIT');
+    $this->assertEquals($this->drupalGetHeader('X-Drupal-Cache'), 'HIT');
     $cid_parts = [\Drupal::url('<front>', [], ['absolute' => TRUE]), 'html'];
     $cid = implode(':', $cid_parts);
     $cache_entry = \Drupal::cache('page')->get($cid);
@@ -431,7 +431,7 @@ public function testBlockCacheTags() {
       'rendered',
     ];
     sort($expected_cache_tags);
-    $this->assertEqual($cache_entry->tags, $expected_cache_tags);
+    $this->assertEquals($cache_entry->tags, $expected_cache_tags);
     $expected_cache_tags = [
       'block_view',
       'config:block.block.powered',
@@ -453,12 +453,12 @@ public function testBlockCacheTags() {
 
     // Now we should have a cache hit again.
     $this->drupalGet('<front>');
-    $this->assertEqual($this->drupalGetHeader('X-Drupal-Cache'), 'HIT');
+    $this->assertEquals($this->drupalGetHeader('X-Drupal-Cache'), 'HIT');
 
     // Delete the "Powered by Drupal" blocks; verify a cache miss.
     entity_delete_multiple('block', ['powered', 'powered-2']);
     $this->drupalGet('<front>');
-    $this->assertEqual($this->drupalGetHeader('X-Drupal-Cache'), 'MISS');
+    $this->assertEquals($this->drupalGetHeader('X-Drupal-Cache'), 'MISS');
   }
 
   /**
@@ -535,7 +535,7 @@ public function testBlockUserRoleDelete() {
 
     $block->save();
 
-    $this->assertEqual($block->getVisibility()['user_role']['roles'], [
+    $this->assertEquals($block->getVisibility()['user_role']['roles'], [
       $role1->id() => $role1->id(),
       $role2->id() => $role2->id()
     ]);
@@ -543,7 +543,7 @@ public function testBlockUserRoleDelete() {
     $role1->delete();
 
     $block = Block::load($block->id());
-    $this->assertEqual($block->getVisibility()['user_role']['roles'], [
+    $this->assertEquals($block->getVisibility()['user_role']['roles'], [
       $role2->id() => $role2->id()
     ]);
   }
diff --git a/core/modules/block/tests/src/Functional/Update/BlockContextMappingUpdateTest.php b/core/modules/block/tests/src/Functional/Update/BlockContextMappingUpdateTest.php
index d1acb3b414..d7386a9b97 100644
--- a/core/modules/block/tests/src/Functional/Update/BlockContextMappingUpdateTest.php
+++ b/core/modules/block/tests/src/Functional/Update/BlockContextMappingUpdateTest.php
@@ -82,16 +82,16 @@ public function testUpdateHookN() {
     // Ensure that all the context mappings got updated properly.
     $block = Block::load('testfor2354889');
     $visibility = $block->get('visibility');
-    $this->assertEqual('@node.node_route_context:node', $visibility['node_type']['context_mapping']['node']);
-    $this->assertEqual('@user.current_user_context:current_user', $visibility['user_role']['context_mapping']['user']);
-    $this->assertEqual('@language.current_language_context:language_interface', $visibility['language']['context_mapping']['language']);
+    $this->assertEquals('@node.node_route_context:node', $visibility['node_type']['context_mapping']['node']);
+    $this->assertEquals('@user.current_user_context:current_user', $visibility['user_role']['context_mapping']['user']);
+    $this->assertEquals('@language.current_language_context:language_interface', $visibility['language']['context_mapping']['language']);
 
     // Check that a block with invalid context is being disabled and that it can
     // still be edited afterward.
     $disabled_block = Block::load('thirdtestfor2354889');
     $this->assertFalse($disabled_block->status(), 'Block with invalid context is disabled');
 
-    $this->assertEqual(['thirdtestfor2354889' => ['missing_context_ids' => ['baloney_spam' => ['node_type']], 'status' => TRUE]], \Drupal::keyValue('update_backup')->get('block_update_8001'));
+    $this->assertEquals(['thirdtestfor2354889' => ['missing_context_ids' => ['baloney_spam' => ['node_type']], 'status' => TRUE]], \Drupal::keyValue('update_backup')->get('block_update_8001'));
 
     $disabled_block_visibility = $disabled_block->get('visibility');
     $this->assertTrue(!isset($disabled_block_visibility['node_type']), 'The problematic visibility condition has been removed.');
diff --git a/core/modules/block/tests/src/Functional/Views/DisplayBlockTest.php b/core/modules/block/tests/src/Functional/Views/DisplayBlockTest.php
index 0a18d7fa0f..67ed493a64 100644
--- a/core/modules/block/tests/src/Functional/Views/DisplayBlockTest.php
+++ b/core/modules/block/tests/src/Functional/Views/DisplayBlockTest.php
@@ -218,7 +218,7 @@ public function testViewsBlockForm() {
 
     $block = $storage->load('views_block__test_view_block_block_1_4');
     $config = $block->getPlugin()->getConfiguration();
-    $this->assertEqual(10, $config['items_per_page'], "'Items per page' is properly saved.");
+    $this->assertEquals(10, $config['items_per_page'], "'Items per page' is properly saved.");
 
     $edit['settings[override][items_per_page]'] = 5;
     $this->drupalPostForm('admin/structure/block/manage/views_block__test_view_block_block_1_4', $edit, t('Save block'));
@@ -226,7 +226,7 @@ public function testViewsBlockForm() {
     $block = $storage->load('views_block__test_view_block_block_1_4');
 
     $config = $block->getPlugin()->getConfiguration();
-    $this->assertEqual(5, $config['items_per_page'], "'Items per page' is properly saved.");
+    $this->assertEquals(5, $config['items_per_page'], "'Items per page' is properly saved.");
 
     // Tests the override of the label capability.
     $edit = ['region' => 'content'];
@@ -236,7 +236,7 @@ public function testViewsBlockForm() {
 
     $block = $storage->load('views_block__test_view_block_block_1_5');
     $config = $block->getPlugin()->getConfiguration();
-    $this->assertEqual('Custom title', $config['views_label'], "'Label' is properly saved.");
+    $this->assertEquals('Custom title', $config['views_label'], "'Label' is properly saved.");
   }
 
   /**
@@ -248,7 +248,7 @@ public function testBlockRendering() {
     $this->drupalGet('');
 
     $result = $this->xpath('//div[contains(@class, "region-sidebar-first")]/div[contains(@class, "block-views")]/h2');
-    $this->assertEqual($result[0]->getText(), 'Custom title');
+    $this->assertEquals($result[0]->getText(), 'Custom title');
 
     // Don't override the title anymore.
     $plugin = $block->getPlugin();
@@ -257,7 +257,7 @@ public function testBlockRendering() {
 
     $this->drupalGet('');
     $result = $this->xpath('//div[contains(@class, "region-sidebar-first")]/div[contains(@class, "block-views")]/h2');
-    $this->assertEqual($result[0]->getText(), 'test_view_block');
+    $this->assertEquals($result[0]->getText(), 'test_view_block');
 
     // Hide the title.
     $block->getPlugin()->setConfigurationValue('label_display', FALSE);
@@ -283,14 +283,14 @@ public function testBlockEmptyRendering() {
 
     $block = $this->drupalPlaceBlock('views_block:test_view_block-block_1', ['label' => 'test_view_block-block_1:1', 'views_label' => 'Custom title']);
     $this->drupalGet('');
-    $this->assertEqual(1, count($this->xpath('//div[contains(@class, "block-views-blocktest-view-block-block-1")]')));
+    $this->assertEquals(1, count($this->xpath('//div[contains(@class, "block-views-blocktest-view-block-block-1")]')));
 
     $display = &$view->getDisplay('block_1');
     $display['display_options']['block_hide_empty'] = TRUE;
     $view->save();
 
     $this->drupalGet($url);
-    $this->assertEqual(0, count($this->xpath('//div[contains(@class, "block-views-blocktest-view-block-block-1")]')));
+    $this->assertEquals(0, count($this->xpath('//div[contains(@class, "block-views-blocktest-view-block-block-1")]')));
     // Ensure that the view cacheability metadata is propagated even, for an
     // empty block.
     $this->assertCacheTags(array_merge($block->getCacheTags(), ['block_view', 'config:block_list', 'config:views.view.test_view_block', 'http_response', 'rendered']));
@@ -310,7 +310,7 @@ public function testBlockEmptyRendering() {
     $view->save();
 
     $this->drupalGet($url);
-    $this->assertEqual(1, count($this->xpath('//div[contains(@class, "block-views-blocktest-view-block-block-1")]')));
+    $this->assertEquals(1, count($this->xpath('//div[contains(@class, "block-views-blocktest-view-block-block-1")]')));
     $this->assertCacheTags(array_merge($block->getCacheTags(), ['block_view', 'config:block_list', 'config:views.view.test_view_block', 'http_response', 'rendered']));
     $this->assertCacheContexts(['url.query_args:_wrapper_format']);
 
@@ -328,7 +328,7 @@ public function testBlockEmptyRendering() {
     $view->save();
 
     $this->drupalGet($url);
-    $this->assertEqual(0, count($this->xpath('//div[contains(@class, "block-views-blocktest-view-block-block-1")]')));
+    $this->assertEquals(0, count($this->xpath('//div[contains(@class, "block-views-blocktest-view-block-block-1")]')));
     $this->assertCacheTags(array_merge($block->getCacheTags(), ['block_view', 'config:block_list', 'config:views.view.test_view_block', 'http_response', 'rendered']));
     $this->assertCacheContexts(['url.query_args:_wrapper_format']);
 
@@ -345,7 +345,7 @@ public function testBlockEmptyRendering() {
     $view->save();
 
     $this->drupalGet($url);
-    $this->assertEqual(1, count($this->xpath('//div[contains(@class, "block-views-blocktest-view-block-block-1")]')));
+    $this->assertEquals(1, count($this->xpath('//div[contains(@class, "block-views-blocktest-view-block-block-1")]')));
     $this->assertCacheTags(array_merge($block->getCacheTags(), ['block_view', 'config:block_list', 'config:views.view.test_view_block', 'http_response', 'rendered']));
     $this->assertCacheContexts(['url.query_args:_wrapper_format']);
   }
diff --git a/core/modules/block/tests/src/Kernel/BlockConfigSchemaTest.php b/core/modules/block/tests/src/Kernel/BlockConfigSchemaTest.php
index 2bf41e0f4c..f76ca6a39e 100644
--- a/core/modules/block/tests/src/Kernel/BlockConfigSchemaTest.php
+++ b/core/modules/block/tests/src/Kernel/BlockConfigSchemaTest.php
@@ -85,7 +85,7 @@ public function testBlockConfigSchema() {
       $block->save();
 
       $config = $this->config("block.block.$id");
-      $this->assertEqual($config->get('id'), $id);
+      $this->assertEquals($config->get('id'), $id);
       $this->assertConfigSchema($this->typedConfig, $config->getName(), $config->get());
     }
   }
diff --git a/core/modules/block/tests/src/Kernel/BlockStorageUnitTest.php b/core/modules/block/tests/src/Kernel/BlockStorageUnitTest.php
index 2a7c7710c3..978bd996a6 100644
--- a/core/modules/block/tests/src/Kernel/BlockStorageUnitTest.php
+++ b/core/modules/block/tests/src/Kernel/BlockStorageUnitTest.php
@@ -61,7 +61,7 @@ protected function createTests() {
       $this->fail('A block without a plugin was created with no exception thrown.');
     }
     catch (PluginException $e) {
-      $this->assertEqual('The block \'\' did not specify a plugin.', $e->getMessage(), 'An exception was thrown when a block was created without a plugin.');
+      $this->assertEquals('The block \'\' did not specify a plugin.', $e->getMessage(), 'An exception was thrown when a block was created without a plugin.');
     }
 
     // Create a block with only required values.
@@ -116,7 +116,7 @@ protected function loadTests() {
     // Verify several properties of the block.
     $this->assertSame('content', $entity->getRegion());
     $this->assertTrue($entity->status());
-    $this->assertEqual($entity->getTheme(), 'stark');
+    $this->assertEquals($entity->getTheme(), 'stark');
     $this->assertTrue($entity->uuid());
   }
 
@@ -152,7 +152,7 @@ public function testDefaultBlocks() {
 
     $entities = $this->controller->loadMultiple();
     $entity = reset($entities);
-    $this->assertEqual($entity->id(), 'test_block', 'The default test block was loaded.');
+    $this->assertEquals($entity->id(), 'test_block', 'The default test block was loaded.');
   }
 
 }
diff --git a/core/modules/block/tests/src/Kernel/BlockViewBuilderTest.php b/core/modules/block/tests/src/Kernel/BlockViewBuilderTest.php
index 71c4f55b8d..fe3473dfee 100644
--- a/core/modules/block/tests/src/Kernel/BlockViewBuilderTest.php
+++ b/core/modules/block/tests/src/Kernel/BlockViewBuilderTest.php
@@ -92,7 +92,7 @@ public function testBasicRendering() {
     $expected[] = '  </div>';
     $expected[] = '';
     $expected_output = implode("\n", $expected);
-    $this->assertEqual($this->renderer->renderRoot($output), $expected_output);
+    $this->assertEquals($this->renderer->renderRoot($output), $expected_output);
 
     // Reset the HTML IDs so that the next render is not affected.
     Html::resetSeenIds();
@@ -117,7 +117,7 @@ public function testBasicRendering() {
     $expected[] = '  </div>';
     $expected[] = '';
     $expected_output = implode("\n", $expected);
-    $this->assertEqual($this->renderer->renderRoot($output), $expected_output);
+    $this->assertEquals($this->renderer->renderRoot($output), $expected_output);
   }
 
   /**
diff --git a/core/modules/block_content/src/Tests/Views/BlockContentTestBase.php b/core/modules/block_content/src/Tests/Views/BlockContentTestBase.php
index 3ea2dba06c..2680510c7b 100644
--- a/core/modules/block_content/src/Tests/Views/BlockContentTestBase.php
+++ b/core/modules/block_content/src/Tests/Views/BlockContentTestBase.php
@@ -73,7 +73,7 @@ protected function createBlockContent(array $settings = []) {
     if ($block_content = BlockContent::create($settings)) {
       $status = $block_content->save();
     }
-    $this->assertEqual($status, SAVED_NEW, SafeMarkup::format('Created block content %info.', ['%info' => $block_content->label()]));
+    $this->assertEquals($status, SAVED_NEW, SafeMarkup::format('Created block content %info.', ['%info' => $block_content->label()]));
     return $block_content;
   }
 
@@ -105,7 +105,7 @@ protected function createBlockContentType(array $values = []) {
     $status = $bundle->save();
     block_content_add_body_field($bundle->id());
 
-    $this->assertEqual($status, SAVED_NEW, SafeMarkup::format('Created block content type %bundle.', ['%bundle' => $bundle->id()]));
+    $this->assertEquals($status, SAVED_NEW, SafeMarkup::format('Created block content type %bundle.', ['%bundle' => $bundle->id()]));
     return $bundle;
   }
 
diff --git a/core/modules/block_content/tests/src/Functional/BlockContentCreationTest.php b/core/modules/block_content/tests/src/Functional/BlockContentCreationTest.php
index 0f89b86e6a..f548c74f51 100644
--- a/core/modules/block_content/tests/src/Functional/BlockContentCreationTest.php
+++ b/core/modules/block_content/tests/src/Functional/BlockContentCreationTest.php
@@ -250,7 +250,7 @@ public function testBlockDelete() {
     $block = BlockContent::load(1);
 
     // Test getInstances method.
-    $this->assertEqual(1, count($block->getInstances()));
+    $this->assertEquals(1, count($block->getInstances()));
 
     // Navigate to home page.
     $this->drupalGet('');
@@ -303,7 +303,7 @@ public function testConfigDependencies() {
 
     $dependencies = \Drupal::service('config.manager')->findConfigEntityDependentsAsEntities('content', [$block->getConfigDependencyName()]);
     $block_placement = reset($dependencies);
-    $this->assertEqual($block_placement_id, $block_placement->id(), "The block placement config entity has a dependency on the block content entity.");
+    $this->assertEquals($block_placement_id, $block_placement->id(), "The block placement config entity has a dependency on the block content entity.");
   }
 
 }
diff --git a/core/modules/block_content/tests/src/Functional/BlockContentListTest.php b/core/modules/block_content/tests/src/Functional/BlockContentListTest.php
index aba60c366c..2fd51720f3 100644
--- a/core/modules/block_content/tests/src/Functional/BlockContentListTest.php
+++ b/core/modules/block_content/tests/src/Functional/BlockContentListTest.php
@@ -36,12 +36,12 @@ public function testListing() {
 
     // Test the table header.
     $elements = $this->xpath('//div[@class="layout-content"]//table/thead/tr/th');
-    $this->assertEqual(count($elements), 2, 'Correct number of table header cells found.');
+    $this->assertEquals(count($elements), 2, 'Correct number of table header cells found.');
 
     // Test the contents of each th cell.
     $expected_items = [t('Block description'), t('Operations')];
     foreach ($elements as $key => $element) {
-      $this->assertEqual($element->getText(), $expected_items[$key]);
+      $this->assertEquals($element->getText(), $expected_items[$key]);
     }
 
     $label = 'Antelope';
@@ -62,7 +62,7 @@ public function testListing() {
 
     // Check the number of table row cells.
     $elements = $this->xpath('//div[@class="layout-content"]//table/tbody/tr[@class="odd"]/td');
-    $this->assertEqual(count($elements), 2, 'Correct number of table row cells found.');
+    $this->assertEquals(count($elements), 2, 'Correct number of table row cells found.');
     // Check the contents of each row cell. The first cell contains the label,
     // the second contains the machine name, and the third contains the
     // operations list.
diff --git a/core/modules/block_content/tests/src/Functional/BlockContentListViewsTest.php b/core/modules/block_content/tests/src/Functional/BlockContentListViewsTest.php
index 1c623be82e..3f38e73d2e 100644
--- a/core/modules/block_content/tests/src/Functional/BlockContentListViewsTest.php
+++ b/core/modules/block_content/tests/src/Functional/BlockContentListViewsTest.php
@@ -38,7 +38,7 @@ public function testListing() {
 
     // Test the table header.
     $elements = $this->xpath('//div[@class="layout-content"]//table/thead/tr/th');
-    $this->assertEqual(count($elements), 4, 'Correct number of table header cells found.');
+    $this->assertEquals(count($elements), 4, 'Correct number of table header cells found.');
 
     // Test the contents of each th cell.
     $expected_items = ['Block description', 'Block type', 'Updated Sort ascending', 'Operations'];
@@ -69,7 +69,7 @@ public function testListing() {
 
     // Check the number of table row cells.
     $elements = $this->xpath('//div[@class="layout-content"]//table/tbody/tr/td');
-    $this->assertEqual(count($elements), 4, 'Correct number of table row cells found.');
+    $this->assertEquals(count($elements), 4, 'Correct number of table row cells found.');
     // Check the contents of each row cell. The first cell contains the label,
     // the second contains the machine name, and the third contains the
     // operations list.
diff --git a/core/modules/block_content/tests/src/Functional/BlockContentRevisionsTest.php b/core/modules/block_content/tests/src/Functional/BlockContentRevisionsTest.php
index 3218e7fc0f..8988213a85 100644
--- a/core/modules/block_content/tests/src/Functional/BlockContentRevisionsTest.php
+++ b/core/modules/block_content/tests/src/Functional/BlockContentRevisionsTest.php
@@ -74,7 +74,7 @@ public function testRevisions() {
         ->getStorage('block_content')
         ->loadRevision($revision_id);
       // Verify revision log is the same.
-      $this->assertEqual($loaded->getRevisionLogMessage(), $logs[$delta], format_string('Correct log message found for revision @revision', [
+      $this->assertEquals($loaded->getRevisionLogMessage(), $logs[$delta], format_string('Correct log message found for revision @revision', [
         '@revision' => $loaded->getRevisionId(),
       ]));
       if ($delta > 0) {
diff --git a/core/modules/block_content/tests/src/Functional/BlockContentSaveTest.php b/core/modules/block_content/tests/src/Functional/BlockContentSaveTest.php
index 0f7ae5a2e6..c9f3977a64 100644
--- a/core/modules/block_content/tests/src/Functional/BlockContentSaveTest.php
+++ b/core/modules/block_content/tests/src/Functional/BlockContentSaveTest.php
@@ -46,7 +46,7 @@ public function testImport() {
     $block->save();
 
     // Verify that block_submit did not wipe the provided id.
-    $this->assertEqual($block->id(), $test_id, 'Block imported using provide id');
+    $this->assertEquals($block->id(), $test_id, 'Block imported using provide id');
 
     // Test the import saved.
     $block_by_id = BlockContent::load($test_id);
@@ -62,11 +62,11 @@ public function testImport() {
   public function testDeterminingChanges() {
     // Initial creation.
     $block = $this->createBlockContent('test_changes');
-    $this->assertEqual($block->getChangedTime(), REQUEST_TIME, 'Creating a block sets default "changed" timestamp.');
+    $this->assertEquals($block->getChangedTime(), REQUEST_TIME, 'Creating a block sets default "changed" timestamp.');
 
     // Update the block without applying changes.
     $block->save();
-    $this->assertEqual($block->label(), 'test_changes', 'No changes have been determined.');
+    $this->assertEquals($block->label(), 'test_changes', 'No changes have been determined.');
 
     // Apply changes.
     $block->setInfo('updated');
@@ -75,12 +75,12 @@ public function testDeterminingChanges() {
     // The hook implementations block_content_test_block_content_presave() and
     // block_content_test_block_content_update() determine changes and change
     // the title as well as programmatically set the 'changed' timestamp.
-    $this->assertEqual($block->label(), 'updated_presave_update', 'Changes have been determined.');
-    $this->assertEqual($block->getChangedTime(), 979534800, 'Saving a custom block uses "changed" timestamp set in presave hook.');
+    $this->assertEquals($block->label(), 'updated_presave_update', 'Changes have been determined.');
+    $this->assertEquals($block->getChangedTime(), 979534800, 'Saving a custom block uses "changed" timestamp set in presave hook.');
 
     // Test the static block load cache to be cleared.
     $block = BlockContent::load($block->id());
-    $this->assertEqual($block->label(), 'updated_presave', 'Static cache has been cleared.');
+    $this->assertEquals($block->label(), 'updated_presave', 'Static cache has been cleared.');
   }
 
   /**
@@ -96,7 +96,7 @@ public function testBlockContentSaveOnInsert() {
     // block_content_test_block_content_insert() triggers a save on insert if the
     // title equals 'new'.
     $block = $this->createBlockContent('new');
-    $this->assertEqual($block->label(), 'BlockContent ' . $block->id(), 'Custom block saved on block insert.');
+    $this->assertEquals($block->label(), 'BlockContent ' . $block->id(), 'Custom block saved on block insert.');
   }
 
 }
diff --git a/core/modules/block_content/tests/src/Functional/BlockContentTranslationUITest.php b/core/modules/block_content/tests/src/Functional/BlockContentTranslationUITest.php
index 2699fcfb69..c1f76a806d 100644
--- a/core/modules/block_content/tests/src/Functional/BlockContentTranslationUITest.php
+++ b/core/modules/block_content/tests/src/Functional/BlockContentTranslationUITest.php
@@ -172,7 +172,7 @@ public function testDisabledBundle() {
 
     // Make sure that only a single row was inserted into the block table.
     $rows = db_query('SELECT * FROM {block_content_field_data} WHERE id = :id', [':id' => $enabled_block_content->id()])->fetchAll();
-    $this->assertEqual(1, count($rows));
+    $this->assertEquals(1, count($rows));
   }
 
   /**
diff --git a/core/modules/block_content/tests/src/Functional/BlockContentTypeTest.php b/core/modules/block_content/tests/src/Functional/BlockContentTypeTest.php
index 6c76a90278..839f73ae09 100644
--- a/core/modules/block_content/tests/src/Functional/BlockContentTypeTest.php
+++ b/core/modules/block_content/tests/src/Functional/BlockContentTypeTest.php
@@ -72,7 +72,7 @@ public function testBlockContentTypeCreation() {
 
     // Check that the block type was created in site default language.
     $default_langcode = \Drupal::languageManager()->getDefaultLanguage()->getId();
-    $this->assertEqual($block_type->language()->getId(), $default_langcode);
+    $this->assertEquals($block_type->language()->getId(), $default_langcode);
 
     // Create block types programmatically.
     $this->createBlockContentType('basic', TRUE);
diff --git a/core/modules/block_content/tests/src/Functional/BlockContentValidationTest.php b/core/modules/block_content/tests/src/Functional/BlockContentValidationTest.php
index bfa84082c1..182600895e 100644
--- a/core/modules/block_content/tests/src/Functional/BlockContentValidationTest.php
+++ b/core/modules/block_content/tests/src/Functional/BlockContentValidationTest.php
@@ -19,7 +19,7 @@ public function testValidation() {
     // Validate the block.
     $violations = $block->validate();
     // Make sure we have no violations.
-    $this->assertEqual(count($violations), 0);
+    $this->assertEquals(count($violations), 0);
     // Save the block.
     $block->save();
 
@@ -28,11 +28,11 @@ public function testValidation() {
     // Validate this block.
     $violations = $block->validate();
     // Make sure we have 1 violation.
-    $this->assertEqual(count($violations), 1);
+    $this->assertEquals(count($violations), 1);
     // Make sure the violation is on the info property
-    $this->assertEqual($violations[0]->getPropertyPath(), 'info');
+    $this->assertEquals($violations[0]->getPropertyPath(), 'info');
     // Make sure the message is correct.
-    $this->assertEqual($violations[0]->getMessage(), format_string('A custom block with block description %value already exists.', [
+    $this->assertEquals($violations[0]->getMessage(), format_string('A custom block with block description %value already exists.', [
       '%value' => $block->label(),
     ]));
   }
diff --git a/core/modules/block_content/tests/src/Functional/Update/BlockContentUpdateTest.php b/core/modules/block_content/tests/src/Functional/Update/BlockContentUpdateTest.php
index f2653b72f7..01fcf3a135 100644
--- a/core/modules/block_content/tests/src/Functional/Update/BlockContentUpdateTest.php
+++ b/core/modules/block_content/tests/src/Functional/Update/BlockContentUpdateTest.php
@@ -36,11 +36,11 @@ public function testSimpleUpdates() {
     $this->assertTrue($post_revision_created instanceof BaseFieldDefinition, "Revision created field found");
     $this->assertTrue($post_revision_user instanceof BaseFieldDefinition, "Revision user field found");
 
-    $this->assertEqual('created', $post_revision_created->getType(), "Field is type created");
-    $this->assertEqual('entity_reference', $post_revision_user->getType(), "Field is type entity_reference");
+    $this->assertEquals('created', $post_revision_created->getType(), "Field is type created");
+    $this->assertEquals('entity_reference', $post_revision_user->getType(), "Field is type entity_reference");
 
     $entity_type = $entity_definition_update_manager->getEntityType('block_content');
-    $this->assertEqual('block_content_field_revision', $entity_type->getRevisionDataTable());
+    $this->assertEquals('block_content_field_revision', $entity_type->getRevisionDataTable());
   }
 
   /**
@@ -57,7 +57,7 @@ public function testStatusFieldAddition() {
 
     // Check that the field exists and has the correct label.
     $updated_field = $entity_definition_update_manager->getFieldStorageDefinition('status', 'block_content');
-    $this->assertEqual('Publishing status', $updated_field->getLabel());
+    $this->assertEquals('Publishing status', $updated_field->getLabel());
 
     $content_translation_status = $entity_definition_update_manager->getFieldStorageDefinition('content_translation_status', 'block_content');
     $this->assertNull($content_translation_status);
diff --git a/core/modules/block_content/tests/src/Functional/Views/BlockContentFieldFilterTest.php b/core/modules/block_content/tests/src/Functional/Views/BlockContentFieldFilterTest.php
index a016ab9141..fe47ce28b7 100644
--- a/core/modules/block_content/tests/src/Functional/Views/BlockContentFieldFilterTest.php
+++ b/core/modules/block_content/tests/src/Functional/Views/BlockContentFieldFilterTest.php
@@ -102,7 +102,7 @@ protected function assertPageCounts($path, $counts, $message) {
     $text = $this->getTextContent();
 
     foreach ($counts as $langcode => $count) {
-      $this->assertEqual(substr_count($text, $this->blockContentInfos[$langcode]), $count, 'Translation ' . $langcode . ' has count ' . $count . ' with ' . $message);
+      $this->assertEquals(substr_count($text, $this->blockContentInfos[$langcode]), $count, 'Translation ' . $langcode . ' has count ' . $count . ' with ' . $message);
     }
   }
 
diff --git a/core/modules/block_content/tests/src/Functional/Views/BlockContentIntegrationTest.php b/core/modules/block_content/tests/src/Functional/Views/BlockContentIntegrationTest.php
index 93661578bd..0508054a93 100644
--- a/core/modules/block_content/tests/src/Functional/Views/BlockContentIntegrationTest.php
+++ b/core/modules/block_content/tests/src/Functional/Views/BlockContentIntegrationTest.php
@@ -61,7 +61,7 @@ protected function assertIds(array $expected_ids = []) {
     foreach ($result as $element) {
       $ids[] = $element->getText();
     }
-    $this->assertEqual($ids, $expected_ids);
+    $this->assertEquals($ids, $expected_ids);
   }
 
 }
diff --git a/core/modules/block_content/tests/src/Functional/Views/BlockContentTestBase.php b/core/modules/block_content/tests/src/Functional/Views/BlockContentTestBase.php
index ffce588605..890b8a7bf8 100644
--- a/core/modules/block_content/tests/src/Functional/Views/BlockContentTestBase.php
+++ b/core/modules/block_content/tests/src/Functional/Views/BlockContentTestBase.php
@@ -68,7 +68,7 @@ protected function createBlockContent(array $settings = []) {
     if ($block_content = BlockContent::create($settings)) {
       $status = $block_content->save();
     }
-    $this->assertEqual($status, SAVED_NEW, SafeMarkup::format('Created block content %info.', ['%info' => $block_content->label()]));
+    $this->assertEquals($status, SAVED_NEW, SafeMarkup::format('Created block content %info.', ['%info' => $block_content->label()]));
     return $block_content;
   }
 
@@ -100,7 +100,7 @@ protected function createBlockContentType(array $values = []) {
     $status = $bundle->save();
     block_content_add_body_field($bundle->id());
 
-    $this->assertEqual($status, SAVED_NEW, SafeMarkup::format('Created block content type %bundle.', ['%bundle' => $bundle->id()]));
+    $this->assertEquals($status, SAVED_NEW, SafeMarkup::format('Created block content type %bundle.', ['%bundle' => $bundle->id()]));
     return $bundle;
   }
 
diff --git a/core/modules/block_content/tests/src/Kernel/Migrate/MigrateBlockContentStubTest.php b/core/modules/block_content/tests/src/Kernel/Migrate/MigrateBlockContentStubTest.php
index 1958039acb..a99c3dc188 100644
--- a/core/modules/block_content/tests/src/Kernel/Migrate/MigrateBlockContentStubTest.php
+++ b/core/modules/block_content/tests/src/Kernel/Migrate/MigrateBlockContentStubTest.php
@@ -40,7 +40,7 @@ public function testStubFailure() {
     }
     catch (MigrateException $e) {
       $this->pass($message);
-      $this->assertEqual('Stubbing failed, no bundles available for entity type: block_content', $e->getMessage());
+      $this->assertEquals('Stubbing failed, no bundles available for entity type: block_content', $e->getMessage());
     }
   }
 
diff --git a/core/modules/book/tests/src/Functional/BookBreadcrumbTest.php b/core/modules/book/tests/src/Functional/BookBreadcrumbTest.php
index a863ff1529..702b30bf74 100644
--- a/core/modules/book/tests/src/Functional/BookBreadcrumbTest.php
+++ b/core/modules/book/tests/src/Functional/BookBreadcrumbTest.php
@@ -151,8 +151,8 @@ public function testBreadcrumbTitleUpdates() {
       $got_breadcrumb[] = $link->getText();
     }
     // Home link and four parent book nodes should be in the breadcrumb.
-    $this->assertEqual(5, count($got_breadcrumb));
-    $this->assertEqual($nodes[3]->getTitle(), end($got_breadcrumb));
+    $this->assertEquals(5, count($got_breadcrumb));
+    $this->assertEquals($nodes[3]->getTitle(), end($got_breadcrumb));
     $edit = [
       'title[0][value]' => 'Updated node5 title',
     ];
@@ -164,8 +164,8 @@ public function testBreadcrumbTitleUpdates() {
     foreach ($links as $link) {
       $got_breadcrumb[] = $link->getText();
     }
-    $this->assertEqual(5, count($got_breadcrumb));
-    $this->assertEqual($edit['title[0][value]'], end($got_breadcrumb));
+    $this->assertEquals(5, count($got_breadcrumb));
+    $this->assertEquals($edit['title[0][value]'], end($got_breadcrumb));
   }
 
   /**
@@ -185,8 +185,8 @@ public function testBreadcrumbAccessUpdates() {
     foreach ($links as $link) {
       $got_breadcrumb[] = $link->getText();
     }
-    $this->assertEqual(5, count($got_breadcrumb));
-    $this->assertEqual($edit['title[0][value]'], end($got_breadcrumb));
+    $this->assertEquals(5, count($got_breadcrumb));
+    $this->assertEquals($edit['title[0][value]'], end($got_breadcrumb));
     $config = $this->container->get('config.factory')->getEditable('book_breadcrumb_test.settings');
     $config->set('hide', TRUE)->save();
     $this->drupalGet($nodes[4]->toUrl());
@@ -195,8 +195,8 @@ public function testBreadcrumbAccessUpdates() {
     foreach ($links as $link) {
       $got_breadcrumb[] = $link->getText();
     }
-    $this->assertEqual(4, count($got_breadcrumb));
-    $this->assertEqual($nodes[2]->getTitle(), end($got_breadcrumb));
+    $this->assertEquals(4, count($got_breadcrumb));
+    $this->assertEquals($nodes[2]->getTitle(), end($got_breadcrumb));
     $this->drupalGet($nodes[3]->toUrl());
     $this->assertResponse(403);
   }
diff --git a/core/modules/book/tests/src/Functional/BookTest.php b/core/modules/book/tests/src/Functional/BookTest.php
index d02dfd50d9..206cb4f3cf 100644
--- a/core/modules/book/tests/src/Functional/BookTest.php
+++ b/core/modules/book/tests/src/Functional/BookTest.php
@@ -294,13 +294,13 @@ public function testGetTableOfContents() {
     $manager = $this->container->get('book.manager');
     $options = $manager->getTableOfContents($book->id(), 3);
     $expected_nids = [$book->id(), $nodes[0]->id(), $nodes[1]->id(), $nodes[2]->id(), $nodes[3]->id(), $nodes[6]->id(), $nodes[4]->id()];
-    $this->assertEqual(count($options), count($expected_nids));
+    $this->assertEquals(count($options), count($expected_nids));
     $diff = array_diff($expected_nids, array_keys($options));
     $this->assertTrue(empty($diff), 'Found all expected option keys');
     // Exclude Node 3.
     $options = $manager->getTableOfContents($book->id(), 3, [$nodes[3]->id()]);
     $expected_nids = [$book->id(), $nodes[0]->id(), $nodes[1]->id(), $nodes[2]->id(), $nodes[4]->id()];
-    $this->assertEqual(count($options), count($expected_nids));
+    $this->assertEquals(count($options), count($expected_nids));
     $diff = array_diff($expected_nids, array_keys($options));
     $this->assertTrue(empty($diff), 'Found all expected option keys after excluding Node 3');
   }
@@ -377,10 +377,10 @@ public function testBookDelete() {
     $node_storage = \Drupal::entityTypeManager()->getStorage('node');
     $node_storage->resetCache();
     $child = $node_storage->load($nodes[0]->id());
-    $this->assertEqual($child->id(), $child->book['bid'], 'Child node book ID updated when parent is deleted.');
+    $this->assertEquals($child->id(), $child->book['bid'], 'Child node book ID updated when parent is deleted.');
     // 3rd-level children should now be 2nd-level.
     $second = $node_storage->load($nodes[1]->id());
-    $this->assertEqual($child->id(), $second->book['bid'], '3rd-level child node is now second level when top-level node is deleted.');
+    $this->assertEquals($child->id(), $second->book['bid'], '3rd-level child node is now second level when top-level node is deleted.');
   }
 
   /**
@@ -405,11 +405,11 @@ public function testBookOutline() {
     $this->drupalPostForm('node/' . $empty_book->id() . '/outline', $edit, t('Add to book outline'));
     $node = \Drupal::entityManager()->getStorage('node')->load($empty_book->id());
     // Test the book array.
-    $this->assertEqual($node->book['nid'], $empty_book->id());
-    $this->assertEqual($node->book['bid'], $empty_book->id());
-    $this->assertEqual($node->book['depth'], 1);
-    $this->assertEqual($node->book['p1'], $empty_book->id());
-    $this->assertEqual($node->book['pid'], '0');
+    $this->assertEquals($node->book['nid'], $empty_book->id());
+    $this->assertEquals($node->book['bid'], $empty_book->id());
+    $this->assertEquals($node->book['depth'], 1);
+    $this->assertEquals($node->book['p1'], $empty_book->id());
+    $this->assertEquals($node->book['pid'], '0');
 
     // Create new book.
     $this->drupalLogin($this->bookAuthor);
@@ -429,11 +429,11 @@ public function testBookOutline() {
     $node = \Drupal::entityManager()->getStorage('node')->load($node->id());
 
     // Test the book array.
-    $this->assertEqual($node->book['nid'], $node->id());
-    $this->assertEqual($node->book['bid'], $node->id());
-    $this->assertEqual($node->book['depth'], 1);
-    $this->assertEqual($node->book['p1'], $node->id());
-    $this->assertEqual($node->book['pid'], '0');
+    $this->assertEquals($node->book['nid'], $node->id());
+    $this->assertEquals($node->book['bid'], $node->id());
+    $this->assertEquals($node->book['depth'], 1);
+    $this->assertEquals($node->book['p1'], $node->id());
+    $this->assertEquals($node->book['pid'], '0');
 
     // Test the form itself.
     $this->drupalGet('node/' . $node->id() . '/edit');
@@ -457,7 +457,7 @@ public function testSaveBookLink() {
     $link += $book_manager->getLinkDefaults($link['nid']);
 
     // Test the return from saveBookLink.
-    $this->assertEqual($return, $link);
+    $this->assertEquals($return, $link);
   }
 
   /**
@@ -503,7 +503,7 @@ public function testAdminBookNodeListing() {
     $this->assertText($this->book->label(), 'The book title is displayed on the administrative book listing page.');
 
     $elements = $this->xpath('//table//ul[@class="dropbutton"]/li/a');
-    $this->assertEqual($elements[0]->getText(), 'View', 'View link is found from the list.');
+    $this->assertEquals($elements[0]->getText(), 'View', 'View link is found from the list.');
   }
 
   /**
@@ -526,7 +526,7 @@ public function testHookNodeLoadAccess() {
     $this->drupalLogin($this->webUserWithoutNodeAccess);
     $book_node = $node_storage->load($this->book->id());
     $this->assertTrue(!empty($book_node->book));
-    $this->assertEqual($book_node->book['bid'], $this->book->id());
+    $this->assertEquals($book_node->book['bid'], $this->book->id());
 
     // Reset the internal cache to retrigger the hook_node_load() call.
     $node_storage->resetCache();
@@ -534,7 +534,7 @@ public function testHookNodeLoadAccess() {
     $this->drupalLogin($this->webUser);
     $book_node = $node_storage->load($this->book->id());
     $this->assertTrue(!empty($book_node->book));
-    $this->assertEqual($book_node->book['bid'], $this->book->id());
+    $this->assertEquals($book_node->book['bid'], $this->book->id());
   }
 
   /**
diff --git a/core/modules/book/tests/src/Kernel/BookUninstallTest.php b/core/modules/book/tests/src/Kernel/BookUninstallTest.php
index 9430991ffe..89976628ca 100644
--- a/core/modules/book/tests/src/Kernel/BookUninstallTest.php
+++ b/core/modules/book/tests/src/Kernel/BookUninstallTest.php
@@ -40,7 +40,7 @@ protected function setUp() {
   public function testBookUninstall() {
     // No nodes exist.
     $validation_reasons = \Drupal::service('module_installer')->validateUninstall(['book']);
-    $this->assertEqual([], $validation_reasons, 'The book module is not required.');
+    $this->assertEquals([], $validation_reasons, 'The book module is not required.');
 
     $content_type = NodeType::create([
       'type' => $this->randomMachineName(),
@@ -58,7 +58,7 @@ public function testBookUninstall() {
 
     // One node in a book but not of type book.
     $validation_reasons = \Drupal::service('module_installer')->validateUninstall(['book']);
-    $this->assertEqual(['To uninstall Book, delete all content that is part of a book'], $validation_reasons['book']);
+    $this->assertEquals(['To uninstall Book, delete all content that is part of a book'], $validation_reasons['book']);
 
     $book_node = Node::create(['title' => $this->randomString(), 'type' => 'book']);
     $book_node->book['bid'] = FALSE;
@@ -67,12 +67,12 @@ public function testBookUninstall() {
     // Two nodes, one in a book but not of type book and one book node (which is
     // not in a book).
     $validation_reasons = \Drupal::service('module_installer')->validateUninstall(['book']);
-    $this->assertEqual(['To uninstall Book, delete all content that is part of a book'], $validation_reasons['book']);
+    $this->assertEquals(['To uninstall Book, delete all content that is part of a book'], $validation_reasons['book']);
 
     $node->delete();
     // One node of type book but not actually part of a book.
     $validation_reasons = \Drupal::service('module_installer')->validateUninstall(['book']);
-    $this->assertEqual(['To uninstall Book, delete all content that has the Book content type'], $validation_reasons['book']);
+    $this->assertEquals(['To uninstall Book, delete all content that has the Book content type'], $validation_reasons['book']);
 
     $book_node->delete();
     // No nodes exist therefore the book module is not required.
@@ -84,7 +84,7 @@ public function testBookUninstall() {
     // One node exists but is not part of a book therefore the book module is
     // not required.
     $validation_reasons = \Drupal::service('module_installer')->validateUninstall(['book']);
-    $this->assertEqual([], $validation_reasons, 'The book module is not required.');
+    $this->assertEquals([], $validation_reasons, 'The book module is not required.');
 
     // Uninstall the Book module and check the node type is deleted.
     \Drupal::service('module_installer')->uninstall(['book']);
diff --git a/core/modules/breakpoint/tests/src/Kernel/BreakpointDiscoveryTest.php b/core/modules/breakpoint/tests/src/Kernel/BreakpointDiscoveryTest.php
index dc8175787b..56880fedb9 100644
--- a/core/modules/breakpoint/tests/src/Kernel/BreakpointDiscoveryTest.php
+++ b/core/modules/breakpoint/tests/src/Kernel/BreakpointDiscoveryTest.php
@@ -81,7 +81,7 @@ public function testThemeBreakpoints() {
 
     $breakpoints = \Drupal::service('breakpoint.manager')->getBreakpointsByGroup('breakpoint_theme_test');
     foreach ($expected_breakpoints as $id => $expected_breakpoint) {
-      $this->assertEqual($expected_breakpoint, $breakpoints[$id]->getPluginDefinition());
+      $this->assertEquals($expected_breakpoint, $breakpoints[$id]->getPluginDefinition());
     }
 
     // Test that the order is as expected.
@@ -136,7 +136,7 @@ public function testCustomBreakpointGroups() {
 
     $breakpoints = \Drupal::service('breakpoint.manager')->getBreakpointsByGroup('breakpoint_theme_test.group2');
     foreach ($expected_breakpoints as $id => $expected_breakpoint) {
-      $this->assertEqual($expected_breakpoint, $breakpoints[$id]->getPluginDefinition());
+      $this->assertEquals($expected_breakpoint, $breakpoints[$id]->getPluginDefinition());
     }
   }
 
@@ -173,7 +173,7 @@ public function testModuleBreakpoints() {
     ];
 
     $breakpoints = \Drupal::service('breakpoint.manager')->getBreakpointsByGroup('breakpoint_module_test');
-    $this->assertEqual(array_keys($expected_breakpoints), array_keys($breakpoints));
+    $this->assertEquals(array_keys($expected_breakpoints), array_keys($breakpoints));
   }
 
   /**
@@ -195,7 +195,7 @@ public function testBreakpointGroups() {
       'breakpoint_module_test' => 'module',
     ];
     $breakpoint_group_providers = \Drupal::service('breakpoint.manager')->getGroupProviders('breakpoint_theme_test.group2');
-    $this->assertEqual($expected, $breakpoint_group_providers);
+    $this->assertEquals($expected, $breakpoint_group_providers);
   }
 
 }
diff --git a/core/modules/ckeditor/tests/modules/src/Kernel/CKEditorTest.php b/core/modules/ckeditor/tests/modules/src/Kernel/CKEditorTest.php
index 4f1da31834..45e150f347 100644
--- a/core/modules/ckeditor/tests/modules/src/Kernel/CKEditorTest.php
+++ b/core/modules/ckeditor/tests/modules/src/Kernel/CKEditorTest.php
@@ -292,14 +292,14 @@ public function testInternalGetConfig() {
     $expected = $this->getDefaultInternalConfig();
     $expected['disallowedContent'] = $this->getDefaultDisallowedContentConfig();
     $expected['allowedContent'] = $this->getDefaultAllowedContentConfig();
-    $this->assertEqual($expected, $internal_plugin->getConfig($editor), '"Internal" plugin configuration built correctly for default toolbar.');
+    $this->assertEquals($expected, $internal_plugin->getConfig($editor), '"Internal" plugin configuration built correctly for default toolbar.');
 
     // Format dropdown/button enabled: new setting should be present.
     $settings = $editor->getSettings();
     $settings['toolbar']['rows'][0][0]['items'][] = 'Format';
     $editor->setSettings($settings);
     $expected['format_tags'] = 'p;h2;h3;h4;h5;h6';
-    $this->assertEqual($expected, $internal_plugin->getConfig($editor), '"Internal" plugin configuration built correctly for customized toolbar.');
+    $this->assertEquals($expected, $internal_plugin->getConfig($editor), '"Internal" plugin configuration built correctly for customized toolbar.');
   }
 
   /**
@@ -424,7 +424,7 @@ protected function assertCKEditorLanguage($langcode = 'fr') {
     // Test that we now get the expected language.
     $editor = Editor::load('filtered_html');
     $settings = $this->ckeditor->getJSSettings($editor);
-    $this->assertEqual($settings['language'], $langcode);
+    $this->assertEquals($settings['language'], $langcode);
   }
 
   protected function getDefaultInternalConfig() {
diff --git a/core/modules/ckeditor/tests/src/Functional/CKEditorAdminTest.php b/core/modules/ckeditor/tests/src/Functional/CKEditorAdminTest.php
index 1ec222746e..a9375d8051 100644
--- a/core/modules/ckeditor/tests/src/Functional/CKEditorAdminTest.php
+++ b/core/modules/ckeditor/tests/src/Functional/CKEditorAdminTest.php
@@ -122,7 +122,7 @@ public function testExistingFormat() {
     ];
     $settings = $this->getDrupalSettings();
     $expected = $settings['ckeditor']['toolbarAdmin'];
-    $this->assertEqual(
+    $this->assertEquals(
       $expected,
       $this->container->get('renderer')->renderPlain($ckeditor_settings_toolbar),
       'CKEditor toolbar settings are rendered as part of drupalSettings.'
@@ -146,7 +146,7 @@ public function testExistingFormat() {
     $expected_settings['plugins']['stylescombo']['styles'] = '';
     $editor = Editor::load('filtered_html');
     $this->assertTrue($editor instanceof Editor, 'An Editor config entity exists now.');
-    $this->assertEqual($expected_settings, $editor->getSettings(), 'The Editor config entity has the correct settings.');
+    $this->assertEquals($expected_settings, $editor->getSettings(), 'The Editor config entity has the correct settings.');
 
     // Configure the Styles plugin, and ensure the updated settings are saved.
     $this->drupalGet('admin/config/content/formats/manage/filtered_html');
@@ -157,7 +157,7 @@ public function testExistingFormat() {
     $expected_settings['plugins']['stylescombo']['styles'] = "h1.title|Title\np.callout|Callout\n\n";
     $editor = Editor::load('filtered_html');
     $this->assertTrue($editor instanceof Editor, 'An Editor config entity exists.');
-    $this->assertEqual($expected_settings, $editor->getSettings(), 'The Editor config entity has the correct settings.');
+    $this->assertEquals($expected_settings, $editor->getSettings(), 'The Editor config entity has the correct settings.');
 
     // Change the buttons that appear on the toolbar (in JavaScript, this is
     // done via drag and drop, but here we can only emulate the end result of
@@ -173,7 +173,7 @@ public function testExistingFormat() {
     $this->drupalPostForm(NULL, $edit, t('Save configuration'));
     $editor = Editor::load('filtered_html');
     $this->assertTrue($editor instanceof Editor, 'An Editor config entity exists.');
-    $this->assertEqual($expected_settings, $editor->getSettings(), 'The Editor config entity has the correct settings.');
+    $this->assertEquals($expected_settings, $editor->getSettings(), 'The Editor config entity has the correct settings.');
 
     // Check that the markup we're setting for the toolbar buttons (actually in
     // JavaScript's drupalSettings, and Unicode-escaped) is correctly rendered.
@@ -201,7 +201,7 @@ public function testExistingFormat() {
     $this->assertTrue(count($ultra_llama_mode_checkbox) === 1, 'The "Ultra llama mode" checkbox exists and is not checked.');
     $editor = Editor::load('filtered_html');
     $this->assertTrue($editor instanceof Editor, 'An Editor config entity exists.');
-    $this->assertEqual($expected_settings, $editor->getSettings(), 'The Editor config entity has the correct settings.');
+    $this->assertEquals($expected_settings, $editor->getSettings(), 'The Editor config entity has the correct settings.');
 
     // Finally, check the "Ultra llama mode" checkbox.
     $this->drupalGet('admin/config/content/formats/manage/filtered_html');
@@ -215,7 +215,7 @@ public function testExistingFormat() {
     $expected_settings['plugins']['llama_contextual_and_button']['ultra_llama_mode'] = TRUE;
     $editor = Editor::load('filtered_html');
     $this->assertTrue($editor instanceof Editor, 'An Editor config entity exists.');
-    $this->assertEqual($expected_settings, $editor->getSettings());
+    $this->assertEquals($expected_settings, $editor->getSettings());
   }
 
   /**
@@ -282,7 +282,7 @@ public function testNewFormat() {
     $expected_settings['plugins']['stylescombo']['styles'] = '';
     $editor = Editor::load('amazing_format');
     $this->assertTrue($editor instanceof Editor, 'An Editor config entity exists now.');
-    $this->assertEqual($this->castSafeStrings($expected_settings), $this->castSafeStrings($editor->getSettings()), 'The Editor config entity has the correct settings.');
+    $this->assertEquals($this->castSafeStrings($expected_settings), $this->castSafeStrings($editor->getSettings()), 'The Editor config entity has the correct settings.');
   }
 
 }
diff --git a/core/modules/ckeditor/tests/src/Functional/CKEditorStylesComboAdminTest.php b/core/modules/ckeditor/tests/src/Functional/CKEditorStylesComboAdminTest.php
index 9f41834de5..bdd0ff9fbd 100644
--- a/core/modules/ckeditor/tests/src/Functional/CKEditorStylesComboAdminTest.php
+++ b/core/modules/ckeditor/tests/src/Functional/CKEditorStylesComboAdminTest.php
@@ -69,7 +69,7 @@ public function testExistingFormat() {
     // Ensure an Editor config entity exists, with the proper settings.
     $expected_settings = $default_settings;
     $editor = Editor::load($this->format);
-    $this->assertEqual($expected_settings, $editor->getSettings(), 'The Editor config entity has the correct settings.');
+    $this->assertEquals($expected_settings, $editor->getSettings(), 'The Editor config entity has the correct settings.');
 
     // Case 1: Configure the Styles plugin with different labels for each style,
     // and ensure the updated settings are saved.
@@ -80,7 +80,7 @@ public function testExistingFormat() {
     $this->drupalPostForm(NULL, $edit, t('Save configuration'));
     $expected_settings['plugins']['stylescombo']['styles'] = "h1.title|Title\np.callout|Callout\n\n";
     $editor = Editor::load($this->format);
-    $this->assertEqual($expected_settings, $editor->getSettings(), 'The Editor config entity has the correct settings.');
+    $this->assertEquals($expected_settings, $editor->getSettings(), 'The Editor config entity has the correct settings.');
 
     // Case 2: Configure the Styles plugin with same labels for each style, and
     // ensure that an error is displayed and that the updated settings are not
@@ -93,7 +93,7 @@ public function testExistingFormat() {
     $this->assertRaw(t('Each style must have a unique label.'));
     $expected_settings['plugins']['stylescombo']['styles'] = "h1.title|Title\np.callout|Callout\n\n";
     $editor = Editor::load($this->format);
-    $this->assertEqual($expected_settings, $editor->getSettings(), 'The Editor config entity has the correct settings.');
+    $this->assertEquals($expected_settings, $editor->getSettings(), 'The Editor config entity has the correct settings.');
   }
 
 }
diff --git a/core/modules/comment/src/Tests/CommentNewIndicatorTest.php b/core/modules/comment/src/Tests/CommentNewIndicatorTest.php
index 318e17c57c..9bb3f14934 100644
--- a/core/modules/comment/src/Tests/CommentNewIndicatorTest.php
+++ b/core/modules/comment/src/Tests/CommentNewIndicatorTest.php
@@ -109,8 +109,8 @@ public function testCommentNewCommentsIndicator() {
     // The data will be pre-seeded on this particular page in drupalSettings, to
     // avoid the need for the client to make a separate request to the server.
     $settings = $this->getDrupalSettings();
-    $this->assertEqual($settings['history'], ['lastReadTimestamps' => [1 => 0]]);
-    $this->assertEqual($settings['comment'], [
+    $this->assertEquals($settings['history'], ['lastReadTimestamps' => [1 => 0]]);
+    $this->assertEquals($settings['comment'], [
       'newCommentsLinks' => [
         'node' => [
           'comment' => [
diff --git a/core/modules/comment/src/Tests/CommentPagerTest.php b/core/modules/comment/src/Tests/CommentPagerTest.php
index 48326bca6e..4ab53cee23 100644
--- a/core/modules/comment/src/Tests/CommentPagerTest.php
+++ b/core/modules/comment/src/Tests/CommentPagerTest.php
@@ -218,7 +218,7 @@ public function assertCommentOrder(array $comments, array $expected_order) {
     foreach ($comment_anchors as $anchor) {
       $result_order[] = substr($anchor['id'], 8);
     }
-    return $this->assertEqual($expected_cids, $result_order, format_string('Comment order: expected @expected, returned @returned.', ['@expected' => implode(',', $expected_cids), '@returned' => implode(',', $result_order)]));
+    return $this->assertEquals($expected_cids, $result_order, format_string('Comment order: expected @expected, returned @returned.', ['@expected' => implode(',', $expected_cids), '@returned' => implode(',', $result_order)]));
   }
 
   /**
@@ -309,7 +309,7 @@ public function testCommentNewPageIndicator() {
     foreach ($expected_pages as $new_replies => $expected_page) {
       $returned_page = \Drupal::entityManager()->getStorage('comment')
         ->getNewCommentPageNumber($node->get('comment')->comment_count, $new_replies, $node, 'comment');
-      $this->assertEqual($expected_page, $returned_page, format_string('Threaded mode, @new replies: expected page @expected, returned page @returned.', ['@new' => $new_replies, '@expected' => $expected_page, '@returned' => $returned_page]));
+      $this->assertEquals($expected_page, $returned_page, format_string('Threaded mode, @new replies: expected page @expected, returned page @returned.', ['@new' => $new_replies, '@expected' => $expected_page, '@returned' => $returned_page]));
     }
   }
 
diff --git a/core/modules/comment/tests/src/Functional/CommentAdminTest.php b/core/modules/comment/tests/src/Functional/CommentAdminTest.php
index 9e26be4f08..da7aa260a7 100644
--- a/core/modules/comment/tests/src/Functional/CommentAdminTest.php
+++ b/core/modules/comment/tests/src/Functional/CommentAdminTest.php
@@ -276,7 +276,7 @@ public function testCommentedTranslationDeletion() {
     $this->assertText('Urdu');
     $this->drupalPostForm(NULL, [], t('Delete'));
     $after_count = $count_query->execute();
-    $this->assertEqual($after_count, $before_count, 'No comment or translation found.');
+    $this->assertEquals($after_count, $before_count, 'No comment or translation found.');
   }
 
 }
diff --git a/core/modules/comment/tests/src/Functional/CommentFieldsTest.php b/core/modules/comment/tests/src/Functional/CommentFieldsTest.php
index 2df9973348..2676505d1d 100644
--- a/core/modules/comment/tests/src/Functional/CommentFieldsTest.php
+++ b/core/modules/comment/tests/src/Functional/CommentFieldsTest.php
@@ -56,7 +56,7 @@ public function testCommentDefaultFields() {
     // Test adding a field that defaults to CommentItemInterface::CLOSED.
     $this->addDefaultCommentField('node', 'test_node_type', 'who_likes_ponies', CommentItemInterface::CLOSED, 'who_likes_ponies');
     $field = FieldConfig::load('node.test_node_type.who_likes_ponies');;
-    $this->assertEqual($field->getDefaultValueLiteral()[0]['status'], CommentItemInterface::CLOSED);
+    $this->assertEquals($field->getDefaultValueLiteral()[0]['status'], CommentItemInterface::CLOSED);
   }
 
   /**
@@ -80,13 +80,13 @@ public function testCommentFieldDelete() {
 
     $this->drupalGet('node/' . $node->nid->value);
     $elements = $this->cssSelect('.field--type-comment');
-    $this->assertEqual(2, count($elements), 'There are two comment fields on the node.');
+    $this->assertEquals(2, count($elements), 'There are two comment fields on the node.');
 
     // Delete the first comment field.
     FieldStorageConfig::loadByName('node', 'comment')->delete();
     $this->drupalGet('node/' . $node->nid->value);
     $elements = $this->cssSelect('.field--type-comment');
-    $this->assertEqual(1, count($elements), 'There is one comment field on the node.');
+    $this->assertEquals(1, count($elements), 'There is one comment field on the node.');
   }
 
   /**
diff --git a/core/modules/comment/tests/src/Functional/CommentInterfaceTest.php b/core/modules/comment/tests/src/Functional/CommentInterfaceTest.php
index 7342633bbc..6422ff46b3 100644
--- a/core/modules/comment/tests/src/Functional/CommentInterfaceTest.php
+++ b/core/modules/comment/tests/src/Functional/CommentInterfaceTest.php
@@ -128,9 +128,9 @@ public function testCommentInterface() {
     $reply = $this->postComment(NULL, $this->randomMachineName(), '', TRUE);
     $reply_loaded = Comment::load($reply->id());
     $this->assertTrue($this->commentExists($reply, TRUE), 'Reply found.');
-    $this->assertEqual($comment->id(), $reply_loaded->getParentComment()->id(), 'Pid of a reply to a comment is set correctly.');
+    $this->assertEquals($comment->id(), $reply_loaded->getParentComment()->id(), 'Pid of a reply to a comment is set correctly.');
     // Check the thread of reply grows correctly.
-    $this->assertEqual(rtrim($comment->getThread(), '/') . '.00/', $reply_loaded->getThread());
+    $this->assertEquals(rtrim($comment->getThread(), '/') . '.00/', $reply_loaded->getThread());
 
     // Second reply to comment #2 creating comment #4.
     $this->drupalGet('comment/reply/node/' . $this->node->id() . '/comment/' . $comment->id());
@@ -140,7 +140,7 @@ public function testCommentInterface() {
     $reply_loaded = Comment::load($reply->id());
     $this->assertTrue($this->commentExists($reply, TRUE), 'Second reply found.');
     // Check the thread of second reply grows correctly.
-    $this->assertEqual(rtrim($comment->getThread(), '/') . '.01/', $reply_loaded->getThread());
+    $this->assertEquals(rtrim($comment->getThread(), '/') . '.01/', $reply_loaded->getThread());
 
     // Reply to comment #4 creating comment #5.
     $this->drupalGet('comment/reply/node/' . $this->node->id() . '/comment/' . $reply_loaded->id());
@@ -150,7 +150,7 @@ public function testCommentInterface() {
     $reply_loaded = Comment::load($reply->id());
     $this->assertTrue($this->commentExists($reply, TRUE), 'Second reply found.');
     // Check the thread of reply to second reply grows correctly.
-    $this->assertEqual(rtrim($comment->getThread(), '/') . '.01.00/', $reply_loaded->getThread());
+    $this->assertEquals(rtrim($comment->getThread(), '/') . '.01.00/', $reply_loaded->getThread());
 
     // Edit reply.
     $this->drupalGet('comment/' . $reply->id() . '/edit');
@@ -234,12 +234,12 @@ public function testAutoFilledSubject() {
     $body_text = 'Lorem ipsum Lorem ipsum Loreming ipsum Lorem ipsum';
     $comment1 = $this->postComment(NULL, $body_text, '', TRUE);
     $this->assertTrue($this->commentExists($comment1), 'Form comment found.');
-    $this->assertEqual('Lorem ipsum Lorem ipsum…', $comment1->getSubject());
+    $this->assertEquals('Lorem ipsum Lorem ipsum…', $comment1->getSubject());
 
     // Break at 29 characters where there's no boundary before that.
     $body_text2 = 'LoremipsumloremipsumLoremingipsumLoremipsum';
     $comment2 = $this->postComment(NULL, $body_text2, '', TRUE);
-    $this->assertEqual('LoremipsumloremipsumLoreming…', $comment2->getSubject());
+    $this->assertEquals('LoremipsumloremipsumLoreming…', $comment2->getSubject());
   }
 
   /**
@@ -283,7 +283,7 @@ public function testAutoFilledHtmlSubject() {
       'comment_body[0][format]' => 'filtered_html',
     ];
     $this->drupalPostForm(NULL, $edit1, t('Save'));
-    $this->assertEqual('Hello World', Comment::load(1)->getSubject());
+    $this->assertEquals('Hello World', Comment::load(1)->getSubject());
 
     // If there's nothing other than HTML, the subject should be '(No subject)'.
     $body_text2 = '<span></span><strong> </strong><span> </span><strong></strong> <br />';
@@ -292,7 +292,7 @@ public function testAutoFilledHtmlSubject() {
       'comment_body[0][format]' => 'filtered_html',
     ];
     $this->drupalPostForm(NULL, $edit2, t('Save'));
-    $this->assertEqual('(No subject)', Comment::load(2)->getSubject());
+    $this->assertEquals('(No subject)', Comment::load(2)->getSubject());
   }
 
   /**
diff --git a/core/modules/comment/tests/src/Functional/CommentLanguageTest.php b/core/modules/comment/tests/src/Functional/CommentLanguageTest.php
index ce9a9abb04..4206fd4739 100644
--- a/core/modules/comment/tests/src/Functional/CommentLanguageTest.php
+++ b/core/modules/comment/tests/src/Functional/CommentLanguageTest.php
@@ -119,8 +119,8 @@ public function testCommentLanguage() {
           ->execute();
         $comment = Comment::load(reset($cids));
         $args = ['%node_language' => $node_langcode, '%comment_language' => $comment->langcode->value, '%langcode' => $langcode];
-        $this->assertEqual($comment->langcode->value, $langcode, format_string('The comment posted with content language %langcode and belonging to the node with language %node_language has language %comment_language', $args));
-        $this->assertEqual($comment->comment_body->value, $comment_values[$node_langcode][$langcode], 'Comment body correctly stored.');
+        $this->assertEquals($comment->langcode->value, $langcode, format_string('The comment posted with content language %langcode and belonging to the node with language %node_language has language %comment_language', $args));
+        $this->assertEquals($comment->comment_body->value, $comment_values[$node_langcode][$langcode], 'Comment body correctly stored.');
       }
     }
 
diff --git a/core/modules/comment/tests/src/Functional/CommentNonNodeTest.php b/core/modules/comment/tests/src/Functional/CommentNonNodeTest.php
index 5889d69dee..dc0518c9cc 100644
--- a/core/modules/comment/tests/src/Functional/CommentNonNodeTest.php
+++ b/core/modules/comment/tests/src/Functional/CommentNonNodeTest.php
@@ -62,7 +62,7 @@ protected function setUp() {
 
     // Verify that bundles are defined correctly.
     $bundles = \Drupal::entityManager()->getBundleInfo('comment');
-    $this->assertEqual($bundles['comment']['label'], 'Comment settings');
+    $this->assertEquals($bundles['comment']['label'], 'Comment settings');
 
     // Create test user.
     $this->adminUser = $this->drupalCreateUser([
@@ -275,7 +275,7 @@ public function testCommentFunctionality() {
     // Test breadcrumb on comment add page.
     $this->drupalGet('comment/reply/entity_test/' . $this->entity->id() . '/comment');
     $xpath = '//nav[@class="breadcrumb"]/ol/li[last()]/a';
-    $this->assertEqual(current($this->xpath($xpath))->getText(), $this->entity->label(), 'Last breadcrumb item is equal to node title on comment reply page.');
+    $this->assertEquals(current($this->xpath($xpath))->getText(), $this->entity->label(), 'Last breadcrumb item is equal to node title on comment reply page.');
 
     // Post a comment.
     /** @var \Drupal\comment\CommentInterface $comment1 */
@@ -285,17 +285,17 @@ public function testCommentFunctionality() {
     // Test breadcrumb on comment reply page.
     $this->drupalGet('comment/reply/entity_test/' . $this->entity->id() . '/comment/' . $comment1->id());
     $xpath = '//nav[@class="breadcrumb"]/ol/li[last()]/a';
-    $this->assertEqual(current($this->xpath($xpath))->getText(), $comment1->getSubject(), 'Last breadcrumb item is equal to comment title on comment reply page.');
+    $this->assertEquals(current($this->xpath($xpath))->getText(), $comment1->getSubject(), 'Last breadcrumb item is equal to comment title on comment reply page.');
 
     // Test breadcrumb on comment edit page.
     $this->drupalGet('comment/' . $comment1->id() . '/edit');
     $xpath = '//nav[@class="breadcrumb"]/ol/li[last()]/a';
-    $this->assertEqual(current($this->xpath($xpath))->getText(), $comment1->getSubject(), 'Last breadcrumb item is equal to comment subject on edit page.');
+    $this->assertEquals(current($this->xpath($xpath))->getText(), $comment1->getSubject(), 'Last breadcrumb item is equal to comment subject on edit page.');
 
     // Test breadcrumb on comment delete page.
     $this->drupalGet('comment/' . $comment1->id() . '/delete');
     $xpath = '//nav[@class="breadcrumb"]/ol/li[last()]/a';
-    $this->assertEqual(current($this->xpath($xpath))->getText(), $comment1->getSubject(), 'Last breadcrumb item is equal to comment subject on delete confirm page.');
+    $this->assertEquals(current($this->xpath($xpath))->getText(), $comment1->getSubject(), 'Last breadcrumb item is equal to comment subject on delete confirm page.');
 
     // Unpublish the comment.
     $this->performCommentOperation($comment1, 'unpublish');
@@ -426,8 +426,8 @@ public function testCommentFunctionality() {
     // Check the field contains the correct comment type.
     $field_storage = FieldStorageConfig::load('entity_test.field_barfoo');
     $this->assertTrue($field_storage);
-    $this->assertEqual($field_storage->getSetting('comment_type'), 'foobar');
-    $this->assertEqual($field_storage->getCardinality(), 1);
+    $this->assertEquals($field_storage->getSetting('comment_type'), 'foobar');
+    $this->assertEquals($field_storage->getCardinality(), 1);
 
     // Test the new entity commenting inherits default.
     $random_label = $this->randomMachineName();
diff --git a/core/modules/comment/tests/src/Functional/CommentPreviewTest.php b/core/modules/comment/tests/src/Functional/CommentPreviewTest.php
index 868ebe470d..ecae0e638a 100644
--- a/core/modules/comment/tests/src/Functional/CommentPreviewTest.php
+++ b/core/modules/comment/tests/src/Functional/CommentPreviewTest.php
@@ -113,13 +113,13 @@ public function testCommentPreviewDuplicateSubmission() {
     $this->drupalPostForm(NULL, [], 'Save');
     $this->assertText('Your comment has been posted.');
     $elements = $this->xpath('//section[contains(@class, "comment-wrapper")]/article');
-    $this->assertEqual(1, count($elements));
+    $this->assertEquals(1, count($elements));
 
     // Go back and re-submit the form.
     $this->getSession()->getDriver()->back();
     $this->assertText('Your comment has been posted.');
     $elements = $this->xpath('//section[contains(@class, "comment-wrapper")]/article');
-    $this->assertEqual(2, count($elements));
+    $this->assertEquals(2, count($elements));
   }
 
   /**
@@ -187,10 +187,10 @@ public function testCommentEditPreviewSave() {
     $comment_storage->resetCache([$comment->id()]);
     /** @var \Drupal\comment\CommentInterface $comment_loaded */
     $comment_loaded = Comment::load($comment->id());
-    $this->assertEqual($comment_loaded->getSubject(), $edit['subject[0][value]'], 'Subject loaded.');
-    $this->assertEqual($comment_loaded->comment_body->value, $edit['comment_body[0][value]'], 'Comment body loaded.');
-    $this->assertEqual($comment_loaded->getOwner()->id(), $web_user->id(), 'Name loaded.');
-    $this->assertEqual($comment_loaded->getCreatedTime(), $raw_date, 'Date loaded.');
+    $this->assertEquals($comment_loaded->getSubject(), $edit['subject[0][value]'], 'Subject loaded.');
+    $this->assertEquals($comment_loaded->comment_body->value, $edit['comment_body[0][value]'], 'Comment body loaded.');
+    $this->assertEquals($comment_loaded->getOwner()->id(), $web_user->id(), 'Name loaded.');
+    $this->assertEquals($comment_loaded->getCreatedTime(), $raw_date, 'Date loaded.');
     $this->drupalLogout();
 
     // Check that the date and time of the comment are correct when edited by
@@ -203,7 +203,7 @@ public function testCommentEditPreviewSave() {
     $this->drupalPostForm('comment/' . $comment->id() . '/edit', $user_edit, t('Save'));
     $comment_storage->resetCache([$comment->id()]);
     $comment_loaded = Comment::load($comment->id());
-    $this->assertEqual($comment_loaded->getCreatedTime(), $expected_created_time, 'Expected date and time for comment edited.');
+    $this->assertEquals($comment_loaded->getCreatedTime(), $expected_created_time, 'Expected date and time for comment edited.');
     $this->drupalLogout();
   }
 
diff --git a/core/modules/comment/tests/src/Functional/CommentStatisticsTest.php b/core/modules/comment/tests/src/Functional/CommentStatisticsTest.php
index 4a0eae0879..b7b73de12a 100644
--- a/core/modules/comment/tests/src/Functional/CommentStatisticsTest.php
+++ b/core/modules/comment/tests/src/Functional/CommentStatisticsTest.php
@@ -50,10 +50,10 @@ public function testCommentNodeCommentStatistics() {
 
     // Checks the initial values of node comment statistics with no comment.
     $node = $node_storage->load($this->node->id());
-    $this->assertEqual($node->get('comment')->last_comment_timestamp, $this->node->getCreatedTime(), 'The initial value of node last_comment_timestamp is the node created date.');
-    $this->assertEqual($node->get('comment')->last_comment_name, NULL, 'The initial value of node last_comment_name is NULL.');
-    $this->assertEqual($node->get('comment')->last_comment_uid, $this->webUser->id(), 'The initial value of node last_comment_uid is the node uid.');
-    $this->assertEqual($node->get('comment')->comment_count, 0, 'The initial value of node comment_count is zero.');
+    $this->assertEquals($node->get('comment')->last_comment_timestamp, $this->node->getCreatedTime(), 'The initial value of node last_comment_timestamp is the node created date.');
+    $this->assertEquals($node->get('comment')->last_comment_name, NULL, 'The initial value of node last_comment_name is NULL.');
+    $this->assertEquals($node->get('comment')->last_comment_uid, $this->webUser->id(), 'The initial value of node last_comment_uid is the node uid.');
+    $this->assertEquals($node->get('comment')->comment_count, 0, 'The initial value of node comment_count is zero.');
 
     // Post comment #1 as web_user2.
     $this->drupalLogin($this->webUser2);
@@ -64,9 +64,9 @@ public function testCommentNodeCommentStatistics() {
     // The node cache needs to be reset before reload.
     $node_storage->resetCache([$this->node->id()]);
     $node = $node_storage->load($this->node->id());
-    $this->assertEqual($node->get('comment')->last_comment_name, NULL, 'The value of node last_comment_name is NULL.');
-    $this->assertEqual($node->get('comment')->last_comment_uid, $this->webUser2->id(), 'The value of node last_comment_uid is the comment #1 uid.');
-    $this->assertEqual($node->get('comment')->comment_count, 1, 'The value of node comment_count is 1.');
+    $this->assertEquals($node->get('comment')->last_comment_name, NULL, 'The value of node last_comment_name is NULL.');
+    $this->assertEquals($node->get('comment')->last_comment_uid, $this->webUser2->id(), 'The value of node last_comment_uid is the comment #1 uid.');
+    $this->assertEquals($node->get('comment')->comment_count, 1, 'The value of node comment_count is 1.');
 
     // Prepare for anonymous comment submission (comment approval enabled).
     $this->drupalLogin($this->adminUser);
@@ -88,9 +88,9 @@ public function testCommentNodeCommentStatistics() {
     // The node needs to be reloaded with the cache reset.
     $node_storage->resetCache([$this->node->id()]);
     $node = $node_storage->load($this->node->id());
-    $this->assertEqual($node->get('comment')->last_comment_name, NULL, 'The value of node last_comment_name is still NULL.');
-    $this->assertEqual($node->get('comment')->last_comment_uid, $this->webUser2->id(), 'The value of node last_comment_uid is still the comment #1 uid.');
-    $this->assertEqual($node->get('comment')->comment_count, 1, 'The value of node comment_count is still 1.');
+    $this->assertEquals($node->get('comment')->last_comment_name, NULL, 'The value of node last_comment_name is still NULL.');
+    $this->assertEquals($node->get('comment')->last_comment_uid, $this->webUser2->id(), 'The value of node last_comment_uid is still the comment #1 uid.');
+    $this->assertEquals($node->get('comment')->comment_count, 1, 'The value of node comment_count is still 1.');
 
     // Prepare for anonymous comment submission (no approval required).
     $this->drupalLogin($this->adminUser);
@@ -110,9 +110,9 @@ public function testCommentNodeCommentStatistics() {
     // The node needs to be reloaded with the cache reset.
     $node_storage->resetCache([$this->node->id()]);
     $node = $node_storage->load($this->node->id());
-    $this->assertEqual($node->get('comment')->last_comment_name, $comment_loaded->getAuthorName(), 'The value of node last_comment_name is the name of the anonymous user.');
-    $this->assertEqual($node->get('comment')->last_comment_uid, 0, 'The value of node last_comment_uid is zero.');
-    $this->assertEqual($node->get('comment')->comment_count, 2, 'The value of node comment_count is 2.');
+    $this->assertEquals($node->get('comment')->last_comment_name, $comment_loaded->getAuthorName(), 'The value of node last_comment_name is the name of the anonymous user.');
+    $this->assertEquals($node->get('comment')->last_comment_uid, 0, 'The value of node last_comment_uid is zero.');
+    $this->assertEquals($node->get('comment')->comment_count, 2, 'The value of node comment_count is 2.');
   }
 
 }
diff --git a/core/modules/comment/tests/src/Functional/CommentThreadingTest.php b/core/modules/comment/tests/src/Functional/CommentThreadingTest.php
index 9fe7aea09b..bd94b58145 100644
--- a/core/modules/comment/tests/src/Functional/CommentThreadingTest.php
+++ b/core/modules/comment/tests/src/Functional/CommentThreadingTest.php
@@ -34,7 +34,7 @@ public function testCommentThreading() {
     $comment1 = $this->postComment($this->node, $comment_text, $subject_text, TRUE);
     // Confirm that the comment was created and has the correct threading.
     $this->assertTrue($this->commentExists($comment1), 'Comment #1. Comment found.');
-    $this->assertEqual($comment1->getThread(), '01/');
+    $this->assertEquals($comment1->getThread(), '01/');
     // Confirm that there is no reference to a parent comment.
     $this->assertNoParentLink($comment1->id());
 
@@ -50,7 +50,7 @@ public function testCommentThreading() {
 
     // Confirm that the comment was created and has the correct threading.
     $this->assertTrue($this->commentExists($comment1_3, TRUE), 'Comment #1_3. Reply found.');
-    $this->assertEqual($comment1_3->getThread(), '01.00/');
+    $this->assertEquals($comment1_3->getThread(), '01.00/');
     // Confirm that there is a link to the parent comment.
     $this->assertParentLink($comment1_3->id(), $comment1->id());
 
@@ -60,7 +60,7 @@ public function testCommentThreading() {
 
     // Confirm that the comment was created and has the correct threading.
     $this->assertTrue($this->commentExists($comment1_3_4, TRUE), 'Comment #1_3_4. Second reply found.');
-    $this->assertEqual($comment1_3_4->getThread(), '01.00.00/');
+    $this->assertEquals($comment1_3_4->getThread(), '01.00.00/');
     // Confirm that there is a link to the parent comment.
     $this->assertParentLink($comment1_3_4->id(), $comment1_3->id());
 
@@ -71,7 +71,7 @@ public function testCommentThreading() {
 
     // Confirm that the comment was created and has the correct threading.
     $this->assertTrue($this->commentExists($comment1_5), 'Comment #1_5. Third reply found.');
-    $this->assertEqual($comment1_5->getThread(), '01.01/');
+    $this->assertEquals($comment1_5->getThread(), '01.01/');
     // Confirm that there is a link to the parent comment.
     $this->assertParentLink($comment1_5->id(), $comment1->id());
 
@@ -83,7 +83,7 @@ public function testCommentThreading() {
     $comment5 = $this->postComment($this->node, $comment_text, $subject_text, TRUE);
     // Confirm that the comment was created and has the correct threading.
     $this->assertTrue($this->commentExists($comment5), 'Comment #5. Second comment found.');
-    $this->assertEqual($comment5->getThread(), '03/');
+    $this->assertEquals($comment5->getThread(), '03/');
     // Confirm that there is no link to a parent comment.
     $this->assertNoParentLink($comment5->id());
 
@@ -93,7 +93,7 @@ public function testCommentThreading() {
 
     // Confirm that the comment was created and has the correct threading.
     $this->assertTrue($this->commentExists($comment5_6, TRUE), 'Comment #6. Reply found.');
-    $this->assertEqual($comment5_6->getThread(), '03.00/');
+    $this->assertEquals($comment5_6->getThread(), '03.00/');
     // Confirm that there is a link to the parent comment.
     $this->assertParentLink($comment5_6->id(), $comment5->id());
 
@@ -103,7 +103,7 @@ public function testCommentThreading() {
 
     // Confirm that the comment was created and has the correct threading.
     $this->assertTrue($this->commentExists($comment5_6_7, TRUE), 'Comment #5_6_7. Second reply found.');
-    $this->assertEqual($comment5_6_7->getThread(), '03.00.00/');
+    $this->assertEquals($comment5_6_7->getThread(), '03.00.00/');
     // Confirm that there is a link to the parent comment.
     $this->assertParentLink($comment5_6_7->id(), $comment5_6->id());
 
@@ -113,7 +113,7 @@ public function testCommentThreading() {
 
     // Confirm that the comment was created and has the correct threading.
     $this->assertTrue($this->commentExists($comment5_8), 'Comment #5_8. Third reply found.');
-    $this->assertEqual($comment5_8->getThread(), '03.01/');
+    $this->assertEquals($comment5_8->getThread(), '03.01/');
     // Confirm that there is a link to the parent comment.
     $this->assertParentLink($comment5_8->id(), $comment5->id());
   }
diff --git a/core/modules/comment/tests/src/Functional/CommentTitleTest.php b/core/modules/comment/tests/src/Functional/CommentTitleTest.php
index 65c4937e39..ed5426e3a4 100644
--- a/core/modules/comment/tests/src/Functional/CommentTitleTest.php
+++ b/core/modules/comment/tests/src/Functional/CommentTitleTest.php
@@ -76,7 +76,7 @@ public function testCommentPopulatedTitles() {
     $comment_permalink = $comment_permalink[0]->getAttribute('href');
     // Tests that the comment's title link contains the url fragment.
     $this->assertTrue(strpos($comment_permalink, '#comment-' . $comment1->id()), "The comment's title link contains the url fragment.");
-    $this->assertEqual($comment1->permalink()->toString(), $comment_permalink, "The comment's title has the correct link.");
+    $this->assertEquals($comment1->permalink()->toString(), $comment_permalink, "The comment's title has the correct link.");
   }
 
 }
diff --git a/core/modules/comment/tests/src/Functional/CommentTokenReplaceTest.php b/core/modules/comment/tests/src/Functional/CommentTokenReplaceTest.php
index a7fe6b5e07..e43b666a73 100644
--- a/core/modules/comment/tests/src/Functional/CommentTokenReplaceTest.php
+++ b/core/modules/comment/tests/src/Functional/CommentTokenReplaceTest.php
@@ -128,8 +128,8 @@ public function testCommentTokenReplacement() {
     foreach ($tests as $input => $expected) {
       $bubbleable_metadata = new BubbleableMetadata();
       $output = $token_service->replace($input, ['comment' => $comment], ['langcode' => $language_interface->getId()], $bubbleable_metadata);
-      $this->assertEqual($output, $expected, new FormattableMarkup('Comment token %token replaced.', ['%token' => $input]));
-      $this->assertEqual($bubbleable_metadata, $metadata_tests[$input]);
+      $this->assertEquals($output, $expected, new FormattableMarkup('Comment token %token replaced.', ['%token' => $input]));
+      $this->assertEquals($bubbleable_metadata, $metadata_tests[$input]);
     }
 
     // Test anonymous comment author.
@@ -137,7 +137,7 @@ public function testCommentTokenReplacement() {
     $comment->setOwnerId(0)->setAuthorName($author_name);
     $input = '[comment:author]';
     $output = $token_service->replace($input, ['comment' => $comment], ['langcode' => $language_interface->getId()]);
-    $this->assertEqual($output, Html::escape($author_name), format_string('Comment author token %token replaced.', ['%token' => $input]));
+    $this->assertEquals($output, Html::escape($author_name), format_string('Comment author token %token replaced.', ['%token' => $input]));
     // Add comment field to user and term entities.
     $this->addDefaultCommentField('user', 'user', 'comment', CommentItemInterface::OPEN, 'comment_user');
     $this->addDefaultCommentField('taxonomy_term', 'tags', 'comment', CommentItemInterface::OPEN, 'comment_term');
@@ -174,7 +174,7 @@ public function testCommentTokenReplacement() {
 
     foreach ($tests as $input => $expected) {
       $output = $token_service->replace($input, ['entity' => $node, 'node' => $node, 'user' => $user, 'term' => $term], ['langcode' => $language_interface->getId()]);
-      $this->assertEqual($output, $expected, format_string('Comment token %token replaced.', ['%token' => $input]));
+      $this->assertEquals($output, $expected, format_string('Comment token %token replaced.', ['%token' => $input]));
     }
   }
 
diff --git a/core/modules/comment/tests/src/Functional/CommentTranslationUITest.php b/core/modules/comment/tests/src/Functional/CommentTranslationUITest.php
index daac938fa3..5720c50ffb 100644
--- a/core/modules/comment/tests/src/Functional/CommentTranslationUITest.php
+++ b/core/modules/comment/tests/src/Functional/CommentTranslationUITest.php
@@ -174,8 +174,8 @@ protected function doTestAuthoringInfo() {
     $entity = $storage->load($this->entityId);
     foreach ($this->langcodes as $langcode) {
       $metadata = $this->manager->getTranslationMetadata($entity->getTranslation($langcode));
-      $this->assertEqual($metadata->getAuthor()->id(), $values[$langcode]['uid'], 'Translation author correctly stored.');
-      $this->assertEqual($metadata->getCreatedTime(), $values[$langcode]['created'], 'Translation date correctly stored.');
+      $this->assertEquals($metadata->getAuthor()->id(), $values[$langcode]['uid'], 'Translation author correctly stored.');
+      $this->assertEquals($metadata->getCreatedTime(), $values[$langcode]['created'], 'Translation date correctly stored.');
     }
   }
 
diff --git a/core/modules/comment/tests/src/Functional/CommentTypeTest.php b/core/modules/comment/tests/src/Functional/CommentTypeTest.php
index 291f9dc3e1..e4b0128be0 100644
--- a/core/modules/comment/tests/src/Functional/CommentTypeTest.php
+++ b/core/modules/comment/tests/src/Functional/CommentTypeTest.php
@@ -74,7 +74,7 @@ public function testCommentTypeCreation() {
 
     // Check that the comment type was created in site default language.
     $default_langcode = \Drupal::languageManager()->getDefaultLanguage()->getId();
-    $this->assertEqual($comment_type->language()->getId(), $default_langcode);
+    $this->assertEquals($comment_type->language()->getId(), $default_langcode);
 
     // Edit the comment-type and ensure that we cannot change the entity-type.
     $this->drupalGet('admin/structure/comment/manage/foo');
@@ -85,7 +85,7 @@ public function testCommentTypeCreation() {
     $this->drupalPostForm(NULL, [], t('Save'));
     \Drupal::entityManager()->getStorage('comment_type')->resetCache(['foo']);
     $comment_type = CommentType::load('foo');
-    $this->assertEqual($comment_type->getTargetEntityTypeId(), 'node');
+    $this->assertEquals($comment_type->getTargetEntityTypeId(), 'node');
   }
 
   /**
@@ -95,7 +95,7 @@ public function testCommentTypeEditing() {
     $this->drupalLogin($this->adminUser);
 
     $field = FieldConfig::loadByName('comment', 'comment', 'comment_body');
-    $this->assertEqual($field->getLabel(), 'Comment', 'Comment body field was found.');
+    $this->assertEquals($field->getLabel(), 'Comment', 'Comment body field was found.');
 
     // Change the comment type name.
     $this->drupalGet('admin/structure/comment');
diff --git a/core/modules/comment/tests/src/Functional/Update/CommentUpdateTest.php b/core/modules/comment/tests/src/Functional/Update/CommentUpdateTest.php
index e623132bbb..f1100d3bc0 100644
--- a/core/modules/comment/tests/src/Functional/Update/CommentUpdateTest.php
+++ b/core/modules/comment/tests/src/Functional/Update/CommentUpdateTest.php
@@ -65,7 +65,7 @@ public function testPublishedEntityKey() {
 
     // Check that the entity key exists and it has the correct value.
     $entity_type = \Drupal::entityDefinitionUpdateManager()->getEntityType('comment');
-    $this->assertEqual('status', $entity_type->getKey('published'));
+    $this->assertEquals('status', $entity_type->getKey('published'));
 
     // Check that the {comment_field_data} table status index has been created.
     $this->assertTrue(\Drupal::database()->schema()->indexExists('comment_field_data', 'comment__status_comment_type'));
diff --git a/core/modules/comment/tests/src/Functional/Views/CommentFieldFilterTest.php b/core/modules/comment/tests/src/Functional/Views/CommentFieldFilterTest.php
index dabacc3bed..97b229af4d 100644
--- a/core/modules/comment/tests/src/Functional/Views/CommentFieldFilterTest.php
+++ b/core/modules/comment/tests/src/Functional/Views/CommentFieldFilterTest.php
@@ -113,7 +113,7 @@ protected function assertPageCounts($path, $counts, $message) {
     // page, and they are the same. So the title/body string should appear on
     // the page twice as many times as the input count.
     foreach ($counts as $langcode => $count) {
-      $this->assertEqual(substr_count($text, $this->commentTitles[$langcode]), 2 * $count, 'Translation ' . $langcode . ' has count ' . $count . ' with ' . $message);
+      $this->assertEquals(substr_count($text, $this->commentTitles[$langcode]), 2 * $count, 'Translation ' . $langcode . ' has count ' . $count . ' with ' . $message);
     }
   }
 
diff --git a/core/modules/comment/tests/src/Functional/Views/CommentFieldNameTest.php b/core/modules/comment/tests/src/Functional/Views/CommentFieldNameTest.php
index a5e25be69c..ff993e937c 100644
--- a/core/modules/comment/tests/src/Functional/Views/CommentFieldNameTest.php
+++ b/core/modules/comment/tests/src/Functional/Views/CommentFieldNameTest.php
@@ -82,11 +82,11 @@ public function testCommentFieldName() {
     $output = $renderer->executeInRenderContext(new RenderContext(), function () use ($view) {
       return $view->field['field_name']->advancedRender($view->result[0]);
     });
-    $this->assertEqual($this->comment->getFieldName(), $output);
+    $this->assertEquals($this->comment->getFieldName(), $output);
     $output = $renderer->executeInRenderContext(new RenderContext(), function () use ($view) {
       return $view->field['field_name']->advancedRender($view->result[1]);
     });
-    $this->assertEqual($this->customComment->getFieldName(), $output);
+    $this->assertEquals($this->customComment->getFieldName(), $output);
   }
 
 }
diff --git a/core/modules/comment/tests/src/Functional/Views/CommentOperationsTest.php b/core/modules/comment/tests/src/Functional/Views/CommentOperationsTest.php
index 4bef37edc2..6a27bf8462 100644
--- a/core/modules/comment/tests/src/Functional/Views/CommentOperationsTest.php
+++ b/core/modules/comment/tests/src/Functional/Views/CommentOperationsTest.php
@@ -25,9 +25,9 @@ public function testCommentOperations() {
     $this->drupalGet('test-comment-operations');
     $this->assertResponse(200);
     $operation = $this->cssSelect('.views-field-operations li.edit a');
-    $this->assertEqual(count($operation), 1, 'Found edit operation for comment.');
+    $this->assertEquals(count($operation), 1, 'Found edit operation for comment.');
     $operation = $this->cssSelect('.views-field-operations li.delete a');
-    $this->assertEqual(count($operation), 1, 'Found delete operation for comment.');
+    $this->assertEquals(count($operation), 1, 'Found delete operation for comment.');
   }
 
 }
diff --git a/core/modules/comment/tests/src/Functional/Views/CommentRestExportTest.php b/core/modules/comment/tests/src/Functional/Views/CommentRestExportTest.php
index 17e04b5c5c..72c75fcd41 100644
--- a/core/modules/comment/tests/src/Functional/Views/CommentRestExportTest.php
+++ b/core/modules/comment/tests/src/Functional/Views/CommentRestExportTest.php
@@ -54,9 +54,9 @@ public function testCommentRestExport() {
     $this->drupalGet(sprintf('node/%d/comments', $this->nodeUserCommented->id()), ['query' => ['_format' => 'hal_json']]);
     $this->assertResponse(200);
     $contents = Json::decode($this->getRawContent());
-    $this->assertEqual($contents[0]['subject'], 'How much wood would a woodchuck chuck');
-    $this->assertEqual($contents[1]['subject'], 'A lot, apparently');
-    $this->assertEqual(count($contents), 2);
+    $this->assertEquals($contents[0]['subject'], 'How much wood would a woodchuck chuck');
+    $this->assertEquals($contents[1]['subject'], 'A lot, apparently');
+    $this->assertEquals(count($contents), 2);
 
     // Ensure field-level access is respected - user shouldn't be able to see
     // mail or hostname fields.
diff --git a/core/modules/comment/tests/src/Functional/Views/CommentRowTest.php b/core/modules/comment/tests/src/Functional/Views/CommentRowTest.php
index 7cf3ef3b24..ff5c08c2be 100644
--- a/core/modules/comment/tests/src/Functional/Views/CommentRowTest.php
+++ b/core/modules/comment/tests/src/Functional/Views/CommentRowTest.php
@@ -23,7 +23,7 @@ public function testCommentRow() {
     $this->drupalGet('test-comment-row');
 
     $result = $this->xpath('//article[contains(@class, "comment")]');
-    $this->assertEqual(1, count($result), 'One rendered comment found.');
+    $this->assertEquals(1, count($result), 'One rendered comment found.');
   }
 
 }
diff --git a/core/modules/comment/tests/src/Functional/Views/DefaultViewRecentCommentsTest.php b/core/modules/comment/tests/src/Functional/Views/DefaultViewRecentCommentsTest.php
index 5cb9680514..1b6ac019bf 100644
--- a/core/modules/comment/tests/src/Functional/Views/DefaultViewRecentCommentsTest.php
+++ b/core/modules/comment/tests/src/Functional/Views/DefaultViewRecentCommentsTest.php
@@ -130,7 +130,7 @@ public function testBlockDisplay() {
     $this->assertIdenticalResultset($view, $expected_result, $map);
 
     // Check the number of results given by the display is the expected.
-    $this->assertEqual(count($view->result), $this->blockDisplayResults,
+    $this->assertEquals(count($view->result), $this->blockDisplayResults,
       format_string('There are exactly @results comments. Expected @expected',
         ['@results' => count($view->result), '@expected' => $this->blockDisplayResults]
       )
diff --git a/core/modules/comment/tests/src/Functional/Views/NodeCommentsTest.php b/core/modules/comment/tests/src/Functional/Views/NodeCommentsTest.php
index e2c5d15ef5..86d65d90f9 100644
--- a/core/modules/comment/tests/src/Functional/Views/NodeCommentsTest.php
+++ b/core/modules/comment/tests/src/Functional/Views/NodeCommentsTest.php
@@ -30,7 +30,7 @@ public function testNewComments() {
     $this->drupalGet('test-new-comments');
     $this->assertResponse(200);
     $new_comments = $this->cssSelect(".views-field-new-comments a:contains('1')");
-    $this->assertEqual(count($new_comments), 1, 'Found the number of new comments for a certain node.');
+    $this->assertEquals(count($new_comments), 1, 'Found the number of new comments for a certain node.');
   }
 
 }
diff --git a/core/modules/comment/tests/src/Functional/Views/RowRssTest.php b/core/modules/comment/tests/src/Functional/Views/RowRssTest.php
index 7d61852ef8..2fe9e30e92 100644
--- a/core/modules/comment/tests/src/Functional/Views/RowRssTest.php
+++ b/core/modules/comment/tests/src/Functional/Views/RowRssTest.php
@@ -26,9 +26,9 @@ public function testRssRow() {
     // Because the response is XML we can't use the page which depends on an
     // HTML tag being present.
     $result = $this->getSession()->getDriver()->find('//item');
-    $this->assertEqual(count($result), 1, 'Just one comment was found in the rss output.');
+    $this->assertEquals(count($result), 1, 'Just one comment was found in the rss output.');
 
-    $this->assertEqual($result[0]->find('xpath', '//pubDate')->getHtml(), gmdate('r', $this->comment->getCreatedTime()), 'The right pubDate appears in the rss output.');
+    $this->assertEquals($result[0]->find('xpath', '//pubDate')->getHtml(), gmdate('r', $this->comment->getCreatedTime()), 'The right pubDate appears in the rss output.');
   }
 
 }
diff --git a/core/modules/comment/tests/src/Functional/Views/WizardTest.php b/core/modules/comment/tests/src/Functional/Views/WizardTest.php
index 62fada9fd0..0052aef65b 100644
--- a/core/modules/comment/tests/src/Functional/Views/WizardTest.php
+++ b/core/modules/comment/tests/src/Functional/Views/WizardTest.php
@@ -67,7 +67,7 @@ public function testCommentWizard() {
       }
     }
     $expected_options = ['entity:comment', 'fields'];
-    $this->assertEqual($options, $expected_options);
+    $this->assertEquals($options, $expected_options);
 
     $view['id'] = strtolower($this->randomMachineName(16));
     $this->drupalPostForm(NULL, $view, t('Save and edit'));
@@ -79,19 +79,19 @@ public function testCommentWizard() {
     $view = Views::getView($view['id']);
     $view->initHandlers();
     $row = $view->display_handler->getOption('row');
-    $this->assertEqual($row['type'], 'entity:comment');
+    $this->assertEquals($row['type'], 'entity:comment');
 
     // Check for the default filters.
-    $this->assertEqual($view->filter['status']->table, 'comment_field_data');
-    $this->assertEqual($view->filter['status']->field, 'status');
+    $this->assertEquals($view->filter['status']->table, 'comment_field_data');
+    $this->assertEquals($view->filter['status']->field, 'status');
     $this->assertTrue($view->filter['status']->value);
-    $this->assertEqual($view->filter['status_node']->table, 'node_field_data');
-    $this->assertEqual($view->filter['status_node']->field, 'status');
+    $this->assertEquals($view->filter['status_node']->table, 'node_field_data');
+    $this->assertEquals($view->filter['status_node']->field, 'status');
     $this->assertTrue($view->filter['status_node']->value);
 
     // Check for the default fields.
-    $this->assertEqual($view->field['subject']->table, 'comment_field_data');
-    $this->assertEqual($view->field['subject']->field, 'subject');
+    $this->assertEquals($view->field['subject']->table, 'comment_field_data');
+    $this->assertEquals($view->field['subject']->field, 'subject');
   }
 
 }
diff --git a/core/modules/comment/tests/src/Kernel/CommentDefaultFormatterCacheTagsTest.php b/core/modules/comment/tests/src/Kernel/CommentDefaultFormatterCacheTagsTest.php
index bdea71df15..8ca2ec2e4c 100644
--- a/core/modules/comment/tests/src/Kernel/CommentDefaultFormatterCacheTagsTest.php
+++ b/core/modules/comment/tests/src/Kernel/CommentDefaultFormatterCacheTagsTest.php
@@ -88,7 +88,7 @@ public function testCacheTags() {
       'config:user.settings',
     ];
     sort($expected_cache_tags);
-    $this->assertEqual($build['#cache']['tags'], $expected_cache_tags);
+    $this->assertEquals($build['#cache']['tags'], $expected_cache_tags);
 
     // Create a comment on that entity. Comment loading requires that the uid
     // also exists in the {users} table.
@@ -136,7 +136,7 @@ public function testCacheTags() {
       'config:user.settings',
     ];
     sort($expected_cache_tags);
-    $this->assertEqual($build['#cache']['tags'], $expected_cache_tags);
+    $this->assertEquals($build['#cache']['tags'], $expected_cache_tags);
 
     // Build a render array with the entity in a sub-element so that lazy
     // builder elements bubble up outside of the entity and we can check that
diff --git a/core/modules/comment/tests/src/Kernel/CommentFieldAccessTest.php b/core/modules/comment/tests/src/Kernel/CommentFieldAccessTest.php
index 1e0fd72129..378f45dbbf 100644
--- a/core/modules/comment/tests/src/Kernel/CommentFieldAccessTest.php
+++ b/core/modules/comment/tests/src/Kernel/CommentFieldAccessTest.php
@@ -216,7 +216,7 @@ public function testAccessToAdministrativeFields() {
           '@comment' => $set['comment']->getSubject(),
           '@field' => $field,
         ]));
-        $this->assertEqual($may_update, $set['user']->hasPermission('administer comments'), SafeMarkup::format('User @user @state update field @field on comment @comment', [
+        $this->assertEquals($may_update, $set['user']->hasPermission('administer comments'), SafeMarkup::format('User @user @state update field @field on comment @comment', [
           '@user' => $set['user']->getUsername(),
           '@state' => $may_update ? 'can' : 'cannot',
           '@comment' => $set['comment']->getSubject(),
@@ -228,7 +228,7 @@ public function testAccessToAdministrativeFields() {
     // Check access to normal field.
     foreach ($permutations as $set) {
       $may_update = $set['comment']->access('update', $set['user']) && $set['comment']->subject->access('edit', $set['user']);
-      $this->assertEqual($may_update, $set['user']->hasPermission('administer comments') || ($set['user']->hasPermission('edit own comments') && $set['user']->id() == $set['comment']->getOwnerId()), SafeMarkup::format('User @user @state update field subject on comment @comment', [
+      $this->assertEquals($may_update, $set['user']->hasPermission('administer comments') || ($set['user']->hasPermission('edit own comments') && $set['user']->id() == $set['comment']->getOwnerId()), SafeMarkup::format('User @user @state update field subject on comment @comment', [
         '@user' => $set['user']->getUsername(),
         '@state' => $may_update ? 'can' : 'cannot',
         '@comment' => $set['comment']->getSubject(),
@@ -250,7 +250,7 @@ public function testAccessToAdministrativeFields() {
           $view_access = TRUE;
           $state = 'can';
         }
-        $this->assertEqual($may_view, $view_access, SafeMarkup::format('User @user @state view field @field on comment @comment', [
+        $this->assertEquals($may_view, $view_access, SafeMarkup::format('User @user @state view field @field on comment @comment', [
           '@user' => $set['user']->getUsername(),
           '@comment' => $set['comment']->getSubject(),
           '@field' => $field,
@@ -271,12 +271,12 @@ public function testAccessToAdministrativeFields() {
       foreach ($permutations as $set) {
         $may_view = $set['comment']->{$field}->access('view', $set['user']);
         $may_update = $set['comment']->{$field}->access('edit', $set['user']);
-        $this->assertEqual($may_view, TRUE, SafeMarkup::format('User @user can view field @field on comment @comment', [
+        $this->assertEquals($may_view, TRUE, SafeMarkup::format('User @user can view field @field on comment @comment', [
           '@user' => $set['user']->getUsername(),
           '@comment' => $set['comment']->getSubject(),
           '@field' => $field,
         ]));
-        $this->assertEqual($may_update, $set['user']->hasPermission('post comments') && $set['comment']->isNew(), SafeMarkup::format('User @user @state update field @field on comment @comment', [
+        $this->assertEquals($may_update, $set['user']->hasPermission('post comments') && $set['comment']->isNew(), SafeMarkup::format('User @user @state update field @field on comment @comment', [
           '@user' => $set['user']->getUsername(),
           '@state' => $may_update ? 'can' : 'cannot',
           '@comment' => $set['comment']->getSubject(),
@@ -293,7 +293,7 @@ public function testAccessToAdministrativeFields() {
         // To edit the 'mail' or 'name' field, either the user has the
         // "administer comments" permissions or the user is anonymous and
         // adding a new comment using a field that allows contact details.
-        $this->assertEqual($may_update, $set['user']->hasPermission('administer comments') || (
+        $this->assertEquals($may_update, $set['user']->hasPermission('administer comments') || (
             $set['user']->isAnonymous() &&
             $set['comment']->isNew() &&
             $set['user']->hasPermission('post comments') &&
@@ -309,7 +309,7 @@ public function testAccessToAdministrativeFields() {
     foreach ($permutations as $set) {
       // Check no view-access to mail field for other than admin.
       $may_view = $set['comment']->mail->access('view', $set['user']);
-      $this->assertEqual($may_view, $set['user']->hasPermission('administer comments'));
+      $this->assertEquals($may_view, $set['user']->hasPermission('administer comments'));
     }
   }
 
diff --git a/core/modules/comment/tests/src/Kernel/CommentItemTest.php b/core/modules/comment/tests/src/Kernel/CommentItemTest.php
index 1a7fc655d5..359c00dbc8 100644
--- a/core/modules/comment/tests/src/Kernel/CommentItemTest.php
+++ b/core/modules/comment/tests/src/Kernel/CommentItemTest.php
@@ -62,7 +62,7 @@ public function testCommentItem() {
     ]), 'Comment status value in defined range');
 
     $mainProperty = $entity->comment[0]->mainPropertyName();
-    $this->assertEqual('status', $mainProperty);
+    $this->assertEquals('status', $mainProperty);
   }
 
   /**
diff --git a/core/modules/comment/tests/src/Kernel/CommentValidationTest.php b/core/modules/comment/tests/src/Kernel/CommentValidationTest.php
index 98b771513b..21fa743c56 100644
--- a/core/modules/comment/tests/src/Kernel/CommentValidationTest.php
+++ b/core/modules/comment/tests/src/Kernel/CommentValidationTest.php
@@ -84,7 +84,7 @@ public function testValidation() {
     ]);
 
     $violations = $comment->validate();
-    $this->assertEqual(count($violations), 0, 'No violations when validating a default comment.');
+    $this->assertEquals(count($violations), 0, 'No violations when validating a default comment.');
 
     $comment->set('subject', $this->randomString(65));
     $this->assertLengthViolation($comment, 'subject', 64);
@@ -99,17 +99,17 @@ public function testValidation() {
     $comment->set('name', 'test');
     $comment->set('uid', 0);
     $violations = $comment->validate();
-    $this->assertEqual(count($violations), 1, "Violation found on author name collision");
-    $this->assertEqual($violations[0]->getPropertyPath(), "name");
-    $this->assertEqual($violations[0]->getMessage(), t('The name you used (%name) belongs to a registered user.', ['%name' => 'test']));
+    $this->assertEquals(count($violations), 1, "Violation found on author name collision");
+    $this->assertEquals($violations[0]->getPropertyPath(), "name");
+    $this->assertEquals($violations[0]->getMessage(), t('The name you used (%name) belongs to a registered user.', ['%name' => 'test']));
 
     // Make the name valid.
     $comment->set('name', 'valid unused name');
     $comment->set('mail', 'invalid');
     $violations = $comment->validate();
-    $this->assertEqual(count($violations), 1, 'Violation found when email is invalid');
-    $this->assertEqual($violations[0]->getPropertyPath(), 'mail.0.value');
-    $this->assertEqual($violations[0]->getMessage(), t('This value is not a valid email address.'));
+    $this->assertEquals(count($violations), 1, 'Violation found when email is invalid');
+    $this->assertEquals($violations[0]->getPropertyPath(), 'mail.0.value');
+    $this->assertEquals($violations[0]->getMessage(), t('This value is not a valid email address.'));
 
     $comment->set('mail', NULL);
     $comment->set('homepage', 'http://example.com/' . $this->randomMachineName(237));
@@ -117,12 +117,12 @@ public function testValidation() {
 
     $comment->set('homepage', 'invalid');
     $violations = $comment->validate();
-    $this->assertEqual(count($violations), 1, 'Violation found when homepage is invalid');
-    $this->assertEqual($violations[0]->getPropertyPath(), 'homepage.0.value');
+    $this->assertEquals(count($violations), 1, 'Violation found when homepage is invalid');
+    $this->assertEquals($violations[0]->getPropertyPath(), 'homepage.0.value');
 
     // @todo This message should be improved in
     //   https://www.drupal.org/node/2012690.
-    $this->assertEqual($violations[0]->getMessage(), t('This value should be of the correct primitive type.'));
+    $this->assertEquals($violations[0]->getMessage(), t('This value should be of the correct primitive type.'));
 
     $comment->set('homepage', NULL);
     $comment->set('hostname', $this->randomString(129));
@@ -150,9 +150,9 @@ public function testValidation() {
       'name' => '',
     ]);
     $violations = $comment->validate();
-    $this->assertEqual(count($violations), 1, 'Violation found when name is required, but empty and UID is anonymous.');
-    $this->assertEqual($violations[0]->getPropertyPath(), 'name');
-    $this->assertEqual($violations[0]->getMessage(), t('You have to specify a valid author.'));
+    $this->assertEquals(count($violations), 1, 'Violation found when name is required, but empty and UID is anonymous.');
+    $this->assertEquals($violations[0]->getPropertyPath(), 'name');
+    $this->assertEquals($violations[0]->getMessage(), t('You have to specify a valid author.'));
 
     // Test creating a default comment with a given user id works.
     $comment = $this->entityManager->getStorage('comment')->create([
@@ -163,7 +163,7 @@ public function testValidation() {
       'uid' => $user->id(),
     ]);
     $violations = $comment->validate();
-    $this->assertEqual(count($violations), 0, 'No violations when validating a default comment with an author.');
+    $this->assertEquals(count($violations), 0, 'No violations when validating a default comment with an author.');
 
     // Test specifying a wrong author name does not work.
     $comment = $this->entityManager->getStorage('comment')->create([
@@ -175,9 +175,9 @@ public function testValidation() {
       'name' => 'not-test',
     ]);
     $violations = $comment->validate();
-    $this->assertEqual(count($violations), 1, 'Violation found when author name and comment author do not match.');
-    $this->assertEqual($violations[0]->getPropertyPath(), 'name');
-    $this->assertEqual($violations[0]->getMessage(), t('The specified author name does not match the comment author.'));
+    $this->assertEquals(count($violations), 1, 'Violation found when author name and comment author do not match.');
+    $this->assertEquals($violations[0]->getPropertyPath(), 'name');
+    $this->assertEquals($violations[0]->getMessage(), t('The specified author name does not match the comment author.'));
   }
 
   /**
@@ -192,10 +192,10 @@ public function testValidation() {
    */
   protected function assertLengthViolation(CommentInterface $comment, $field_name, $length) {
     $violations = $comment->validate();
-    $this->assertEqual(count($violations), 1, "Violation found when $field_name is too long.");
-    $this->assertEqual($violations[0]->getPropertyPath(), "$field_name.0.value");
+    $this->assertEquals(count($violations), 1, "Violation found when $field_name is too long.");
+    $this->assertEquals($violations[0]->getPropertyPath(), "$field_name.0.value");
     $field_label = $comment->get($field_name)->getFieldDefinition()->getLabel();
-    $this->assertEqual($violations[0]->getMessage(), t('%name: may not be longer than @max characters.', ['%name' => $field_label, '@max' => $length]));
+    $this->assertEquals($violations[0]->getMessage(), t('%name: may not be longer than @max characters.', ['%name' => $field_label, '@max' => $length]));
   }
 
 }
diff --git a/core/modules/comment/tests/src/Kernel/Views/CommentLinksTest.php b/core/modules/comment/tests/src/Kernel/Views/CommentLinksTest.php
index ffb91b0688..e5ab62d7b9 100644
--- a/core/modules/comment/tests/src/Kernel/Views/CommentLinksTest.php
+++ b/core/modules/comment/tests/src/Kernel/Views/CommentLinksTest.php
@@ -62,7 +62,7 @@ public function testLinkApprove() {
     $approve_comment = $view->style_plugin->getField(0, 'approve_comment');
     $options = ['query' => ['destination' => '/']];
     $url = Url::fromRoute('comment.approve', ['comment' => $comment->id()], $options);
-    $this->assertEqual(\Drupal::l('Approve', $url), (string) $approve_comment, 'Found a comment approve link for an unapproved comment.');
+    $this->assertEquals(\Drupal::l('Approve', $url), (string) $approve_comment, 'Found a comment approve link for an unapproved comment.');
 
     // Approve the comment.
     $comment->setPublished(CommentInterface::PUBLISHED);
@@ -163,7 +163,7 @@ public function testLinkReply() {
       'field_name' => 'comment',
       'pid' => $comment->id(),
     ]);
-    $this->assertEqual(\Drupal::l('Reply', $url), (string) $replyto_comment, 'Found the comment reply link as an admin user.');
+    $this->assertEquals(\Drupal::l('Reply', $url), (string) $replyto_comment, 'Found the comment reply link as an admin user.');
 
     // Check if I can see the reply link as an anonymous user.
     $account_switcher->switchTo(new AnonymousUserSession());
diff --git a/core/modules/config/tests/src/Functional/ConfigDependencyWebTest.php b/core/modules/config/tests/src/Functional/ConfigDependencyWebTest.php
index 696a36e8cb..0e9658a05a 100644
--- a/core/modules/config/tests/src/Functional/ConfigDependencyWebTest.php
+++ b/core/modules/config/tests/src/Functional/ConfigDependencyWebTest.php
@@ -120,10 +120,10 @@ public function testConfigDependencyDeleteFormTrait() {
     $this->assertFalse($storage->load('entity1'), 'Test entity 1 deleted');
     $entity2 = $storage->load('entity2');
     $this->assertTrue($entity2, 'Entity 2 not deleted');
-    $this->assertEqual($entity2->calculateDependencies()->getDependencies()['config'], [], 'Entity 2 dependencies updated to remove dependency on Entity1.');
+    $this->assertEquals($entity2->calculateDependencies()->getDependencies()['config'], [], 'Entity 2 dependencies updated to remove dependency on Entity1.');
     $entity3 = $storage->load('entity3');
     $this->assertTrue($entity3, 'Entity 3 not deleted');
-    $this->assertEqual($entity3->calculateDependencies()->getDependencies()['config'], [$entity2->getConfigDependencyName()], 'Entity 3 still depends on Entity 2.');
+    $this->assertEquals($entity3->calculateDependencies()->getDependencies()['config'], [$entity2->getConfigDependencyName()], 'Entity 3 still depends on Entity 2.');
 
   }
 
diff --git a/core/modules/config/tests/src/Functional/ConfigEntityFormOverrideTest.php b/core/modules/config/tests/src/Functional/ConfigEntityFormOverrideTest.php
index a4dc92c78a..4e7e169baf 100644
--- a/core/modules/config/tests/src/Functional/ConfigEntityFormOverrideTest.php
+++ b/core/modules/config/tests/src/Functional/ConfigEntityFormOverrideTest.php
@@ -36,7 +36,7 @@ public function testFormsWithOverrides() {
     $this->writeSettings($settings);
 
     // Test that the overridden label is loaded with the entity.
-    $this->assertEqual($config_test_storage->load('dotted.default')->label(), $overridden_label);
+    $this->assertEquals($config_test_storage->load('dotted.default')->label(), $overridden_label);
 
     // Test that the original label on the listing page is intact.
     $this->drupalGet('admin/structure/config_test');
@@ -64,7 +64,7 @@ public function testFormsWithOverrides() {
     $this->assertIdentical($elements[0]->getValue(), $edited_label);
 
     // Test that the overridden label is still loaded with the entity.
-    $this->assertEqual($config_test_storage->load('dotted.default')->label(), $overridden_label);
+    $this->assertEquals($config_test_storage->load('dotted.default')->label(), $overridden_label);
   }
 
 }
diff --git a/core/modules/config/tests/src/Functional/ConfigEntityListTest.php b/core/modules/config/tests/src/Functional/ConfigEntityListTest.php
index ae9be133f6..8b026e3d85 100644
--- a/core/modules/config/tests/src/Functional/ConfigEntityListTest.php
+++ b/core/modules/config/tests/src/Functional/ConfigEntityListTest.php
@@ -47,7 +47,7 @@ public function testList() {
     // ConfigTest entity provided by the config_test module.
     // @see config_test.dynamic.dotted.default.yml
     $list = $controller->load();
-    $this->assertEqual(count($list), 1, '1 ConfigTest entity found.');
+    $this->assertEquals(count($list), 1, '1 ConfigTest entity found.');
     $entity = $list['dotted.default'];
     $this->assertTrue(!empty($entity), '"Default" ConfigTest entity ID found.');
     $this->assertTrue($entity instanceof ConfigTest, '"Default" ConfigTest entity is an instance of ConfigTest.');
@@ -74,7 +74,7 @@ public function testList() {
     $actual_operations = $controller->getOperations($entity);
     // Sort the operations to normalize link order.
     uasort($actual_operations, ['Drupal\Component\Utility\SortArray', 'sortByWeightElement']);
-    $this->assertEqual($expected_operations, $actual_operations, 'The operations are identical.');
+    $this->assertEquals($expected_operations, $actual_operations, 'The operations are identical.');
 
     // Test buildHeader() method.
     $expected_items = [
@@ -83,7 +83,7 @@ public function testList() {
       'operations' => 'Operations',
     ];
     $actual_items = $controller->buildHeader();
-    $this->assertEqual($expected_items, $actual_items, 'Return value from buildHeader matches expected.');
+    $this->assertEquals($expected_items, $actual_items, 'Return value from buildHeader matches expected.');
 
     // Test buildRow() method.
     $build_operations = $controller->buildOperations($entity);
@@ -95,7 +95,7 @@ public function testList() {
       ],
     ];
     $actual_items = $controller->buildRow($entity);
-    $this->assertEqual($expected_items, $actual_items, 'Return value from buildRow matches expected.');
+    $this->assertEquals($expected_items, $actual_items, 'Return value from buildRow matches expected.');
     // Test sorting.
     $storage = $controller->getStorage();
     $entity = $storage->create([
@@ -144,7 +144,7 @@ public function testList() {
     $actual_operations = $controller->getOperations($entity);
     // Sort the operations to normalize link order.
     uasort($actual_operations, ['Drupal\Component\Utility\SortArray', 'sortByWeightElement']);
-    $this->assertEqual($expected_operations, $actual_operations, 'The operations are identical.');
+    $this->assertEquals($expected_operations, $actual_operations, 'The operations are identical.');
   }
 
   /**
@@ -166,7 +166,7 @@ public function testListUI() {
 
     // Test the table header.
     $elements = $this->xpath('//div[@class="layout-content"]//table/thead/tr/th');
-    $this->assertEqual(count($elements), 3, 'Correct number of table header cells found.');
+    $this->assertEquals(count($elements), 3, 'Correct number of table header cells found.');
 
     // Test the contents of each th cell.
     $expected_items = ['Label', 'Machine name', 'Operations'];
@@ -176,7 +176,7 @@ public function testListUI() {
 
     // Check the number of table row cells.
     $elements = $this->xpath('//div[@class="layout-content"]//table/tbody/tr[@class="odd"]/td');
-    $this->assertEqual(count($elements), 3, 'Correct number of table row cells found.');
+    $this->assertEquals(count($elements), 3, 'Correct number of table row cells found.');
 
     // Check the contents of each row cell. The first cell contains the label,
     // the second contains the machine name, and the third contains the
diff --git a/core/modules/config/tests/src/Functional/ConfigEntityTest.php b/core/modules/config/tests/src/Functional/ConfigEntityTest.php
index 4eb0744f94..4bee1d522a 100644
--- a/core/modules/config/tests/src/Functional/ConfigEntityTest.php
+++ b/core/modules/config/tests/src/Functional/ConfigEntityTest.php
@@ -225,7 +225,7 @@ public function testCRUD() {
     // Test config entity prepopulation.
     \Drupal::state()->set('config_test.prepopulate', TRUE);
     $config_test = $storage->create(['foo' => 'bar']);
-    $this->assertEqual($config_test->get('foo'), 'baz', 'Initial value correctly populated');
+    $this->assertEquals($config_test->get('foo'), 'baz', 'Initial value correctly populated');
   }
 
   /**
@@ -344,8 +344,8 @@ public function testCRUDUI() {
     $this->drupalPostForm(NULL, $edit, 'Save');
 
     $entity = entity_load('config_test', $id);
-    $this->assertEqual($entity->get('size'), 'custom');
-    $this->assertEqual($entity->get('size_value'), 'medium');
+    $this->assertEquals($entity->get('size'), 'custom');
+    $this->assertEquals($entity->get('size_value'), 'medium');
   }
 
 }
diff --git a/core/modules/config/tests/src/Functional/ConfigExportImportUITest.php b/core/modules/config/tests/src/Functional/ConfigExportImportUITest.php
index 96a80a606f..7820e70c87 100644
--- a/core/modules/config/tests/src/Functional/ConfigExportImportUITest.php
+++ b/core/modules/config/tests/src/Functional/ConfigExportImportUITest.php
@@ -96,7 +96,7 @@ public function testExportImport() {
     $this->config('system.site')
       ->set('slogan', $this->newSlogan)
       ->save();
-    $this->assertEqual($this->config('system.site')->get('slogan'), $this->newSlogan);
+    $this->assertEquals($this->config('system.site')->get('slogan'), $this->newSlogan);
 
     // Create a content type.
     $this->contentType = $this->drupalCreateContentType();
@@ -140,7 +140,7 @@ public function testExportImport() {
     $this->config('system.site')
       ->set('slogan', $this->originalSlogan)
       ->save();
-    $this->assertEqual($this->config('system.site')->get('slogan'), $this->originalSlogan);
+    $this->assertEquals($this->config('system.site')->get('slogan'), $this->originalSlogan);
 
     // Delete the custom field.
     $fields = FieldConfig::loadMultiple();
@@ -172,7 +172,7 @@ public function testExportImport() {
     $this->assertNoText(t('Warning message'));
     $this->assertText(t('There are no configuration changes to import.'));
 
-    $this->assertEqual($this->config('system.site')->get('slogan'), $this->newSlogan);
+    $this->assertEquals($this->config('system.site')->get('slogan'), $this->newSlogan);
 
     $this->drupalGet('node/add');
     $this->assertFieldByName("{$this->fieldName}[0][value]", '', 'Widget is displayed');
@@ -244,15 +244,15 @@ public function testExportImportCollections() {
     // Ensure that the snapshot has the expected collection data before import.
     $test1_snapshot = $snapshot_storage->createCollection('collection.test1');
     $data = $test1_snapshot->read('config_test.delete');
-    $this->assertEqual($data, ['foo' => 'bar'], 'The config_test.delete in collection.test1 exists in the snapshot storage.');
+    $this->assertEquals($data, ['foo' => 'bar'], 'The config_test.delete in collection.test1 exists in the snapshot storage.');
     $data = $test1_snapshot->read('config_test.update');
-    $this->assertEqual($data, ['foo' => 'baz'], 'The config_test.update in collection.test1 exists in the snapshot storage.');
+    $this->assertEquals($data, ['foo' => 'baz'], 'The config_test.update in collection.test1 exists in the snapshot storage.');
     $this->assertFalse($test1_snapshot->read('config_test.create'), 'The config_test.create in collection.test1 does not exist in the snapshot storage.');
     $test2_snapshot = $snapshot_storage->createCollection('collection.test2');
     $data = $test2_snapshot->read('config_test.another_delete');
-    $this->assertEqual($data, ['foo' => 'bar'], 'The config_test.another_delete in collection.test2 exists in the snapshot storage.');
+    $this->assertEquals($data, ['foo' => 'bar'], 'The config_test.another_delete in collection.test2 exists in the snapshot storage.');
     $data = $test2_snapshot->read('config_test.another_update');
-    $this->assertEqual($data, ['foo' => 'baz'], 'The config_test.another_update in collection.test2 exists in the snapshot storage.');
+    $this->assertEquals($data, ['foo' => 'baz'], 'The config_test.another_update in collection.test2 exists in the snapshot storage.');
     $this->assertFalse($test2_snapshot->read('config_test.another_create'), 'The config_test.another_create in collection.test2 does not exist in the snapshot storage.');
 
     // Create the tar that contains the expected content for the collections.
@@ -294,30 +294,30 @@ public function testExportImportCollections() {
 
     // Test data in collections.
     $data = $test1_storage->read('config_test.create');
-    $this->assertEqual($data, ['foo' => 'bar'], 'The config_test.create in collection.test1 has been created.');
+    $this->assertEquals($data, ['foo' => 'bar'], 'The config_test.create in collection.test1 has been created.');
     $data = $test1_storage->read('config_test.update');
-    $this->assertEqual($data, ['foo' => 'bar'], 'The config_test.update in collection.test1 has been updated.');
+    $this->assertEquals($data, ['foo' => 'bar'], 'The config_test.update in collection.test1 has been updated.');
     $this->assertFalse($test1_storage->read('config_test.delete'), 'The config_test.delete in collection.test1 has been deleted.');
 
     $data = $test2_storage->read('config_test.another_create');
-    $this->assertEqual($data, ['foo' => 'bar'], 'The config_test.another_create in collection.test2 has been created.');
+    $this->assertEquals($data, ['foo' => 'bar'], 'The config_test.another_create in collection.test2 has been created.');
     $data = $test2_storage->read('config_test.another_update');
-    $this->assertEqual($data, ['foo' => 'bar'], 'The config_test.another_update in collection.test2 has been updated.');
+    $this->assertEquals($data, ['foo' => 'bar'], 'The config_test.another_update in collection.test2 has been updated.');
     $this->assertFalse($test2_storage->read('config_test.another_delete'), 'The config_test.another_delete in collection.test2 has been deleted.');
 
     // Ensure that the snapshot has been updated with the collection data.
     $snapshot_storage = \Drupal::service('config.storage.snapshot');
     $test1_snapshot = $snapshot_storage->createCollection('collection.test1');
     $data = $test1_snapshot->read('config_test.create');
-    $this->assertEqual($data, ['foo' => 'bar'], 'The config_test.create in collection.test1 has been created in the snapshot storage.');
+    $this->assertEquals($data, ['foo' => 'bar'], 'The config_test.create in collection.test1 has been created in the snapshot storage.');
     $data = $test1_snapshot->read('config_test.update');
-    $this->assertEqual($data, ['foo' => 'bar'], 'The config_test.update in collection.test1 has been updated in the snapshot storage.');
+    $this->assertEquals($data, ['foo' => 'bar'], 'The config_test.update in collection.test1 has been updated in the snapshot storage.');
     $this->assertFalse($test1_snapshot->read('config_test.delete'), 'The config_test.delete in collection.test1 does not exist in the snapshot storage.');
     $test2_snapshot = $snapshot_storage->createCollection('collection.test2');
     $data = $test2_snapshot->read('config_test.another_create');
-    $this->assertEqual($data, ['foo' => 'bar'], 'The config_test.another_create in collection.test2 has been created in the snapshot storage.');
+    $this->assertEquals($data, ['foo' => 'bar'], 'The config_test.another_create in collection.test2 has been created in the snapshot storage.');
     $data = $test2_snapshot->read('config_test.another_update');
-    $this->assertEqual($data, ['foo' => 'bar'], 'The config_test.another_update in collection.test2 has been updated in the snapshot storage.');
+    $this->assertEquals($data, ['foo' => 'bar'], 'The config_test.another_update in collection.test2 has been updated in the snapshot storage.');
     $this->assertFalse($test2_snapshot->read('config_test.another_delete'), 'The config_test.another_delete in collection.test2 does not exist in the snapshot storage.');
   }
 
diff --git a/core/modules/config/tests/src/Functional/ConfigImportAllTest.php b/core/modules/config/tests/src/Functional/ConfigImportAllTest.php
index 0608681dd7..e573a155c9 100644
--- a/core/modules/config/tests/src/Functional/ConfigImportAllTest.php
+++ b/core/modules/config/tests/src/Functional/ConfigImportAllTest.php
@@ -98,7 +98,7 @@ public function testInstallUninstall() {
 
     // Ensure that only core required modules and the install profile can not be uninstalled.
     $validation_reasons = \Drupal::service('module_installer')->validateUninstall(array_keys($all_modules));
-    $this->assertEqual(['standard', 'system', 'user'], array_keys($validation_reasons));
+    $this->assertEquals(['standard', 'system', 'user'], array_keys($validation_reasons));
 
     $modules_to_uninstall = array_filter($all_modules, function ($module) use ($validation_reasons) {
       // Filter required and not enabled modules.
diff --git a/core/modules/config/tests/src/Functional/ConfigImportUITest.php b/core/modules/config/tests/src/Functional/ConfigImportUITest.php
index fd76990da6..59908e2dda 100644
--- a/core/modules/config/tests/src/Functional/ConfigImportUITest.php
+++ b/core/modules/config/tests/src/Functional/ConfigImportUITest.php
@@ -310,7 +310,7 @@ public function testImportDiff() {
 
     // Verify diff colors are displayed.
     $result = $this->xpath('//table[contains(@class, :class)]', [':class' => 'diff']);
-    $this->assertEqual(count($result), 1, "Diff UI is displaying colors.");
+    $this->assertEquals(count($result), 1, "Diff UI is displaying colors.");
 
     // Reset data back to original, and remove a key
     $sync_data = $original_data;
diff --git a/core/modules/config/tests/src/Functional/ConfigInstallProfileOverrideTest.php b/core/modules/config/tests/src/Functional/ConfigInstallProfileOverrideTest.php
index 1f5232c939..a0ee0e76ad 100644
--- a/core/modules/config/tests/src/Functional/ConfigInstallProfileOverrideTest.php
+++ b/core/modules/config/tests/src/Functional/ConfigInstallProfileOverrideTest.php
@@ -65,19 +65,19 @@ public function testInstallProfileConfigOverwrite() {
     // Ensure that the configuration entity has the expected dependencies and
     // overrides.
     $action = Action::load('user_block_user_action');
-    $this->assertEqual($action->label(), 'Overridden block the selected user(s)');
+    $this->assertEquals($action->label(), 'Overridden block the selected user(s)');
     $action = Action::load('user_cancel_user_action');
-    $this->assertEqual($action->label(), 'Cancel the selected user account(s)', 'Default configuration that is not overridden is not affected.');
+    $this->assertEquals($action->label(), 'Cancel the selected user account(s)', 'Default configuration that is not overridden is not affected.');
 
     // Ensure that optional configuration can be overridden.
     $tour = Tour::load('language');
-    $this->assertEqual(count($tour->getTips()), 1, 'Optional configuration can be overridden. The language tour only has one tip');
+    $this->assertEquals(count($tour->getTips()), 1, 'Optional configuration can be overridden. The language tour only has one tip');
     $tour = Tour::load('language-add');
-    $this->assertEqual(count($tour->getTips()), 3, 'Optional configuration that is not overridden is not affected.');
+    $this->assertEquals(count($tour->getTips()), 3, 'Optional configuration that is not overridden is not affected.');
 
     // Ensure that optional configuration from a profile is created if
     // dependencies are met.
-    $this->assertEqual(Tour::load('testing_config_overrides')->label(), 'Config override test');
+    $this->assertEquals(Tour::load('testing_config_overrides')->label(), 'Config override test');
 
     // Ensure that optional configuration from a profile is not created if
     // dependencies are not met. Cannot use the entity system since the entity
@@ -96,9 +96,9 @@ public function testInstallProfileConfigOverwrite() {
     $this->container->get('module_installer')->install(['config_test']);
     $this->rebuildContainer();
     $config_test_storage = \Drupal::entityManager()->getStorage('config_test');
-    $this->assertEqual($config_test_storage->load('dotted.default')->label(), 'Default install profile override', 'The config_test entity is overridden by the profile optional configuration.');
+    $this->assertEquals($config_test_storage->load('dotted.default')->label(), 'Default install profile override', 'The config_test entity is overridden by the profile optional configuration.');
     // Test that override of optional configuration does work.
-    $this->assertEqual($config_test_storage->load('override')->label(), 'Override', 'The optional config_test entity is overridden by the profile optional configuration.');
+    $this->assertEquals($config_test_storage->load('override')->label(), 'Override', 'The optional config_test entity is overridden by the profile optional configuration.');
     // Test that override of optional configuration which introduces an unmet
     // dependency does not get created.
     $this->assertNull($config_test_storage->load('override_unmet'), 'The optional config_test entity with unmet dependencies is not created.');
@@ -107,8 +107,8 @@ public function testInstallProfileConfigOverwrite() {
     // Installing dblog creates the optional configuration.
     $this->container->get('module_installer')->install(['dblog']);
     $this->rebuildContainer();
-    $this->assertEqual($config_test_storage->load('override_unmet')->label(), 'Override', 'The optional config_test entity is overridden by the profile optional configuration and is installed when its dependencies are met.');
-    $this->assertEqual($config_test_storage->load('completely_new')->label(), 'Completely new optional configuration', 'The optional config_test entity is provided by the profile optional configuration and is installed when its dependencies are met.');
+    $this->assertEquals($config_test_storage->load('override_unmet')->label(), 'Override', 'The optional config_test entity is overridden by the profile optional configuration and is installed when its dependencies are met.');
+    $this->assertEquals($config_test_storage->load('completely_new')->label(), 'Completely new optional configuration', 'The optional config_test entity is provided by the profile optional configuration and is installed when its dependencies are met.');
   }
 
 }
diff --git a/core/modules/config/tests/src/Functional/ConfigInstallWebTest.php b/core/modules/config/tests/src/Functional/ConfigInstallWebTest.php
index 5dc3119dfb..ad2f08a25f 100644
--- a/core/modules/config/tests/src/Functional/ConfigInstallWebTest.php
+++ b/core/modules/config/tests/src/Functional/ConfigInstallWebTest.php
@@ -91,9 +91,9 @@ public function testIntegrationModuleReinstallation() {
       $this->fail('Expected PreExistingConfigException not thrown.');
     }
     catch (PreExistingConfigException $e) {
-      $this->assertEqual($e->getExtension(), 'config_integration_test');
-      $this->assertEqual($e->getConfigObjects(), [StorageInterface::DEFAULT_COLLECTION => ['config_test.dynamic.config_integration_test']]);
-      $this->assertEqual($e->getMessage(), 'Configuration objects (config_test.dynamic.config_integration_test) provided by config_integration_test already exist in active configuration');
+      $this->assertEquals($e->getExtension(), 'config_integration_test');
+      $this->assertEquals($e->getConfigObjects(), [StorageInterface::DEFAULT_COLLECTION => ['config_test.dynamic.config_integration_test']]);
+      $this->assertEquals($e->getMessage(), 'Configuration objects (config_test.dynamic.config_integration_test) provided by config_integration_test already exist in active configuration');
     }
 
     // Delete the configuration entity so that the install will work.
@@ -166,9 +166,9 @@ public function testPreExistingConfigInstall() {
       $this->fail('Expected PreExistingConfigException not thrown.');
     }
     catch (PreExistingConfigException $e) {
-      $this->assertEqual($e->getExtension(), 'config_clash_test_theme');
-      $this->assertEqual($e->getConfigObjects(), [StorageInterface::DEFAULT_COLLECTION => ['config_test.dynamic.dotted.default'], 'language.fr' => ['config_test.dynamic.dotted.default']]);
-      $this->assertEqual($e->getMessage(), 'Configuration objects (config_test.dynamic.dotted.default, language/fr/config_test.dynamic.dotted.default) provided by config_clash_test_theme already exist in active configuration');
+      $this->assertEquals($e->getExtension(), 'config_clash_test_theme');
+      $this->assertEquals($e->getConfigObjects(), [StorageInterface::DEFAULT_COLLECTION => ['config_test.dynamic.dotted.default'], 'language.fr' => ['config_test.dynamic.dotted.default']]);
+      $this->assertEquals($e->getMessage(), 'Configuration objects (config_test.dynamic.dotted.default, language/fr/config_test.dynamic.dotted.default) provided by config_clash_test_theme already exist in active configuration');
     }
   }
 
diff --git a/core/modules/config/tests/src/Functional/ConfigSingleImportExportTest.php b/core/modules/config/tests/src/Functional/ConfigSingleImportExportTest.php
index dc10323b2d..f12dd13e16 100644
--- a/core/modules/config/tests/src/Functional/ConfigSingleImportExportTest.php
+++ b/core/modules/config/tests/src/Functional/ConfigSingleImportExportTest.php
@@ -244,7 +244,7 @@ public function testExport() {
 
     $fallback_date = \Drupal::entityManager()->getStorage('date_format')->load('fallback');
     $yaml_text = $this->xpath('//textarea[@name="export"]')[0]->getValue();
-    $this->assertEqual(Yaml::decode($yaml_text), $fallback_date->toArray(), 'The fallback date format config entity export code is displayed.');
+    $this->assertEquals(Yaml::decode($yaml_text), $fallback_date->toArray(), 'The fallback date format config entity export code is displayed.');
   }
 
 }
diff --git a/core/modules/config/tests/src/Functional/SchemaConfigListenerWebTest.php b/core/modules/config/tests/src/Functional/SchemaConfigListenerWebTest.php
index 189d78fc63..6d221e26dd 100644
--- a/core/modules/config/tests/src/Functional/SchemaConfigListenerWebTest.php
+++ b/core/modules/config/tests/src/Functional/SchemaConfigListenerWebTest.php
@@ -31,7 +31,7 @@ public function testConfigSchemaChecker() {
     }
     catch (SchemaIncompleteException $e) {
       $this->pass($msg);
-      $this->assertEqual('No schema for config_schema_test.schemaless', $e->getMessage());
+      $this->assertEquals('No schema for config_schema_test.schemaless', $e->getMessage());
     }
 
     // Test a valid schema.
@@ -56,7 +56,7 @@ public function testConfigSchemaChecker() {
     }
     catch (SchemaIncompleteException $e) {
       $this->pass($msg);
-      $this->assertEqual('Schema errors for config_test.types with the following errors: config_test.types:array variable type is integer but applied schema class is Drupal\Core\Config\Schema\Sequence, config_test.types:foo missing schema', $e->getMessage());
+      $this->assertEquals('Schema errors for config_test.types with the following errors: config_test.types:array variable type is integer but applied schema class is Drupal\Core\Config\Schema\Sequence, config_test.types:foo missing schema', $e->getMessage());
     }
 
     // Test that the config event listener is working in the child site.
diff --git a/core/modules/config_translation/tests/src/Functional/ConfigTranslationOverviewTest.php b/core/modules/config_translation/tests/src/Functional/ConfigTranslationOverviewTest.php
index dff6270245..b01faf1a3d 100644
--- a/core/modules/config_translation/tests/src/Functional/ConfigTranslationOverviewTest.php
+++ b/core/modules/config_translation/tests/src/Functional/ConfigTranslationOverviewTest.php
@@ -158,7 +158,7 @@ public function testListingPageWithOverrides() {
     $this->writeSettings($settings);
 
     // Test that the overridden label is loaded with the entity.
-    $this->assertEqual($config_test_storage->load('dotted.default')->label(), $overridden_label);
+    $this->assertEquals($config_test_storage->load('dotted.default')->label(), $overridden_label);
 
     // Test that the original label on the listing page is intact.
     $this->drupalGet('admin/config/regional/config-translation/config_test');
diff --git a/core/modules/contact/tests/src/Functional/ContactPersonalTest.php b/core/modules/contact/tests/src/Functional/ContactPersonalTest.php
index 8304d7c7e5..bfb33032f5 100644
--- a/core/modules/contact/tests/src/Functional/ContactPersonalTest.php
+++ b/core/modules/contact/tests/src/Functional/ContactPersonalTest.php
@@ -73,19 +73,19 @@ public function testSendPersonalContactMessage() {
     $this->assertEscaped($mail);
     $message = $this->submitPersonalContact($this->contactUser);
     $mails = $this->getMails();
-    $this->assertEqual(1, count($mails));
+    $this->assertEquals(1, count($mails));
     $mail = $mails[0];
-    $this->assertEqual($mail['to'], $this->contactUser->getEmail());
-    $this->assertEqual($mail['from'], $this->config('system.site')->get('mail'));
-    $this->assertEqual($mail['reply-to'], $this->webUser->getEmail());
-    $this->assertEqual($mail['key'], 'user_mail');
+    $this->assertEquals($mail['to'], $this->contactUser->getEmail());
+    $this->assertEquals($mail['from'], $this->config('system.site')->get('mail'));
+    $this->assertEquals($mail['reply-to'], $this->webUser->getEmail());
+    $this->assertEquals($mail['key'], 'user_mail');
     $variables = [
       '@site-name' => $this->config('system.site')->get('name'),
       '@subject' => $message['subject[0][value]'],
       '@recipient-name' => $this->contactUser->getDisplayName(),
     ];
     $subject = PlainTextOutput::renderFromHtml(t('[@site-name] @subject', $variables));
-    $this->assertEqual($mail['subject'], $subject, 'Subject is in sent message.');
+    $this->assertEquals($mail['subject'], $subject, 'Subject is in sent message.');
     $this->assertTrue(strpos($mail['body'], 'Hello ' . $variables['@recipient-name']) !== FALSE, 'Recipient name is in sent message.');
     $this->assertTrue(strpos($mail['body'], $this->webUser->getDisplayName()) !== FALSE, 'Sender name is in sent message.');
     $this->assertTrue(strpos($mail['body'], $message['message[0][value]']) !== FALSE, 'Message body is in sent message.');
diff --git a/core/modules/contact/tests/src/Functional/ContactSitewideTest.php b/core/modules/contact/tests/src/Functional/ContactSitewideTest.php
index 178a3ad01d..e12dc39179 100644
--- a/core/modules/contact/tests/src/Functional/ContactSitewideTest.php
+++ b/core/modules/contact/tests/src/Functional/ContactSitewideTest.php
@@ -169,7 +169,7 @@ public function testSiteWideContact() {
     // Check that the form was created in site default language.
     $langcode = $this->config('contact.form.' . $id)->get('langcode');
     $default_langcode = \Drupal::languageManager()->getDefaultLanguage()->getId();
-    $this->assertEqual($langcode, $default_langcode);
+    $this->assertEquals($langcode, $default_langcode);
 
     // Make sure the newly created form is included in the list of forms.
     $this->assertNoUniqueText($label, 'New form included in forms list.');
@@ -181,9 +181,9 @@ public function testSiteWideContact() {
     // Test update contact form.
     $this->updateContactForm($id, $label = $this->randomMachineName(16), $recipients_str = implode(',', [$recipients[0], $recipients[1]]), $reply = $this->randomMachineName(30), FALSE, 'Your message has been sent.', '/user');
     $config = $this->config('contact.form.' . $id)->get();
-    $this->assertEqual($config['label'], $label);
-    $this->assertEqual($config['recipients'], [$recipients[0], $recipients[1]]);
-    $this->assertEqual($config['reply'], $reply);
+    $this->assertEquals($config['label'], $label);
+    $this->assertEquals($config['recipients'], [$recipients[0], $recipients[1]]);
+    $this->assertEquals($config['reply'], $reply);
     $this->assertNotEqual($id, $this->config('contact.settings')->get('default_form'));
     $this->assertText(t('Contact form @label has been updated.', ['@label' => $label]));
     // Ensure the label is displayed on the contact page for this form.
@@ -322,7 +322,7 @@ public function testSiteWideContact() {
     $this->drupalPostForm(NULL, $edit, t('Send message'));
     $mails = $this->getMails();
     $mail = array_pop($mails);
-    $this->assertEqual($mail['subject'], t('[@label] @subject', ['@label' => $label, '@subject' => $edit['subject[0][value]']]));
+    $this->assertEquals($mail['subject'], t('[@label] @subject', ['@label' => $label, '@subject' => $edit['subject[0][value]']]));
     $this->assertTrue(strpos($mail['body'], $field_label));
     $this->assertTrue(strpos($mail['body'], $edit[$field_name . '[0][value]']));
 
@@ -363,7 +363,7 @@ public function testSiteWideContact() {
     ];
     $this->drupalPostForm(NULL, $edit, t('Send message'));
     $result = $this->xpath('//div[@role=:role]', [':role' => 'contentinfo']);
-    $this->assertEqual(count($result), 0, 'Messages not found.');
+    $this->assertEquals(count($result), 0, 'Messages not found.');
     $this->assertUrl('user/' . $admin_user->id());
 
     // Test preview and visibility of the message field and label. Submit the
@@ -428,8 +428,8 @@ public function testAutoReply() {
 
     // We are testing the auto-reply, so there should be one email going to the sender.
     $captured_emails = $this->getMails(['id' => 'contact_page_autoreply', 'to' => $email]);
-    $this->assertEqual(count($captured_emails), 1);
-    $this->assertEqual(trim($captured_emails[0]['body']), trim(MailFormatHelper::htmlToText($foo_autoreply)));
+    $this->assertEquals(count($captured_emails), 1);
+    $this->assertEquals(trim($captured_emails[0]['body']), trim(MailFormatHelper::htmlToText($foo_autoreply)));
 
     // Test the auto-reply for form 'bar'.
     $email = $this->randomMachineName(32) . '@example.com';
@@ -437,14 +437,14 @@ public function testAutoReply() {
 
     // Auto-reply for form 'bar' should result in one auto-reply email to the sender.
     $captured_emails = $this->getMails(['id' => 'contact_page_autoreply', 'to' => $email]);
-    $this->assertEqual(count($captured_emails), 1);
-    $this->assertEqual(trim($captured_emails[0]['body']), trim(MailFormatHelper::htmlToText($bar_autoreply)));
+    $this->assertEquals(count($captured_emails), 1);
+    $this->assertEquals(trim($captured_emails[0]['body']), trim(MailFormatHelper::htmlToText($bar_autoreply)));
 
     // Verify that no auto-reply is sent when the auto-reply field is left blank.
     $email = $this->randomMachineName(32) . '@example.com';
     $this->submitContact($this->randomMachineName(16), $email, $this->randomString(64), 'no_autoreply', $this->randomString(128));
     $captured_emails = $this->getMails(['id' => 'contact_page_autoreply', 'to' => $email]);
-    $this->assertEqual(count($captured_emails), 0);
+    $this->assertEquals(count($captured_emails), 0);
 
     // Verify that the current error message doesn't show, that the auto-reply
     // doesn't get sent and the correct silent error gets logged.
@@ -455,7 +455,7 @@ public function testAutoReply() {
     $this->submitContact($this->randomMachineName(16), $email, $this->randomString(64), 'foo', $this->randomString(128));
     $this->assertNoText('Unable to send email. Contact the site administrator if the problem persists.');
     $captured_emails = $this->getMails(['id' => 'contact_page_autoreply', 'to' => $email]);
-    $this->assertEqual(count($captured_emails), 0);
+    $this->assertEquals(count($captured_emails), 0);
     $this->drupalLogin($admin_user);
     $this->drupalGet('admin/reports/dblog');
     $this->assertRaw('Error sending auto-reply, missing sender e-mail address in foo');
diff --git a/core/modules/contact/tests/src/Functional/ContactStorageTest.php b/core/modules/contact/tests/src/Functional/ContactStorageTest.php
index acacab4182..4f16af8962 100644
--- a/core/modules/contact/tests/src/Functional/ContactStorageTest.php
+++ b/core/modules/contact/tests/src/Functional/ContactStorageTest.php
@@ -64,14 +64,14 @@ public function testContactStorage() {
     $messages = Message::loadMultiple();
     /** @var \Drupal\contact\Entity\Message $message */
     $message = reset($messages);
-    $this->assertEqual($message->getContactForm()->id(), $id);
+    $this->assertEquals($message->getContactForm()->id(), $id);
     $this->assertTrue($message->getContactForm()->getThirdPartySetting('contact_storage_test', 'send_a_pony', FALSE));
-    $this->assertEqual($message->getSenderName(), $name);
-    $this->assertEqual($message->getSubject(), $subject);
-    $this->assertEqual($message->getSenderMail(), $mail);
+    $this->assertEquals($message->getSenderName(), $name);
+    $this->assertEquals($message->getSubject(), $subject);
+    $this->assertEquals($message->getSenderMail(), $mail);
 
     $config = $this->config("contact.form.$id");
-    $this->assertEqual($config->get('id'), $id);
+    $this->assertEquals($config->get('id'), $id);
   }
 
 }
diff --git a/core/modules/contact/tests/src/Functional/Update/ContactUpdateTest.php b/core/modules/contact/tests/src/Functional/Update/ContactUpdateTest.php
index 676f938c19..1307d4f250 100644
--- a/core/modules/contact/tests/src/Functional/Update/ContactUpdateTest.php
+++ b/core/modules/contact/tests/src/Functional/Update/ContactUpdateTest.php
@@ -44,9 +44,9 @@ public function testPostUpdateContactFormFields() {
     foreach ($contact_forms as $contact_config_name) {
       $contact_form_data = $config_factory->get($contact_config_name)->get();
       $this->assertTrue(isset($contact_form_data['message']), 'After running the update the "message" key exists.');
-      $this->assertEqual('Your message has been sent.', $contact_form_data['message']);
+      $this->assertEquals('Your message has been sent.', $contact_form_data['message']);
       $this->assertTrue(isset($contact_form_data['redirect']), 'After running the update the "redirect" key exists.');
-      $this->assertEqual('', $contact_form_data['redirect']);
+      $this->assertEquals('', $contact_form_data['redirect']);
     }
   }
 
diff --git a/core/modules/contact/tests/src/Functional/Views/ContactLinkTest.php b/core/modules/contact/tests/src/Functional/Views/ContactLinkTest.php
index c3b68f067a..336a4e10f8 100644
--- a/core/modules/contact/tests/src/Functional/Views/ContactLinkTest.php
+++ b/core/modules/contact/tests/src/Functional/Views/ContactLinkTest.php
@@ -96,7 +96,7 @@ public function testContactLink() {
    */
   public function assertContactLinks(array $accounts, array $names) {
     $result = $this->xpath('//div[contains(@class, "views-field-contact")]//a');
-    $this->assertEqual(count($result), count($names));
+    $this->assertEquals(count($result), count($names));
     foreach ($names as $name) {
       $account = $accounts[$name];
 
diff --git a/core/modules/contact/tests/src/Kernel/MessageEntityTest.php b/core/modules/contact/tests/src/Kernel/MessageEntityTest.php
index e7343b9166..a0d21f923c 100644
--- a/core/modules/contact/tests/src/Kernel/MessageEntityTest.php
+++ b/core/modules/contact/tests/src/Kernel/MessageEntityTest.php
@@ -38,13 +38,13 @@ public function testMessageMethods() {
     $message = $message_storage->create(['contact_form' => 'feedback']);
 
     // Check for empty values first.
-    $this->assertEqual($message->getMessage(), '');
-    $this->assertEqual($message->getSenderName(), '');
-    $this->assertEqual($message->getSenderMail(), '');
+    $this->assertEquals($message->getMessage(), '');
+    $this->assertEquals($message->getSenderName(), '');
+    $this->assertEquals($message->getSenderMail(), '');
     $this->assertFalse($message->copySender());
 
     // Check for default values.
-    $this->assertEqual('feedback', $message->getContactForm()->id());
+    $this->assertEquals('feedback', $message->getContactForm()->id());
     $this->assertFalse($message->isPersonal());
 
     // Set some values and check for them afterwards.
@@ -53,9 +53,9 @@ public function testMessageMethods() {
     $message->setSenderMail('sender_mail');
     $message->setCopySender(TRUE);
 
-    $this->assertEqual($message->getMessage(), 'welcome_message');
-    $this->assertEqual($message->getSenderName(), 'sender_name');
-    $this->assertEqual($message->getSenderMail(), 'sender_mail');
+    $this->assertEquals($message->getMessage(), 'welcome_message');
+    $this->assertEquals($message->getSenderName(), 'sender_name');
+    $this->assertEquals($message->getSenderMail(), 'sender_mail');
     $this->assertTrue($message->copySender());
 
     $no_access_user = $this->createUser(['uid' => 2]);
diff --git a/core/modules/contact/tests/src/Kernel/Migrate/d7/MigrateContactSettingsTest.php b/core/modules/contact/tests/src/Kernel/Migrate/d7/MigrateContactSettingsTest.php
index 22385f0e56..fc0a3aed7e 100644
--- a/core/modules/contact/tests/src/Kernel/Migrate/d7/MigrateContactSettingsTest.php
+++ b/core/modules/contact/tests/src/Kernel/Migrate/d7/MigrateContactSettingsTest.php
@@ -32,7 +32,7 @@ public function testContactSettings() {
     $config = $this->config('contact.settings');
     $this->assertTrue($config->get('user_default_enabled'));
     $this->assertIdentical(33, $config->get('flood.limit'));
-    $this->assertEqual('website_testing', $config->get('default_form'));
+    $this->assertEquals('website_testing', $config->get('default_form'));
   }
 
 }
diff --git a/core/modules/content_moderation/tests/src/Functional/ModerationLocaleTest.php b/core/modules/content_moderation/tests/src/Functional/ModerationLocaleTest.php
index 3104450fce..7c8f4e0a5e 100644
--- a/core/modules/content_moderation/tests/src/Functional/ModerationLocaleTest.php
+++ b/core/modules/content_moderation/tests/src/Functional/ModerationLocaleTest.php
@@ -101,11 +101,11 @@ public function testTranslateModeratedContent() {
     $this->assertText(t('Article English node has been updated.'));
     $english_node = $this->drupalGetNodeByTitle('English node', TRUE);
     $french_node = $english_node->getTranslation('fr');
-    $this->assertEqual('French node', $french_node->label());
+    $this->assertEquals('French node', $french_node->label());
 
-    $this->assertEqual($english_node->moderation_state->value, 'published');
+    $this->assertEquals($english_node->moderation_state->value, 'published');
     $this->assertTrue($english_node->isPublished());
-    $this->assertEqual($french_node->moderation_state->value, 'draft');
+    $this->assertEquals($french_node->moderation_state->value, 'draft');
     $this->assertFalse($french_node->isPublished());
 
     // Create another article with its translation. This time we will publish
@@ -137,9 +137,9 @@ public function testTranslateModeratedContent() {
     $this->assertText(t('Article Translated node has been updated.'));
     $english_node = $this->drupalGetNodeByTitle('Another node', TRUE);
     $french_node = $english_node->getTranslation('fr');
-    $this->assertEqual($french_node->moderation_state->value, 'published');
+    $this->assertEquals($french_node->moderation_state->value, 'published');
     $this->assertTrue($french_node->isPublished());
-    $this->assertEqual($english_node->moderation_state->value, 'draft');
+    $this->assertEquals($english_node->moderation_state->value, 'draft');
     $this->assertFalse($english_node->isPublished());
 
     // Now check that we can create a new draft of the translation.
@@ -151,9 +151,9 @@ public function testTranslateModeratedContent() {
     $this->assertText(t('Article New draft of translated node has been updated.'));
     $english_node = $this->drupalGetNodeByTitle('Another node', TRUE);
     $french_node = $english_node->getTranslation('fr');
-    $this->assertEqual($french_node->moderation_state->value, 'published');
+    $this->assertEquals($french_node->moderation_state->value, 'published');
     $this->assertTrue($french_node->isPublished());
-    $this->assertEqual($french_node->getTitle(), 'Translated node', 'The default revision of the published translation remains the same.');
+    $this->assertEquals($french_node->getTitle(), 'Translated node', 'The default revision of the published translation remains the same.');
 
     // Publish the French article before testing the archive transition.
     $this->drupalPostForm('fr/node/' . $english_node->id() . '/edit', [
@@ -162,9 +162,9 @@ public function testTranslateModeratedContent() {
     $this->assertText(t('Article New draft of translated node has been updated.'));
     $english_node = $this->drupalGetNodeByTitle('Another node', TRUE);
     $french_node = $english_node->getTranslation('fr');
-    $this->assertEqual($french_node->moderation_state->value, 'published');
+    $this->assertEquals($french_node->moderation_state->value, 'published');
     $this->assertTrue($french_node->isPublished());
-    $this->assertEqual($french_node->getTitle(), 'New draft of translated node', 'The draft has replaced the published revision.');
+    $this->assertEquals($french_node->getTitle(), 'New draft of translated node', 'The draft has replaced the published revision.');
 
     // Publish the English article before testing the archive transition.
     $this->drupalPostForm('node/' . $english_node->id() . '/edit', [
@@ -172,7 +172,7 @@ public function testTranslateModeratedContent() {
     ], t('Save (this translation)'));
     $this->assertText(t('Article Another node has been updated.'));
     $english_node = $this->drupalGetNodeByTitle('Another node', TRUE);
-    $this->assertEqual($english_node->moderation_state->value, 'published');
+    $this->assertEquals($english_node->moderation_state->value, 'published');
 
     // Archive the node and its translation.
     $this->drupalPostForm('node/' . $english_node->id() . '/edit', [
@@ -185,9 +185,9 @@ public function testTranslateModeratedContent() {
     $this->assertText(t('Article New draft of translated node has been updated.'));
     $english_node = $this->drupalGetNodeByTitle('Another node', TRUE);
     $french_node = $english_node->getTranslation('fr');
-    $this->assertEqual($english_node->moderation_state->value, 'archived');
+    $this->assertEquals($english_node->moderation_state->value, 'archived');
     $this->assertFalse($english_node->isPublished());
-    $this->assertEqual($french_node->moderation_state->value, 'archived');
+    $this->assertEquals($french_node->moderation_state->value, 'archived');
     $this->assertFalse($french_node->isPublished());
   }
 
diff --git a/core/modules/content_moderation/tests/src/Functional/ModerationStateNodeTest.php b/core/modules/content_moderation/tests/src/Functional/ModerationStateNodeTest.php
index 11deaa72c0..108f46510c 100644
--- a/core/modules/content_moderation/tests/src/Functional/ModerationStateNodeTest.php
+++ b/core/modules/content_moderation/tests/src/Functional/ModerationStateNodeTest.php
@@ -34,7 +34,7 @@ public function testCreatingContent() {
     if (!$node) {
       $this->fail('Test node was not saved correctly.');
     }
-    $this->assertEqual('draft', $node->moderation_state->value);
+    $this->assertEquals('draft', $node->moderation_state->value);
 
     $path = 'node/' . $node->id() . '/edit';
     // Set up published revision.
@@ -45,7 +45,7 @@ public function testCreatingContent() {
     /* @var \Drupal\node\NodeInterface $node */
     $node = \Drupal::entityTypeManager()->getStorage('node')->load($node->id());
     $this->assertTrue($node->isPublished());
-    $this->assertEqual('published', $node->moderation_state->value);
+    $this->assertEquals('published', $node->moderation_state->value);
 
     // Verify that the state field is not shown.
     $this->assertNoText('Published');
@@ -71,7 +71,7 @@ public function testCreatingContent() {
     if (!$node) {
       $this->fail('Non-moderated test node was not saved correctly.');
     }
-    $this->assertEqual(NULL, $node->moderation_state->value);
+    $this->assertEquals(NULL, $node->moderation_state->value);
   }
 
   /**
@@ -141,7 +141,7 @@ public function testPagers() {
     $url = $element[0]->getAttribute('href');
     $query = [];
     parse_str(parse_url($url, PHP_URL_QUERY), $query);
-    $this->assertEqual(0, $query['page']);
+    $this->assertEquals(0, $query['page']);
   }
 
   /**
diff --git a/core/modules/content_moderation/tests/src/Kernel/ContentModerationWorkflowConfigTest.php b/core/modules/content_moderation/tests/src/Kernel/ContentModerationWorkflowConfigTest.php
index 931056e3d6..ac256cf508 100644
--- a/core/modules/content_moderation/tests/src/Kernel/ContentModerationWorkflowConfigTest.php
+++ b/core/modules/content_moderation/tests/src/Kernel/ContentModerationWorkflowConfigTest.php
@@ -118,10 +118,10 @@ public function testDeletingStateViaConfiguration() {
       $this->fail('ConfigImporterException not thrown, invalid import was not stopped due to deleted state.');
     }
     catch (ConfigImporterException $e) {
-      $this->assertEqual($e->getMessage(), 'There were errors validating the config synchronization.');
+      $this->assertEquals($e->getMessage(), 'There were errors validating the config synchronization.');
       $error_log = $this->configImporter->getErrors();
       $expected = ['The moderation state Test two is being used, but is not in the source storage.'];
-      $this->assertEqual($expected, $error_log);
+      $this->assertEquals($expected, $error_log);
     }
 
     \Drupal::service('config.storage.sync')->delete('workflows.workflow.editorial');
@@ -132,13 +132,13 @@ public function testDeletingStateViaConfiguration() {
       $this->fail('ConfigImporterException not thrown, invalid import was not stopped due to deleted workflow.');
     }
     catch (ConfigImporterException $e) {
-      $this->assertEqual($e->getMessage(), 'There were errors validating the config synchronization.');
+      $this->assertEquals($e->getMessage(), 'There were errors validating the config synchronization.');
       $error_log = $this->configImporter->getErrors();
       $expected = [
         'The moderation state Test two is being used, but is not in the source storage.',
         'The workflow Editorial is being used, and cannot be deleted.',
       ];
-      $this->assertEqual($expected, $error_log);
+      $this->assertEquals($expected, $error_log);
     }
   }
 
diff --git a/core/modules/content_translation/src/Tests/ContentTranslationUITestBase.php b/core/modules/content_translation/src/Tests/ContentTranslationUITestBase.php
index e7a7dfc9dd..70bf24dfc6 100644
--- a/core/modules/content_translation/src/Tests/ContentTranslationUITestBase.php
+++ b/core/modules/content_translation/src/Tests/ContentTranslationUITestBase.php
@@ -101,7 +101,7 @@ protected function doTestBasicTranslation() {
       $stored_value = $this->getValue($translation, $property, $default_langcode);
       $value = is_array($value) ? $value[0]['value'] : $value;
       $message = format_string('@property correctly stored in the default language.', ['@property' => $property]);
-      $this->assertEqual($stored_value, $value, $message);
+      $this->assertEquals($stored_value, $value, $message);
     }
 
     // Add a content translation.
@@ -140,7 +140,7 @@ protected function doTestBasicTranslation() {
 
     $author_field_name = $entity->hasField('content_translation_uid') ? 'content_translation_uid' : 'uid';
     if ($entity->getFieldDefinition($author_field_name)->isTranslatable()) {
-      $this->assertEqual($metadata_target_translation->getAuthor()->id(), $this->translator->id(),
+      $this->assertEquals($metadata_target_translation->getAuthor()->id(), $this->translator->id(),
         SafeMarkup::format('Author of the target translation @langcode correctly stored for translatable owner field.', ['@langcode' => $langcode]));
 
       $this->assertNotEqual($metadata_target_translation->getAuthor()->id(), $metadata_source_translation->getAuthor()->id(),
@@ -148,7 +148,7 @@ protected function doTestBasicTranslation() {
           ['@target' => $langcode, '@source' => $default_langcode]));
     }
     else {
-      $this->assertEqual($metadata_target_translation->getAuthor()->id(), $this->editor->id(), 'Author of the entity remained untouched after translation for non translatable owner field.');
+      $this->assertEquals($metadata_target_translation->getAuthor()->id(), $this->editor->id(), 'Author of the entity remained untouched after translation for non translatable owner field.');
     }
 
     $created_field_name = $entity->hasField('content_translation_created') ? 'content_translation_created' : 'created';
@@ -158,7 +158,7 @@ protected function doTestBasicTranslation() {
           ['@target' => $langcode, '@source' => $default_langcode]));
     }
     else {
-      $this->assertEqual($metadata_target_translation->getCreatedTime(), $metadata_source_translation->getCreatedTime(), 'Creation timestamp of the entity remained untouched after translation for non translatable created field.');
+      $this->assertEquals($metadata_target_translation->getCreatedTime(), $metadata_source_translation->getCreatedTime(), 'Creation timestamp of the entity remained untouched after translation for non translatable created field.');
     }
 
     if ($this->testLanguageSelector) {
@@ -207,7 +207,7 @@ protected function doTestBasicTranslation() {
         $stored_value = $this->getValue($translation, $property, $langcode);
         $value = is_array($value) ? $value[0]['value'] : $value;
         $message = format_string('%property correctly stored with language %language.', ['%property' => $property, '%language' => $langcode]);
-        $this->assertEqual($stored_value, $value, $message);
+        $this->assertEquals($stored_value, $value, $message);
       }
     }
   }
@@ -229,10 +229,10 @@ protected function doTestTranslationOverview() {
         $language = new Language(['id' => $langcode]);
         $view_url = $entity->url('canonical', ['language' => $language]);
         $elements = $this->xpath('//table//a[@href=:href]', [':href' => $view_url]);
-        $this->assertEqual((string) $elements[0], $entity->getTranslation($langcode)->label(), format_string('Label correctly shown for %language translation.', ['%language' => $langcode]));
+        $this->assertEquals((string) $elements[0], $entity->getTranslation($langcode)->label(), format_string('Label correctly shown for %language translation.', ['%language' => $langcode]));
         $edit_path = $entity->url('edit-form', ['language' => $language]);
         $elements = $this->xpath('//table//ul[@class="dropbutton"]/li/a[@href=:href]', [':href' => $edit_path]);
-        $this->assertEqual((string) $elements[0], t('Edit'), format_string('Edit link correct for %language translation.', ['%language' => $langcode]));
+        $this->assertEquals((string) $elements[0], t('Edit'), format_string('Edit link correct for %language translation.', ['%language' => $langcode]));
       }
     }
   }
@@ -339,8 +339,8 @@ protected function doTestAuthoringInfo() {
     $entity = $storage->load($this->entityId);
     foreach ($this->langcodes as $langcode) {
       $metadata = $this->manager->getTranslationMetadata($entity->getTranslation($langcode));
-      $this->assertEqual($metadata->getAuthor()->id(), $values[$langcode]['uid'], 'Translation author correctly stored.');
-      $this->assertEqual($metadata->getCreatedTime(), $values[$langcode]['created'], 'Translation date correctly stored.');
+      $this->assertEquals($metadata->getAuthor()->id(), $values[$langcode]['uid'], 'Translation author correctly stored.');
+      $this->assertEquals($metadata->getCreatedTime(), $values[$langcode]['created'], 'Translation date correctly stored.');
     }
 
     // Try to post non valid values and check that they are rejected.
@@ -353,8 +353,8 @@ protected function doTestAuthoringInfo() {
     $this->drupalPostForm($entity->urlInfo('edit-form'), $edit, $this->getFormSubmitAction($entity, $langcode));
     $this->assertTrue($this->xpath('//div[contains(@class, "error")]//ul'), 'Invalid values generate a list of form errors.');
     $metadata = $this->manager->getTranslationMetadata($entity->getTranslation($langcode));
-    $this->assertEqual($metadata->getAuthor()->id(), $values[$langcode]['uid'], 'Translation author correctly kept.');
-    $this->assertEqual($metadata->getCreatedTime(), $values[$langcode]['created'], 'Translation date correctly kept.');
+    $this->assertEquals($metadata->getAuthor()->id(), $values[$langcode]['uid'], 'Translation author correctly kept.');
+    $this->assertEquals($metadata->getCreatedTime(), $values[$langcode]['created'], 'Translation date correctly kept.');
   }
 
   /**
@@ -565,7 +565,7 @@ protected function doTestTranslationChanged() {
           ->getStorage($this->entityTypeId);
         $storage->resetCache([$this->entityId]);
         $entity = $storage->load($this->entityId);
-        $this->assertEqual(
+        $this->assertEquals(
           $entity->getChangedTimeAcrossTranslations(), $entity->getTranslation($langcode)->getChangedTime(),
           format_string('Changed time for language %language is the latest change over all languages.', ['%language' => $language->getName()])
         );
@@ -580,13 +580,13 @@ protected function doTestTranslationChanged() {
       }
 
       if ($translatable_changed_field) {
-        $this->assertEqual(
+        $this->assertEquals(
           count($timestamps), count($entity->getTranslationLanguages()),
           'All timestamps from all languages are different.'
         );
       }
       else {
-        $this->assertEqual(
+        $this->assertEquals(
           count($timestamps), 1,
           'All timestamps from all languages are identical.'
         );
@@ -611,7 +611,7 @@ public function doTestChangedTimeAfterSaveWithoutChanges() {
         ->getStorage($this->entityTypeId);
       $storage->resetCache([$this->entityId]);
       $entity = $storage->load($this->entityId);
-      $this->assertEqual($changed_timestamp, $entity->getChangedTime(), 'The entity\'s changed time wasn\'t updated after API save without changes.');
+      $this->assertEquals($changed_timestamp, $entity->getChangedTime(), 'The entity\'s changed time wasn\'t updated after API save without changes.');
 
       // Ensure different save timestamps.
       sleep(1);
diff --git a/core/modules/content_translation/tests/src/Functional/ContentTranslationEnableTest.php b/core/modules/content_translation/tests/src/Functional/ContentTranslationEnableTest.php
index a3cc4e9946..a3fc8889ee 100644
--- a/core/modules/content_translation/tests/src/Functional/ContentTranslationEnableTest.php
+++ b/core/modules/content_translation/tests/src/Functional/ContentTranslationEnableTest.php
@@ -36,7 +36,7 @@ public function testEnable() {
     // No pending updates should be available.
     $this->drupalGet('admin/reports/status');
     $requirement_value = $this->cssSelect("details.system-status-report__entry summary:contains('Entity/field definitions') + div");
-    $this->assertEqual(t('Up to date'), trim($requirement_value[0]->getText()));
+    $this->assertEquals(t('Up to date'), trim($requirement_value[0]->getText()));
 
     $this->drupalGet('admin/config/regional/content-language');
     // The node entity type should not be an option because it has no bundles.
@@ -54,7 +54,7 @@ public function testEnable() {
     // No pending updates should be available.
     $this->drupalGet('admin/reports/status');
     $requirement_value = $this->cssSelect("details.system-status-report__entry summary:contains('Entity/field definitions') + div");
-    $this->assertEqual(t('Up to date'), trim($requirement_value[0]->getText()));
+    $this->assertEquals(t('Up to date'), trim($requirement_value[0]->getText()));
 
     // Create a node type and check the content translation settings are now
     // available for nodes.
diff --git a/core/modules/content_translation/tests/src/Functional/ContentTranslationLanguageChangeTest.php b/core/modules/content_translation/tests/src/Functional/ContentTranslationLanguageChangeTest.php
index ae326ef67b..651246e0ce 100644
--- a/core/modules/content_translation/tests/src/Functional/ContentTranslationLanguageChangeTest.php
+++ b/core/modules/content_translation/tests/src/Functional/ContentTranslationLanguageChangeTest.php
@@ -110,7 +110,7 @@ public function testTitleDoesNotChangesOnChangingLanguageWidgetAndTriggeringAjax
       'test_field_only_en_fr' => 'node created',
     ];
     $this->drupalPostForm(NULL, $edit, t('Save'));
-    $this->assertEqual('node created', \Drupal::state()->get('test_field_only_en_fr'));
+    $this->assertEquals('node created', \Drupal::state()->get('test_field_only_en_fr'));
 
     // Create a translation in French.
     $this->clickLink('Translate');
diff --git a/core/modules/content_translation/tests/src/Functional/ContentTranslationMetadataFieldsTest.php b/core/modules/content_translation/tests/src/Functional/ContentTranslationMetadataFieldsTest.php
index bbad25ca9c..1733327e05 100644
--- a/core/modules/content_translation/tests/src/Functional/ContentTranslationMetadataFieldsTest.php
+++ b/core/modules/content_translation/tests/src/Functional/ContentTranslationMetadataFieldsTest.php
@@ -78,20 +78,20 @@ public function testSkipUntranslatable() {
     $published = $metadata_source_translation->isPublished();
     $author = $metadata_source_translation->getAuthor();
 
-    $this->assertEqual($created_time, $metadata_target_translation->getCreatedTime(), 'Metadata created field has the same value for both translations.');
-    $this->assertEqual($changed_time, $metadata_target_translation->getChangedTime(), 'Metadata changed field has the same value for both translations.');
-    $this->assertEqual($published, $metadata_target_translation->isPublished(), 'Metadata published field has the same value for both translations.');
-    $this->assertEqual($author->id(), $metadata_target_translation->getAuthor()->id(), 'Metadata author field has the same value for both translations.');
+    $this->assertEquals($created_time, $metadata_target_translation->getCreatedTime(), 'Metadata created field has the same value for both translations.');
+    $this->assertEquals($changed_time, $metadata_target_translation->getChangedTime(), 'Metadata changed field has the same value for both translations.');
+    $this->assertEquals($published, $metadata_target_translation->isPublished(), 'Metadata published field has the same value for both translations.');
+    $this->assertEquals($author->id(), $metadata_target_translation->getAuthor()->id(), 'Metadata author field has the same value for both translations.');
 
     $metadata_target_translation->setCreatedTime(time() + 50);
     $metadata_target_translation->setChangedTime(time() + 50);
     $metadata_target_translation->setPublished(TRUE);
     $metadata_target_translation->setAuthor($this->editor);
 
-    $this->assertEqual($created_time, $metadata_target_translation->getCreatedTime(), 'Metadata created field correctly not updated');
-    $this->assertEqual($changed_time, $metadata_target_translation->getChangedTime(), 'Metadata changed field correctly not updated');
-    $this->assertEqual($published, $metadata_target_translation->isPublished(), 'Metadata published field correctly not updated');
-    $this->assertEqual($author->id(), $metadata_target_translation->getAuthor()->id(), 'Metadata author field correctly not updated');
+    $this->assertEquals($created_time, $metadata_target_translation->getCreatedTime(), 'Metadata created field correctly not updated');
+    $this->assertEquals($changed_time, $metadata_target_translation->getChangedTime(), 'Metadata changed field correctly not updated');
+    $this->assertEquals($published, $metadata_target_translation->isPublished(), 'Metadata published field correctly not updated');
+    $this->assertEquals($author->id(), $metadata_target_translation->getAuthor()->id(), 'Metadata author field correctly not updated');
   }
 
   /**
diff --git a/core/modules/content_translation/tests/src/Functional/ContentTranslationSettingsTest.php b/core/modules/content_translation/tests/src/Functional/ContentTranslationSettingsTest.php
index f15a8f9bc8..849fe840ed 100644
--- a/core/modules/content_translation/tests/src/Functional/ContentTranslationSettingsTest.php
+++ b/core/modules/content_translation/tests/src/Functional/ContentTranslationSettingsTest.php
@@ -128,7 +128,7 @@ public function testSettingsUI() {
 
     // Test that language settings are correctly stored.
     $language_configuration = ContentLanguageSettings::loadByEntityTypeBundle('comment', 'comment_article');
-    $this->assertEqual($language_configuration->getDefaultLangcode(), 'current_interface', 'The default language for article comments is set to the interface text language selected for page.');
+    $this->assertEquals($language_configuration->getDefaultLangcode(), 'current_interface', 'The default language for article comments is set to the interface text language selected for page.');
     $this->assertTrue($language_configuration->isLanguageAlterable(), 'The language selector for article comments is shown.');
 
     // Verify language widget appears on comment type form.
@@ -164,8 +164,8 @@ public function testSettingsUI() {
       $this->assertSettings('node', 'article', TRUE, $edit);
       $field = FieldConfig::loadByName('node', 'article', 'body');
       $definitions = \Drupal::entityManager()->getFieldDefinitions('node', 'article');
-      $this->assertEqual($definitions['body']->isTranslatable(), $translatable, 'Field translatability correctly switched.');
-      $this->assertEqual($field->isTranslatable(), $definitions['body']->isTranslatable(), 'Configurable field translatability correctly switched.');
+      $this->assertEquals($definitions['body']->isTranslatable(), $translatable, 'Field translatability correctly switched.');
+      $this->assertEquals($field->isTranslatable(), $definitions['body']->isTranslatable(), 'Configurable field translatability correctly switched.');
 
       // Test that also the Field UI form behaves correctly.
       $translatable = !$translatable;
@@ -174,8 +174,8 @@ public function testSettingsUI() {
       \Drupal::entityManager()->clearCachedFieldDefinitions();
       $field = FieldConfig::loadByName('node', 'article', 'body');
       $definitions = \Drupal::entityManager()->getFieldDefinitions('node', 'article');
-      $this->assertEqual($definitions['body']->isTranslatable(), $translatable, 'Field translatability correctly switched.');
-      $this->assertEqual($field->isTranslatable(), $definitions['body']->isTranslatable(), 'Configurable field translatability correctly switched.');
+      $this->assertEquals($definitions['body']->isTranslatable(), $translatable, 'Field translatability correctly switched.');
+      $this->assertEquals($field->isTranslatable(), $definitions['body']->isTranslatable(), 'Configurable field translatability correctly switched.');
     }
 
     // Test that the order of the language list is similar to other language
@@ -193,7 +193,7 @@ public function testSettingsUI() {
     $elements = $this->xpath('//select[@id="edit-settings-node-article-settings-language-langcode"]/option');
     // Compare values inside the option elements with expected values.
     for ($i = 0; $i < count($elements); $i++) {
-      $this->assertEqual($elements[$i]->getValue(), $expected_elements[$i]);
+      $this->assertEquals($elements[$i]->getValue(), $expected_elements[$i]);
     }
   }
 
@@ -239,7 +239,7 @@ protected function assertSettings($entity_type, $bundle, $enabled, $edit) {
     $args = ['@entity_type' => $entity_type, '@bundle' => $bundle, '@enabled' => $enabled ? 'enabled' : 'disabled'];
     $message = format_string('Translation for entity @entity_type (@bundle) is @enabled.', $args);
     \Drupal::entityManager()->clearCachedDefinitions();
-    return $this->assertEqual(\Drupal::service('content_translation.manager')->isEnabled($entity_type, $bundle), $enabled, $message);
+    return $this->assertEquals(\Drupal::service('content_translation.manager')->isEnabled($entity_type, $bundle), $enabled, $message);
   }
 
   /**
diff --git a/core/modules/content_translation/tests/src/Functional/ContentTranslationUITestBase.php b/core/modules/content_translation/tests/src/Functional/ContentTranslationUITestBase.php
index c755ac4906..b974429b35 100644
--- a/core/modules/content_translation/tests/src/Functional/ContentTranslationUITestBase.php
+++ b/core/modules/content_translation/tests/src/Functional/ContentTranslationUITestBase.php
@@ -99,7 +99,7 @@ protected function doTestBasicTranslation() {
       $stored_value = $this->getValue($translation, $property, $default_langcode);
       $value = is_array($value) ? $value[0]['value'] : $value;
       $message = format_string('@property correctly stored in the default language.', ['@property' => $property]);
-      $this->assertEqual($stored_value, $value, $message);
+      $this->assertEquals($stored_value, $value, $message);
     }
 
     // Add a content translation.
@@ -138,7 +138,7 @@ protected function doTestBasicTranslation() {
 
     $author_field_name = $entity->hasField('content_translation_uid') ? 'content_translation_uid' : 'uid';
     if ($entity->getFieldDefinition($author_field_name)->isTranslatable()) {
-      $this->assertEqual($metadata_target_translation->getAuthor()->id(), $this->translator->id(),
+      $this->assertEquals($metadata_target_translation->getAuthor()->id(), $this->translator->id(),
         SafeMarkup::format('Author of the target translation @langcode correctly stored for translatable owner field.', ['@langcode' => $langcode]));
 
       $this->assertNotEqual($metadata_target_translation->getAuthor()->id(), $metadata_source_translation->getAuthor()->id(),
@@ -146,7 +146,7 @@ protected function doTestBasicTranslation() {
           ['@target' => $langcode, '@source' => $default_langcode]));
     }
     else {
-      $this->assertEqual($metadata_target_translation->getAuthor()->id(), $this->editor->id(), 'Author of the entity remained untouched after translation for non translatable owner field.');
+      $this->assertEquals($metadata_target_translation->getAuthor()->id(), $this->editor->id(), 'Author of the entity remained untouched after translation for non translatable owner field.');
     }
 
     $created_field_name = $entity->hasField('content_translation_created') ? 'content_translation_created' : 'created';
@@ -156,7 +156,7 @@ protected function doTestBasicTranslation() {
           ['@target' => $langcode, '@source' => $default_langcode]));
     }
     else {
-      $this->assertEqual($metadata_target_translation->getCreatedTime(), $metadata_source_translation->getCreatedTime(), 'Creation timestamp of the entity remained untouched after translation for non translatable created field.');
+      $this->assertEquals($metadata_target_translation->getCreatedTime(), $metadata_source_translation->getCreatedTime(), 'Creation timestamp of the entity remained untouched after translation for non translatable created field.');
     }
 
     if ($this->testLanguageSelector) {
@@ -205,7 +205,7 @@ protected function doTestBasicTranslation() {
         $stored_value = $this->getValue($translation, $property, $langcode);
         $value = is_array($value) ? $value[0]['value'] : $value;
         $message = format_string('%property correctly stored with language %language.', ['%property' => $property, '%language' => $langcode]);
-        $this->assertEqual($stored_value, $value, $message);
+        $this->assertEquals($stored_value, $value, $message);
       }
     }
   }
@@ -227,10 +227,10 @@ protected function doTestTranslationOverview() {
         $language = new Language(['id' => $langcode]);
         $view_url = $entity->url('canonical', ['language' => $language]);
         $elements = $this->xpath('//table//a[@href=:href]', [':href' => $view_url]);
-        $this->assertEqual($elements[0]->getText(), $entity->getTranslation($langcode)->label(), new FormattableMarkup('Label correctly shown for %language translation.', ['%language' => $langcode]));
+        $this->assertEquals($elements[0]->getText(), $entity->getTranslation($langcode)->label(), new FormattableMarkup('Label correctly shown for %language translation.', ['%language' => $langcode]));
         $edit_path = $entity->url('edit-form', ['language' => $language]);
         $elements = $this->xpath('//table//ul[@class="dropbutton"]/li/a[@href=:href]', [':href' => $edit_path]);
-        $this->assertEqual($elements[0]->getText(), t('Edit'), new FormattableMarkup('Edit link correct for %language translation.', ['%language' => $langcode]));
+        $this->assertEquals($elements[0]->getText(), t('Edit'), new FormattableMarkup('Edit link correct for %language translation.', ['%language' => $langcode]));
       }
     }
   }
@@ -337,8 +337,8 @@ protected function doTestAuthoringInfo() {
     $entity = $storage->load($this->entityId);
     foreach ($this->langcodes as $langcode) {
       $metadata = $this->manager->getTranslationMetadata($entity->getTranslation($langcode));
-      $this->assertEqual($metadata->getAuthor()->id(), $values[$langcode]['uid'], 'Translation author correctly stored.');
-      $this->assertEqual($metadata->getCreatedTime(), $values[$langcode]['created'], 'Translation date correctly stored.');
+      $this->assertEquals($metadata->getAuthor()->id(), $values[$langcode]['uid'], 'Translation author correctly stored.');
+      $this->assertEquals($metadata->getCreatedTime(), $values[$langcode]['created'], 'Translation date correctly stored.');
     }
 
     // Try to post non valid values and check that they are rejected.
@@ -351,8 +351,8 @@ protected function doTestAuthoringInfo() {
     $this->drupalPostForm($entity->urlInfo('edit-form'), $edit, $this->getFormSubmitAction($entity, $langcode));
     $this->assertTrue($this->xpath('//div[contains(@class, "error")]//ul'), 'Invalid values generate a list of form errors.');
     $metadata = $this->manager->getTranslationMetadata($entity->getTranslation($langcode));
-    $this->assertEqual($metadata->getAuthor()->id(), $values[$langcode]['uid'], 'Translation author correctly kept.');
-    $this->assertEqual($metadata->getCreatedTime(), $values[$langcode]['created'], 'Translation date correctly kept.');
+    $this->assertEquals($metadata->getAuthor()->id(), $values[$langcode]['uid'], 'Translation author correctly kept.');
+    $this->assertEquals($metadata->getCreatedTime(), $values[$langcode]['created'], 'Translation date correctly kept.');
   }
 
   /**
@@ -563,7 +563,7 @@ protected function doTestTranslationChanged() {
           ->getStorage($this->entityTypeId);
         $storage->resetCache([$this->entityId]);
         $entity = $storage->load($this->entityId);
-        $this->assertEqual(
+        $this->assertEquals(
           $entity->getChangedTimeAcrossTranslations(), $entity->getTranslation($langcode)->getChangedTime(),
           format_string('Changed time for language %language is the latest change over all languages.', ['%language' => $language->getName()])
         );
@@ -578,13 +578,13 @@ protected function doTestTranslationChanged() {
       }
 
       if ($translatable_changed_field) {
-        $this->assertEqual(
+        $this->assertEquals(
           count($timestamps), count($entity->getTranslationLanguages()),
           'All timestamps from all languages are different.'
         );
       }
       else {
-        $this->assertEqual(
+        $this->assertEquals(
           count($timestamps), 1,
           'All timestamps from all languages are identical.'
         );
@@ -609,7 +609,7 @@ public function doTestChangedTimeAfterSaveWithoutChanges() {
         ->getStorage($this->entityTypeId);
       $storage->resetCache([$this->entityId]);
       $entity = $storage->load($this->entityId);
-      $this->assertEqual($changed_timestamp, $entity->getChangedTime(), 'The entity\'s changed time wasn\'t updated after API save without changes.');
+      $this->assertEquals($changed_timestamp, $entity->getChangedTime(), 'The entity\'s changed time wasn\'t updated after API save without changes.');
 
       // Ensure different save timestamps.
       sleep(1);
diff --git a/core/modules/content_translation/tests/src/Functional/Update/ContentTranslationUpdateTest.php b/core/modules/content_translation/tests/src/Functional/Update/ContentTranslationUpdateTest.php
index 25be0def24..dd674ef48b 100644
--- a/core/modules/content_translation/tests/src/Functional/Update/ContentTranslationUpdateTest.php
+++ b/core/modules/content_translation/tests/src/Functional/Update/ContentTranslationUpdateTest.php
@@ -92,9 +92,9 @@ public function testContentTranslationUpdate8400() {
       ->condition('etud.id', 1)
       ->execute()
       ->fetchAllAssoc('id');
-    $this->assertEqual(LanguageInterface::LANGCODE_NOT_SPECIFIED, $first_entity_record[1]->content_translation_source);
-    $this->assertEqual(0, $first_entity_record[1]->content_translation_outdated);
-    $this->assertEqual(1, $first_entity_record[1]->content_translation_status);
+    $this->assertEquals(LanguageInterface::LANGCODE_NOT_SPECIFIED, $first_entity_record[1]->content_translation_source);
+    $this->assertEquals(0, $first_entity_record[1]->content_translation_outdated);
+    $this->assertEquals(1, $first_entity_record[1]->content_translation_status);
   }
 
 }
diff --git a/core/modules/content_translation/tests/src/Kernel/ContentTranslationSyncUnitTest.php b/core/modules/content_translation/tests/src/Kernel/ContentTranslationSyncUnitTest.php
index fa5fd1c9b7..12578989ce 100644
--- a/core/modules/content_translation/tests/src/Kernel/ContentTranslationSyncUnitTest.php
+++ b/core/modules/content_translation/tests/src/Kernel/ContentTranslationSyncUnitTest.php
@@ -222,7 +222,7 @@ function ($delta) {
             // depending on the logic implemented by the delta callback and
             // whether it is a sync column or not.
             $value = $delta > 0 && $delta_callback($delta) && in_array($column, $this->synchronized) ? $changed_items[0][$column] : $unchanged_items[$delta][$column];
-            $this->assertEqual($field_values[$langcode][$delta][$column], $value, "Item $delta column $column for langcode $langcode synced correctly");
+            $this->assertEquals($field_values[$langcode][$delta][$column], $value, "Item $delta column $column for langcode $langcode synced correctly");
           }
         }
       }
@@ -251,7 +251,7 @@ public function testDifferingSyncedColumns() {
           // If the column is synchronized, the value should have been synced,
           // for unsychronized columns, the value must not change.
           $expected_value = in_array($column, $this->synchronized) ? $changed_items[$delta][$column] : $this->unchangedFieldValues[$langcode][$delta][$column];
-          $this->assertEqual($field_values[$langcode][$delta][$column], $expected_value, "Differing Item $delta column $column for langcode $langcode synced correctly");
+          $this->assertEquals($field_values[$langcode][$delta][$column], $expected_value, "Differing Item $delta column $column for langcode $langcode synced correctly");
         }
       }
     }
diff --git a/core/modules/datetime/tests/src/Kernel/DateTimeItemTest.php b/core/modules/datetime/tests/src/Kernel/DateTimeItemTest.php
index 75f892a254..246a671b18 100644
--- a/core/modules/datetime/tests/src/Kernel/DateTimeItemTest.php
+++ b/core/modules/datetime/tests/src/Kernel/DateTimeItemTest.php
@@ -79,20 +79,20 @@ public function testDateTime() {
     $entity = EntityTest::load($id);
     $this->assertTrue($entity->field_datetime instanceof FieldItemListInterface, 'Field implements interface.');
     $this->assertTrue($entity->field_datetime[0] instanceof FieldItemInterface, 'Field item implements interface.');
-    $this->assertEqual($entity->field_datetime->value, $value);
-    $this->assertEqual($entity->field_datetime[0]->value, $value);
+    $this->assertEquals($entity->field_datetime->value, $value);
+    $this->assertEquals($entity->field_datetime[0]->value, $value);
     $this->assertEquals(DateTimeItemInterface::STORAGE_TIMEZONE, $entity->field_datetime->date->getTimeZone()->getName());
 
     // Verify changing the date value.
     $new_value = '2016-11-04T00:21:00';
     $entity->field_datetime->value = $new_value;
-    $this->assertEqual($entity->field_datetime->value, $new_value);
+    $this->assertEquals($entity->field_datetime->value, $new_value);
     $this->assertEquals(DateTimeItemInterface::STORAGE_TIMEZONE, $entity->field_datetime->date->getTimeZone()->getName());
 
     // Read changed entity and assert changed values.
     $this->entityValidateAndSave($entity);
     $entity = EntityTest::load($id);
-    $this->assertEqual($entity->field_datetime->value, $new_value);
+    $this->assertEquals($entity->field_datetime->value, $new_value);
     $this->assertEquals(DateTimeItemInterface::STORAGE_TIMEZONE, $entity->field_datetime->date->getTimeZone()->getName());
 
     // Test the generateSampleValue() method.
@@ -120,8 +120,8 @@ public function testDateOnly() {
     $entity = EntityTest::load($id);
     $this->assertTrue($entity->field_datetime instanceof FieldItemListInterface, 'Field implements interface.');
     $this->assertTrue($entity->field_datetime[0] instanceof FieldItemInterface, 'Field item implements interface.');
-    $this->assertEqual($entity->field_datetime->value, $value);
-    $this->assertEqual($entity->field_datetime[0]->value, $value);
+    $this->assertEquals($entity->field_datetime->value, $value);
+    $this->assertEquals($entity->field_datetime[0]->value, $value);
     $this->assertEquals(DateTimeItemInterface::STORAGE_TIMEZONE, $entity->field_datetime->date->getTimeZone()->getName());
     $this->assertEquals('12:00:00', $entity->field_datetime->date->format('H:i:s'));
     $entity->field_datetime->date->setDefaultDateTime();
@@ -130,7 +130,7 @@ public function testDateOnly() {
     // Verify changing the date value.
     $new_value = '2016-11-04';
     $entity->field_datetime->value = $new_value;
-    $this->assertEqual($entity->field_datetime->value, $new_value);
+    $this->assertEquals($entity->field_datetime->value, $new_value);
     $this->assertEquals(DateTimeItemInterface::STORAGE_TIMEZONE, $entity->field_datetime->date->getTimeZone()->getName());
     $this->assertEquals('12:00:00', $entity->field_datetime->date->format('H:i:s'));
     $entity->field_datetime->date->setDefaultDateTime();
@@ -139,7 +139,7 @@ public function testDateOnly() {
     // Read changed entity and assert changed values.
     $this->entityValidateAndSave($entity);
     $entity = EntityTest::load($id);
-    $this->assertEqual($entity->field_datetime->value, $new_value);
+    $this->assertEquals($entity->field_datetime->value, $new_value);
     $this->assertEquals(DateTimeItemInterface::STORAGE_TIMEZONE, $entity->field_datetime->date->getTimeZone()->getName());
     $this->assertEquals('12:00:00', $entity->field_datetime->date->format('H:i:s'));
     $entity->field_datetime->date->setDefaultDateTime();
@@ -170,7 +170,7 @@ public function testSetValue() {
     // Load the entity and ensure the field was saved correctly.
     $id = $entity->id();
     $entity = EntityTest::load($id);
-    $this->assertEqual($entity->field_datetime[0]->value, $value, 'DateTimeItem::setValue() works with string value.');
+    $this->assertEquals($entity->field_datetime[0]->value, $value, 'DateTimeItem::setValue() works with string value.');
     $this->assertEquals(DateTimeItemInterface::STORAGE_TIMEZONE, $entity->field_datetime->date->getTimeZone()->getName());
 
     // Test DateTimeItem::setValue() using property array.
@@ -181,7 +181,7 @@ public function testSetValue() {
     // Load the entity and ensure the field was saved correctly.
     $id = $entity->id();
     $entity = EntityTest::load($id);
-    $this->assertEqual($entity->field_datetime[0]->value, $value, 'DateTimeItem::setValue() works with array value.');
+    $this->assertEquals($entity->field_datetime[0]->value, $value, 'DateTimeItem::setValue() works with array value.');
     $this->assertEquals(DateTimeItemInterface::STORAGE_TIMEZONE, $entity->field_datetime->date->getTimeZone()->getName());
 
     // Test a date-only field.
@@ -196,7 +196,7 @@ public function testSetValue() {
     // Load the entity and ensure the field was saved correctly.
     $id = $entity->id();
     $entity = EntityTest::load($id);
-    $this->assertEqual($entity->field_datetime[0]->value, $value, 'DateTimeItem::setValue() works with string value.');
+    $this->assertEquals($entity->field_datetime[0]->value, $value, 'DateTimeItem::setValue() works with string value.');
     $this->assertEquals(DateTimeItemInterface::STORAGE_TIMEZONE, $entity->field_datetime->date->getTimeZone()->getName());
 
     // Test DateTimeItem::setValue() using property array.
@@ -207,7 +207,7 @@ public function testSetValue() {
     // Load the entity and ensure the field was saved correctly.
     $id = $entity->id();
     $entity = EntityTest::load($id);
-    $this->assertEqual($entity->field_datetime[0]->value, $value, 'DateTimeItem::setValue() works with array value.');
+    $this->assertEquals($entity->field_datetime[0]->value, $value, 'DateTimeItem::setValue() works with array value.');
     $this->assertEquals(DateTimeItemInterface::STORAGE_TIMEZONE, $entity->field_datetime->date->getTimeZone()->getName());
   }
 
@@ -227,7 +227,7 @@ public function testSetValueProperty() {
     // Load the entity and ensure the field was saved correctly.
     $id = $entity->id();
     $entity = EntityTest::load($id);
-    $this->assertEqual($entity->field_datetime[0]->value, $value, '"Value" property can be set directly.');
+    $this->assertEquals($entity->field_datetime[0]->value, $value, '"Value" property can be set directly.');
     $this->assertEquals(DateTimeItemInterface::STORAGE_TIMEZONE, $entity->field_datetime->date->getTimeZone()->getName());
 
     // Test Date::setValue() with a date-only field.
@@ -242,7 +242,7 @@ public function testSetValueProperty() {
     // Load the entity and ensure the field was saved correctly.
     $id = $entity->id();
     $entity = EntityTest::load($id);
-    $this->assertEqual($entity->field_datetime[0]->value, $value, '"Value" property can be set directly.');
+    $this->assertEquals($entity->field_datetime[0]->value, $value, '"Value" property can be set directly.');
     $this->assertEquals(DateTimeItemInterface::STORAGE_TIMEZONE, $entity->field_datetime->date->getTimeZone()->getName());
   }
 
diff --git a/core/modules/datetime_range/tests/src/Functional/DateRangeFieldTest.php b/core/modules/datetime_range/tests/src/Functional/DateRangeFieldTest.php
index bd83b980e7..9e835a3953 100644
--- a/core/modules/datetime_range/tests/src/Functional/DateRangeFieldTest.php
+++ b/core/modules/datetime_range/tests/src/Functional/DateRangeFieldTest.php
@@ -96,8 +96,8 @@ public function testDateRangeField() {
 
       // Verify the date doesn't change when entity is edited through the form.
       $entity = EntityTest::load($id);
-      $this->assertEqual('2012-12-31', $entity->{$field_name}->value);
-      $this->assertEqual('2013-06-06', $entity->{$field_name}->end_value);
+      $this->assertEquals('2012-12-31', $entity->{$field_name}->value);
+      $this->assertEquals('2013-06-06', $entity->{$field_name}->end_value);
       $this->drupalGet('entity_test/manage/' . $id . '/edit');
       $this->drupalPostForm(NULL, [], t('Save'));
       $this->drupalGet('entity_test/manage/' . $id . '/edit');
@@ -105,8 +105,8 @@ public function testDateRangeField() {
       $this->drupalGet('entity_test/manage/' . $id . '/edit');
       $this->drupalPostForm(NULL, [], t('Save'));
       $entity = EntityTest::load($id);
-      $this->assertEqual('2012-12-31', $entity->{$field_name}->value);
-      $this->assertEqual('2013-06-06', $entity->{$field_name}->end_value);
+      $this->assertEquals('2012-12-31', $entity->{$field_name}->value);
+      $this->assertEquals('2013-06-06', $entity->{$field_name}->end_value);
 
       // Formats that display a time component for date-only fields will display
       // the default time, so that is applied before calculating the expected
@@ -1009,7 +1009,7 @@ public function testDefaultValue() {
 
     // Check if default_date has been stored successfully.
     $config_entity = $this->config('field.field.node.date_content.' . $field_name)->get();
-    $this->assertEqual($config_entity['default_value'][0], [
+    $this->assertEquals($config_entity['default_value'][0], [
       'default_date_type' => 'now',
       'default_date' => 'now',
       'default_end_date_type' => 'now',
@@ -1022,8 +1022,8 @@ public function testDefaultValue() {
     // Create a new node to check that datetime field default value is today.
     $new_node = Node::create(['type' => 'date_content']);
     $expected_date = new DrupalDateTime('now', DateTimeItemInterface::STORAGE_TIMEZONE);
-    $this->assertEqual($new_node->get($field_name)->offsetGet(0)->value, $expected_date->format(DateTimeItemInterface::DATE_STORAGE_FORMAT));
-    $this->assertEqual($new_node->get($field_name)->offsetGet(0)->end_value, $expected_date->format(DateTimeItemInterface::DATE_STORAGE_FORMAT));
+    $this->assertEquals($new_node->get($field_name)->offsetGet(0)->value, $expected_date->format(DateTimeItemInterface::DATE_STORAGE_FORMAT));
+    $this->assertEquals($new_node->get($field_name)->offsetGet(0)->end_value, $expected_date->format(DateTimeItemInterface::DATE_STORAGE_FORMAT));
 
     // Set an invalid relative default_value to test validation.
     $field_edit = [
@@ -1062,7 +1062,7 @@ public function testDefaultValue() {
 
     // Check if default_date has been stored successfully.
     $config_entity = $this->config('field.field.node.date_content.' . $field_name)->get();
-    $this->assertEqual($config_entity['default_value'][0], [
+    $this->assertEquals($config_entity['default_value'][0], [
       'default_date_type' => 'relative',
       'default_date' => '+45 days',
       'default_end_date_type' => 'relative',
@@ -1076,8 +1076,8 @@ public function testDefaultValue() {
     $new_node = Node::create(['type' => 'date_content']);
     $expected_start_date = new DrupalDateTime('+45 days', DateTimeItemInterface::STORAGE_TIMEZONE);
     $expected_end_date = new DrupalDateTime('+90 days', DateTimeItemInterface::STORAGE_TIMEZONE);
-    $this->assertEqual($new_node->get($field_name)->offsetGet(0)->value, $expected_start_date->format(DateTimeItemInterface::DATE_STORAGE_FORMAT));
-    $this->assertEqual($new_node->get($field_name)->offsetGet(0)->end_value, $expected_end_date->format(DateTimeItemInterface::DATE_STORAGE_FORMAT));
+    $this->assertEquals($new_node->get($field_name)->offsetGet(0)->value, $expected_start_date->format(DateTimeItemInterface::DATE_STORAGE_FORMAT));
+    $this->assertEquals($new_node->get($field_name)->offsetGet(0)->end_value, $expected_end_date->format(DateTimeItemInterface::DATE_STORAGE_FORMAT));
 
     // Remove default value.
     $field_edit = [
@@ -1375,7 +1375,7 @@ public function testDateStorageSettings() {
     $this->drupalPostForm('node/add/date_content', $edit, t('Save'));
     $this->drupalGet('admin/structure/types/manage/date_content/fields/node.date_content.' . $field_name . '/storage');
     $result = $this->xpath("//*[@id='edit-settings-datetime-type' and contains(@disabled, 'disabled')]");
-    $this->assertEqual(count($result), 1, "Changing datetime setting is disabled.");
+    $this->assertEquals(count($result), 1, "Changing datetime setting is disabled.");
     $this->assertText('There is data for this field in the database. The field settings can no longer be changed.');
   }
 
diff --git a/core/modules/dblog/src/Tests/Rest/DbLogResourceTest.php b/core/modules/dblog/src/Tests/Rest/DbLogResourceTest.php
index 44dbe99dd1..37a0050336 100644
--- a/core/modules/dblog/src/Tests/Rest/DbLogResourceTest.php
+++ b/core/modules/dblog/src/Tests/Rest/DbLogResourceTest.php
@@ -45,21 +45,21 @@ public function testWatchdog() {
     $this->assertResponse(200);
     $this->assertHeader('content-type', $this->defaultMimeType);
     $log = Json::decode($response);
-    $this->assertEqual($log['wid'], $id, 'Log ID is correct.');
-    $this->assertEqual($log['type'], 'rest', 'Type of log message is correct.');
-    $this->assertEqual($log['message'], 'Test message', 'Log message text is correct.');
+    $this->assertEquals($log['wid'], $id, 'Log ID is correct.');
+    $this->assertEquals($log['type'], 'rest', 'Type of log message is correct.');
+    $this->assertEquals($log['message'], 'Test message', 'Log message text is correct.');
 
     // Request an unknown log entry.
     $response = $this->httpRequest(Url::fromRoute('rest.dblog.GET.' . $this->defaultFormat, ['id' => 9999, '_format' => $this->defaultFormat]), 'GET');
     $this->assertResponse(404);
     $decoded = Json::decode($response);
-    $this->assertEqual($decoded['message'], 'Log entry with ID 9999 was not found', 'Response message is correct.');
+    $this->assertEquals($decoded['message'], 'Log entry with ID 9999 was not found', 'Response message is correct.');
 
     // Make a bad request (a true malformed request would never be a route match).
     $response = $this->httpRequest(Url::fromRoute('rest.dblog.GET.' . $this->defaultFormat, ['id' => 0, '_format' => $this->defaultFormat]), 'GET');
     $this->assertResponse(400);
     $decoded = Json::decode($response);
-    $this->assertEqual($decoded['message'], 'No log entry ID was provided', 'Response message is correct.');
+    $this->assertEquals($decoded['message'], 'No log entry ID was provided', 'Response message is correct.');
   }
 
 }
diff --git a/core/modules/dblog/tests/src/Functional/DbLogTest.php b/core/modules/dblog/tests/src/Functional/DbLogTest.php
index 5b82282d6a..578b072f92 100644
--- a/core/modules/dblog/tests/src/Functional/DbLogTest.php
+++ b/core/modules/dblog/tests/src/Functional/DbLogTest.php
@@ -315,7 +315,7 @@ private function verifyBreadcrumbs() {
     $wid = db_query('SELECT MIN(wid) FROM {watchdog}')->fetchField();
     $this->drupalGet('admin/reports/dblog/event/' . $wid);
     $xpath = '//nav[@class="breadcrumb"]/ol/li[last()]/a';
-    $this->assertEqual(current($this->xpath($xpath))->getText(), 'Recent log messages', 'DBLogs link displayed at breadcrumb in event page.');
+    $this->assertEquals(current($this->xpath($xpath))->getText(), 'Recent log messages', 'DBLogs link displayed at breadcrumb in event page.');
   }
 
   /**
@@ -583,7 +583,7 @@ public function testDBLogAddAndClear() {
     // Add a watchdog entry.
     $this->container->get('logger.dblog')->log($log['severity'], $log['message'], $log);
     // Make sure the table count has actually been incremented.
-    $this->assertEqual($count + 1, db_query('SELECT COUNT(*) FROM {watchdog}')->fetchField(), format_string('\Drupal\dblog\Logger\DbLog->log() added an entry to the dblog :count', [':count' => $count]));
+    $this->assertEquals($count + 1, db_query('SELECT COUNT(*) FROM {watchdog}')->fetchField(), format_string('\Drupal\dblog\Logger\DbLog->log() added an entry to the dblog :count', [':count' => $count]));
     // Log in the admin user.
     $this->drupalLogin($this->adminUser);
     // Post in order to clear the database table.
@@ -592,7 +592,7 @@ public function testDBLogAddAndClear() {
     $this->drupalPostForm(NULL, [], 'Confirm');
     // Count the rows in watchdog that previously related to the deleted user.
     $count = db_query('SELECT COUNT(*) FROM {watchdog}')->fetchField();
-    $this->assertEqual($count, 0, format_string('DBLog contains :count records after a clear.', [':count' => $count]));
+    $this->assertEquals($count, 0, format_string('DBLog contains :count records after a clear.', [':count' => $count]));
   }
 
   /**
@@ -629,7 +629,7 @@ public function testFilter() {
     // Confirm that all the entries are displayed.
     $count = $this->getTypeCount($types);
     foreach ($types as $key => $type) {
-      $this->assertEqual($count[$key], $type['count'], 'Count matched');
+      $this->assertEquals($count[$key], $type['count'], 'Count matched');
     }
 
     // Filter by each type and confirm that entries with various severities are
@@ -646,7 +646,7 @@ public function testFilter() {
       }
 
       $count = $this->getTypeCount($types);
-      $this->assertEqual(array_sum($count), $type_count, 'Count matched');
+      $this->assertEquals(array_sum($count), $type_count, 'Count matched');
     }
 
     // Set the filter to match each of the two filter-type attributes and
@@ -655,7 +655,7 @@ public function testFilter() {
       $this->filterLogsEntries($type['type'], $type['severity']);
 
       $count = $this->getTypeCount($types);
-      $this->assertEqual(array_sum($count), $type['count'], 'Count matched');
+      $this->assertEquals(array_sum($count), $type['count'], 'Count matched');
     }
 
     $this->drupalGet('admin/reports/dblog', ['query' => ['order' => 'Type']]);
diff --git a/core/modules/dblog/tests/src/Functional/Update/DblogFiltersAndFieldsUpgradeTest.php b/core/modules/dblog/tests/src/Functional/Update/DblogFiltersAndFieldsUpgradeTest.php
index e512f5f5d8..495832b42f 100644
--- a/core/modules/dblog/tests/src/Functional/Update/DblogFiltersAndFieldsUpgradeTest.php
+++ b/core/modules/dblog/tests/src/Functional/Update/DblogFiltersAndFieldsUpgradeTest.php
@@ -37,12 +37,12 @@ public function testDblogUpgradePath() {
     $fields = $data['display']['default']['display_options']['fields'];
 
     // The 'wid' and 'uid' fields should use the standard plugin now.
-    $this->assertEqual('standard', $fields['wid']['plugin_id']);
-    $this->assertEqual('standard', $fields['uid']['plugin_id']);
+    $this->assertEquals('standard', $fields['wid']['plugin_id']);
+    $this->assertEquals('standard', $fields['uid']['plugin_id']);
 
     $filters = $data['display']['default']['display_options']['filters'];
     // The 'type' filter should use the dblog_types plugin now.
-    $this->assertEqual('dblog_types', $filters['type']['plugin_id']);
+    $this->assertEquals('dblog_types', $filters['type']['plugin_id']);
 
     // Now that the view had been converted, try the same approach but using
     // dblog_view_presave()
@@ -57,9 +57,9 @@ public function testDblogUpgradePath() {
     $fields = $data['display']['default']['display_options']['fields'];
     $filters = $data['display']['default']['display_options']['filters'];
 
-    $this->assertEqual('numeric', $fields['wid']['plugin_id']);
-    $this->assertEqual('numeric', $fields['uid']['plugin_id']);
-    $this->assertEqual('in_operator', $filters['type']['plugin_id']);
+    $this->assertEquals('numeric', $fields['wid']['plugin_id']);
+    $this->assertEquals('numeric', $fields['uid']['plugin_id']);
+    $this->assertEquals('in_operator', $filters['type']['plugin_id']);
 
     // Now save the view. This trigger dblog_view_presave().
     $view->save();
@@ -69,9 +69,9 @@ public function testDblogUpgradePath() {
     $fields = $data['display']['default']['display_options']['fields'];
     $filters = $data['display']['default']['display_options']['filters'];
 
-    $this->assertEqual('standard', $fields['wid']['plugin_id']);
-    $this->assertEqual('standard', $fields['uid']['plugin_id']);
-    $this->assertEqual('dblog_types', $filters['type']['plugin_id']);
+    $this->assertEquals('standard', $fields['wid']['plugin_id']);
+    $this->assertEquals('standard', $fields['uid']['plugin_id']);
+    $this->assertEquals('dblog_types', $filters['type']['plugin_id']);
   }
 
 }
diff --git a/core/modules/dblog/tests/src/Kernel/Views/ViewsIntegrationTest.php b/core/modules/dblog/tests/src/Kernel/Views/ViewsIntegrationTest.php
index 67d693fb8b..30debffc47 100644
--- a/core/modules/dblog/tests/src/Kernel/Views/ViewsIntegrationTest.php
+++ b/core/modules/dblog/tests/src/Kernel/Views/ViewsIntegrationTest.php
@@ -62,7 +62,7 @@ public function testMessages() {
       if (!isset($entry['variables'])) {
         continue;
       }
-      $this->assertEqual($view->style_plugin->getField($index, 'message'), SafeMarkup::format($entry['message'], $entry['variables']));
+      $this->assertEquals($view->style_plugin->getField($index, 'message'), SafeMarkup::format($entry['message'], $entry['variables']));
       $link_field = $view->style_plugin->getField($index, 'link');
       // The 3rd entry contains some unsafe markup that needs to get filtered.
       if ($index == 2) {
@@ -70,7 +70,7 @@ public function testMessages() {
         // that some filtering actually happened.
         $this->assertNotEqual($link_field, $entry['variables']['link']);
       }
-      $this->assertEqual($link_field, Xss::filterAdmin($entry['variables']['link']));
+      $this->assertEquals($link_field, Xss::filterAdmin($entry['variables']['link']));
     }
 
     // Disable replacing variables and check that the tokens aren't replaced.
@@ -81,7 +81,7 @@ public function testMessages() {
     $view->initStyle();
     $view->field['message']->options['replace_variables'] = FALSE;
     foreach ($entries as $index => $entry) {
-      $this->assertEqual($view->style_plugin->getField($index, 'message'), $entry['message']);
+      $this->assertEquals($view->style_plugin->getField($index, 'message'), $entry['message']);
     }
   }
 
diff --git a/core/modules/dynamic_page_cache/tests/src/Functional/DynamicPageCacheIntegrationTest.php b/core/modules/dynamic_page_cache/tests/src/Functional/DynamicPageCacheIntegrationTest.php
index ffa8f4375f..12937264d6 100644
--- a/core/modules/dynamic_page_cache/tests/src/Functional/DynamicPageCacheIntegrationTest.php
+++ b/core/modules/dynamic_page_cache/tests/src/Functional/DynamicPageCacheIntegrationTest.php
@@ -57,17 +57,17 @@ public function testDynamicPageCache() {
     // objects are handled by Dynamic Page Cache.
     $url = Url::fromUri('route:dynamic_page_cache_test.cacheable_response');
     $this->drupalGet($url);
-    $this->assertEqual('MISS', $this->drupalGetHeader(DynamicPageCacheSubscriber::HEADER), 'Cacheable response object returned: Dynamic Page Cache is active, Dynamic Page Cache MISS.');
+    $this->assertEquals('MISS', $this->drupalGetHeader(DynamicPageCacheSubscriber::HEADER), 'Cacheable response object returned: Dynamic Page Cache is active, Dynamic Page Cache MISS.');
     $this->drupalGet($url);
-    $this->assertEqual('HIT', $this->drupalGetHeader(DynamicPageCacheSubscriber::HEADER), 'Cacheable response object returned: Dynamic Page Cache is active, Dynamic Page Cache HIT.');
+    $this->assertEquals('HIT', $this->drupalGetHeader(DynamicPageCacheSubscriber::HEADER), 'Cacheable response object returned: Dynamic Page Cache is active, Dynamic Page Cache HIT.');
 
     // Controllers returning render arrays, rendered as HTML responses, are
     // handled by Dynamic Page Cache.
     $url = Url::fromUri('route:dynamic_page_cache_test.html');
     $this->drupalGet($url);
-    $this->assertEqual('MISS', $this->drupalGetHeader(DynamicPageCacheSubscriber::HEADER), 'Render array returned, rendered as HTML response: Dynamic Page Cache is active, Dynamic Page Cache MISS.');
+    $this->assertEquals('MISS', $this->drupalGetHeader(DynamicPageCacheSubscriber::HEADER), 'Render array returned, rendered as HTML response: Dynamic Page Cache is active, Dynamic Page Cache MISS.');
     $this->drupalGet($url);
-    $this->assertEqual('HIT', $this->drupalGetHeader(DynamicPageCacheSubscriber::HEADER), 'Render array returned, rendered as HTML response: Dynamic Page Cache is active, Dynamic Page Cache HIT.');
+    $this->assertEquals('HIT', $this->drupalGetHeader(DynamicPageCacheSubscriber::HEADER), 'Render array returned, rendered as HTML response: Dynamic Page Cache is active, Dynamic Page Cache HIT.');
 
     // The above is the simple case, where the render array returned by the
     // response contains no cache contexts. So let's now test a route/controller
@@ -77,10 +77,10 @@ public function testDynamicPageCache() {
       $url = Url::fromUri('route:dynamic_page_cache_test.html.with_cache_contexts', ['query' => ['animal' => $animal]]);
       $this->drupalGet($url);
       $this->assertRaw($animal);
-      $this->assertEqual('MISS', $this->drupalGetHeader(DynamicPageCacheSubscriber::HEADER), 'Render array returned, rendered as HTML response: Dynamic Page Cache is active, Dynamic Page Cache MISS.');
+      $this->assertEquals('MISS', $this->drupalGetHeader(DynamicPageCacheSubscriber::HEADER), 'Render array returned, rendered as HTML response: Dynamic Page Cache is active, Dynamic Page Cache MISS.');
       $this->drupalGet($url);
       $this->assertRaw($animal);
-      $this->assertEqual('HIT', $this->drupalGetHeader(DynamicPageCacheSubscriber::HEADER), 'Render array returned, rendered as HTML response: Dynamic Page Cache is active, Dynamic Page Cache HIT.');
+      $this->assertEquals('HIT', $this->drupalGetHeader(DynamicPageCacheSubscriber::HEADER), 'Render array returned, rendered as HTML response: Dynamic Page Cache is active, Dynamic Page Cache HIT.');
 
       // Finally, let's also verify that the 'dynamic_page_cache_test.html'
       // route continued to see cache hits if we specify a query argument,
@@ -88,7 +88,7 @@ public function testDynamicPageCache() {
       // Cache hits.
       $url = Url::fromUri('route:dynamic_page_cache_test.html', ['query' => ['animal' => 'piglet']]);
       $this->drupalGet($url);
-      $this->assertEqual('HIT', $this->drupalGetHeader(DynamicPageCacheSubscriber::HEADER), 'Render array returned, rendered as HTML response: Dynamic Page Cache is active, Dynamic Page Cache HIT.');
+      $this->assertEquals('HIT', $this->drupalGetHeader(DynamicPageCacheSubscriber::HEADER), 'Render array returned, rendered as HTML response: Dynamic Page Cache is active, Dynamic Page Cache HIT.');
     }
 
     // Controllers returning render arrays, rendered as anything except a HTML
@@ -111,16 +111,16 @@ public function testDynamicPageCache() {
 
     // Max-age = 0 responses are ignored by Dynamic Page Cache.
     $this->drupalGet('dynamic-page-cache-test/html/uncacheable/max-age');
-    $this->assertEqual('UNCACHEABLE', $this->drupalGetHeader(DynamicPageCacheSubscriber::HEADER), 'Render array returned, rendered as HTML response, but uncacheable: Dynamic Page Cache is running, but not caching.');
+    $this->assertEquals('UNCACHEABLE', $this->drupalGetHeader(DynamicPageCacheSubscriber::HEADER), 'Render array returned, rendered as HTML response, but uncacheable: Dynamic Page Cache is running, but not caching.');
 
     // 'user' cache context responses are ignored by Dynamic Page Cache.
     $this->drupalGet('dynamic-page-cache-test/html/uncacheable/contexts');
-    $this->assertEqual('UNCACHEABLE', $this->drupalGetHeader(DynamicPageCacheSubscriber::HEADER), 'Render array returned, rendered as HTML response, but uncacheable: Dynamic Page Cache is running, but not caching.');
+    $this->assertEquals('UNCACHEABLE', $this->drupalGetHeader(DynamicPageCacheSubscriber::HEADER), 'Render array returned, rendered as HTML response, but uncacheable: Dynamic Page Cache is running, but not caching.');
 
     // 'current-temperature' cache tag responses are ignored by Dynamic Page
     // Cache.
     $this->drupalGet('dynamic-page-cache-test/html/uncacheable/tags');
-    $this->assertEqual('MISS', $this->drupalGetHeader(DynamicPageCacheSubscriber::HEADER), 'By default, Drupal has no auto-placeholdering cache tags.');
+    $this->assertEquals('MISS', $this->drupalGetHeader(DynamicPageCacheSubscriber::HEADER), 'By default, Drupal has no auto-placeholdering cache tags.');
   }
 
 }
diff --git a/core/modules/editor/src/Tests/EditorUploadImageScaleTest.php b/core/modules/editor/src/Tests/EditorUploadImageScaleTest.php
index 100fb4fdc5..3c584719c4 100644
--- a/core/modules/editor/src/Tests/EditorUploadImageScaleTest.php
+++ b/core/modules/editor/src/Tests/EditorUploadImageScaleTest.php
@@ -76,8 +76,8 @@ public function testEditorUploadImageScale() {
     $this->setMaxDimensions($max_width, $max_height);
     $this->assertSavedMaxDimensions($max_width, $max_height);
     list($uploaded_image_file_width, $uploaded_image_file_height) = $this->uploadImage($test_image->uri);
-    $this->assertEqual($uploaded_image_file_width, $image_file_width);
-    $this->assertEqual($uploaded_image_file_height, $image_file_height);
+    $this->assertEquals($uploaded_image_file_width, $image_file_width);
+    $this->assertEquals($uploaded_image_file_height, $image_file_height);
     $this->assertNoRaw(t('The image was resized to fit within the maximum allowed dimensions of %dimensions pixels.', ['%dimensions' => $max_width . 'x' . $max_height]));
 
     // Case 2: max width smaller than uploaded image: image scaled down.
@@ -88,8 +88,8 @@ public function testEditorUploadImageScale() {
     $this->setMaxDimensions($max_width, $max_height);
     $this->assertSavedMaxDimensions($max_width, $max_height);
     list($uploaded_image_file_width, $uploaded_image_file_height) = $this->uploadImage($test_image->uri);
-    $this->assertEqual($uploaded_image_file_width, $max_width);
-    $this->assertEqual($uploaded_image_file_height, $uploaded_image_file_height * ($uploaded_image_file_width / $max_width));
+    $this->assertEquals($uploaded_image_file_width, $max_width);
+    $this->assertEquals($uploaded_image_file_height, $uploaded_image_file_height * ($uploaded_image_file_width / $max_width));
     $this->assertRaw(t('The image was resized to fit within the maximum allowed dimensions of %dimensions pixels.', ['%dimensions' => $max_width . 'x' . $max_height]));
 
     // Case 3: max height smaller than uploaded image: image scaled down.
@@ -100,8 +100,8 @@ public function testEditorUploadImageScale() {
     $this->setMaxDimensions($max_width, $max_height);
     $this->assertSavedMaxDimensions($max_width, $max_height);
     list($uploaded_image_file_width, $uploaded_image_file_height) = $this->uploadImage($test_image->uri);
-    $this->assertEqual($uploaded_image_file_width, $uploaded_image_file_width * ($uploaded_image_file_height / $max_height));
-    $this->assertEqual($uploaded_image_file_height, $max_height);
+    $this->assertEquals($uploaded_image_file_width, $uploaded_image_file_width * ($uploaded_image_file_height / $max_height));
+    $this->assertEquals($uploaded_image_file_height, $max_height);
     $this->assertRaw(t('The image was resized to fit within the maximum allowed dimensions of %dimensions pixels.', ['%dimensions' => $max_width . 'x' . $max_height]));
 
     // Case 4: max dimensions greater than uploaded image: image not scaled.
@@ -112,8 +112,8 @@ public function testEditorUploadImageScale() {
     $this->setMaxDimensions($max_width, $max_height);
     $this->assertSavedMaxDimensions($max_width, $max_height);
     list($uploaded_image_file_width, $uploaded_image_file_height) = $this->uploadImage($test_image->uri);
-    $this->assertEqual($uploaded_image_file_width, $image_file_width);
-    $this->assertEqual($uploaded_image_file_height, $image_file_height);
+    $this->assertEquals($uploaded_image_file_width, $image_file_width);
+    $this->assertEquals($uploaded_image_file_height, $image_file_height);
     $this->assertNoRaw(t('The image was resized to fit within the maximum allowed dimensions of %dimensions pixels.', ['%dimensions' => $max_width . 'x' . $max_height]));
 
     // Case 5: only max width dimension was provided and it was smaller than
@@ -125,8 +125,8 @@ public function testEditorUploadImageScale() {
     $this->setMaxDimensions($max_width, $max_height);
     $this->assertSavedMaxDimensions($max_width, $max_height);
     list($uploaded_image_file_width, $uploaded_image_file_height) = $this->uploadImage($test_image->uri);
-    $this->assertEqual($uploaded_image_file_width, $max_width);
-    $this->assertEqual($uploaded_image_file_height, $uploaded_image_file_height * ($uploaded_image_file_width / $max_width));
+    $this->assertEquals($uploaded_image_file_width, $max_width);
+    $this->assertEquals($uploaded_image_file_height, $uploaded_image_file_height * ($uploaded_image_file_width / $max_width));
     $this->assertRaw(t('The image was resized to fit within the maximum allowed width of %width pixels.', ['%width' => $max_width]));
 
     // Case 6: only max height dimension was provided and it was smaller than
@@ -138,8 +138,8 @@ public function testEditorUploadImageScale() {
     $this->setMaxDimensions($max_width, $max_height);
     $this->assertSavedMaxDimensions($max_width, $max_height);
     list($uploaded_image_file_width, $uploaded_image_file_height) = $this->uploadImage($test_image->uri);
-    $this->assertEqual($uploaded_image_file_width, $uploaded_image_file_width * ($uploaded_image_file_height / $max_height));
-    $this->assertEqual($uploaded_image_file_height, $max_height);
+    $this->assertEquals($uploaded_image_file_width, $uploaded_image_file_width * ($uploaded_image_file_height / $max_height));
+    $this->assertEquals($uploaded_image_file_height, $max_height);
     $this->assertRaw(t('The image was resized to fit within the maximum allowed height of %height pixels.', ['%height' => $max_height]));
   }
 
@@ -215,8 +215,8 @@ protected function assertSavedMaxDimensions($width, $height) {
       'width' => $image_upload_settings['max_dimensions']['width'],
       'height' => $image_upload_settings['max_dimensions']['height'],
     ];
-    $same_width = $this->assertEqual($width, $expected['width'], 'Actual width of "' . $width . '" equals the expected width of "' . $expected['width'] . '"');
-    $same_height = $this->assertEqual($height, $expected['height'], 'Actual height of "' . $height . '" equals the expected width of "' . $expected['height'] . '"');
+    $same_width = $this->assertEquals($width, $expected['width'], 'Actual width of "' . $width . '" equals the expected width of "' . $expected['width'] . '"');
+    $same_height = $this->assertEquals($height, $expected['height'], 'Actual height of "' . $height . '" equals the expected width of "' . $expected['height'] . '"');
     return $same_width && $same_height;
   }
 
diff --git a/core/modules/editor/tests/src/Kernel/EditorFileReferenceFilterTest.php b/core/modules/editor/tests/src/Kernel/EditorFileReferenceFilterTest.php
index a70a232aa8..14ddb61b9f 100644
--- a/core/modules/editor/tests/src/Kernel/EditorFileReferenceFilterTest.php
+++ b/core/modules/editor/tests/src/Kernel/EditorFileReferenceFilterTest.php
@@ -79,27 +79,27 @@ public function testEditorFileReferenceFilter() {
     $expected_output = '<img src="/' . $this->siteDirectory . '/files/llama.jpg" data-entity-type="file" data-entity-uuid="' . $uuid . '" />';
     $output = $test($input);
     $this->assertIdentical($expected_output, $output->getProcessedText());
-    $this->assertEqual($cache_tag, $output->getCacheTags());
+    $this->assertEquals($cache_tag, $output->getCacheTags());
 
     $this->pass('One data-entity-uuid attribute with odd capitalization.');
     $input = '<img src="llama.jpg" data-entity-type="file" DATA-entity-UUID =   "' . $uuid . '" />';
     $expected_output = '<img src="/' . $this->siteDirectory . '/files/llama.jpg" data-entity-type="file" data-entity-uuid="' . $uuid . '" />';
     $output = $test($input);
     $this->assertIdentical($expected_output, $output->getProcessedText());
-    $this->assertEqual($cache_tag, $output->getCacheTags());
+    $this->assertEquals($cache_tag, $output->getCacheTags());
 
     $this->pass('One data-entity-uuid attribute on a non-image tag.');
     $input = '<video src="llama.jpg" data-entity-type="file" data-entity-uuid="' . $uuid . '" />';
     $expected_output = '<video src="/' . $this->siteDirectory . '/files/llama.jpg" data-entity-type="file" data-entity-uuid="' . $uuid . '"></video>';
     $output = $test($input);
     $this->assertIdentical($expected_output, $output->getProcessedText());
-    $this->assertEqual($cache_tag, $output->getCacheTags());
+    $this->assertEquals($cache_tag, $output->getCacheTags());
 
     $this->pass('One data-entity-uuid attribute with an invalid value.');
     $input = '<img src="llama.jpg" data-entity-type="file" data-entity-uuid="invalid-' . $uuid . '" />';
     $output = $test($input);
     $this->assertIdentical($input, $output->getProcessedText());
-    $this->assertEqual([], $output->getCacheTags());
+    $this->assertEquals([], $output->getCacheTags());
 
     $this->pass('Two different data-entity-uuid attributes.');
     $input = '<img src="llama.jpg" data-entity-type="file" data-entity-uuid="' . $uuid . '" />';
@@ -108,7 +108,7 @@ public function testEditorFileReferenceFilter() {
     $expected_output .= '<img src="/' . $this->siteDirectory . '/files/alpaca.jpg" data-entity-type="file" data-entity-uuid="' . $uuid_2 . '" />';
     $output = $test($input);
     $this->assertIdentical($expected_output, $output->getProcessedText());
-    $this->assertEqual(Cache::mergeTags($cache_tag, $cache_tag_2), $output->getCacheTags());
+    $this->assertEquals(Cache::mergeTags($cache_tag, $cache_tag_2), $output->getCacheTags());
 
     $this->pass('Two identical  data-entity-uuid attributes.');
     $input = '<img src="llama.jpg" data-entity-type="file" data-entity-uuid="' . $uuid . '" />';
@@ -117,7 +117,7 @@ public function testEditorFileReferenceFilter() {
     $expected_output .= '<img src="/' . $this->siteDirectory . '/files/llama.jpg" data-entity-type="file" data-entity-uuid="' . $uuid . '" />';
     $output = $test($input);
     $this->assertIdentical($expected_output, $output->getProcessedText());
-    $this->assertEqual($cache_tag, $output->getCacheTags());
+    $this->assertEquals($cache_tag, $output->getCacheTags());
   }
 
 }
diff --git a/core/modules/editor/tests/src/Kernel/EditorImageDialogTest.php b/core/modules/editor/tests/src/Kernel/EditorImageDialogTest.php
index 6500d1adef..6a0e7c4d7f 100644
--- a/core/modules/editor/tests/src/Kernel/EditorImageDialogTest.php
+++ b/core/modules/editor/tests/src/Kernel/EditorImageDialogTest.php
@@ -116,7 +116,7 @@ public function testEditorImageDialog() {
 
     // Assert these two values are present and we don't get the 'not-this'
     // default back.
-    $this->assertEqual(FALSE, $form_state->getValue(['attributes', 'hasCaption'], 'not-this'));
+    $this->assertEquals(FALSE, $form_state->getValue(['attributes', 'hasCaption'], 'not-this'));
   }
 
 }
diff --git a/core/modules/editor/tests/src/Kernel/QuickEditIntegrationTest.php b/core/modules/editor/tests/src/Kernel/QuickEditIntegrationTest.php
index 276f559225..32833acdd1 100644
--- a/core/modules/editor/tests/src/Kernel/QuickEditIntegrationTest.php
+++ b/core/modules/editor/tests/src/Kernel/QuickEditIntegrationTest.php
@@ -147,17 +147,17 @@ public function testEditorSelection() {
     $entity->save();
 
     // Editor selection w/ cardinality 1, text format w/o associated text editor.
-    $this->assertEqual('form', $this->getSelectedEditor($entity->id(), $this->fieldName), "With cardinality 1, and the filtered_html text format, the 'form' editor is selected.");
+    $this->assertEquals('form', $this->getSelectedEditor($entity->id(), $this->fieldName), "With cardinality 1, and the filtered_html text format, the 'form' editor is selected.");
 
     // Editor selection w/ cardinality 1, text format w/ associated text editor.
     $entity->{$this->fieldName}->format = 'full_html';
     $entity->save();
-    $this->assertEqual('editor', $this->getSelectedEditor($entity->id(), $this->fieldName), "With cardinality 1, and the full_html text format, the 'editor' editor is selected.");
+    $this->assertEquals('editor', $this->getSelectedEditor($entity->id(), $this->fieldName), "With cardinality 1, and the full_html text format, the 'editor' editor is selected.");
 
     // Editor selection with text processing, cardinality >1
     $this->fields->field_textarea_field_storage->setCardinality(2);
     $this->fields->field_textarea_field_storage->save();
-    $this->assertEqual('form', $this->getSelectedEditor($entity->id(), $this->fieldName), "With cardinality >1, and both items using the full_html text format, the 'form' editor is selected.");
+    $this->assertEquals('form', $this->getSelectedEditor($entity->id(), $this->fieldName), "With cardinality >1, and both items using the full_html text format, the 'form' editor is selected.");
   }
 
   /**
@@ -188,7 +188,7 @@ public function testMetadata() {
         'formatHasTransformations' => FALSE,
       ],
     ];
-    $this->assertEqual($expected, $metadata, 'The correct metadata (including custom metadata) is generated.');
+    $this->assertEquals($expected, $metadata, 'The correct metadata (including custom metadata) is generated.');
   }
 
   /**
@@ -234,7 +234,7 @@ public function testGetUntransformedTextCommand() {
     );
     $subscriber->onResponse($event);
 
-    $this->assertEqual(Json::encode($expected), $response->getContent(), 'The GetUntransformedTextCommand AJAX command works correctly.');
+    $this->assertEquals(Json::encode($expected), $response->getContent(), 'The GetUntransformedTextCommand AJAX command works correctly.');
   }
 
 }
diff --git a/core/modules/field/src/Tests/Boolean/BooleanFormatterSettingsTest.php b/core/modules/field/src/Tests/Boolean/BooleanFormatterSettingsTest.php
index 92efa9817b..4bbca3cf87 100644
--- a/core/modules/field/src/Tests/Boolean/BooleanFormatterSettingsTest.php
+++ b/core/modules/field/src/Tests/Boolean/BooleanFormatterSettingsTest.php
@@ -124,7 +124,7 @@ public function testBooleanFormatterSettings() {
     foreach ($settings as $values) {
       $this->drupalGet('admin/structure/types/manage/' . $this->bundle . '/display');
       $result = $this->xpath('//div[contains(@class, :class) and contains(text(), :text)]', [':class' => 'field-plugin-summary', ':text' => 'Display: TRUE / FALSE']);
-      $this->assertEqual(count($result), 1, "Boolean formatter settings summary exist.");
+      $this->assertEquals(count($result), 1, "Boolean formatter settings summary exist.");
     }
   }
 
diff --git a/core/modules/field/src/Tests/EntityReference/EntityReferenceAdminTest.php b/core/modules/field/src/Tests/EntityReference/EntityReferenceAdminTest.php
index fa68cb6150..2041445695 100644
--- a/core/modules/field/src/Tests/EntityReference/EntityReferenceAdminTest.php
+++ b/core/modules/field/src/Tests/EntityReference/EntityReferenceAdminTest.php
@@ -449,7 +449,7 @@ public function testMultipleTargetBundles() {
     /** @var \Drupal\field\Entity\FieldConfig $field_config */
     $field_config = FieldConfig::load($field_id);
     // Expect that the target bundle has been saved in the backend.
-    $this->assertEqual($field_config->getSetting('handler_settings')['auto_create_bundle'], $vocabularies[1]->id());
+    $this->assertEquals($field_config->getSetting('handler_settings')['auto_create_bundle'], $vocabularies[1]->id());
 
     // Delete the other bundle. Field config should not be affected.
     $vocabularies[0]->delete();
diff --git a/core/modules/field/src/Tests/FieldImportDeleteUninstallUiTest.php b/core/modules/field/src/Tests/FieldImportDeleteUninstallUiTest.php
index e35308603f..32d824141a 100644
--- a/core/modules/field/src/Tests/FieldImportDeleteUninstallUiTest.php
+++ b/core/modules/field/src/Tests/FieldImportDeleteUninstallUiTest.php
@@ -74,8 +74,8 @@ public function testImportDeleteUninstall() {
     // Verify entity has been created properly.
     $id = $entity->id();
     $entity = EntityTest::load($id);
-    $this->assertEqual($entity->field_tel->value, $value);
-    $this->assertEqual($entity->field_tel[0]->value, $value);
+    $this->assertEquals($entity->field_tel->value, $value);
+    $this->assertEquals($entity->field_tel[0]->value, $value);
 
     $active = $this->container->get('config.storage');
     $sync = $this->container->get('config.storage.sync');
diff --git a/core/modules/field/src/Tests/FieldTestBase.php b/core/modules/field/src/Tests/FieldTestBase.php
index a6107571c8..0b0cf4692a 100644
--- a/core/modules/field/src/Tests/FieldTestBase.php
+++ b/core/modules/field/src/Tests/FieldTestBase.php
@@ -59,9 +59,9 @@ public function assertFieldValues(EntityInterface $entity, $field_name, $expecte
     // Filter out empty values so that they don't mess with the assertions.
     $field->filterEmptyItems();
     $values = $field->getValue();
-    $this->assertEqual(count($values), count($expected_values), 'Expected number of values were saved.');
+    $this->assertEquals(count($values), count($expected_values), 'Expected number of values were saved.');
     foreach ($expected_values as $key => $value) {
-      $this->assertEqual($values[$key][$column], $value, format_string('Value @value was saved correctly.', ['@value' => $value]));
+      $this->assertEquals($values[$key][$column], $value, format_string('Value @value was saved correctly.', ['@value' => $value]));
     }
   }
 
diff --git a/core/modules/field/src/Tests/FormTest.php b/core/modules/field/src/Tests/FormTest.php
index 786e367d41..245c0f594a 100644
--- a/core/modules/field/src/Tests/FormTest.php
+++ b/core/modules/field/src/Tests/FormTest.php
@@ -132,7 +132,7 @@ public function testFieldFormSingle() {
     $id = $match[1];
     $this->assertText(t('entity_test @id has been created.', ['@id' => $id]), 'Entity was created');
     $entity = EntityTest::load($id);
-    $this->assertEqual($entity->{$field_name}->value, $value, 'Field value was saved');
+    $this->assertEquals($entity->{$field_name}->value, $value, 'Field value was saved');
 
     // Display edit form.
     $this->drupalGet('entity_test/manage/' . $id . '/edit');
@@ -148,7 +148,7 @@ public function testFieldFormSingle() {
     $this->assertText(t('entity_test @id has been updated.', ['@id' => $id]), 'Entity was updated');
     $this->container->get('entity.manager')->getStorage('entity_test')->resetCache([$id]);
     $entity = EntityTest::load($id);
-    $this->assertEqual($entity->{$field_name}->value, $value, 'Field value was updated');
+    $this->assertEquals($entity->{$field_name}->value, $value, 'Field value was updated');
 
     // Empty the field.
     $value = '';
@@ -220,7 +220,7 @@ public function testFieldFormSingleRequired() {
     $id = $match[1];
     $this->assertText(t('entity_test @id has been created.', ['@id' => $id]), 'Entity was created');
     $entity = EntityTest::load($id);
-    $this->assertEqual($entity->{$field_name}->value, $value, 'Field value was saved');
+    $this->assertEquals($entity->{$field_name}->value, $value, 'Field value was saved');
 
     // Edit with missing required value.
     $value = '';
@@ -502,8 +502,8 @@ public function testFieldFormAccess() {
     $storage = $this->container->get('entity_type.manager')
       ->getStorage($entity_type);
     $entity = $storage->load($id);
-    $this->assertEqual($entity->$field_name_no_access->value, 99, 'Default value was saved for the field with no edit access.');
-    $this->assertEqual($entity->$field_name->value, 1, 'Entered value vas saved for the field with edit access.');
+    $this->assertEquals($entity->$field_name_no_access->value, 99, 'Default value was saved for the field with no edit access.');
+    $this->assertEquals($entity->$field_name->value, 1, 'Entered value vas saved for the field with edit access.');
 
     // Create a new revision.
     $edit = [
@@ -515,15 +515,15 @@ public function testFieldFormAccess() {
     // Check that the new revision has the expected values.
     $storage->resetCache([$id]);
     $entity = $storage->load($id);
-    $this->assertEqual($entity->$field_name_no_access->value, 99, 'New revision has the expected value for the field with no edit access.');
-    $this->assertEqual($entity->$field_name->value, 2, 'New revision has the expected value for the field with edit access.');
+    $this->assertEquals($entity->$field_name_no_access->value, 99, 'New revision has the expected value for the field with no edit access.');
+    $this->assertEquals($entity->$field_name->value, 2, 'New revision has the expected value for the field with edit access.');
 
     // Check that the revision is also saved in the revisions table.
     $entity = $this->container->get('entity_type.manager')
       ->getStorage($entity_type)
       ->loadRevision($entity->getRevisionId());
-    $this->assertEqual($entity->$field_name_no_access->value, 99, 'New revision has the expected value for the field with no edit access.');
-    $this->assertEqual($entity->$field_name->value, 2, 'New revision has the expected value for the field with edit access.');
+    $this->assertEquals($entity->$field_name_no_access->value, 99, 'New revision has the expected value for the field with no edit access.');
+    $this->assertEquals($entity->$field_name->value, 2, 'New revision has the expected value for the field with edit access.');
   }
 
   /**
@@ -558,7 +558,7 @@ public function testHiddenField() {
       ->getStorage($entity_type);
 
     $entity = $storage->load($id);
-    $this->assertEqual($entity->{$field_name}->value, 99, 'Default value was saved');
+    $this->assertEquals($entity->{$field_name}->value, 99, 'Default value was saved');
 
     // Update the field to remove the default value, and switch to the default
     // widget.
@@ -581,7 +581,7 @@ public function testHiddenField() {
     $this->assertText(t('entity_test_rev @id has been updated.', ['@id' => $id]), 'Entity was updated');
     $storage->resetCache([$id]);
     $entity = $storage->load($id);
-    $this->assertEqual($entity->{$field_name}->value, $value, 'Field value was updated');
+    $this->assertEquals($entity->{$field_name}->value, $value, 'Field value was updated');
 
     // Set the field back to hidden.
     entity_get_form_display($entity_type, $this->field->getTargetBundle(), 'default')
@@ -595,7 +595,7 @@ public function testHiddenField() {
     // Check that the expected value has been carried over to the new revision.
     $storage->resetCache([$id]);
     $entity = $storage->load($id);
-    $this->assertEqual($entity->{$field_name}->value, $value, 'New revision has the expected value for the field with the Hidden widget');
+    $this->assertEquals($entity->{$field_name}->value, $value, 'New revision has the expected value for the field with the Hidden widget');
   }
 
   /**
diff --git a/core/modules/field/src/Tests/NestedFormTest.php b/core/modules/field/src/Tests/NestedFormTest.php
index 0bbfb0d7dc..92aedf490e 100644
--- a/core/modules/field/src/Tests/NestedFormTest.php
+++ b/core/modules/field/src/Tests/NestedFormTest.php
@@ -189,7 +189,7 @@ public function testNestedEntityFormEntityLevelValidation() {
     $this->drupalPostForm(NULL, $edit, t('Save'));
 
     $elements = $this->cssSelect('.entity-2.error');
-    $this->assertEqual(1, count($elements), 'The whole nested entity form has been correctly flagged with an error class.');
+    $this->assertEquals(1, count($elements), 'The whole nested entity form has been correctly flagged with an error class.');
   }
 
 }
diff --git a/core/modules/field/src/Tests/Number/NumberFieldTest.php b/core/modules/field/src/Tests/Number/NumberFieldTest.php
index 64da6c1a00..8268c9f792 100644
--- a/core/modules/field/src/Tests/Number/NumberFieldTest.php
+++ b/core/modules/field/src/Tests/Number/NumberFieldTest.php
@@ -177,7 +177,7 @@ public function testNumberIntegerField() {
       'indexes' => [],
       'foreign keys' => []
     ];
-    $this->assertEqual($storage->getSchema(), $expected);
+    $this->assertEquals($storage->getSchema(), $expected);
 
     // Display creation form.
     $this->drupalGet('entity_test/add');
diff --git a/core/modules/field/src/Tests/Views/FieldUITest.php b/core/modules/field/src/Tests/Views/FieldUITest.php
index 851b7bdff9..65c2a820bc 100644
--- a/core/modules/field/src/Tests/Views/FieldUITest.php
+++ b/core/modules/field/src/Tests/Views/FieldUITest.php
@@ -62,7 +62,7 @@ public function testHandlerUI() {
     }, $result);
     // @todo Replace this sort by assertArray once it's in.
     sort($options, SORT_STRING);
-    $this->assertEqual($options, ['text_default', 'text_trimmed'], 'The text formatters for a simple text field appear as expected.');
+    $this->assertEquals($options, ['text_default', 'text_trimmed'], 'The text formatters for a simple text field appear as expected.');
 
     $this->drupalPostForm(NULL, ['options[type]' => 'text_trimmed'], t('Apply'));
 
@@ -78,8 +78,8 @@ public function testHandlerUI() {
     $this->drupalPostForm('admin/structure/views/view/test_view_fieldapi', [], t('Save'));
     $view = Views::getView('test_view_fieldapi');
     $view->initHandlers();
-    $this->assertEqual($view->field['field_name_0']->options['type'], 'text_trimmed');
-    $this->assertEqual($view->field['field_name_0']->options['settings']['trim_length'], $random_number);
+    $this->assertEquals($view->field['field_name_0']->options['type'], 'text_trimmed');
+    $this->assertEquals($view->field['field_name_0']->options['settings']['trim_length'], $random_number);
 
     // Now change the formatter back to 'default' which doesn't have any
     // settings. We want to ensure that the settings are empty then.
@@ -88,8 +88,8 @@ public function testHandlerUI() {
     $this->drupalPostForm('admin/structure/views/view/test_view_fieldapi', [], t('Save'));
     $view = Views::getView('test_view_fieldapi');
     $view->initHandlers();
-    $this->assertEqual($view->field['field_name_0']->options['type'], 'text_default');
-    $this->assertEqual($view->field['field_name_0']->options['settings'], []);
+    $this->assertEquals($view->field['field_name_0']->options['type'], 'text_default');
+    $this->assertEquals($view->field['field_name_0']->options['settings'], []);
 
     // Ensure that the view depends on the field storage.
     $dependencies = \Drupal::service('config.manager')->findConfigEntityDependents('config', [$this->fieldStorages[0]->getConfigDependencyName()]);
@@ -116,7 +116,7 @@ public function testHandlerUIAggregation() {
     }, $result);
     sort($options, SORT_STRING);
 
-    $this->assertEqual($options, ['format', 'value'], 'The expected sort field options were found.');
+    $this->assertEquals($options, ['format', 'value'], 'The expected sort field options were found.');
   }
 
   /**
@@ -143,15 +143,15 @@ public function testBooleanFilterHandler() {
     // Verify that using a boolean field as a filter also results in using the
     // boolean plugin.
     $option = $this->xpath('//label[@for="edit-options-value-1"]');
-    $this->assertEqual(t('True'), (string) $option[0]);
+    $this->assertEquals(t('True'), (string) $option[0]);
     $option = $this->xpath('//label[@for="edit-options-value-0"]');
-    $this->assertEqual(t('False'), (string) $option[0]);
+    $this->assertEquals(t('False'), (string) $option[0]);
 
     // Expose the filter and see if the 'Any' option is added and if we can save
     // it.
     $this->drupalPostForm(NULL, [], 'Expose filter');
     $option = $this->xpath('//label[@for="edit-options-value-all"]');
-    $this->assertEqual(t('- Any -'), (string) $option[0]);
+    $this->assertEquals(t('- Any -'), (string) $option[0]);
     $this->drupalPostForm(NULL, ['options[value]' => 'All', 'options[expose][required]' => FALSE], 'Apply');
     $this->drupalPostForm(NULL, [], 'Save');
     $this->drupalGet('/admin/structure/views/nojs/handler/test_view_fieldapi/default/filter/field_boolean_value');
diff --git a/core/modules/field/src/Tests/Views/HandlerFieldFieldTest.php b/core/modules/field/src/Tests/Views/HandlerFieldFieldTest.php
index dfbb89bd20..d65bfd4481 100644
--- a/core/modules/field/src/Tests/Views/HandlerFieldFieldTest.php
+++ b/core/modules/field/src/Tests/Views/HandlerFieldFieldTest.php
@@ -141,7 +141,7 @@ public function _testSimpleFieldRender() {
         $field_name = $this->fieldStorages[$key]->getName();
         $rendered_field = $view->style_plugin->getField($i, $field_name);
         $expected_field = $this->nodes[$i]->$field_name->value;
-        $this->assertEqual($rendered_field, $expected_field);
+        $this->assertEquals($rendered_field, $expected_field);
       }
     }
   }
@@ -180,7 +180,7 @@ public function _testFormatterSimpleFieldRender() {
     // @TODO: actually there should be a specific formatter.
     for ($i = 0; $i < 2; $i++) {
       $rendered_field = $view->style_plugin->getField($i, $this->fieldStorages[5]->getName());
-      $this->assertEqual(strlen(html_entity_decode($rendered_field)), 3);
+      $this->assertEquals(strlen(html_entity_decode($rendered_field)), 3);
     }
   }
 
@@ -202,7 +202,7 @@ public function _testMultipleFieldRender() {
       foreach ($pure_items as $j => $item) {
         $items[] = $pure_items[$j]['value'];
       }
-      $this->assertEqual($rendered_field, implode(', ', $items), 'The amount of items is limited.');
+      $this->assertEquals($rendered_field, implode(', ', $items), 'The amount of items is limited.');
     }
 
     // Test that an empty field is rendered without error.
@@ -224,7 +224,7 @@ public function _testMultipleFieldRender() {
       foreach ($pure_items as $j => $item) {
         $items[] = $pure_items[$j]['value'];
       }
-      $this->assertEqual($rendered_field, implode(', ', $items), 'The amount of items is limited and the offset is correct.');
+      $this->assertEquals($rendered_field, implode(', ', $items), 'The amount of items is limited and the offset is correct.');
     }
     $view->destroy();
 
@@ -245,7 +245,7 @@ public function _testMultipleFieldRender() {
       foreach ($pure_items as $j => $item) {
         $items[] = $pure_items[$j]['value'];
       }
-      $this->assertEqual($rendered_field, implode(', ', $items), 'The amount of items is limited and they are reversed.');
+      $this->assertEquals($rendered_field, implode(', ', $items), 'The amount of items is limited and they are reversed.');
     }
     $view->destroy();
 
@@ -263,7 +263,7 @@ public function _testMultipleFieldRender() {
       $pure_items = $this->nodes[$i]->{$field_name}->getValue();
       $items[] = $pure_items[0]['value'];
       $items[] = $pure_items[4]['value'];
-      $this->assertEqual($rendered_field, implode(', ', $items), 'Items are limited to first and last.');
+      $this->assertEquals($rendered_field, implode(', ', $items), 'Items are limited to first and last.');
     }
     $view->destroy();
 
@@ -283,7 +283,7 @@ public function _testMultipleFieldRender() {
       foreach ($pure_items as $j => $item) {
         $items[] = $pure_items[$j]['value'];
       }
-      $this->assertEqual($rendered_field, implode(':', $items), 'The amount of items is limited and the custom separator is correct.');
+      $this->assertEquals($rendered_field, implode(':', $items), 'The amount of items is limited and the custom separator is correct.');
     }
     $view->destroy();
 
@@ -302,7 +302,7 @@ public function _testMultipleFieldRender() {
       foreach ($pure_items as $j => $item) {
         $items[] = $pure_items[$j]['value'];
       }
-      $this->assertEqual($rendered_field, implode('<h2>test</h2>', $items), 'The custom separator is correctly escaped.');
+      $this->assertEquals($rendered_field, implode('<h2>test</h2>', $items), 'The custom separator is correctly escaped.');
     }
     $view->destroy();
   }
diff --git a/core/modules/field/tests/src/Functional/EntityReference/EntityReferenceAutoCreateTest.php b/core/modules/field/tests/src/Functional/EntityReference/EntityReferenceAutoCreateTest.php
index 1e6511fd68..31d52b5577 100644
--- a/core/modules/field/tests/src/Functional/EntityReference/EntityReferenceAutoCreateTest.php
+++ b/core/modules/field/tests/src/Functional/EntityReference/EntityReferenceAutoCreateTest.php
@@ -129,7 +129,7 @@ public function testAutoCreate() {
 
     $referencing_nid = key($result);
     $referencing_node = Node::load($referencing_nid);
-    $this->assertEqual($referenced_nid, $referencing_node->test_field->target_id, 'Newly created node is referenced from the referencing node.');
+    $this->assertEquals($referenced_nid, $referencing_node->test_field->target_id, 'Newly created node is referenced from the referencing node.');
 
     // Now try to view the node and check that the referenced node is shown.
     $this->drupalGet('node/' . $referencing_node->id());
@@ -183,7 +183,7 @@ public function testMultipleTargetBundles() {
     $term = reset($term);
 
     // The new term is expected to be stored in the second vocabulary.
-    $this->assertEqual($vocabularies[1]->id(), $term->bundle());
+    $this->assertEquals($vocabularies[1]->id(), $term->bundle());
 
     /** @var \Drupal\field\Entity\FieldConfig $field_config */
     $field_config = FieldConfig::loadByName('node', $this->referencingType, $field_name);
@@ -207,7 +207,7 @@ public function testMultipleTargetBundles() {
     $term = reset($term);
 
     // The second term is expected to be stored in the first vocabulary.
-    $this->assertEqual($vocabularies[0]->id(), $term->bundle());
+    $this->assertEquals($vocabularies[0]->id(), $term->bundle());
 
     // @todo Re-enable this test when WebTestBase::curlHeaderCallback() provides
     //   a way to catch and assert user-triggered errors.
diff --git a/core/modules/field/tests/src/Functional/EntityReference/EntityReferenceFieldDefaultValueTest.php b/core/modules/field/tests/src/Functional/EntityReference/EntityReferenceFieldDefaultValueTest.php
index 4567bd07e9..f9947e5c4f 100644
--- a/core/modules/field/tests/src/Functional/EntityReference/EntityReferenceFieldDefaultValueTest.php
+++ b/core/modules/field/tests/src/Functional/EntityReference/EntityReferenceFieldDefaultValueTest.php
@@ -85,17 +85,17 @@ public function testEntityReferenceDefaultValue() {
     // Check if the ID has been converted to UUID in config entity.
     $config_entity = $this->config('field.field.node.reference_content.' . $field_name)->get();
     $this->assertTrue(isset($config_entity['default_value'][0]['target_uuid']), 'Default value contains target_uuid property');
-    $this->assertEqual($config_entity['default_value'][0]['target_uuid'], $referenced_node->uuid(), 'Content uuid and config entity uuid are the same');
+    $this->assertEquals($config_entity['default_value'][0]['target_uuid'], $referenced_node->uuid(), 'Content uuid and config entity uuid are the same');
     // Ensure the configuration has the expected dependency on the entity that
     // is being used a default value.
-    $this->assertEqual([$referenced_node->getConfigDependencyName()], $config_entity['dependencies']['content']);
+    $this->assertEquals([$referenced_node->getConfigDependencyName()], $config_entity['dependencies']['content']);
 
     // Clear field definitions cache in order to avoid stale cache values.
     \Drupal::entityManager()->clearCachedFieldDefinitions();
 
     // Create a new node to check that UUID has been converted to numeric ID.
     $new_node = Node::create(['type' => 'reference_content']);
-    $this->assertEqual($new_node->get($field_name)->offsetGet(0)->target_id, $referenced_node->id());
+    $this->assertEquals($new_node->get($field_name)->offsetGet(0)->target_id, $referenced_node->id());
 
     // Ensure that the entity reference config schemas are correct.
     $field_config = $this->config('field.field.node.reference_content.' . $field_name);
diff --git a/core/modules/field/tests/src/Functional/EntityReference/EntityReferenceIntegrationTest.php b/core/modules/field/tests/src/Functional/EntityReference/EntityReferenceIntegrationTest.php
index 940ad376f6..c0e5f3720c 100644
--- a/core/modules/field/tests/src/Functional/EntityReference/EntityReferenceIntegrationTest.php
+++ b/core/modules/field/tests/src/Functional/EntityReference/EntityReferenceIntegrationTest.php
@@ -181,13 +181,13 @@ protected function assertFieldValues($entity_name, $referenced_entities) {
 
     $this->assertTrue($entity, format_string('%entity_type: Entity found in the database.', ['%entity_type' => $this->entityType]));
 
-    $this->assertEqual($entity->{$this->fieldName}->target_id, $referenced_entities[0]->id());
-    $this->assertEqual($entity->{$this->fieldName}->entity->id(), $referenced_entities[0]->id());
-    $this->assertEqual($entity->{$this->fieldName}->entity->label(), $referenced_entities[0]->label());
+    $this->assertEquals($entity->{$this->fieldName}->target_id, $referenced_entities[0]->id());
+    $this->assertEquals($entity->{$this->fieldName}->entity->id(), $referenced_entities[0]->id());
+    $this->assertEquals($entity->{$this->fieldName}->entity->label(), $referenced_entities[0]->label());
 
-    $this->assertEqual($entity->{$this->fieldName}[1]->target_id, $referenced_entities[1]->id());
-    $this->assertEqual($entity->{$this->fieldName}[1]->entity->id(), $referenced_entities[1]->id());
-    $this->assertEqual($entity->{$this->fieldName}[1]->entity->label(), $referenced_entities[1]->label());
+    $this->assertEquals($entity->{$this->fieldName}[1]->target_id, $referenced_entities[1]->id());
+    $this->assertEquals($entity->{$this->fieldName}[1]->entity->id(), $referenced_entities[1]->id());
+    $this->assertEquals($entity->{$this->fieldName}[1]->entity->label(), $referenced_entities[1]->label());
   }
 
   /**
diff --git a/core/modules/field/tests/src/Functional/FieldTestBase.php b/core/modules/field/tests/src/Functional/FieldTestBase.php
index b8dff1e55e..f45fac4806 100644
--- a/core/modules/field/tests/src/Functional/FieldTestBase.php
+++ b/core/modules/field/tests/src/Functional/FieldTestBase.php
@@ -56,9 +56,9 @@ public function assertFieldValues(EntityInterface $entity, $field_name, $expecte
     // Filter out empty values so that they don't mess with the assertions.
     $field->filterEmptyItems();
     $values = $field->getValue();
-    $this->assertEqual(count($values), count($expected_values), 'Expected number of values were saved.');
+    $this->assertEquals(count($values), count($expected_values), 'Expected number of values were saved.');
     foreach ($expected_values as $key => $value) {
-      $this->assertEqual($values[$key][$column], $value, format_string('Value @value was saved correctly.', ['@value' => $value]));
+      $this->assertEquals($values[$key][$column], $value, format_string('Value @value was saved correctly.', ['@value' => $value]));
     }
   }
 
diff --git a/core/modules/field/tests/src/Functional/Update/EmailWidgetSizeSettingUpdateTest.php b/core/modules/field/tests/src/Functional/Update/EmailWidgetSizeSettingUpdateTest.php
index 6e15170c89..bb30d8ec82 100644
--- a/core/modules/field/tests/src/Functional/Update/EmailWidgetSizeSettingUpdateTest.php
+++ b/core/modules/field/tests/src/Functional/Update/EmailWidgetSizeSettingUpdateTest.php
@@ -42,7 +42,7 @@ public function testFieldPostUpdateEmailWidgetSizeSetting() {
     // Reload the config and check that the 'size' setting has been populated.
     $config = $configFactory->get('core.entity_form_display.node.article.default');
     $settings = $config->get('content.field_email_2578741.settings');
-    $this->assertEqual($settings['size'], 60, 'The size setting exists and it has the correct default value.');
+    $this->assertEquals($settings['size'], 60, 'The size setting exists and it has the correct default value.');
   }
 
 }
diff --git a/core/modules/field/tests/src/Functional/Update/EntityReferenceHandlerSettingUpdateTest.php b/core/modules/field/tests/src/Functional/Update/EntityReferenceHandlerSettingUpdateTest.php
index 0fade3760f..0262e81bb7 100644
--- a/core/modules/field/tests/src/Functional/Update/EntityReferenceHandlerSettingUpdateTest.php
+++ b/core/modules/field/tests/src/Functional/Update/EntityReferenceHandlerSettingUpdateTest.php
@@ -33,7 +33,7 @@ public function testFieldPostUpdateERHandlerSetting() {
     /** @var \Drupal\Core\Config\Config */
     $config = $configFactory->get('field.field.node.article.field_image');
     $settings = $config->get('settings');
-    $this->assertEqual($settings['handler'], 'default:node');
+    $this->assertEquals($settings['handler'], 'default:node');
 
     // Run updates.
     $this->runUpdates();
@@ -41,7 +41,7 @@ public function testFieldPostUpdateERHandlerSetting() {
     // Reload the config, and check that the 'handler' setting has been fixed.
     $config = $configFactory->get('field.field.node.article.field_image');
     $settings = $config->get('settings');
-    $this->assertEqual($settings['handler'], 'default:file');
+    $this->assertEquals($settings['handler'], 'default:file');
   }
 
 }
diff --git a/core/modules/field/tests/src/Functional/Update/FieldUpdateTest.php b/core/modules/field/tests/src/Functional/Update/FieldUpdateTest.php
index b9175b1277..e958216d7a 100644
--- a/core/modules/field/tests/src/Functional/Update/FieldUpdateTest.php
+++ b/core/modules/field/tests/src/Functional/Update/FieldUpdateTest.php
@@ -104,7 +104,7 @@ public function testFieldUpdate8002() {
     $field = FieldConfig::load('node.article.field_ref_views_select_2429191');
     $selection = \Drupal::service('plugin.manager.entity_reference_selection')->getSelectionHandler($field);
     $referencable = $selection->getReferenceableEntities();
-    $this->assertEqual(array_keys($referencable['article']), [$node_1->id()]);
+    $this->assertEquals(array_keys($referencable['article']), [$node_1->id()]);
   }
 
   /**
@@ -121,10 +121,10 @@ public function testFieldUpdate8003() {
     $handler_settings = $field->get('settings.handler_settings');
 
     $expected_target_bundles = ['tags' => 'tags', 'test' => 'test'];
-    $this->assertEqual($handler_settings['target_bundles'], $expected_target_bundles);
+    $this->assertEquals($handler_settings['target_bundles'], $expected_target_bundles);
 
     $this->assertTrue($handler_settings['auto_create']);
-    $this->assertEqual($handler_settings['auto_create_bundle'], 'tags');
+    $this->assertEquals($handler_settings['auto_create_bundle'], 'tags');
   }
 
   /**
@@ -139,7 +139,7 @@ public function testFieldUpdate8003() {
   protected function assertEntityRefDependency(Config $config, $present) {
     $dependencies = $config->get('dependencies');
     $dependencies += ['module' => []];
-    $this->assertEqual(in_array('entity_reference', $dependencies['module']), $present);
+    $this->assertEquals(in_array('entity_reference', $dependencies['module']), $present);
   }
 
   /**
diff --git a/core/modules/field/tests/src/Kernel/Boolean/BooleanItemTest.php b/core/modules/field/tests/src/Kernel/Boolean/BooleanItemTest.php
index 37acab86c2..11fc9922ea 100644
--- a/core/modules/field/tests/src/Kernel/Boolean/BooleanItemTest.php
+++ b/core/modules/field/tests/src/Kernel/Boolean/BooleanItemTest.php
@@ -58,18 +58,18 @@ public function testBooleanItem() {
     $entity = EntityTest::load($id);
     $this->assertTrue($entity->field_boolean instanceof FieldItemListInterface, 'Field implements interface.');
     $this->assertTrue($entity->field_boolean[0] instanceof FieldItemInterface, 'Field item implements interface.');
-    $this->assertEqual($entity->field_boolean->value, $value);
-    $this->assertEqual($entity->field_boolean[0]->value, $value);
+    $this->assertEquals($entity->field_boolean->value, $value);
+    $this->assertEquals($entity->field_boolean[0]->value, $value);
 
     // Verify changing the boolean value.
     $new_value = 0;
     $entity->field_boolean->value = $new_value;
-    $this->assertEqual($entity->field_boolean->value, $new_value);
+    $this->assertEquals($entity->field_boolean->value, $new_value);
 
     // Read changed entity and assert changed values.
     $entity->save();
     $entity = EntityTest::load($id);
-    $this->assertEqual($entity->field_boolean->value, $new_value);
+    $this->assertEquals($entity->field_boolean->value, $new_value);
 
     // Test sample item generation.
     $entity = EntityTest::create();
diff --git a/core/modules/field/tests/src/Kernel/BulkDeleteTest.php b/core/modules/field/tests/src/Kernel/BulkDeleteTest.php
index 900c154b4b..c0891bbe55 100644
--- a/core/modules/field/tests/src/Kernel/BulkDeleteTest.php
+++ b/core/modules/field/tests/src/Kernel/BulkDeleteTest.php
@@ -63,7 +63,7 @@ public function checkHooksInvocations($expected_hooks, $actual_hooks) {
       $actual_invocations = $actual_hooks[$hook];
 
       // Check that the number of invocations is correct.
-      $this->assertEqual(count($actual_invocations), count($invocations), "$hook() was called the expected number of times.");
+      $this->assertEquals(count($actual_invocations), count($invocations), "$hook() was called the expected number of times.");
 
       // Check that the hook was called for each expected argument.
       foreach ($invocations as $argument) {
@@ -168,7 +168,7 @@ public function testDeleteField() {
     $found = $factory->get('entity_test')
       ->condition('type', $bundle)
       ->execute();
-    $this->assertEqual(count($found), 10, 'Correct number of entities found before deleting');
+    $this->assertEquals(count($found), 10, 'Correct number of entities found before deleting');
 
     // Delete the field.
     $field = FieldConfig::loadByName($this->entityTypeId, $bundle, $field_name);
@@ -176,9 +176,9 @@ public function testDeleteField() {
 
     // The field still exists, deleted.
     $fields = entity_load_multiple_by_properties('field_config', ['field_storage_uuid' => $field_storage->uuid(), 'deleted' => TRUE, 'include_deleted' => TRUE]);
-    $this->assertEqual(count($fields), 1, 'There is one deleted field');
+    $this->assertEquals(count($fields), 1, 'There is one deleted field');
     $field = $fields[$field->uuid()];
-    $this->assertEqual($field->getTargetBundle(), $bundle, 'The deleted field is for the correct bundle');
+    $this->assertEquals($field->getTargetBundle(), $bundle, 'The deleted field is for the correct bundle');
 
     // Check that the actual stored content did not change during delete.
     $storage = \Drupal::entityManager()->getStorage($this->entityTypeId);
@@ -190,7 +190,7 @@ public function testDeleteField() {
       ->fields('t')
       ->execute();
     foreach ($result as $row) {
-      $this->assertEqual($this->entities[$row->entity_id]->{$field_name}->value, $row->$column);
+      $this->assertEquals($this->entities[$row->entity_id]->{$field_name}->value, $row->$column);
     }
 
     // There are 0 entities of this bundle with non-deleted data.
@@ -207,7 +207,7 @@ public function testDeleteField() {
       ->condition("$field_name.deleted", 1)
       ->sort('id')
       ->execute();
-    $this->assertEqual(count($found), 10, 'Correct number of entities found after deleting');
+    $this->assertEquals(count($found), 10, 'Correct number of entities found after deleting');
     $this->assertFalse(array_diff($found, array_keys($this->entities)));
   }
 
@@ -290,7 +290,7 @@ public function testPurgeWithDeletedAndActiveField() {
 
     // The field has been removed from the system.
     $fields = entity_load_multiple_by_properties('field_config', ['field_storage_uuid' => $deleted_field_storage->uuid(), 'deleted' => TRUE, 'include_deleted' => TRUE]);
-    $this->assertEqual(count($fields), 0, 'The field is gone');
+    $this->assertEquals(count($fields), 0, 'The field is gone');
 
     // Verify there are still 10 entries in the main table.
     $count = \Drupal::database()
@@ -300,7 +300,7 @@ public function testPurgeWithDeletedAndActiveField() {
       ->countQuery()
       ->execute()
       ->fetchField();
-    $this->assertEqual($count, 10);
+    $this->assertEquals($count, 10);
   }
 
   /**
@@ -321,7 +321,7 @@ public function testPurgeField() {
 
     // No field hooks were called.
     $mem = field_test_memorize();
-    $this->assertEqual(count($mem), 0, 'No field hooks were called');
+    $this->assertEquals(count($mem), 0, 'No field hooks were called');
 
     $batch_size = 2;
     for ($count = 8; $count >= 0; $count -= $batch_size) {
@@ -333,7 +333,7 @@ public function testPurgeField() {
         ->condition('type', $bundle)
         ->condition($field_name . '.deleted', 1)
         ->execute();
-      $this->assertEqual(count($found), $count, 'Correct number of entities found after purging 2');
+      $this->assertEquals(count($found), $count, 'Correct number of entities found after purging 2');
     }
 
     // Check hooks invocations.
@@ -349,14 +349,14 @@ public function testPurgeField() {
 
     // The field still exists, deleted.
     $fields = entity_load_multiple_by_properties('field_config', ['field_storage_uuid' => $field_storage->uuid(), 'deleted' => TRUE, 'include_deleted' => TRUE]);
-    $this->assertEqual(count($fields), 1, 'There is one deleted field');
+    $this->assertEquals(count($fields), 1, 'There is one deleted field');
 
     // Purge the field.
     field_purge_batch($batch_size);
 
     // The field is gone.
     $fields = entity_load_multiple_by_properties('field_config', ['field_storage_uuid' => $field_storage->uuid(), 'deleted' => TRUE, 'include_deleted' => TRUE]);
-    $this->assertEqual(count($fields), 0, 'The field is gone');
+    $this->assertEquals(count($fields), 0, 'The field is gone');
 
     // The field storage still exists, not deleted, because it has a second
     // field.
@@ -382,7 +382,7 @@ public function testPurgeFieldStorage() {
 
     // Assert that FieldItemInterface::delete() was not called yet.
     $mem = field_test_memorize();
-    $this->assertEqual(count($mem), 0, 'No field hooks were called.');
+    $this->assertEquals(count($mem), 0, 'No field hooks were called.');
 
     // Purge the data.
     field_purge_batch(10);
@@ -407,7 +407,7 @@ public function testPurgeFieldStorage() {
 
     // The field is gone.
     $fields = entity_load_multiple_by_properties('field_config', ['uuid' => $field->uuid(), 'include_deleted' => TRUE]);
-    $this->assertEqual(count($fields), 0, 'The field is purged.');
+    $this->assertEquals(count($fields), 0, 'The field is purged.');
     // The field storage still exists, not deleted.
     $storages = entity_load_multiple_by_properties('field_storage_config', ['uuid' => $field_storage->uuid(), 'include_deleted' => TRUE]);
     $this->assertTrue(isset($storages[$field_storage->uuid()]) && !$storages[$field_storage->uuid()]->isDeleted(), 'The field storage exists and is not deleted');
@@ -419,7 +419,7 @@ public function testPurgeFieldStorage() {
 
     // Assert that FieldItemInterface::delete() was not called yet.
     $mem = field_test_memorize();
-    $this->assertEqual(count($mem), 0, 'No field hooks were called.');
+    $this->assertEquals(count($mem), 0, 'No field hooks were called.');
 
     // Purge the data.
     field_purge_batch(10);
@@ -444,9 +444,9 @@ public function testPurgeFieldStorage() {
 
     // The field and the storage are gone.
     $fields = entity_load_multiple_by_properties('field_config', ['uuid' => $field->uuid(), 'include_deleted' => TRUE]);
-    $this->assertEqual(count($fields), 0, 'The field is purged.');
+    $this->assertEquals(count($fields), 0, 'The field is purged.');
     $storages = entity_load_multiple_by_properties('field_storage_config', ['uuid' => $field_storage->uuid(), 'include_deleted' => TRUE]);
-    $this->assertEqual(count($storages), 0, 'The field storage is purged.');
+    $this->assertEquals(count($storages), 0, 'The field storage is purged.');
   }
 
 }
diff --git a/core/modules/field/tests/src/Kernel/Email/EmailItemTest.php b/core/modules/field/tests/src/Kernel/Email/EmailItemTest.php
index 10b44333e0..d7fe698fcd 100644
--- a/core/modules/field/tests/src/Kernel/Email/EmailItemTest.php
+++ b/core/modules/field/tests/src/Kernel/Email/EmailItemTest.php
@@ -55,18 +55,18 @@ public function testEmailItem() {
     $entity = EntityTest::load($id);
     $this->assertTrue($entity->field_email instanceof FieldItemListInterface, 'Field implements interface.');
     $this->assertTrue($entity->field_email[0] instanceof FieldItemInterface, 'Field item implements interface.');
-    $this->assertEqual($entity->field_email->value, $value);
-    $this->assertEqual($entity->field_email[0]->value, $value);
+    $this->assertEquals($entity->field_email->value, $value);
+    $this->assertEquals($entity->field_email[0]->value, $value);
 
     // Verify changing the email value.
     $new_value = $this->randomMachineName();
     $entity->field_email->value = $new_value;
-    $this->assertEqual($entity->field_email->value, $new_value);
+    $this->assertEquals($entity->field_email->value, $new_value);
 
     // Read changed entity and assert changed values.
     $entity->save();
     $entity = EntityTest::load($id);
-    $this->assertEqual($entity->field_email->value, $new_value);
+    $this->assertEquals($entity->field_email->value, $new_value);
 
     // Test sample item generation.
     $entity = EntityTest::create();
diff --git a/core/modules/field/tests/src/Kernel/EntityReference/EntityReferenceFormatterTest.php b/core/modules/field/tests/src/Kernel/EntityReference/EntityReferenceFormatterTest.php
index 1473375b19..85a13e7332 100644
--- a/core/modules/field/tests/src/Kernel/EntityReference/EntityReferenceFormatterTest.php
+++ b/core/modules/field/tests/src/Kernel/EntityReference/EntityReferenceFormatterTest.php
@@ -159,7 +159,7 @@ public function testAccess() {
       entity_view($referencing_entity, 'default');
 
       // Verify the un-accessible item still exists.
-      $this->assertEqual($referencing_entity->{$field_name}->target_id, $this->referencedEntity->id(), format_string('The un-accessible item still exists after @name formatter was executed.', ['@name' => $name]));
+      $this->assertEquals($referencing_entity->{$field_name}->target_id, $this->referencedEntity->id(), format_string('The un-accessible item still exists after @name formatter was executed.', ['@name' => $name]));
     }
   }
 
@@ -183,8 +183,8 @@ public function testIdFormatter() {
     $formatter = 'entity_reference_entity_id';
     $build = $this->buildRenderArray([$this->referencedEntity, $this->unsavedReferencedEntity], $formatter);
 
-    $this->assertEqual($build[0]['#plain_text'], $this->referencedEntity->id(), sprintf('The markup returned by the %s formatter is correct for an item with a saved entity.', $formatter));
-    $this->assertEqual($build[0]['#cache']['tags'], $this->referencedEntity->getCacheTags(), sprintf('The %s formatter has the expected cache tags.', $formatter));
+    $this->assertEquals($build[0]['#plain_text'], $this->referencedEntity->id(), sprintf('The markup returned by the %s formatter is correct for an item with a saved entity.', $formatter));
+    $this->assertEquals($build[0]['#cache']['tags'], $this->referencedEntity->getCacheTags(), sprintf('The %s formatter has the expected cache tags.', $formatter));
     $this->assertTrue(!isset($build[1]), sprintf('The markup returned by the %s formatter is correct for an item with a unsaved entity.', $formatter));
   }
 
@@ -208,10 +208,10 @@ public function testEntityFormatter() {
           </div>
 ';
     $renderer->renderRoot($build[0]);
-    $this->assertEqual($build[0]['#markup'], 'default | ' . $this->referencedEntity->label() . $expected_rendered_name_field_1 . $expected_rendered_body_field_1, sprintf('The markup returned by the %s formatter is correct for an item with a saved entity.', $formatter));
+    $this->assertEquals($build[0]['#markup'], 'default | ' . $this->referencedEntity->label() . $expected_rendered_name_field_1 . $expected_rendered_body_field_1, sprintf('The markup returned by the %s formatter is correct for an item with a saved entity.', $formatter));
     $expected_cache_tags = Cache::mergeTags(\Drupal::entityManager()->getViewBuilder($this->entityType)->getCacheTags(), $this->referencedEntity->getCacheTags());
     $expected_cache_tags = Cache::mergeTags($expected_cache_tags, FilterFormat::load('full_html')->getCacheTags());
-    $this->assertEqual($build[0]['#cache']['tags'], $expected_cache_tags, format_string('The @formatter formatter has the expected cache tags.', ['@formatter' => $formatter]));
+    $this->assertEquals($build[0]['#cache']['tags'], $expected_cache_tags, format_string('The @formatter formatter has the expected cache tags.', ['@formatter' => $formatter]));
 
     // Test the second field item.
     $expected_rendered_name_field_2 = '
@@ -225,7 +225,7 @@ public function testEntityFormatter() {
 ';
 
     $renderer->renderRoot($build[1]);
-    $this->assertEqual($build[1]['#markup'], 'default | ' . $this->unsavedReferencedEntity->label() . $expected_rendered_name_field_2 . $expected_rendered_body_field_2, sprintf('The markup returned by the %s formatter is correct for an item with a unsaved entity.', $formatter));
+    $this->assertEquals($build[1]['#markup'], 'default | ' . $this->unsavedReferencedEntity->label() . $expected_rendered_name_field_2 . $expected_rendered_body_field_2, sprintf('The markup returned by the %s formatter is correct for an item with a unsaved entity.', $formatter));
   }
 
   /**
@@ -264,7 +264,7 @@ public function testEntityFormatterRecursiveRendering() {
     // reference field.
     $expected_occurrences = EntityReferenceEntityFormatter::RECURSIVE_RENDER_LIMIT * 2 + 2;
     $actual_occurrences = substr_count($output, $referencing_entity_1->name->value);
-    $this->assertEqual($actual_occurrences, $expected_occurrences);
+    $this->assertEquals($actual_occurrences, $expected_occurrences);
 
     // Repeat the process with another entity in order to check that the
     // 'recursive_render_id' counter is generated properly.
@@ -277,17 +277,17 @@ public function testEntityFormatterRecursiveRendering() {
     $output = $renderer->renderRoot($build);
 
     $actual_occurrences = substr_count($output, $referencing_entity_2->name->value);
-    $this->assertEqual($actual_occurrences, $expected_occurrences);
+    $this->assertEquals($actual_occurrences, $expected_occurrences);
 
     // Now render both entities at the same time and check again.
     $build = $view_builder->viewMultiple([$referencing_entity_1, $referencing_entity_2], 'default');
     $output = $renderer->renderRoot($build);
 
     $actual_occurrences = substr_count($output, $referencing_entity_1->name->value);
-    $this->assertEqual($actual_occurrences, $expected_occurrences);
+    $this->assertEquals($actual_occurrences, $expected_occurrences);
 
     $actual_occurrences = substr_count($output, $referencing_entity_2->name->value);
-    $this->assertEqual($actual_occurrences, $expected_occurrences);
+    $this->assertEquals($actual_occurrences, $expected_occurrences);
   }
 
   /**
@@ -350,7 +350,7 @@ public function testLabelFormatter() {
       'tags' => [],
       'max-age' => Cache::PERMANENT,
     ];
-    $this->assertEqual($build['#cache'], $expected_field_cacheability, 'The field render array contains the entity access cacheability metadata');
+    $this->assertEquals($build['#cache'], $expected_field_cacheability, 'The field render array contains the entity access cacheability metadata');
     $expected_item_1 = [
       '#type' => 'link',
       '#title' => $this->referencedEntity->label(),
@@ -363,8 +363,8 @@ public function testLabelFormatter() {
         'tags' => $this->referencedEntity->getCacheTags(),
       ],
     ];
-    $this->assertEqual($renderer->renderRoot($build[0]), $renderer->renderRoot($expected_item_1), sprintf('The markup returned by the %s formatter is correct for an item with a saved entity.', $formatter));
-    $this->assertEqual(CacheableMetadata::createFromRenderArray($build[0]), CacheableMetadata::createFromRenderArray($expected_item_1));
+    $this->assertEquals($renderer->renderRoot($build[0]), $renderer->renderRoot($expected_item_1), sprintf('The markup returned by the %s formatter is correct for an item with a saved entity.', $formatter));
+    $this->assertEquals(CacheableMetadata::createFromRenderArray($build[0]), CacheableMetadata::createFromRenderArray($expected_item_1));
 
     // The second referenced entity is "autocreated", therefore not saved and
     // lacking any URL info.
@@ -378,12 +378,12 @@ public function testLabelFormatter() {
         'max-age' => Cache::PERMANENT,
       ],
     ];
-    $this->assertEqual($build[1], $expected_item_2, sprintf('The render array returned by the %s formatter is correct for an item with a unsaved entity.', $formatter));
+    $this->assertEquals($build[1], $expected_item_2, sprintf('The render array returned by the %s formatter is correct for an item with a unsaved entity.', $formatter));
 
     // Test with the 'link' setting set to FALSE.
     $build = $this->buildRenderArray([$this->referencedEntity, $this->unsavedReferencedEntity], $formatter, ['link' => FALSE]);
-    $this->assertEqual($build[0]['#plain_text'], $this->referencedEntity->label(), sprintf('The markup returned by the %s formatter is correct for an item with a saved entity.', $formatter));
-    $this->assertEqual($build[1]['#plain_text'], $this->unsavedReferencedEntity->label(), sprintf('The markup returned by the %s formatter is correct for an item with a unsaved entity.', $formatter));
+    $this->assertEquals($build[0]['#plain_text'], $this->referencedEntity->label(), sprintf('The markup returned by the %s formatter is correct for an item with a saved entity.', $formatter));
+    $this->assertEquals($build[1]['#plain_text'], $this->unsavedReferencedEntity->label(), sprintf('The markup returned by the %s formatter is correct for an item with a unsaved entity.', $formatter));
 
     // Test an entity type that doesn't have any link templates, which means
     // \Drupal\Core\Entity\EntityInterface::urlInfo() will throw an exception
@@ -398,7 +398,7 @@ public function testLabelFormatter() {
     $referenced_entity_with_no_link_template->save();
 
     $build = $this->buildRenderArray([$referenced_entity_with_no_link_template], $formatter, ['link' => TRUE]);
-    $this->assertEqual($build[0]['#plain_text'], $referenced_entity_with_no_link_template->label(), sprintf('The markup returned by the %s formatter is correct for an entity type with no valid link template.', $formatter));
+    $this->assertEquals($build[0]['#plain_text'], $referenced_entity_with_no_link_template->label(), sprintf('The markup returned by the %s formatter is correct for an entity type with no valid link template.', $formatter));
   }
 
   /**
diff --git a/core/modules/field/tests/src/Kernel/EntityReference/EntityReferenceItemTest.php b/core/modules/field/tests/src/Kernel/EntityReference/EntityReferenceItemTest.php
index 391d8db065..9bb386814c 100644
--- a/core/modules/field/tests/src/Kernel/EntityReference/EntityReferenceItemTest.php
+++ b/core/modules/field/tests/src/Kernel/EntityReference/EntityReferenceItemTest.php
@@ -119,14 +119,14 @@ public function testContentEntityReferenceItem() {
     $entity = EntityTest::load($entity->id());
     $this->assertTrue($entity->field_test_taxonomy_term instanceof FieldItemListInterface, 'Field implements interface.');
     $this->assertTrue($entity->field_test_taxonomy_term[0] instanceof FieldItemInterface, 'Field item implements interface.');
-    $this->assertEqual($entity->field_test_taxonomy_term->target_id, $tid);
-    $this->assertEqual($entity->field_test_taxonomy_term->entity->getName(), $this->term->getName());
-    $this->assertEqual($entity->field_test_taxonomy_term->entity->id(), $tid);
-    $this->assertEqual($entity->field_test_taxonomy_term->entity->uuid(), $this->term->uuid());
+    $this->assertEquals($entity->field_test_taxonomy_term->target_id, $tid);
+    $this->assertEquals($entity->field_test_taxonomy_term->entity->getName(), $this->term->getName());
+    $this->assertEquals($entity->field_test_taxonomy_term->entity->id(), $tid);
+    $this->assertEquals($entity->field_test_taxonomy_term->entity->uuid(), $this->term->uuid());
     // Verify that the label for the target ID property definition is correct.
     $label = $entity->field_test_taxonomy_term->getFieldDefinition()->getFieldStorageDefinition()->getPropertyDefinition('target_id')->getLabel();
     $this->assertTrue($label instanceof TranslatableMarkup);
-    $this->assertEqual($label->render(), 'Taxonomy term ID');
+    $this->assertEquals($label->render(), 'Taxonomy term ID');
 
     // Change the name of the term via the reference.
     $new_name = $this->randomMachineName();
@@ -134,7 +134,7 @@ public function testContentEntityReferenceItem() {
     $entity->field_test_taxonomy_term->entity->save();
     // Verify it is the correct name.
     $term = Term::load($tid);
-    $this->assertEqual($term->getName(), $new_name);
+    $this->assertEquals($term->getName(), $new_name);
 
     // Make sure the computed term reflects updates to the term id.
     $term2 = Term::create([
@@ -146,21 +146,21 @@ public function testContentEntityReferenceItem() {
 
     // Test all the possible ways of assigning a value.
     $entity->field_test_taxonomy_term->target_id = $term->id();
-    $this->assertEqual($entity->field_test_taxonomy_term->entity->id(), $term->id());
-    $this->assertEqual($entity->field_test_taxonomy_term->entity->getName(), $term->getName());
+    $this->assertEquals($entity->field_test_taxonomy_term->entity->id(), $term->id());
+    $this->assertEquals($entity->field_test_taxonomy_term->entity->getName(), $term->getName());
 
     $entity->field_test_taxonomy_term = [['target_id' => $term2->id()]];
-    $this->assertEqual($entity->field_test_taxonomy_term->entity->id(), $term2->id());
-    $this->assertEqual($entity->field_test_taxonomy_term->entity->getName(), $term2->getName());
+    $this->assertEquals($entity->field_test_taxonomy_term->entity->id(), $term2->id());
+    $this->assertEquals($entity->field_test_taxonomy_term->entity->getName(), $term2->getName());
 
     // Test value assignment via the computed 'entity' property.
     $entity->field_test_taxonomy_term->entity = $term;
-    $this->assertEqual($entity->field_test_taxonomy_term->target_id, $term->id());
-    $this->assertEqual($entity->field_test_taxonomy_term->entity->getName(), $term->getName());
+    $this->assertEquals($entity->field_test_taxonomy_term->target_id, $term->id());
+    $this->assertEquals($entity->field_test_taxonomy_term->entity->getName(), $term->getName());
 
     $entity->field_test_taxonomy_term = [['entity' => $term2]];
-    $this->assertEqual($entity->field_test_taxonomy_term->target_id, $term2->id());
-    $this->assertEqual($entity->field_test_taxonomy_term->entity->getName(), $term2->getName());
+    $this->assertEquals($entity->field_test_taxonomy_term->target_id, $term2->id());
+    $this->assertEquals($entity->field_test_taxonomy_term->entity->getName(), $term2->getName());
 
     // Test assigning an invalid item throws an exception.
     try {
@@ -202,11 +202,11 @@ public function testContentEntityReferenceItemWithStringId() {
     $entity->save();
     $storage = \Drupal::entityManager()->getStorage('entity_test');
     $storage->resetCache();
-    $this->assertEqual($this->entityStringId->id(), $storage->load($entity->id())->field_test_entity_test_string_id->target_id);
+    $this->assertEquals($this->entityStringId->id(), $storage->load($entity->id())->field_test_entity_test_string_id->target_id);
     // Verify that the label for the target ID property definition is correct.
     $label = $entity->field_test_taxonomy_term->getFieldDefinition()->getFieldStorageDefinition()->getPropertyDefinition('target_id')->getLabel();
     $this->assertTrue($label instanceof TranslatableMarkup);
-    $this->assertEqual($label->render(), 'Taxonomy term ID');
+    $this->assertEquals($label->render(), 'Taxonomy term ID');
   }
 
   /**
@@ -224,10 +224,10 @@ public function testConfigEntityReferenceItem() {
     $entity = EntityTest::load($entity->id());
     $this->assertTrue($entity->field_test_taxonomy_vocabulary instanceof FieldItemListInterface, 'Field implements interface.');
     $this->assertTrue($entity->field_test_taxonomy_vocabulary[0] instanceof FieldItemInterface, 'Field item implements interface.');
-    $this->assertEqual($entity->field_test_taxonomy_vocabulary->target_id, $referenced_entity_id);
-    $this->assertEqual($entity->field_test_taxonomy_vocabulary->entity->label(), $this->vocabulary->label());
-    $this->assertEqual($entity->field_test_taxonomy_vocabulary->entity->id(), $referenced_entity_id);
-    $this->assertEqual($entity->field_test_taxonomy_vocabulary->entity->uuid(), $this->vocabulary->uuid());
+    $this->assertEquals($entity->field_test_taxonomy_vocabulary->target_id, $referenced_entity_id);
+    $this->assertEquals($entity->field_test_taxonomy_vocabulary->entity->label(), $this->vocabulary->label());
+    $this->assertEquals($entity->field_test_taxonomy_vocabulary->entity->id(), $referenced_entity_id);
+    $this->assertEquals($entity->field_test_taxonomy_vocabulary->entity->uuid(), $this->vocabulary->uuid());
 
     // Change the name of the term via the reference.
     $new_name = $this->randomMachineName();
@@ -235,7 +235,7 @@ public function testConfigEntityReferenceItem() {
     $entity->field_test_taxonomy_vocabulary->entity->save();
     // Verify it is the correct name.
     $vocabulary = Vocabulary::load($referenced_entity_id);
-    $this->assertEqual($vocabulary->label(), $new_name);
+    $this->assertEquals($vocabulary->label(), $new_name);
 
     // Make sure the computed term reflects updates to the term id.
     $vocabulary2 = $vocabulary = Vocabulary::create([
@@ -246,8 +246,8 @@ public function testConfigEntityReferenceItem() {
     $vocabulary2->save();
 
     $entity->field_test_taxonomy_vocabulary->target_id = $vocabulary2->id();
-    $this->assertEqual($entity->field_test_taxonomy_vocabulary->entity->id(), $vocabulary2->id());
-    $this->assertEqual($entity->field_test_taxonomy_vocabulary->entity->label(), $vocabulary2->label());
+    $this->assertEquals($entity->field_test_taxonomy_vocabulary->entity->id(), $vocabulary2->id());
+    $this->assertEquals($entity->field_test_taxonomy_vocabulary->entity->label(), $vocabulary2->label());
 
     // Delete terms so we have nothing to reference and try again
     $this->vocabulary->delete();
@@ -277,7 +277,7 @@ public function testEntityAutoCreate() {
     // And then the entity.
     $entity->save();
     $term = \Drupal::entityManager()->loadEntityByUuid($term->getEntityTypeId(), $term->uuid());
-    $this->assertEqual($entity->field_test_taxonomy_term->entity->id(), $term->id());
+    $this->assertEquals($entity->field_test_taxonomy_term->entity->id(), $term->id());
   }
 
   /**
@@ -304,7 +304,7 @@ public function testEntitySaveOrder() {
     $term->save();
     // And then the entity.
     $entity->save();
-    $this->assertEqual($entity->field_test_taxonomy_term->entity->id(), $term->id());
+    $this->assertEquals($entity->field_test_taxonomy_term->entity->id(), $term->id());
   }
 
   /**
@@ -330,27 +330,27 @@ public function testSelectionHandlerSettings() {
     ]);
     $field->save();
     $field = FieldConfig::load($field->id());
-    $this->assertEqual($field->getSetting('handler'), 'default:entity_test');
+    $this->assertEquals($field->getSetting('handler'), 'default:entity_test');
 
     // Change the target_type in the field storage, and check that the handler
     // was correctly reassigned in the field.
     $field_storage->setSetting('target_type', 'entity_test_rev');
     $field_storage->save();
     $field = FieldConfig::load($field->id());
-    $this->assertEqual($field->getSetting('handler'), 'default:entity_test_rev');
+    $this->assertEquals($field->getSetting('handler'), 'default:entity_test_rev');
 
     // Change the handler to another, non-derivative plugin.
     $field->setSetting('handler', 'views');
     $field->save();
     $field = FieldConfig::load($field->id());
-    $this->assertEqual($field->getSetting('handler'), 'views');
+    $this->assertEquals($field->getSetting('handler'), 'views');
 
     // Change the target_type in the field storage again, and check that the
     // non-derivative handler was unchanged.
     $field_storage->setSetting('target_type', 'entity_test_rev');
     $field_storage->save();
     $field = FieldConfig::load($field->id());
-    $this->assertEqual($field->getSetting('handler'), 'views');
+    $this->assertEquals($field->getSetting('handler'), 'views');
   }
 
   /**
@@ -371,7 +371,7 @@ public function testAutocreateValidation() {
     ]);
     $errors = $entity->validate();
     // Using target_id of NULL is valid with an unsaved entity.
-    $this->assertEqual(0, count($errors));
+    $this->assertEquals(0, count($errors));
     // Using target_id of NULL is not valid with a saved entity.
     $term->save();
     $entity = EntityTest::create([
@@ -381,13 +381,13 @@ public function testAutocreateValidation() {
       ],
     ]);
     $errors = $entity->validate();
-    $this->assertEqual(1, count($errors));
-    $this->assertEqual($errors[0]->getMessage(), 'This value should not be null.');
-    $this->assertEqual($errors[0]->getPropertyPath(), 'field_test_taxonomy_term.0');
+    $this->assertEquals(1, count($errors));
+    $this->assertEquals($errors[0]->getMessage(), 'This value should not be null.');
+    $this->assertEquals($errors[0]->getPropertyPath(), 'field_test_taxonomy_term.0');
     // This should rectify the issue, favoring the entity over the target_id.
     $entity->save();
     $errors = $entity->validate();
-    $this->assertEqual(0, count($errors));
+    $this->assertEquals(0, count($errors));
 
     // Test with an unpublished and unsaved node.
     $title = $this->randomString();
@@ -404,14 +404,14 @@ public function testAutocreateValidation() {
     ]);
 
     $errors = $entity->validate();
-    $this->assertEqual(1, count($errors));
-    $this->assertEqual($errors[0]->getMessage(), new FormattableMarkup('This entity (%type: %label) cannot be referenced.', ['%type' => 'node', '%label' => $title]));
-    $this->assertEqual($errors[0]->getPropertyPath(), 'field_test_node.0.entity');
+    $this->assertEquals(1, count($errors));
+    $this->assertEquals($errors[0]->getMessage(), new FormattableMarkup('This entity (%type: %label) cannot be referenced.', ['%type' => 'node', '%label' => $title]));
+    $this->assertEquals($errors[0]->getPropertyPath(), 'field_test_node.0.entity');
 
     // Publish the node and try again.
     $node->setPublished(TRUE);
     $errors = $entity->validate();
-    $this->assertEqual(0, count($errors));
+    $this->assertEquals(0, count($errors));
 
     // Test with a mix of valid and invalid nodes.
     $unsaved_unpublished_node_title = $this->randomString();
@@ -452,24 +452,24 @@ public function testAutocreateValidation() {
     ]);
 
     $errors = $entity->validate();
-    $this->assertEqual(2, count($errors));
-    $this->assertEqual($errors[0]->getMessage(), new FormattableMarkup('This entity (%type: %label) cannot be referenced.', ['%type' => 'node', '%label' => $unsaved_unpublished_node_title]));
-    $this->assertEqual($errors[0]->getPropertyPath(), 'field_test_node.0.entity');
-    $this->assertEqual($errors[1]->getMessage(), new FormattableMarkup('This entity (%type: %label) cannot be referenced.', ['%type' => 'node', '%label' => $saved_unpublished_node->id()]));
-    $this->assertEqual($errors[1]->getPropertyPath(), 'field_test_node.1.target_id');
+    $this->assertEquals(2, count($errors));
+    $this->assertEquals($errors[0]->getMessage(), new FormattableMarkup('This entity (%type: %label) cannot be referenced.', ['%type' => 'node', '%label' => $unsaved_unpublished_node_title]));
+    $this->assertEquals($errors[0]->getPropertyPath(), 'field_test_node.0.entity');
+    $this->assertEquals($errors[1]->getMessage(), new FormattableMarkup('This entity (%type: %label) cannot be referenced.', ['%type' => 'node', '%label' => $saved_unpublished_node->id()]));
+    $this->assertEquals($errors[1]->getPropertyPath(), 'field_test_node.1.target_id');
 
     // Publish one of the nodes and try again.
     $saved_unpublished_node->setPublished(TRUE);
     $saved_unpublished_node->save();
     $errors = $entity->validate();
-    $this->assertEqual(1, count($errors));
-    $this->assertEqual($errors[0]->getMessage(), new FormattableMarkup('This entity (%type: %label) cannot be referenced.', ['%type' => 'node', '%label' => $unsaved_unpublished_node_title]));
-    $this->assertEqual($errors[0]->getPropertyPath(), 'field_test_node.0.entity');
+    $this->assertEquals(1, count($errors));
+    $this->assertEquals($errors[0]->getMessage(), new FormattableMarkup('This entity (%type: %label) cannot be referenced.', ['%type' => 'node', '%label' => $unsaved_unpublished_node_title]));
+    $this->assertEquals($errors[0]->getPropertyPath(), 'field_test_node.0.entity');
 
     // Publish the last invalid node and try again.
     $unsaved_unpublished_node->setPublished(TRUE);
     $errors = $entity->validate();
-    $this->assertEqual(0, count($errors));
+    $this->assertEquals(0, count($errors));
 
     // Test with an unpublished and unsaved comment.
     $title = $this->randomString();
@@ -486,14 +486,14 @@ public function testAutocreateValidation() {
     ]);
 
     $errors = $entity->validate();
-    $this->assertEqual(1, count($errors));
-    $this->assertEqual($errors[0]->getMessage(), new FormattableMarkup('This entity (%type: %label) cannot be referenced.', ['%type' => 'comment', '%label' => $title]));
-    $this->assertEqual($errors[0]->getPropertyPath(), 'field_test_comment.0.entity');
+    $this->assertEquals(1, count($errors));
+    $this->assertEquals($errors[0]->getMessage(), new FormattableMarkup('This entity (%type: %label) cannot be referenced.', ['%type' => 'comment', '%label' => $title]));
+    $this->assertEquals($errors[0]->getPropertyPath(), 'field_test_comment.0.entity');
 
     // Publish the comment and try again.
     $comment->setPublished(TRUE);
     $errors = $entity->validate();
-    $this->assertEqual(0, count($errors));
+    $this->assertEquals(0, count($errors));
 
     // Test with an inactive and unsaved user.
     $name = $this->randomString();
@@ -509,14 +509,14 @@ public function testAutocreateValidation() {
     ]);
 
     $errors = $entity->validate();
-    $this->assertEqual(1, count($errors));
-    $this->assertEqual($errors[0]->getMessage(), new FormattableMarkup('This entity (%type: %label) cannot be referenced.', ['%type' => 'user', '%label' => $name]));
-    $this->assertEqual($errors[0]->getPropertyPath(), 'field_test_user.0.entity');
+    $this->assertEquals(1, count($errors));
+    $this->assertEquals($errors[0]->getMessage(), new FormattableMarkup('This entity (%type: %label) cannot be referenced.', ['%type' => 'user', '%label' => $name]));
+    $this->assertEquals($errors[0]->getPropertyPath(), 'field_test_user.0.entity');
 
     // Activate the user and try again.
     $user->activate();
     $errors = $entity->validate();
-    $this->assertEqual(0, count($errors));
+    $this->assertEquals(0, count($errors));
 
     // Test with a temporary and unsaved file.
     $filename = $this->randomMachineName() . '.txt';
@@ -532,14 +532,14 @@ public function testAutocreateValidation() {
     ]);
 
     $errors = $entity->validate();
-    $this->assertEqual(1, count($errors));
-    $this->assertEqual($errors[0]->getMessage(), new FormattableMarkup('This entity (%type: %label) cannot be referenced.', ['%type' => 'file', '%label' => $filename]));
-    $this->assertEqual($errors[0]->getPropertyPath(), 'field_test_file.0.entity');
+    $this->assertEquals(1, count($errors));
+    $this->assertEquals($errors[0]->getMessage(), new FormattableMarkup('This entity (%type: %label) cannot be referenced.', ['%type' => 'file', '%label' => $filename]));
+    $this->assertEquals($errors[0]->getPropertyPath(), 'field_test_file.0.entity');
 
     // Set the file as permanent and try again.
     $file->setPermanent();
     $errors = $entity->validate();
-    $this->assertEqual(0, count($errors));
+    $this->assertEquals(0, count($errors));
   }
 
 }
diff --git a/core/modules/field/tests/src/Kernel/EntityReference/EntityReferenceSettingsTest.php b/core/modules/field/tests/src/Kernel/EntityReference/EntityReferenceSettingsTest.php
index 2f8f13df8d..8a27fbdd95 100644
--- a/core/modules/field/tests/src/Kernel/EntityReference/EntityReferenceSettingsTest.php
+++ b/core/modules/field/tests/src/Kernel/EntityReference/EntityReferenceSettingsTest.php
@@ -107,7 +107,7 @@ public function testConfigTargetBundleDeletion() {
     // Check that the 'target_bundle' setting contains the vocabulary.
     $field_config = FieldConfig::loadByName('node', $this->nodeType->id(), $name);
     $actual_handler_settings = $field_config->getSetting('handler_settings');
-    $this->assertEqual($handler_settings, $actual_handler_settings);
+    $this->assertEquals($handler_settings, $actual_handler_settings);
 
     // Delete the vocabulary.
     $vocabularies[0]->delete();
@@ -151,7 +151,7 @@ public function testCustomTargetBundleDeletion() {
     // Check that the 'target_bundle' setting contains the custom bundle.
     $field_config = FieldConfig::loadByName('node', $this->nodeType->id(), $name);
     $actual_handler_settings = $field_config->getSetting('handler_settings');
-    $this->assertEqual($handler_settings, $actual_handler_settings);
+    $this->assertEquals($handler_settings, $actual_handler_settings);
 
     // Delete the custom bundle.
     entity_test_delete_bundle($this->customBundle, 'entity_test');
diff --git a/core/modules/field/tests/src/Kernel/EntityReference/Views/EntityReferenceRelationshipTest.php b/core/modules/field/tests/src/Kernel/EntityReference/Views/EntityReferenceRelationshipTest.php
index 5f4c8ee46b..87a9fdebe9 100644
--- a/core/modules/field/tests/src/Kernel/EntityReference/Views/EntityReferenceRelationshipTest.php
+++ b/core/modules/field/tests/src/Kernel/EntityReference/Views/EntityReferenceRelationshipTest.php
@@ -91,35 +91,35 @@ public function testNoDataTableRelationship() {
     $entity = EntityTest::create();
     $entity->field_test_data->target_id = $referenced_entity->id();
     $entity->save();
-    $this->assertEqual($entity->field_test_data[0]->entity->id(), $referenced_entity->id());
+    $this->assertEquals($entity->field_test_data[0]->entity->id(), $referenced_entity->id());
     $this->entities[] = $entity;
 
     $entity = EntityTest::create();
     $entity->field_test_data->target_id = $referenced_entity->id();
     $entity->save();
-    $this->assertEqual($entity->field_test_data[0]->entity->id(), $referenced_entity->id());
+    $this->assertEquals($entity->field_test_data[0]->entity->id(), $referenced_entity->id());
     $this->entities[] = $entity;
 
     Views::viewsData()->clear();
 
     // Check the generated views data.
     $views_data = Views::viewsData()->get('entity_test__field_test_data');
-    $this->assertEqual($views_data['field_test_data']['relationship']['id'], 'standard');
-    $this->assertEqual($views_data['field_test_data']['relationship']['base'], 'entity_test_mul_property_data');
-    $this->assertEqual($views_data['field_test_data']['relationship']['base field'], 'id');
-    $this->assertEqual($views_data['field_test_data']['relationship']['relationship field'], 'field_test_data_target_id');
-    $this->assertEqual($views_data['field_test_data']['relationship']['entity type'], 'entity_test_mul');
+    $this->assertEquals($views_data['field_test_data']['relationship']['id'], 'standard');
+    $this->assertEquals($views_data['field_test_data']['relationship']['base'], 'entity_test_mul_property_data');
+    $this->assertEquals($views_data['field_test_data']['relationship']['base field'], 'id');
+    $this->assertEquals($views_data['field_test_data']['relationship']['relationship field'], 'field_test_data_target_id');
+    $this->assertEquals($views_data['field_test_data']['relationship']['entity type'], 'entity_test_mul');
 
     // Check the backwards reference.
     $views_data = Views::viewsData()->get('entity_test_mul_property_data');
-    $this->assertEqual($views_data['reverse__entity_test__field_test_data']['relationship']['id'], 'entity_reverse');
-    $this->assertEqual($views_data['reverse__entity_test__field_test_data']['relationship']['base'], 'entity_test');
-    $this->assertEqual($views_data['reverse__entity_test__field_test_data']['relationship']['base field'], 'id');
-    $this->assertEqual($views_data['reverse__entity_test__field_test_data']['relationship']['field table'], 'entity_test__field_test_data');
-    $this->assertEqual($views_data['reverse__entity_test__field_test_data']['relationship']['field field'], 'field_test_data_target_id');
-    $this->assertEqual($views_data['reverse__entity_test__field_test_data']['relationship']['field_name'], 'field_test_data');
-    $this->assertEqual($views_data['reverse__entity_test__field_test_data']['relationship']['entity_type'], 'entity_test');
-    $this->assertEqual($views_data['reverse__entity_test__field_test_data']['relationship']['join_extra'][0], ['field' => 'deleted', 'value' => 0, 'numeric' => TRUE]);
+    $this->assertEquals($views_data['reverse__entity_test__field_test_data']['relationship']['id'], 'entity_reverse');
+    $this->assertEquals($views_data['reverse__entity_test__field_test_data']['relationship']['base'], 'entity_test');
+    $this->assertEquals($views_data['reverse__entity_test__field_test_data']['relationship']['base field'], 'id');
+    $this->assertEquals($views_data['reverse__entity_test__field_test_data']['relationship']['field table'], 'entity_test__field_test_data');
+    $this->assertEquals($views_data['reverse__entity_test__field_test_data']['relationship']['field field'], 'field_test_data_target_id');
+    $this->assertEquals($views_data['reverse__entity_test__field_test_data']['relationship']['field_name'], 'field_test_data');
+    $this->assertEquals($views_data['reverse__entity_test__field_test_data']['relationship']['entity_type'], 'entity_test');
+    $this->assertEquals($views_data['reverse__entity_test__field_test_data']['relationship']['join_extra'][0], ['field' => 'deleted', 'value' => 0, 'numeric' => TRUE]);
 
     // Check an actual test view.
     $view = Views::getView('test_entity_reference_entity_test_view');
@@ -127,17 +127,17 @@ public function testNoDataTableRelationship() {
     /** @var \Drupal\views\ResultRow $row */
     foreach ($view->result as $index => $row) {
       // Check that the actual ID of the entity is the expected one.
-      $this->assertEqual($row->id, $this->entities[$index]->id());
+      $this->assertEquals($row->id, $this->entities[$index]->id());
 
       // Also check that we have the correct result entity.
-      $this->assertEqual($row->_entity->id(), $this->entities[$index]->id());
+      $this->assertEquals($row->_entity->id(), $this->entities[$index]->id());
 
       // Test the forward relationship.
-      $this->assertEqual($row->entity_test_mul_property_data_entity_test__field_test_data_i, 1);
+      $this->assertEquals($row->entity_test_mul_property_data_entity_test__field_test_data_i, 1);
 
       // Test that the correct relationship entity is on the row.
-      $this->assertEqual($row->_relationship_entities['field_test_data']->id(), 1);
-      $this->assertEqual($row->_relationship_entities['field_test_data']->bundle(), 'entity_test_mul');
+      $this->assertEquals($row->_relationship_entities['field_test_data']->id(), 1);
+      $this->assertEquals($row->_relationship_entities['field_test_data']->bundle(), 'entity_test_mul');
     }
 
     // Check the backwards reference view.
@@ -145,15 +145,15 @@ public function testNoDataTableRelationship() {
     $this->executeView($view);
     /** @var \Drupal\views\ResultRow $row */
     foreach ($view->result as $index => $row) {
-      $this->assertEqual($row->id, 1);
-      $this->assertEqual($row->_entity->id(), 1);
+      $this->assertEquals($row->id, 1);
+      $this->assertEquals($row->_entity->id(), 1);
 
       // Test the backwards relationship.
-      $this->assertEqual($row->field_test_data_entity_test_mul_property_data_id, $this->entities[$index]->id());
+      $this->assertEquals($row->field_test_data_entity_test_mul_property_data_id, $this->entities[$index]->id());
 
       // Test that the correct relationship entity is on the row.
-      $this->assertEqual($row->_relationship_entities['reverse__entity_test__field_test_data']->id(), $this->entities[$index]->id());
-      $this->assertEqual($row->_relationship_entities['reverse__entity_test__field_test_data']->bundle(), 'entity_test');
+      $this->assertEquals($row->_relationship_entities['reverse__entity_test__field_test_data']->id(), $this->entities[$index]->id());
+      $this->assertEquals($row->_relationship_entities['reverse__entity_test__field_test_data']->bundle(), 'entity_test');
     }
   }
 
@@ -171,35 +171,35 @@ public function testDataTableRelationship() {
     $entity = EntityTestMul::create();
     $entity->field_data_test->target_id = $referenced_entity->id();
     $entity->save();
-    $this->assertEqual($entity->field_data_test[0]->entity->id(), $referenced_entity->id());
+    $this->assertEquals($entity->field_data_test[0]->entity->id(), $referenced_entity->id());
     $this->entities[] = $entity;
 
     $entity = EntityTestMul::create();
     $entity->field_data_test->target_id = $referenced_entity->id();
     $entity->save();
-    $this->assertEqual($entity->field_data_test[0]->entity->id(), $referenced_entity->id());
+    $this->assertEquals($entity->field_data_test[0]->entity->id(), $referenced_entity->id());
     $this->entities[] = $entity;
 
     Views::viewsData()->clear();
 
     // Check the generated views data.
     $views_data = Views::viewsData()->get('entity_test_mul__field_data_test');
-    $this->assertEqual($views_data['field_data_test']['relationship']['id'], 'standard');
-    $this->assertEqual($views_data['field_data_test']['relationship']['base'], 'entity_test');
-    $this->assertEqual($views_data['field_data_test']['relationship']['base field'], 'id');
-    $this->assertEqual($views_data['field_data_test']['relationship']['relationship field'], 'field_data_test_target_id');
-    $this->assertEqual($views_data['field_data_test']['relationship']['entity type'], 'entity_test');
+    $this->assertEquals($views_data['field_data_test']['relationship']['id'], 'standard');
+    $this->assertEquals($views_data['field_data_test']['relationship']['base'], 'entity_test');
+    $this->assertEquals($views_data['field_data_test']['relationship']['base field'], 'id');
+    $this->assertEquals($views_data['field_data_test']['relationship']['relationship field'], 'field_data_test_target_id');
+    $this->assertEquals($views_data['field_data_test']['relationship']['entity type'], 'entity_test');
 
     // Check the backwards reference.
     $views_data = Views::viewsData()->get('entity_test');
-    $this->assertEqual($views_data['reverse__entity_test_mul__field_data_test']['relationship']['id'], 'entity_reverse');
-    $this->assertEqual($views_data['reverse__entity_test_mul__field_data_test']['relationship']['base'], 'entity_test_mul_property_data');
-    $this->assertEqual($views_data['reverse__entity_test_mul__field_data_test']['relationship']['base field'], 'id');
-    $this->assertEqual($views_data['reverse__entity_test_mul__field_data_test']['relationship']['field table'], 'entity_test_mul__field_data_test');
-    $this->assertEqual($views_data['reverse__entity_test_mul__field_data_test']['relationship']['field field'], 'field_data_test_target_id');
-    $this->assertEqual($views_data['reverse__entity_test_mul__field_data_test']['relationship']['field_name'], 'field_data_test');
-    $this->assertEqual($views_data['reverse__entity_test_mul__field_data_test']['relationship']['entity_type'], 'entity_test_mul');
-    $this->assertEqual($views_data['reverse__entity_test_mul__field_data_test']['relationship']['join_extra'][0], ['field' => 'deleted', 'value' => 0, 'numeric' => TRUE]);
+    $this->assertEquals($views_data['reverse__entity_test_mul__field_data_test']['relationship']['id'], 'entity_reverse');
+    $this->assertEquals($views_data['reverse__entity_test_mul__field_data_test']['relationship']['base'], 'entity_test_mul_property_data');
+    $this->assertEquals($views_data['reverse__entity_test_mul__field_data_test']['relationship']['base field'], 'id');
+    $this->assertEquals($views_data['reverse__entity_test_mul__field_data_test']['relationship']['field table'], 'entity_test_mul__field_data_test');
+    $this->assertEquals($views_data['reverse__entity_test_mul__field_data_test']['relationship']['field field'], 'field_data_test_target_id');
+    $this->assertEquals($views_data['reverse__entity_test_mul__field_data_test']['relationship']['field_name'], 'field_data_test');
+    $this->assertEquals($views_data['reverse__entity_test_mul__field_data_test']['relationship']['entity_type'], 'entity_test_mul');
+    $this->assertEquals($views_data['reverse__entity_test_mul__field_data_test']['relationship']['join_extra'][0], ['field' => 'deleted', 'value' => 0, 'numeric' => TRUE]);
 
     // Check an actual test view.
     $view = Views::getView('test_entity_reference_entity_test_mul_view');
@@ -207,17 +207,17 @@ public function testDataTableRelationship() {
     /** @var \Drupal\views\ResultRow $row */
     foreach ($view->result as $index => $row) {
       // Check that the actual ID of the entity is the expected one.
-      $this->assertEqual($row->id, $this->entities[$index]->id());
+      $this->assertEquals($row->id, $this->entities[$index]->id());
 
       // Also check that we have the correct result entity.
-      $this->assertEqual($row->_entity->id(), $this->entities[$index]->id());
+      $this->assertEquals($row->_entity->id(), $this->entities[$index]->id());
 
       // Test the forward relationship.
-      $this->assertEqual($row->entity_test_entity_test_mul__field_data_test_id, 1);
+      $this->assertEquals($row->entity_test_entity_test_mul__field_data_test_id, 1);
 
       // Test that the correct relationship entity is on the row.
-      $this->assertEqual($row->_relationship_entities['field_data_test']->id(), 1);
-      $this->assertEqual($row->_relationship_entities['field_data_test']->bundle(), 'entity_test');
+      $this->assertEquals($row->_relationship_entities['field_data_test']->id(), 1);
+      $this->assertEquals($row->_relationship_entities['field_data_test']->bundle(), 'entity_test');
 
     }
 
@@ -226,15 +226,15 @@ public function testDataTableRelationship() {
     $this->executeView($view);
     /** @var \Drupal\views\ResultRow $row */
     foreach ($view->result as $index => $row) {
-      $this->assertEqual($row->id, 1);
-      $this->assertEqual($row->_entity->id(), 1);
+      $this->assertEquals($row->id, 1);
+      $this->assertEquals($row->_entity->id(), 1);
 
       // Test the backwards relationship.
-      $this->assertEqual($row->field_data_test_entity_test_id, $this->entities[$index]->id());
+      $this->assertEquals($row->field_data_test_entity_test_id, $this->entities[$index]->id());
 
       // Test that the correct relationship entity is on the row.
-      $this->assertEqual($row->_relationship_entities['reverse__entity_test_mul__field_data_test']->id(), $this->entities[$index]->id());
-      $this->assertEqual($row->_relationship_entities['reverse__entity_test_mul__field_data_test']->bundle(), 'entity_test_mul');
+      $this->assertEquals($row->_relationship_entities['reverse__entity_test_mul__field_data_test']->id(), $this->entities[$index]->id());
+      $this->assertEquals($row->_relationship_entities['reverse__entity_test_mul__field_data_test']->bundle(), 'entity_test_mul');
     }
   }
 
@@ -266,17 +266,17 @@ public function testDataTableRelationshipWithLongFieldName() {
     /** @var \Drupal\views\ResultRow $row */
     foreach ($view->result as $index => $row) {
       // Check that the actual ID of the entity is the expected one.
-      $this->assertEqual($row->id, $this->entities[$index]->id());
+      $this->assertEquals($row->id, $this->entities[$index]->id());
 
       // Also check that we have the correct result entity.
-      $this->assertEqual($row->_entity->id(), $this->entities[$index]->id());
+      $this->assertEquals($row->_entity->id(), $this->entities[$index]->id());
 
       // Test the forward relationship.
-      // $this->assertEqual($row->entity_test_entity_test_mul__field_data_test_id, 1);
+      // $this->assertEquals($row->entity_test_entity_test_mul__field_data_test_id, 1);
 
       // Test that the correct relationship entity is on the row.
-      $this->assertEqual($row->_relationship_entities['field_test_data_with_a_long_name']->id(), 1);
-      $this->assertEqual($row->_relationship_entities['field_test_data_with_a_long_name']->bundle(), 'entity_test');
+      $this->assertEquals($row->_relationship_entities['field_test_data_with_a_long_name']->id(), 1);
+      $this->assertEquals($row->_relationship_entities['field_test_data_with_a_long_name']->bundle(), 'entity_test');
 
     }
   }
@@ -330,7 +330,7 @@ public function testGroupByWithEmptyRelationships() {
     $this->assertNotEmpty($view->getStyle()->getField(2, 'name_2'));
     // Fourth result has no reference from EntityTestMul hence the output for
     // should be empty.
-    $this->assertEqual('', $view->getStyle()->getField(3, 'name_2'));
+    $this->assertEquals('', $view->getStyle()->getField(3, 'name_2'));
   }
 
 }
diff --git a/core/modules/field/tests/src/Kernel/FieldAttachOtherTest.php b/core/modules/field/tests/src/Kernel/FieldAttachOtherTest.php
index 05fdfae386..300da1bd6d 100644
--- a/core/modules/field/tests/src/Kernel/FieldAttachOtherTest.php
+++ b/core/modules/field/tests/src/Kernel/FieldAttachOtherTest.php
@@ -149,9 +149,9 @@ public function testEntityDisplayViewMultiple() {
     // Run buildMultiple(), and check that the entities come out as expected.
     $display->buildMultiple([$entity1, $entity2]);
     $item1 = $entity1->{$this->fieldTestData->field_name}[0];
-    $this->assertEqual($item1->additional_formatter_value, $item1->value + 1, 'Entity 1 ran through the prepareView() formatter method.');
+    $this->assertEquals($item1->additional_formatter_value, $item1->value + 1, 'Entity 1 ran through the prepareView() formatter method.');
     $item2 = $entity2->{$this->fieldTestData->field_name}[0];
-    $this->assertEqual($item2->additional_formatter_value, $item2->value + 1, 'Entity 2 ran through the prepareView() formatter method.');
+    $this->assertEquals($item2->additional_formatter_value, $item2->value + 1, 'Entity 2 ran through the prepareView() formatter method.');
   }
 
   /**
@@ -205,7 +205,7 @@ public function testEntityCache() {
     $controller->resetCache();
     $cached_entity = $controller->load($entity->id());
     $cache = \Drupal::cache('entity')->get($cid);
-    $this->assertEqual($cache->data, $cached_entity, 'Cached: correct cache entry on load');
+    $this->assertEquals($cache->data, $cached_entity, 'Cached: correct cache entry on load');
 
     // Update with different values, and check that the cache entry is wiped.
     $values = $this->_generateTestFieldValues($this->fieldTestData->field_storage_2->getCardinality());
@@ -217,7 +217,7 @@ public function testEntityCache() {
     $controller->resetCache();
     $cached_entity = $controller->load($entity->id());
     $cache = \Drupal::cache('entity')->get($cid);
-    $this->assertEqual($cache->data, $cached_entity, 'Cached: correct cache entry on load');
+    $this->assertEquals($cache->data, $cached_entity, 'Cached: correct cache entry on load');
 
     // Create a new revision, and check that the cache entry is wiped.
     $values = $this->_generateTestFieldValues($this->fieldTestData->field_storage_2->getCardinality());
@@ -230,7 +230,7 @@ public function testEntityCache() {
     $controller->resetCache();
     $cached_entity = $controller->load($entity->id());
     $cache = \Drupal::cache('entity')->get($cid);
-    $this->assertEqual($cache->data, $cached_entity, 'Cached: correct cache entry on load');
+    $this->assertEquals($cache->data, $cached_entity, 'Cached: correct cache entry on load');
 
     // Delete, and check that the cache entry is wiped.
     $entity->delete();
@@ -255,15 +255,15 @@ public function testEntityFormDisplayBuildForm() {
     $form_state = new FormState();
     $display->buildForm($entity, $form, $form_state);
 
-    $this->assertEqual($form[$this->fieldTestData->field_name]['widget']['#title'], $this->fieldTestData->field->getLabel(), "First field's form title is {$this->fieldTestData->field->getLabel()}");
-    $this->assertEqual($form[$this->fieldTestData->field_name_2]['widget']['#title'], $this->fieldTestData->field_2->getLabel(), "Second field's form title is {$this->fieldTestData->field_2->getLabel()}");
+    $this->assertEquals($form[$this->fieldTestData->field_name]['widget']['#title'], $this->fieldTestData->field->getLabel(), "First field's form title is {$this->fieldTestData->field->getLabel()}");
+    $this->assertEquals($form[$this->fieldTestData->field_name_2]['widget']['#title'], $this->fieldTestData->field_2->getLabel(), "Second field's form title is {$this->fieldTestData->field_2->getLabel()}");
     for ($delta = 0; $delta < $this->fieldTestData->field_storage->getCardinality(); $delta++) {
       // field_test_widget uses 'textfield'
-      $this->assertEqual($form[$this->fieldTestData->field_name]['widget'][$delta]['value']['#type'], 'textfield', "First field's form delta $delta widget is textfield");
+      $this->assertEquals($form[$this->fieldTestData->field_name]['widget'][$delta]['value']['#type'], 'textfield', "First field's form delta $delta widget is textfield");
     }
     for ($delta = 0; $delta < $this->fieldTestData->field_storage_2->getCardinality(); $delta++) {
       // field_test_widget uses 'textfield'
-      $this->assertEqual($form[$this->fieldTestData->field_name_2]['widget'][$delta]['value']['#type'], 'textfield', "Second field's form delta $delta widget is textfield");
+      $this->assertEquals($form[$this->fieldTestData->field_name_2]['widget'][$delta]['value']['#type'], 'textfield', "Second field's form delta $delta widget is textfield");
     }
 
     // Test generating widgets for all fields.
@@ -278,10 +278,10 @@ public function testEntityFormDisplayBuildForm() {
     $display->buildForm($entity, $form, $form_state);
 
     $this->assertFalse(isset($form[$this->fieldTestData->field_name]), 'The first field does not exist in the form');
-    $this->assertEqual($form[$this->fieldTestData->field_name_2]['widget']['#title'], $this->fieldTestData->field_2->getLabel(), "Second field's form title is {$this->fieldTestData->field_2->getLabel()}");
+    $this->assertEquals($form[$this->fieldTestData->field_name_2]['widget']['#title'], $this->fieldTestData->field_2->getLabel(), "Second field's form title is {$this->fieldTestData->field_2->getLabel()}");
     for ($delta = 0; $delta < $this->fieldTestData->field_storage_2->getCardinality(); $delta++) {
       // field_test_widget uses 'textfield'
-      $this->assertEqual($form[$this->fieldTestData->field_name_2]['widget'][$delta]['value']['#type'], 'textfield', "Second field's form delta $delta widget is textfield");
+      $this->assertEquals($form[$this->fieldTestData->field_name_2]['widget'][$delta]['value']['#type'], 'textfield', "Second field's form delta $delta widget is textfield");
     }
   }
 
diff --git a/core/modules/field/tests/src/Kernel/FieldAttachStorageTest.php b/core/modules/field/tests/src/Kernel/FieldAttachStorageTest.php
index 04c308315b..c4a66fca9a 100644
--- a/core/modules/field/tests/src/Kernel/FieldAttachStorageTest.php
+++ b/core/modules/field/tests/src/Kernel/FieldAttachStorageTest.php
@@ -52,20 +52,20 @@ public function testFieldAttachSaveLoad() {
     $entity = $storage->load($entity_id);
     // Confirm current revision loads the correct data.
     // Number of values per field loaded equals the field cardinality.
-    $this->assertEqual(count($entity->{$this->fieldTestData->field_name}), $cardinality, 'Current revision: expected number of values');
+    $this->assertEquals(count($entity->{$this->fieldTestData->field_name}), $cardinality, 'Current revision: expected number of values');
     for ($delta = 0; $delta < $cardinality; $delta++) {
       // The field value loaded matches the one inserted or updated.
-      $this->assertEqual($entity->{$this->fieldTestData->field_name}[$delta]->value, $values[$current_revision][$delta]['value'], format_string('Current revision: expected value %delta was found.', ['%delta' => $delta]));
+      $this->assertEquals($entity->{$this->fieldTestData->field_name}[$delta]->value, $values[$current_revision][$delta]['value'], format_string('Current revision: expected value %delta was found.', ['%delta' => $delta]));
     }
 
     // Confirm each revision loads the correct data.
     foreach (array_keys($values) as $revision_id) {
       $entity = $storage->loadRevision($revision_id);
       // Number of values per field loaded equals the field cardinality.
-      $this->assertEqual(count($entity->{$this->fieldTestData->field_name}), $cardinality, format_string('Revision %revision_id: expected number of values.', ['%revision_id' => $revision_id]));
+      $this->assertEquals(count($entity->{$this->fieldTestData->field_name}), $cardinality, format_string('Revision %revision_id: expected number of values.', ['%revision_id' => $revision_id]));
       for ($delta = 0; $delta < $cardinality; $delta++) {
         // The field value loaded matches the one inserted or updated.
-        $this->assertEqual($entity->{$this->fieldTestData->field_name}[$delta]->value, $values[$revision_id][$delta]['value'], format_string('Revision %revision_id: expected value %delta was found.', ['%revision_id' => $revision_id, '%delta' => $delta]));
+        $this->assertEquals($entity->{$this->fieldTestData->field_name}[$delta]->value, $values[$revision_id][$delta]['value'], format_string('Revision %revision_id: expected value %delta was found.', ['%revision_id' => $revision_id, '%delta' => $delta]));
       }
     }
   }
@@ -137,7 +137,7 @@ public function testFieldAttachLoadMultiple() {
           continue;
         }
         // The field value loaded matches the one inserted.
-        $this->assertEqual($entity->{$field_name}->value, $values[$index][$field_name], format_string('Entity %index: expected value was found.', ['%index' => $index]));
+        $this->assertEquals($entity->{$field_name}->value, $values[$index][$field_name], format_string('Entity %index: expected value was found.', ['%index' => $index]));
       }
     }
   }
@@ -168,7 +168,7 @@ public function testFieldAttachSaveEmptyData() {
     $values = $this->_generateTestFieldValues(1);
     $entity->{$this->fieldTestData->field_name} = $values;
     $entity = $this->entitySaveReload($entity);
-    $this->assertEqual($entity->{$this->fieldTestData->field_name}->getValue(), $values, 'Field data saved');
+    $this->assertEquals($entity->{$this->fieldTestData->field_name}->getValue(), $values, 'Field data saved');
 
     // Update: Field is NULL. Data should be wiped.
     $entity = clone($entity_init);
@@ -181,7 +181,7 @@ public function testFieldAttachSaveEmptyData() {
     $values = $this->_generateTestFieldValues(1);
     $entity->{$this->fieldTestData->field_name} = $values;
     $entity = $this->entitySaveReload($entity);
-    $this->assertEqual($entity->{$this->fieldTestData->field_name}->getValue(), $values, 'Field data saved');
+    $this->assertEquals($entity->{$this->fieldTestData->field_name}->getValue(), $values, 'Field data saved');
 
     // Update: Field is empty array. Data should be wiped.
     $entity = clone($entity_init);
@@ -206,7 +206,7 @@ public function testFieldAttachSaveEmptyDataDefaultValue() {
       ->getStorage($entity_type)
       ->create(['id' => 1, 'revision_id' => 1]);
     $default = field_test_default_value($entity_init, $this->fieldTestData->field);
-    $this->assertEqual($entity_init->{$this->fieldTestData->field_name}->getValue(), $default, 'Default field value correctly populated.');
+    $this->assertEquals($entity_init->{$this->fieldTestData->field_name}->getValue(), $default, 'Default field value correctly populated.');
 
     // Insert: Field is NULL.
     $entity = clone($entity_init);
@@ -220,7 +220,7 @@ public function testFieldAttachSaveEmptyDataDefaultValue() {
     $entity = $this->container->get('entity_type.manager')
       ->getStorage($entity_type)
       ->create(['type' => $entity_init->bundle(), $this->fieldTestData->field_name => $value]);
-    $this->assertEqual($entity->{$this->fieldTestData->field_name}->getValue(), $value, 'Prepopulated field value correctly maintained.');
+    $this->assertEquals($entity->{$this->fieldTestData->field_name}->getValue(), $value, 'Prepopulated field value correctly maintained.');
   }
 
   /**
@@ -256,7 +256,7 @@ public function testFieldAttachDelete() {
     // Confirm each revision loads
     foreach ($vids as $vid) {
       $revision = $controller->loadRevision($vid);
-      $this->assertEqual(count($revision->{$this->fieldTestData->field_name}), $cardinality, "The test entity revision $vid has $cardinality values.");
+      $this->assertEquals(count($revision->{$this->fieldTestData->field_name}), $cardinality, "The test entity revision $vid has $cardinality values.");
     }
 
     // Delete revision 1, confirm the other two still load.
@@ -265,13 +265,13 @@ public function testFieldAttachDelete() {
     foreach ([0, 2] as $key) {
       $vid = $vids[$key];
       $revision = $controller->loadRevision($vid);
-      $this->assertEqual(count($revision->{$this->fieldTestData->field_name}), $cardinality, "The test entity revision $vid has $cardinality values.");
+      $this->assertEquals(count($revision->{$this->fieldTestData->field_name}), $cardinality, "The test entity revision $vid has $cardinality values.");
     }
 
     // Confirm the current revision still loads
     $controller->resetCache();
     $current = $controller->load($entity->id());
-    $this->assertEqual(count($current->{$this->fieldTestData->field_name}), $cardinality, "The test entity current revision has $cardinality values.");
+    $this->assertEquals(count($current->{$this->fieldTestData->field_name}), $cardinality, "The test entity current revision has $cardinality values.");
 
     // Delete all field data, confirm nothing loads
     $entity->delete();
@@ -308,7 +308,7 @@ public function testEntityCreateBundle() {
 
     // Verify the field data is present on load.
     $entity = $this->entitySaveReload($entity);
-    $this->assertEqual(count($entity->{$this->fieldTestData->field_name}), $cardinality, "Data is retrieved for the new bundle");
+    $this->assertEquals(count($entity->{$this->fieldTestData->field_name}), $cardinality, "Data is retrieved for the new bundle");
   }
 
   /**
@@ -355,8 +355,8 @@ public function testEntityDeleteBundle() {
     $entity = $this->entitySaveReload($entity);
 
     // Verify the fields are present on load
-    $this->assertEqual(count($entity->{$this->fieldTestData->field_name}), 4, 'First field got loaded');
-    $this->assertEqual(count($entity->{$field_name}), 1, 'Second field got loaded');
+    $this->assertEquals(count($entity->{$this->fieldTestData->field_name}), 4, 'First field got loaded');
+    $this->assertEquals(count($entity->{$field_name}), 1, 'Second field got loaded');
 
     // Delete the bundle.
     entity_test_delete_bundle($this->fieldTestData->field->getTargetBundle(), $entity_type);
diff --git a/core/modules/field/tests/src/Kernel/FieldCrudTest.php b/core/modules/field/tests/src/Kernel/FieldCrudTest.php
index 6407be7520..349ead0460 100644
--- a/core/modules/field/tests/src/Kernel/FieldCrudTest.php
+++ b/core/modules/field/tests/src/Kernel/FieldCrudTest.php
@@ -88,15 +88,15 @@ public function testCreateField() {
     unset($config['settings']['config_data_from_field_setting']);
 
     // Check that default values are set.
-    $this->assertEqual($config['required'], FALSE, 'Required defaults to false.');
+    $this->assertEquals($config['required'], FALSE, 'Required defaults to false.');
     $this->assertIdentical($config['label'], $this->fieldDefinition['field_name'], 'Label defaults to field name.');
     $this->assertIdentical($config['description'], '', 'Description defaults to empty string.');
 
     // Check that default settings are set.
-    $this->assertEqual($config['settings'], $field_type_manager->getDefaultFieldSettings($this->fieldStorageDefinition['type']), 'Default field settings have been written.');
+    $this->assertEquals($config['settings'], $field_type_manager->getDefaultFieldSettings($this->fieldStorageDefinition['type']), 'Default field settings have been written.');
 
     // Check that the denormalized 'field_type' was properly written.
-    $this->assertEqual($config['field_type'], $this->fieldStorageDefinition['type']);
+    $this->assertEquals($config['field_type'], $this->fieldStorageDefinition['type']);
 
     // Guarantee that the field/bundle combination is unique.
     try {
@@ -261,9 +261,9 @@ public function testUpdateField() {
     $field->save();
 
     $field_new = FieldConfig::load('entity_test.' . $this->fieldDefinition['bundle'] . '.' . $this->fieldDefinition['field_name']);
-    $this->assertEqual($field->isRequired(), $field_new->isRequired(), '"required" change is saved');
-    $this->assertEqual($field->getLabel(), $field_new->getLabel(), '"label" change is saved');
-    $this->assertEqual($field->getDescription(), $field_new->getDescription(), '"description" change is saved');
+    $this->assertEquals($field->isRequired(), $field_new->isRequired(), '"required" change is saved');
+    $this->assertEquals($field->getLabel(), $field_new->getLabel(), '"label" change is saved');
+    $this->assertEquals($field->getDescription(), $field_new->getDescription(), '"description" change is saved');
 
     // TODO: test failures.
   }
diff --git a/core/modules/field/tests/src/Kernel/FieldDataCountTest.php b/core/modules/field/tests/src/Kernel/FieldDataCountTest.php
index 69b84a9c1d..62c99f99e5 100644
--- a/core/modules/field/tests/src/Kernel/FieldDataCountTest.php
+++ b/core/modules/field/tests/src/Kernel/FieldDataCountTest.php
@@ -92,20 +92,20 @@ public function testEntityCountAndHasData() {
         ->countQuery()
         ->execute()
         ->fetchField();
-      $this->assertEqual($result, 24, 'The field table has 24 rows.');
+      $this->assertEquals($result, 24, 'The field table has 24 rows.');
     }
 
     $this->assertIdentical($field_storage->hasdata(), TRUE, 'There are entities with field data.');
-    $this->assertEqual($this->storage->countFieldData($field_storage), 12, 'There are 12 entities with field data.');
+    $this->assertEquals($this->storage->countFieldData($field_storage), 12, 'There are 12 entities with field data.');
 
     // Ensure the methods work on deleted fields.
     $field_storage->delete();
     $this->assertIdentical($field_storage->hasdata(), TRUE, 'There are entities with deleted field data.');
-    $this->assertEqual($this->storage->countFieldData($field_storage), 12, 'There are 12 entities with deleted field data.');
+    $this->assertEquals($this->storage->countFieldData($field_storage), 12, 'There are 12 entities with deleted field data.');
 
     field_purge_batch(6);
     $this->assertIdentical($field_storage->hasdata(), TRUE, 'There are entities with deleted field data.');
-    $this->assertEqual($this->storage->countFieldData($field_storage), 6, 'There are 6 entities with deleted field data.');
+    $this->assertEquals($this->storage->countFieldData($field_storage), 6, 'There are 6 entities with deleted field data.');
 
     $entity_type = 'entity_test_rev';
     $this->createFieldWithStorage('_2', $entity_type);
@@ -137,7 +137,7 @@ public function testEntityCountAndHasData() {
 
     $storage = $this->container->get('entity.manager')->getStorage($entity_type);
     $entity = $storage->loadRevision($first_revision);
-    $this->assertEqual(count($entity->{$this->fieldTestData->field_name_2}), $cardinality, format_string('Revision %revision_id: expected number of values.', ['%revision_id' => $first_revision]));
+    $this->assertEquals(count($entity->{$this->fieldTestData->field_name_2}), $cardinality, format_string('Revision %revision_id: expected number of values.', ['%revision_id' => $first_revision]));
   }
 
   /**
diff --git a/core/modules/field/tests/src/Kernel/FieldImportChangeTest.php b/core/modules/field/tests/src/Kernel/FieldImportChangeTest.php
index 9b8391961e..f976fc0065 100644
--- a/core/modules/field/tests/src/Kernel/FieldImportChangeTest.php
+++ b/core/modules/field/tests/src/Kernel/FieldImportChangeTest.php
@@ -46,7 +46,7 @@ public function testImportChange() {
 
     // Check that the updated config was correctly imported.
     $field = FieldConfig::load($field_id);
-    $this->assertEqual($field->getLabel(), $new_label, 'field label updated');
+    $this->assertEquals($field->getLabel(), $new_label, 'field label updated');
   }
 
 }
diff --git a/core/modules/field/tests/src/Kernel/FieldImportCreateTest.php b/core/modules/field/tests/src/Kernel/FieldImportCreateTest.php
index 5e155824f9..1401c03dff 100644
--- a/core/modules/field/tests/src/Kernel/FieldImportCreateTest.php
+++ b/core/modules/field/tests/src/Kernel/FieldImportCreateTest.php
@@ -56,14 +56,14 @@ public function testImportCreateDefault() {
       ->condition('entity_type', 'entity_test')
       ->condition('bundle', 'entity_test')
       ->execute();
-    $this->assertEqual(count($ids), 2);
+    $this->assertEquals(count($ids), 2);
     $this->assertTrue(isset($ids['entity_test.entity_test.field_test_import']));
     $this->assertTrue(isset($ids['entity_test.entity_test.field_test_import_2']));
     $ids = \Drupal::entityQuery('field_config')
       ->condition('entity_type', 'entity_test')
       ->condition('bundle', 'test_bundle')
       ->execute();
-    $this->assertEqual(count($ids), 1);
+    $this->assertEquals(count($ids), 1);
     $this->assertTrue(isset($ids['entity_test.test_bundle.field_test_import_2']));
   }
 
diff --git a/core/modules/field/tests/src/Kernel/FieldImportDeleteTest.php b/core/modules/field/tests/src/Kernel/FieldImportDeleteTest.php
index f3408a52a0..2c35789863 100644
--- a/core/modules/field/tests/src/Kernel/FieldImportDeleteTest.php
+++ b/core/modules/field/tests/src/Kernel/FieldImportDeleteTest.php
@@ -76,7 +76,7 @@ public function testImportDelete() {
     $this->assertTrue($sync->delete($field_config_name_2b), SafeMarkup::format('Deleted field: @field', ['@field' => $field_config_name_2b]));
 
     $deletes = $this->configImporter()->getUnprocessedConfiguration('delete');
-    $this->assertEqual(count($deletes), 5, 'Importing configuration will delete 3 fields and 2 field storages.');
+    $this->assertEquals(count($deletes), 5, 'Importing configuration will delete 3 fields and 2 field storages.');
 
     // Import the content of the sync directory.
     $this->configImporter()->import();
diff --git a/core/modules/field/tests/src/Kernel/FieldKernelTestBase.php b/core/modules/field/tests/src/Kernel/FieldKernelTestBase.php
index 96e77cf159..799212f146 100644
--- a/core/modules/field/tests/src/Kernel/FieldKernelTestBase.php
+++ b/core/modules/field/tests/src/Kernel/FieldKernelTestBase.php
@@ -195,9 +195,9 @@ protected function assertFieldValues(EntityInterface $entity, $field_name, $expe
     // Filter out empty values so that they don't mess with the assertions.
     $field->filterEmptyItems();
     $values = $field->getValue();
-    $this->assertEqual(count($values), count($expected_values), 'Expected number of values were saved.');
+    $this->assertEquals(count($values), count($expected_values), 'Expected number of values were saved.');
     foreach ($expected_values as $key => $value) {
-      $this->assertEqual($values[$key][$column], $value, format_string('Value @value was saved correctly.', ['@value' => $value]));
+      $this->assertEquals($values[$key][$column], $value, format_string('Value @value was saved correctly.', ['@value' => $value]));
     }
   }
 
diff --git a/core/modules/field/tests/src/Kernel/FieldStorageCrudTest.php b/core/modules/field/tests/src/Kernel/FieldStorageCrudTest.php
index a24bedb640..b1b53db9e9 100644
--- a/core/modules/field/tests/src/Kernel/FieldStorageCrudTest.php
+++ b/core/modules/field/tests/src/Kernel/FieldStorageCrudTest.php
@@ -63,17 +63,17 @@ public function testCreate() {
     unset($field_storage_config['settings']['config_data_from_storage_setting']);
 
     // Ensure that basic properties are preserved.
-    $this->assertEqual($field_storage_config['field_name'], $field_storage_definition['field_name'], 'The field name is properly saved.');
-    $this->assertEqual($field_storage_config['entity_type'], $field_storage_definition['entity_type'], 'The field entity type is properly saved.');
-    $this->assertEqual($field_storage_config['id'], $field_storage_definition['entity_type'] . '.' . $field_storage_definition['field_name'], 'The field id is properly saved.');
-    $this->assertEqual($field_storage_config['type'], $field_storage_definition['type'], 'The field type is properly saved.');
+    $this->assertEquals($field_storage_config['field_name'], $field_storage_definition['field_name'], 'The field name is properly saved.');
+    $this->assertEquals($field_storage_config['entity_type'], $field_storage_definition['entity_type'], 'The field entity type is properly saved.');
+    $this->assertEquals($field_storage_config['id'], $field_storage_definition['entity_type'] . '.' . $field_storage_definition['field_name'], 'The field id is properly saved.');
+    $this->assertEquals($field_storage_config['type'], $field_storage_definition['type'], 'The field type is properly saved.');
 
     // Ensure that cardinality defaults to 1.
-    $this->assertEqual($field_storage_config['cardinality'], 1, 'Cardinality defaults to 1.');
+    $this->assertEquals($field_storage_config['cardinality'], 1, 'Cardinality defaults to 1.');
 
     // Ensure that default settings are present.
     $field_type_manager = \Drupal::service('plugin.manager.field.field_type');
-    $this->assertEqual($field_storage_config['settings'], $field_type_manager->getDefaultStorageSettings($field_storage_definition['type']), 'Default storage settings have been written.');
+    $this->assertEquals($field_storage_config['settings'], $field_type_manager->getDefaultStorageSettings($field_storage_definition['type']), 'Default storage settings have been written.');
 
     // Guarantee that the name is unique.
     try {
@@ -196,7 +196,7 @@ public function testCreateWithExplicitSchema() {
       'type' => 'test_field',
       'schema' => $schema,
     ]);
-    $this->assertEqual($field_storage->getSchema(), $schema);
+    $this->assertEquals($field_storage->getSchema(), $schema);
   }
 
   /**
@@ -245,7 +245,7 @@ public function testIndexes() {
     $field_storage = FieldStorageConfig::load($field_storage->id());
     $schema = $field_storage->getSchema();
     $expected_indexes = ['value' => ['value']];
-    $this->assertEqual($schema['indexes'], $expected_indexes, 'Field type indexes saved by default');
+    $this->assertEquals($schema['indexes'], $expected_indexes, 'Field type indexes saved by default');
 
     // Check that indexes specified by the field definition override the field
     // type indexes.
@@ -261,7 +261,7 @@ public function testIndexes() {
     $field_storage = FieldStorageConfig::load($field_storage->id());
     $schema = $field_storage->getSchema();
     $expected_indexes = ['value' => []];
-    $this->assertEqual($schema['indexes'], $expected_indexes, 'Field definition indexes override field type indexes');
+    $this->assertEquals($schema['indexes'], $expected_indexes, 'Field definition indexes override field type indexes');
 
     // Check that indexes specified by the field definition add to the field
     // type indexes.
@@ -278,7 +278,7 @@ public function testIndexes() {
     $field_storage = FieldStorageConfig::load($id);
     $schema = $field_storage->getSchema();
     $expected_indexes = ['value' => ['value'], 'value_2' => ['value']];
-    $this->assertEqual($schema['indexes'], $expected_indexes, 'Field definition indexes are merged with field type indexes');
+    $this->assertEquals($schema['indexes'], $expected_indexes, 'Field definition indexes are merged with field type indexes');
   }
 
   /**
@@ -359,7 +359,7 @@ public function testDeleteNoData() {
     // Verify the field is present on load
     $this->assertIdentical(count($entity->{$field_storage->getName()}), count($values), "Data in previously deleted field saves and loads correctly");
     foreach ($values as $delta => $value) {
-      $this->assertEqual($entity->{$field_storage->getName()}[$delta]->value, $values[$delta]['value'], "Data in previously deleted field saves and loads correctly");
+      $this->assertEquals($entity->{$field_storage->getName()}[$delta]->value, $values[$delta]['value'], "Data in previously deleted field saves and loads correctly");
     }
   }
 
@@ -412,10 +412,10 @@ public function testUpdate() {
       }
       // Load back and assert there are $cardinality number of values.
       $entity = $this->entitySaveReload($entity);
-      $this->assertEqual(count($entity->field_update), $field_storage->getCardinality());
+      $this->assertEquals(count($entity->field_update), $field_storage->getCardinality());
       // Now check the values themselves.
       for ($delta = 0; $delta < $cardinality; $delta++) {
-        $this->assertEqual($entity->field_update[$delta]->value, $delta + 1);
+        $this->assertEquals($entity->field_update[$delta]->value, $delta + 1);
       }
       // Increase $cardinality and set the field cardinality to the new value.
       $field_storage->setCardinality(++$cardinality);
diff --git a/core/modules/field/tests/src/Kernel/FieldTypePluginManagerTest.php b/core/modules/field/tests/src/Kernel/FieldTypePluginManagerTest.php
index 32b2964809..6f1d4b39e8 100644
--- a/core/modules/field/tests/src/Kernel/FieldTypePluginManagerTest.php
+++ b/core/modules/field/tests/src/Kernel/FieldTypePluginManagerTest.php
@@ -49,7 +49,7 @@ public function testCreateInstance() {
       $instance = $field_type_manager->createInstance($type, $configuration);
 
       $this->assertTrue($instance instanceof $class, SafeMarkup::format('Created a @class instance', ['@class' => $class]));
-      $this->assertEqual($field_name, $instance->getName(), SafeMarkup::format('Instance name is @name', ['@name' => $field_name]));
+      $this->assertEquals($field_name, $instance->getName(), SafeMarkup::format('Instance name is @name', ['@name' => $field_name]));
     }
   }
 
@@ -80,9 +80,9 @@ public function testCreateInstanceWithConfig() {
     $instance = $field_type_manager->createInstance($type, $configuration);
 
     $this->assertTrue($instance instanceof $class, SafeMarkup::format('Created a @class instance', ['@class' => $class]));
-    $this->assertEqual($field_name, $instance->getName(), SafeMarkup::format('Instance name is @name', ['@name' => $field_name]));
-    $this->assertEqual($instance->getFieldDefinition()->getLabel(), 'Jenny', 'Instance label is Jenny');
-    $this->assertEqual($instance->getFieldDefinition()->getDefaultValue($entity), [['value' => 8675309]], 'Instance default_value is 8675309');
+    $this->assertEquals($field_name, $instance->getName(), SafeMarkup::format('Instance name is @name', ['@name' => $field_name]));
+    $this->assertEquals($instance->getFieldDefinition()->getLabel(), 'Jenny', 'Instance label is Jenny');
+    $this->assertEquals($instance->getFieldDefinition()->getDefaultValue($entity), [['value' => 8675309]], 'Instance default_value is 8675309');
   }
 
   /**
diff --git a/core/modules/field/tests/src/Kernel/FieldValidationTest.php b/core/modules/field/tests/src/Kernel/FieldValidationTest.php
index 92d33972f6..3a89083b50 100644
--- a/core/modules/field/tests/src/Kernel/FieldValidationTest.php
+++ b/core/modules/field/tests/src/Kernel/FieldValidationTest.php
@@ -54,9 +54,9 @@ public function testCardinalityConstraint() {
     $violations = $entity->{$this->fieldTestData->field_name}->validate();
 
     // Check that the expected constraint violations are reported.
-    $this->assertEqual(count($violations), 1);
-    $this->assertEqual($violations[0]->getPropertyPath(), '');
-    $this->assertEqual($violations[0]->getMessage(), t('%name: this field cannot hold more than @count values.', ['%name' => $this->fieldTestData->field->getLabel(), '@count' => $cardinality]));
+    $this->assertEquals(count($violations), 1);
+    $this->assertEquals($violations[0]->getPropertyPath(), '');
+    $this->assertEquals($violations[0]->getMessage(), t('%name: this field cannot hold more than @count values.', ['%name' => $this->fieldTestData->field->getLabel(), '@count' => $cardinality]));
   }
 
   /**
@@ -91,7 +91,7 @@ public function testFieldConstraints() {
     foreach ($violations as $violation) {
       $violations_by_path[$violation->getPropertyPath()][] = $violation->getMessage();
     }
-    $this->assertEqual($violations_by_path, $expected_violations);
+    $this->assertEquals($violations_by_path, $expected_violations);
   }
 
 }
diff --git a/core/modules/field/tests/src/Kernel/FormatterPluginManagerTest.php b/core/modules/field/tests/src/Kernel/FormatterPluginManagerTest.php
index 0b07e3ad9b..67a70d7b36 100644
--- a/core/modules/field/tests/src/Kernel/FormatterPluginManagerTest.php
+++ b/core/modules/field/tests/src/Kernel/FormatterPluginManagerTest.php
@@ -33,7 +33,7 @@ public function testNotApplicableFallback() {
     ];
 
     $instance = $formatter_plugin_manager->getInstance($formatter_options);
-    $this->assertEqual($instance->getPluginId(), 'field_test_applicable');
+    $this->assertEquals($instance->getPluginId(), 'field_test_applicable');
 
     // Now set name to something that makes isApplicable() return FALSE.
     $base_field_definition->setName('deny_applicable');
@@ -41,7 +41,7 @@ public function testNotApplicableFallback() {
 
     // Instance should be default widget.
     $this->assertNotEqual($instance->getPluginId(), 'field_test_applicable');
-    $this->assertEqual($instance->getPluginId(), 'field_test_default');
+    $this->assertEquals($instance->getPluginId(), 'field_test_default');
   }
 
 }
diff --git a/core/modules/field/tests/src/Kernel/Number/NumberItemTest.php b/core/modules/field/tests/src/Kernel/Number/NumberItemTest.php
index ba47d91307..33cea3e353 100644
--- a/core/modules/field/tests/src/Kernel/Number/NumberItemTest.php
+++ b/core/modules/field/tests/src/Kernel/Number/NumberItemTest.php
@@ -64,34 +64,34 @@ public function testNumberItem() {
     $entity = EntityTest::load($id);
     $this->assertTrue($entity->field_integer instanceof FieldItemListInterface, 'Field implements interface.');
     $this->assertTrue($entity->field_integer[0] instanceof FieldItemInterface, 'Field item implements interface.');
-    $this->assertEqual($entity->field_integer->value, $integer);
-    $this->assertEqual($entity->field_integer[0]->value, $integer);
+    $this->assertEquals($entity->field_integer->value, $integer);
+    $this->assertEquals($entity->field_integer[0]->value, $integer);
     $this->assertTrue($entity->field_float instanceof FieldItemListInterface, 'Field implements interface.');
     $this->assertTrue($entity->field_float[0] instanceof FieldItemInterface, 'Field item implements interface.');
-    $this->assertEqual($entity->field_float->value, $float);
-    $this->assertEqual($entity->field_float[0]->value, $float);
+    $this->assertEquals($entity->field_float->value, $float);
+    $this->assertEquals($entity->field_float[0]->value, $float);
     $this->assertTrue($entity->field_decimal instanceof FieldItemListInterface, 'Field implements interface.');
     $this->assertTrue($entity->field_decimal[0] instanceof FieldItemInterface, 'Field item implements interface.');
-    $this->assertEqual($entity->field_decimal->value, $decimal);
-    $this->assertEqual($entity->field_decimal[0]->value, $decimal);
+    $this->assertEquals($entity->field_decimal->value, $decimal);
+    $this->assertEquals($entity->field_decimal[0]->value, $decimal);
 
     // Verify changing the number value.
     $new_integer = rand(11, 20);
     $new_float = rand(1001, 2000) / 100;
     $new_decimal = '18.2';
     $entity->field_integer->value = $new_integer;
-    $this->assertEqual($entity->field_integer->value, $new_integer);
+    $this->assertEquals($entity->field_integer->value, $new_integer);
     $entity->field_float->value = $new_float;
-    $this->assertEqual($entity->field_float->value, $new_float);
+    $this->assertEquals($entity->field_float->value, $new_float);
     $entity->field_decimal->value = $new_decimal;
-    $this->assertEqual($entity->field_decimal->value, $new_decimal);
+    $this->assertEquals($entity->field_decimal->value, $new_decimal);
 
     // Read changed entity and assert changed values.
     $entity->save();
     $entity = EntityTest::load($id);
-    $this->assertEqual($entity->field_integer->value, $new_integer);
-    $this->assertEqual($entity->field_float->value, $new_float);
-    $this->assertEqual($entity->field_decimal->value, $new_decimal);
+    $this->assertEquals($entity->field_integer->value, $new_integer);
+    $this->assertEquals($entity->field_float->value, $new_float);
+    $this->assertEquals($entity->field_decimal->value, $new_decimal);
 
     // Test sample item generation.
     $entity = EntityTest::create();
diff --git a/core/modules/field/tests/src/Kernel/ShapeItemTest.php b/core/modules/field/tests/src/Kernel/ShapeItemTest.php
index 80ab04f3a9..5670a57220 100644
--- a/core/modules/field/tests/src/Kernel/ShapeItemTest.php
+++ b/core/modules/field/tests/src/Kernel/ShapeItemTest.php
@@ -63,24 +63,24 @@ public function testShapeItem() {
     $entity = EntityTest::load($id);
     $this->assertTrue($entity->{$this->fieldName} instanceof FieldItemListInterface, 'Field implements interface.');
     $this->assertTrue($entity->{$this->fieldName}[0] instanceof FieldItemInterface, 'Field item implements interface.');
-    $this->assertEqual($entity->{$this->fieldName}->shape, $shape);
-    $this->assertEqual($entity->{$this->fieldName}->color, $color);
-    $this->assertEqual($entity->{$this->fieldName}[0]->shape, $shape);
-    $this->assertEqual($entity->{$this->fieldName}[0]->color, $color);
+    $this->assertEquals($entity->{$this->fieldName}->shape, $shape);
+    $this->assertEquals($entity->{$this->fieldName}->color, $color);
+    $this->assertEquals($entity->{$this->fieldName}[0]->shape, $shape);
+    $this->assertEquals($entity->{$this->fieldName}[0]->color, $color);
 
     // Verify changing the field value.
     $new_shape = 'circle';
     $new_color = 'red';
     $entity->{$this->fieldName}->shape = $new_shape;
     $entity->{$this->fieldName}->color = $new_color;
-    $this->assertEqual($entity->{$this->fieldName}->shape, $new_shape);
-    $this->assertEqual($entity->{$this->fieldName}->color, $new_color);
+    $this->assertEquals($entity->{$this->fieldName}->shape, $new_shape);
+    $this->assertEquals($entity->{$this->fieldName}->color, $new_color);
 
     // Read changed entity and assert changed values.
     $entity->save();
     $entity = EntityTest::load($id);
-    $this->assertEqual($entity->{$this->fieldName}->shape, $new_shape);
-    $this->assertEqual($entity->{$this->fieldName}->color, $new_color);
+    $this->assertEquals($entity->{$this->fieldName}->shape, $new_shape);
+    $this->assertEquals($entity->{$this->fieldName}->color, $new_color);
   }
 
 }
diff --git a/core/modules/field/tests/src/Kernel/TestItemTest.php b/core/modules/field/tests/src/Kernel/TestItemTest.php
index 73a99486b6..1f17fcb372 100644
--- a/core/modules/field/tests/src/Kernel/TestItemTest.php
+++ b/core/modules/field/tests/src/Kernel/TestItemTest.php
@@ -62,18 +62,18 @@ public function testTestItem() {
     $entity = EntityTest::load($id);
     $this->assertTrue($entity->{$this->fieldName} instanceof FieldItemListInterface, 'Field implements interface.');
     $this->assertTrue($entity->{$this->fieldName}[0] instanceof FieldItemInterface, 'Field item implements interface.');
-    $this->assertEqual($entity->{$this->fieldName}->value, $value);
-    $this->assertEqual($entity->{$this->fieldName}[0]->value, $value);
+    $this->assertEquals($entity->{$this->fieldName}->value, $value);
+    $this->assertEquals($entity->{$this->fieldName}[0]->value, $value);
 
     // Verify changing the field value.
     $new_value = rand(1, 10);
     $entity->field_test->value = $new_value;
-    $this->assertEqual($entity->{$this->fieldName}->value, $new_value);
+    $this->assertEquals($entity->{$this->fieldName}->value, $new_value);
 
     // Read changed entity and assert changed values.
     $entity->save();
     $entity = EntityTest::load($id);
-    $this->assertEqual($entity->{$this->fieldName}->value, $new_value);
+    $this->assertEquals($entity->{$this->fieldName}->value, $new_value);
 
     // Test the schema for this field type.
     $expected_schema = [
@@ -90,7 +90,7 @@ public function testTestItem() {
       'foreign keys' => [],
     ];
     $field_schema = BaseFieldDefinition::create('test_field')->getSchema();
-    $this->assertEqual($field_schema, $expected_schema);
+    $this->assertEquals($field_schema, $expected_schema);
   }
 
 }
diff --git a/core/modules/field/tests/src/Kernel/TestItemWithDependenciesTest.php b/core/modules/field/tests/src/Kernel/TestItemWithDependenciesTest.php
index d1a269a6a2..0d2da29503 100644
--- a/core/modules/field/tests/src/Kernel/TestItemWithDependenciesTest.php
+++ b/core/modules/field/tests/src/Kernel/TestItemWithDependenciesTest.php
@@ -45,7 +45,7 @@ public function testTestItemWithDepenencies() {
 
     // Validate that the field configuration entity has the expected
     // dependencies.
-    $this->assertEqual([
+    $this->assertEquals([
       'content' => ['node:article:uuid'],
       'config' => ['field.storage.entity_test.field_test'],
       'module' => ['entity_test', 'field_test', 'test_module']
diff --git a/core/modules/field/tests/src/Kernel/TranslationTest.php b/core/modules/field/tests/src/Kernel/TranslationTest.php
index 124fd94da0..e184ed9657 100644
--- a/core/modules/field/tests/src/Kernel/TranslationTest.php
+++ b/core/modules/field/tests/src/Kernel/TranslationTest.php
@@ -168,12 +168,12 @@ public function testTranslatableFieldSaveLoad() {
 
     $field_langcodes = array_keys($entity->getTranslationLanguages());
     sort($field_langcodes);
-    $this->assertEqual($translation_langcodes, $field_langcodes, 'Missing translations did not get a default value.');
+    $this->assertEquals($translation_langcodes, $field_langcodes, 'Missing translations did not get a default value.');
 
     // @todo Test every translation once the Entity Translation API allows for
     //   multilingual defaults.
     $langcode = $entity->language()->getId();
-    $this->assertEqual($entity->getTranslation($langcode)->{$field_name_default}->getValue(), $field->getDefaultValueLiteral(), format_string('Default value correctly populated for language %language.', ['%language' => $langcode]));
+    $this->assertEquals($entity->getTranslation($langcode)->{$field_name_default}->getValue(), $field->getDefaultValueLiteral(), format_string('Default value correctly populated for language %language.', ['%language' => $langcode]));
 
     // Check that explicit empty values are not overridden with default values.
     foreach ([NULL, []] as $empty_items) {
diff --git a/core/modules/field/tests/src/Kernel/WidgetPluginManagerTest.php b/core/modules/field/tests/src/Kernel/WidgetPluginManagerTest.php
index 4c92452054..23f9c1f166 100644
--- a/core/modules/field/tests/src/Kernel/WidgetPluginManagerTest.php
+++ b/core/modules/field/tests/src/Kernel/WidgetPluginManagerTest.php
@@ -43,7 +43,7 @@ public function testNotApplicableFallback() {
     ];
 
     $instance = $widget_plugin_manager->getInstance($widget_options);
-    $this->assertEqual($instance->getPluginId(), 'test_field_widget_multiple');
+    $this->assertEquals($instance->getPluginId(), 'test_field_widget_multiple');
 
     // Now do the same but with machine name field_onewidgetfield, because that
     // makes isApplicable() return FALSE.
@@ -52,7 +52,7 @@ public function testNotApplicableFallback() {
 
     // Instance should be default widget.
     $this->assertNotEqual($instance->getPluginId(), 'test_field_widget_multiple');
-    $this->assertEqual($instance->getPluginId(), 'test_field_widget');
+    $this->assertEquals($instance->getPluginId(), 'test_field_widget');
   }
 
 }
diff --git a/core/modules/field_ui/src/Tests/ManageDisplayTest.php b/core/modules/field_ui/src/Tests/ManageDisplayTest.php
index 688b9e9e84..89521eb16f 100644
--- a/core/modules/field_ui/src/Tests/ManageDisplayTest.php
+++ b/core/modules/field_ui/src/Tests/ManageDisplayTest.php
@@ -97,7 +97,7 @@ public function testFormatterUI() {
       'field_test_with_prepare_view',
       'field_test_applicable',
     ];
-    $this->assertEqual($options, $expected_options, 'The expected formatter ordering is respected.');
+    $this->assertEquals($options, $expected_options, 'The expected formatter ordering is respected.');
 
     // Ensure that fields can be hidden directly by changing the region.
     $this->drupalGet($manage_display);
@@ -135,8 +135,8 @@ public function testFormatterUI() {
     $display_options = $display->getComponent('field_test');
     $current_format = $display_options['type'];
     $current_setting_value = $display_options['settings'][$setting_name];
-    $this->assertEqual($current_format, $format, 'The formatter was updated.');
-    $this->assertEqual($current_setting_value, $setting_value, 'The setting was updated.');
+    $this->assertEquals($current_format, $format, 'The formatter was updated.');
+    $this->assertEquals($current_setting_value, $setting_value, 'The setting was updated.');
 
     // Assert that hook_field_formatter_settings_summary_alter() is called.
     $this->assertText('field_test_field_formatter_settings_summary_alter');
@@ -160,7 +160,7 @@ public function testFormatterUI() {
     $storage = $this->container->get('entity_type.manager')->getStorage('entity_view_display');
     $storage->resetCache([$id]);
     $display = $storage->load($id);
-    $this->assertEqual($display->getRenderer('field_test')->getThirdPartySetting('field_third_party_test', 'field_test_field_formatter_third_party_settings_form'), 'foo');
+    $this->assertEquals($display->getRenderer('field_test')->getThirdPartySetting('field_third_party_test', 'field_test_field_formatter_third_party_settings_form'), 'foo');
     $this->assertTrue(in_array('field_third_party_test', $display->calculateDependencies()->getDependencies()['module']), 'The display has a dependency on field_third_party_test module.');
 
     // Confirm that the third party settings are not updated on the settings form.
@@ -254,7 +254,7 @@ public function testWidgetUI() {
       'test_field_widget',
       'test_field_widget_multiple',
     ];
-    $this->assertEqual($options, $expected_options, 'The expected widget ordering is respected.');
+    $this->assertEquals($options, $expected_options, 'The expected widget ordering is respected.');
 
     // Change the widget and check that the summary is updated.
     $edit = [
@@ -276,8 +276,8 @@ public function testWidgetUI() {
     $display_options = $display->getComponent('field_test');
     $current_widget = $display_options['type'];
     $current_setting_value = $display_options['settings'][$setting_name];
-    $this->assertEqual($current_widget, $widget_type, 'The widget was updated.');
-    $this->assertEqual($current_setting_value, $setting_value, 'The setting was updated.');
+    $this->assertEquals($current_widget, $widget_type, 'The widget was updated.');
+    $this->assertEquals($current_setting_value, $setting_value, 'The setting was updated.');
 
     // Assert that hook_field_widget_settings_summary_alter() is called.
     $this->assertText('field_test_field_widget_settings_summary_alter');
@@ -298,7 +298,7 @@ public function testWidgetUI() {
     $storage = $this->container->get('entity_type.manager')->getStorage('entity_form_display');
     $storage->resetCache(['node.' . $this->type . '.default']);
     $display = $storage->load('node.' . $this->type . '.default');
-    $this->assertEqual($display->getRenderer('field_test')->getThirdPartySetting('field_third_party_test', 'field_test_widget_third_party_settings_form'), 'foo');
+    $this->assertEquals($display->getRenderer('field_test')->getThirdPartySetting('field_third_party_test', 'field_test_widget_third_party_settings_form'), 'foo');
     $this->assertTrue(in_array('field_third_party_test', $display->calculateDependencies()->getDependencies()['module']), 'Form display does not have a dependency on field_third_party_test module.');
 
     // Confirm that the third party settings are not updated on the settings form.
diff --git a/core/modules/field_ui/src/Tests/ManageFieldsTest.php b/core/modules/field_ui/src/Tests/ManageFieldsTest.php
index d08ab03ba4..95eda8515c 100644
--- a/core/modules/field_ui/src/Tests/ManageFieldsTest.php
+++ b/core/modules/field_ui/src/Tests/ManageFieldsTest.php
@@ -169,7 +169,7 @@ public function manageFieldsPage($type = '') {
       }
     }
 
-    $this->assertEqual($number_of_links, $number_of_links_found);
+    $this->assertEquals($number_of_links, $number_of_links_found);
   }
 
   /**
@@ -438,7 +438,7 @@ public function testDefaultValue() {
     $this->drupalPostForm($admin_path, $edit, t('Save settings'));
     $this->assertText("Saved $field_name configuration", 'The form was successfully submitted.');
     $field = FieldConfig::loadByName('node', $this->contentType, $field_name);
-    $this->assertEqual($field->getDefaultValueLiteral(), [['value' => 1]], 'The default value was correctly saved.');
+    $this->assertEquals($field->getDefaultValueLiteral(), [['value' => 1]], 'The default value was correctly saved.');
 
     // Check that the default value shows up in the form
     $this->drupalGet($admin_path);
@@ -449,7 +449,7 @@ public function testDefaultValue() {
     $this->drupalPostForm(NULL, $edit, t('Save settings'));
     $this->assertText("Saved $field_name configuration", 'The form was successfully submitted.');
     $field = FieldConfig::loadByName('node', $this->contentType, $field_name);
-    $this->assertEqual($field->getDefaultValueLiteral(), NULL, 'The default value was correctly saved.');
+    $this->assertEquals($field->getDefaultValueLiteral(), NULL, 'The default value was correctly saved.');
 
     // Check that the default value can be empty when the field is marked as
     // required and can store unlimited values.
@@ -467,7 +467,7 @@ public function testDefaultValue() {
     $this->drupalPostForm(NULL, [], t('Save settings'));
     $this->assertText("Saved $field_name configuration", 'The form was successfully submitted.');
     $field = FieldConfig::loadByName('node', $this->contentType, $field_name);
-    $this->assertEqual($field->getDefaultValueLiteral(), NULL, 'The default value was correctly saved.');
+    $this->assertEquals($field->getDefaultValueLiteral(), NULL, 'The default value was correctly saved.');
 
     // Check that the default widget is used when the field is hidden.
     entity_get_form_display($field->getTargetEntityTypeId(), $field->getTargetBundle(), 'default')
@@ -739,17 +739,17 @@ public function testPreconfiguredFields() {
     // Add a field with every possible preconfigured value.
     $this->fieldUIAddNewField(NULL, 'test_custom_options', 'Test label', 'field_ui:test_field_with_preconfigured_options:custom_options');
     $field_storage = FieldStorageConfig::loadByName('node', 'field_test_custom_options');
-    $this->assertEqual($field_storage->getCardinality(), FieldStorageDefinitionInterface::CARDINALITY_UNLIMITED);
-    $this->assertEqual($field_storage->getSetting('test_field_storage_setting'), 'preconfigured_storage_setting');
+    $this->assertEquals($field_storage->getCardinality(), FieldStorageDefinitionInterface::CARDINALITY_UNLIMITED);
+    $this->assertEquals($field_storage->getSetting('test_field_storage_setting'), 'preconfigured_storage_setting');
 
     $field = FieldConfig::loadByName('node', 'article', 'field_test_custom_options');
     $this->assertTrue($field->isRequired());
-    $this->assertEqual($field->getSetting('test_field_setting'), 'preconfigured_field_setting');
+    $this->assertEquals($field->getSetting('test_field_setting'), 'preconfigured_field_setting');
 
     $form_display = entity_get_form_display('node', 'article', 'default');
-    $this->assertEqual($form_display->getComponent('field_test_custom_options')['type'], 'test_field_widget_multiple');
+    $this->assertEquals($form_display->getComponent('field_test_custom_options')['type'], 'test_field_widget_multiple');
     $view_display = entity_get_display('node', 'article', 'default');
-    $this->assertEqual($view_display->getComponent('field_test_custom_options')['type'], 'field_test_multiple');
+    $this->assertEquals($view_display->getComponent('field_test_custom_options')['type'], 'field_test_multiple');
   }
 
   /**
diff --git a/core/modules/field_ui/tests/src/Kernel/EntityDisplayTest.php b/core/modules/field_ui/tests/src/Kernel/EntityDisplayTest.php
index 2d02e44a55..c6a0715560 100644
--- a/core/modules/field_ui/tests/src/Kernel/EntityDisplayTest.php
+++ b/core/modules/field_ui/tests/src/Kernel/EntityDisplayTest.php
@@ -57,26 +57,26 @@ public function testEntityDisplayCRUD() {
     $expected['component_2'] = ['weight' => -3, 'settings' => [], 'third_party_settings' => []];
     $display->setComponent('component_1');
     $display->setComponent('component_2');
-    $this->assertEqual($display->getComponent('component_1'), $expected['component_1']);
-    $this->assertEqual($display->getComponent('component_2'), $expected['component_2']);
+    $this->assertEquals($display->getComponent('component_1'), $expected['component_1']);
+    $this->assertEquals($display->getComponent('component_2'), $expected['component_2']);
 
     // Check that arbitrary options are correctly stored.
     $expected['component_3'] = ['weight' => 10, 'third_party_settings' => ['field_test' => ['foo' => 'bar']], 'settings' => []];
     $display->setComponent('component_3', $expected['component_3']);
-    $this->assertEqual($display->getComponent('component_3'), $expected['component_3']);
+    $this->assertEquals($display->getComponent('component_3'), $expected['component_3']);
 
     // Check that the display can be properly saved and read back.
     $display->save();
     $display = EntityViewDisplay::load($display->id());
     foreach (['component_1', 'component_2', 'component_3'] as $name) {
       $expected[$name]['region'] = 'content';
-      $this->assertEqual($display->getComponent($name), $expected[$name]);
+      $this->assertEquals($display->getComponent($name), $expected[$name]);
     }
 
     // Ensure that third party settings were added to the config entity.
     // These are added by entity_test_entity_presave() implemented in
     // entity_test module.
-    $this->assertEqual('bar', $display->getThirdPartySetting('entity_test', 'foo'), 'Third party settings were added to the entity view display.');
+    $this->assertEquals('bar', $display->getThirdPartySetting('entity_test', 'foo'), 'Third party settings were added to the entity view display.');
 
     // Check that getComponents() returns options for all components.
     $expected['name'] = [
@@ -89,7 +89,7 @@ public function testEntityDisplayCRUD() {
       'third_party_settings' => [],
       'region' => 'content'
     ];
-    $this->assertEqual($display->getComponents(), $expected);
+    $this->assertEquals($display->getComponents(), $expected);
 
     // Check that a component can be removed.
     $display->removeComponent('component_3');
@@ -107,11 +107,11 @@ public function testEntityDisplayCRUD() {
     $new_display->save();
     $new_display = EntityViewDisplay::load($new_display->id());
     $dependencies = $new_display->calculateDependencies()->getDependencies();
-    $this->assertEqual(['config' => ['core.entity_view_mode.entity_test.other_view_mode'], 'module' => ['entity_test']], $dependencies);
-    $this->assertEqual($new_display->getTargetEntityTypeId(), $display->getTargetEntityTypeId());
-    $this->assertEqual($new_display->getTargetBundle(), $display->getTargetBundle());
-    $this->assertEqual($new_display->getMode(), 'other_view_mode');
-    $this->assertEqual($new_display->getComponents(), $display->getComponents());
+    $this->assertEquals(['config' => ['core.entity_view_mode.entity_test.other_view_mode'], 'module' => ['entity_test']], $dependencies);
+    $this->assertEquals($new_display->getTargetEntityTypeId(), $display->getTargetEntityTypeId());
+    $this->assertEquals($new_display->getTargetBundle(), $display->getTargetBundle());
+    $this->assertEquals($new_display->getMode(), 'other_view_mode');
+    $this->assertEquals($new_display->getComponents(), $display->getComponents());
   }
 
   /**
@@ -149,8 +149,8 @@ public function testEntityGetDisplay() {
     // Check that entity_get_display() returns the correct object.
     $display = entity_get_display('entity_test', 'entity_test', 'default');
     $this->assertFalse($display->isNew());
-    $this->assertEqual($display->id(), 'entity_test.entity_test.default');
-    $this->assertEqual($display->getComponent('component_1'), ['weight' => 10, 'settings' => [], 'third_party_settings' => [], 'region' => 'content']);
+    $this->assertEquals($display->id(), 'entity_test.entity_test.default');
+    $this->assertEquals($display->getComponent('component_1'), ['weight' => 10, 'settings' => [], 'third_party_settings' => [], 'region' => 'content']);
   }
 
   /**
@@ -166,14 +166,14 @@ public function testExtraFieldComponent() {
 
     // Check that the default visibility taken into account for extra fields
     // unknown in the display.
-    $this->assertEqual($display->getComponent('display_extra_field'), ['weight' => 5, 'region' => 'content']);
+    $this->assertEquals($display->getComponent('display_extra_field'), ['weight' => 5, 'region' => 'content']);
     $this->assertNull($display->getComponent('display_extra_field_hidden'));
 
     // Check that setting explicit options overrides the defaults.
     $display->removeComponent('display_extra_field');
     $display->setComponent('display_extra_field_hidden', ['weight' => 10]);
     $this->assertNull($display->getComponent('display_extra_field'));
-    $this->assertEqual($display->getComponent('display_extra_field_hidden'), ['weight' => 10, 'settings' => [], 'third_party_settings' => []]);
+    $this->assertEquals($display->getComponent('display_extra_field_hidden'), ['weight' => 10, 'settings' => [], 'third_party_settings' => []]);
   }
 
   /**
@@ -195,14 +195,14 @@ public function testExtraFieldComponentInitialInvalidConfig() {
 
     // Check that the default visibility taken into account for extra fields
     // unknown in the display that were included in the initial config.
-    $this->assertEqual($display->getComponent('display_extra_field'), ['weight' => 5, 'region' => 'content']);
+    $this->assertEquals($display->getComponent('display_extra_field'), ['weight' => 5, 'region' => 'content']);
     $this->assertNull($display->getComponent('display_extra_field_hidden'));
 
     // Check that setting explicit options overrides the defaults.
     $display->removeComponent('display_extra_field');
     $display->setComponent('display_extra_field_hidden', ['weight' => 10]);
     $this->assertNull($display->getComponent('display_extra_field'));
-    $this->assertEqual($display->getComponent('display_extra_field_hidden'), ['weight' => 10, 'settings' => [], 'third_party_settings' => []]);
+    $this->assertEquals($display->getComponent('display_extra_field_hidden'), ['weight' => 10, 'settings' => [], 'third_party_settings' => []]);
   }
 
   /**
@@ -241,32 +241,32 @@ public function testFieldComponent() {
       'settings' => $formatter_settings,
       'third_party_settings' => [],
     ];
-    $this->assertEqual($display->getComponent($field_name), $expected);
+    $this->assertEquals($display->getComponent($field_name), $expected);
 
     // Check that the getFormatter() method returns the correct formatter plugin.
     $formatter = $display->getRenderer($field_name);
-    $this->assertEqual($formatter->getPluginId(), $default_formatter);
-    $this->assertEqual($formatter->getSettings(), $formatter_settings);
+    $this->assertEquals($formatter->getPluginId(), $default_formatter);
+    $this->assertEquals($formatter->getSettings(), $formatter_settings);
 
     // Check that the formatter is statically persisted, by assigning an
     // arbitrary property and reading it back.
     $random_value = $this->randomString();
     $formatter->randomValue = $random_value;
     $formatter = $display->getRenderer($field_name);
-    $this->assertEqual($formatter->randomValue, $random_value);
+    $this->assertEquals($formatter->randomValue, $random_value);
 
     // Check that changing the definition creates a new formatter.
     $display->setComponent($field_name, [
       'type' => 'field_test_multiple',
     ]);
     $formatter = $display->getRenderer($field_name);
-    $this->assertEqual($formatter->getPluginId(), 'field_test_multiple');
+    $this->assertEquals($formatter->getPluginId(), 'field_test_multiple');
     $this->assertFalse(isset($formatter->randomValue));
 
     // Check that the display has dependencies on the field and the module that
     // provides the formatter.
     $dependencies = $display->calculateDependencies()->getDependencies();
-    $this->assertEqual(['config' => ['field.field.entity_test.entity_test.test_field'], 'module' => ['entity_test', 'field_test']], $dependencies);
+    $this->assertEquals(['config' => ['field.field.entity_test.entity_test.test_field'], 'module' => ['entity_test', 'field_test']], $dependencies);
   }
 
   /**
@@ -301,7 +301,7 @@ public function testBaseFieldComponent() {
       ],
     ];
     foreach ($expected as $field_name => $options) {
-      $this->assertEqual($display->getComponent($field_name), $options);
+      $this->assertEquals($display->getComponent($field_name), $options);
     }
 
     // Check that saving the display only writes data for fields whose display
@@ -311,14 +311,14 @@ public function testBaseFieldComponent() {
     $data = $config->get();
     $this->assertFalse(isset($data['content']['test_no_display']));
     $this->assertFalse(isset($data['hidden']['test_no_display']));
-    $this->assertEqual($data['content']['test_display_configurable'], $expected['test_display_configurable']);
+    $this->assertEquals($data['content']['test_display_configurable'], $expected['test_display_configurable']);
     $this->assertFalse(isset($data['content']['test_display_non_configurable']));
     $this->assertFalse(isset($data['hidden']['test_display_non_configurable']));
 
     // Check that defaults are correctly filled when loading the display.
     $display = EntityViewDisplay::load($display->id());
     foreach ($expected as $field_name => $options) {
-      $this->assertEqual($display->getComponent($field_name), $options);
+      $this->assertEquals($display->getComponent($field_name), $options);
     }
 
     // Check that data manually written for fields whose display is not
@@ -328,7 +328,7 @@ public function testBaseFieldComponent() {
     $config->setData($data)->save();
     $display = EntityViewDisplay::load($display->id());
     foreach ($expected as $field_name => $options) {
-      $this->assertEqual($display->getComponent($field_name), $options);
+      $this->assertEquals($display->getComponent($field_name), $options);
     }
   }
 
@@ -426,13 +426,13 @@ public function testOnDependencyRemoval() {
 
     // Check the component exists and is of the correct type.
     $display = entity_get_display('entity_test', 'entity_test', 'default');
-    $this->assertEqual($display->getComponent($field_name)['type'], 'field_plugins_test_text_formatter');
+    $this->assertEquals($display->getComponent($field_name)['type'], 'field_plugins_test_text_formatter');
 
     // Removing the field_plugins_test module should change the component to use
     // the default formatter for test fields.
     \Drupal::service('config.manager')->uninstall('module', 'field_plugins_test');
     $display = entity_get_display('entity_test', 'entity_test', 'default');
-    $this->assertEqual($display->getComponent($field_name)['type'], 'text_default');
+    $this->assertEquals($display->getComponent($field_name)['type'], 'text_default');
 
     // Removing the text module should remove the field from the view display.
     \Drupal::service('config.manager')->uninstall('module', 'text');
@@ -490,17 +490,17 @@ public function testGetDisplayModeOptions() {
 
     // Test getViewModeOptionsByBundle().
     $view_modes = \Drupal::entityManager()->getViewModeOptionsByBundle('node', 'article');
-    $this->assertEqual($view_modes, ['default' => 'Default']);
+    $this->assertEquals($view_modes, ['default' => 'Default']);
     $display_teaser->setStatus(TRUE)->save();
     $view_modes = \Drupal::entityManager()->getViewModeOptionsByBundle('node', 'article');
-    $this->assertEqual($view_modes, ['default' => 'Default', 'teaser' => 'Teaser']);
+    $this->assertEquals($view_modes, ['default' => 'Default', 'teaser' => 'Teaser']);
 
     // Test getFormModeOptionsByBundle().
     $form_modes = \Drupal::entityManager()->getFormModeOptionsByBundle('user', 'user');
-    $this->assertEqual($form_modes, ['default' => 'Default']);
+    $this->assertEquals($form_modes, ['default' => 'Default']);
     $form_display_teaser->setStatus(TRUE)->save();
     $form_modes = \Drupal::entityManager()->getFormModeOptionsByBundle('user', 'user');
-    $this->assertEqual($form_modes, ['default' => 'Default', 'register' => 'Register']);
+    $this->assertEquals($form_modes, ['default' => 'Default', 'register' => 'Register']);
   }
 
   /**
diff --git a/core/modules/field_ui/tests/src/Kernel/EntityFormDisplayTest.php b/core/modules/field_ui/tests/src/Kernel/EntityFormDisplayTest.php
index 09d2a20114..4c5d90835e 100644
--- a/core/modules/field_ui/tests/src/Kernel/EntityFormDisplayTest.php
+++ b/core/modules/field_ui/tests/src/Kernel/EntityFormDisplayTest.php
@@ -42,8 +42,8 @@ public function testEntityGetFromDisplay() {
     // Check that entity_get_form_display() returns the correct object.
     $form_display = entity_get_form_display('entity_test', 'entity_test', 'default');
     $this->assertFalse($form_display->isNew());
-    $this->assertEqual($form_display->id(), 'entity_test.entity_test.default');
-    $this->assertEqual($form_display->getComponent('component_1'), ['weight' => 10, 'settings' => [], 'third_party_settings' => [], 'region' => 'content']);
+    $this->assertEquals($form_display->id(), 'entity_test.entity_test.default');
+    $this->assertEquals($form_display->getComponent('component_1'), ['weight' => 10, 'settings' => [], 'third_party_settings' => [], 'region' => 'content']);
   }
 
   /**
@@ -81,26 +81,26 @@ public function testFieldComponent() {
       'settings' => $widget_settings,
       'third_party_settings' => [],
     ];
-    $this->assertEqual($form_display->getComponent($field_name), $expected);
+    $this->assertEquals($form_display->getComponent($field_name), $expected);
 
     // Check that the getWidget() method returns the correct widget plugin.
     $widget = $form_display->getRenderer($field_name);
-    $this->assertEqual($widget->getPluginId(), $default_widget);
-    $this->assertEqual($widget->getSettings(), $widget_settings);
+    $this->assertEquals($widget->getPluginId(), $default_widget);
+    $this->assertEquals($widget->getSettings(), $widget_settings);
 
     // Check that the widget is statically persisted, by assigning an
     // arbitrary property and reading it back.
     $random_value = $this->randomString();
     $widget->randomValue = $random_value;
     $widget = $form_display->getRenderer($field_name);
-    $this->assertEqual($widget->randomValue, $random_value);
+    $this->assertEquals($widget->randomValue, $random_value);
 
     // Check that changing the definition creates a new widget.
     $form_display->setComponent($field_name, [
       'type' => 'field_test_multiple',
     ]);
     $widget = $form_display->getRenderer($field_name);
-    $this->assertEqual($widget->getPluginId(), 'test_field_widget');
+    $this->assertEquals($widget->getPluginId(), 'test_field_widget');
     $this->assertFalse(isset($widget->randomValue));
 
     // Check that specifying an unknown widget (e.g. case of a disabled module)
@@ -110,9 +110,9 @@ public function testFieldComponent() {
       'type' => 'unknown_widget',
     ]);
     $options = $form_display->getComponent($field_name);
-    $this->assertEqual($options['type'], 'unknown_widget');
+    $this->assertEquals($options['type'], 'unknown_widget');
     $widget = $form_display->getRenderer($field_name);
-    $this->assertEqual($widget->getPluginId(), $default_widget);
+    $this->assertEquals($widget->getPluginId(), $default_widget);
   }
 
   /**
@@ -145,7 +145,7 @@ public function testBaseFieldComponent() {
       ],
     ];
     foreach ($expected as $field_name => $options) {
-      $this->assertEqual($display->getComponent($field_name), $options);
+      $this->assertEquals($display->getComponent($field_name), $options);
     }
 
     // Check that saving the display only writes data for fields whose display
@@ -155,14 +155,14 @@ public function testBaseFieldComponent() {
     $data = $config->get();
     $this->assertFalse(isset($data['content']['test_no_display']));
     $this->assertFalse(isset($data['hidden']['test_no_display']));
-    $this->assertEqual($data['content']['test_display_configurable'], $expected['test_display_configurable']);
+    $this->assertEquals($data['content']['test_display_configurable'], $expected['test_display_configurable']);
     $this->assertFalse(isset($data['content']['test_display_non_configurable']));
     $this->assertFalse(isset($data['hidden']['test_display_non_configurable']));
 
     // Check that defaults are correctly filled when loading the display.
     $display = EntityFormDisplay::load($display->id());
     foreach ($expected as $field_name => $options) {
-      $this->assertEqual($display->getComponent($field_name), $options);
+      $this->assertEquals($display->getComponent($field_name), $options);
     }
 
     // Check that data manually written for fields whose display is not
@@ -172,7 +172,7 @@ public function testBaseFieldComponent() {
     $config->setData($data)->save();
     $display = EntityFormDisplay::load($display->id());
     foreach ($expected as $field_name => $options) {
-      $this->assertEqual($display->getComponent($field_name), $options);
+      $this->assertEquals($display->getComponent($field_name), $options);
     }
   }
 
@@ -251,13 +251,13 @@ public function testOnDependencyRemoval() {
 
     // Check the component exists and is of the correct type.
     $display = entity_get_form_display('entity_test', 'entity_test', 'default');
-    $this->assertEqual($display->getComponent($field_name)['type'], 'field_plugins_test_text_widget');
+    $this->assertEquals($display->getComponent($field_name)['type'], 'field_plugins_test_text_widget');
 
     // Removing the field_plugins_test module should change the component to use
     // the default widget for test fields.
     \Drupal::service('config.manager')->uninstall('module', 'field_plugins_test');
     $display = entity_get_form_display('entity_test', 'entity_test', 'default');
-    $this->assertEqual($display->getComponent($field_name)['type'], 'text_textfield');
+    $this->assertEquals($display->getComponent($field_name)['type'], 'text_textfield');
 
     // Removing the text module should remove the field from the form display.
     \Drupal::service('config.manager')->uninstall('module', 'text');
diff --git a/core/modules/file/src/Tests/DownloadTest.php b/core/modules/file/src/Tests/DownloadTest.php
index 8f85f09f96..de88870df8 100644
--- a/core/modules/file/src/Tests/DownloadTest.php
+++ b/core/modules/file/src/Tests/DownloadTest.php
@@ -24,7 +24,7 @@ public function testPublicFileTransfer() {
     // URLs can't contain characters outside the ASCII set so $filename has to be
     // encoded.
     $filename = $GLOBALS['base_url'] . '/' . \Drupal::service('stream_wrapper_manager')->getViaScheme('public')->getDirectoryPath() . '/' . rawurlencode($file->getFilename());
-    $this->assertEqual($filename, $url, 'Correctly generated a URL for a created file.');
+    $this->assertEquals($filename, $url, 'Correctly generated a URL for a created file.');
     $this->drupalHead($url);
     $this->assertResponse(200, 'Confirmed that the generated URL is correct by downloading the created file.');
 
@@ -32,7 +32,7 @@ public function testPublicFileTransfer() {
     // Drupal core, a module or a theme, for example a JavaScript file).
     $filepath = 'core/assets/vendor/jquery/jquery.min.js';
     $url = file_create_url($filepath);
-    $this->assertEqual($GLOBALS['base_url'] . '/' . $filepath, $url, 'Correctly generated a URL for a shipped file.');
+    $this->assertEquals($GLOBALS['base_url'] . '/' . $filepath, $url, 'Correctly generated a URL for a shipped file.');
     $this->drupalHead($url);
     $this->assertResponse(200, 'Confirmed that the generated URL is correct by downloading the shipped file.');
   }
@@ -65,12 +65,12 @@ protected function doPrivateFileTransferTest() {
     // Set file_test access header to allow the download.
     file_test_set_return('download', ['x-foo' => 'Bar']);
     $this->drupalGet($url);
-    $this->assertEqual($this->drupalGetHeader('x-foo'), 'Bar', 'Found header set by file_test module on private download.');
+    $this->assertEquals($this->drupalGetHeader('x-foo'), 'Bar', 'Found header set by file_test module on private download.');
     $this->assertFalse($this->drupalGetHeader('x-drupal-cache'), 'Page cache is disabled on private file download.');
     $this->assertResponse(200, 'Correctly allowed access to a file when file_test provides headers.');
 
     // Test that the file transferred correctly.
-    $this->assertEqual($contents, $this->content, 'Contents of the file are correct.');
+    $this->assertEquals($contents, $this->content, 'Contents of the file are correct.');
 
     // Deny access to all downloads via a -1 header.
     file_test_set_return('download', -1);
@@ -117,7 +117,7 @@ public function testFileCreateUrl() {
       $this->checkUrl('public', '', $basename, $base_path . '/' . $public_directory_path . '/' . $basename_encoded);
       $this->checkUrl('private', '', $basename, $base_path . '/' . $script_path . 'system/files/' . $basename_encoded);
     }
-    $this->assertEqual(file_create_url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg=='), 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg==', t('Generated URL matches expected URL.'));
+    $this->assertEquals(file_create_url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg=='), 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg==', t('Generated URL matches expected URL.'));
   }
 
   /**
@@ -146,7 +146,7 @@ private function checkUrl($scheme, $directory, $filename, $expected_url) {
     $file = $this->createFile($filepath, NULL, $scheme);
 
     $url = file_create_url($file->getFileUri());
-    $this->assertEqual($url, $expected_url);
+    $this->assertEquals($url, $expected_url);
 
     if ($scheme == 'private') {
       // Tell the implementation of hook_file_download() in file_test.module
diff --git a/core/modules/file/src/Tests/FileFieldRevisionTest.php b/core/modules/file/src/Tests/FileFieldRevisionTest.php
index 04fbcb8767..22d70e38ac 100644
--- a/core/modules/file/src/Tests/FileFieldRevisionTest.php
+++ b/core/modules/file/src/Tests/FileFieldRevisionTest.php
@@ -61,7 +61,7 @@ public function testRevisions() {
     // Check that the original file is still in place on the first revision.
     $node = node_revision_load($node_vid_r1);
     $current_file = File::load($node->{$field_name}->target_id);
-    $this->assertEqual($node_file_r1->id(), $current_file->id(), 'Original file still in place after replacing file in new revision.');
+    $this->assertEquals($node_file_r1->id(), $current_file->id(), 'Original file still in place after replacing file in new revision.');
     $this->assertFileExists($node_file_r1, 'Original file still in place after replacing file in new revision.');
     $this->assertFileEntryExists($node_file_r1, 'Original file entry still in place after replacing file in new revision');
     $this->assertFileIsPermanent($node_file_r1, 'Original file is still permanent.');
@@ -73,7 +73,7 @@ public function testRevisions() {
     $node = $node_storage->load($nid);
     $node_file_r3 = File::load($node->{$field_name}->target_id);
     $node_vid_r3 = $node->getRevisionId();
-    $this->assertEqual($node_file_r2->id(), $node_file_r3->id(), 'Previous revision file still in place after creating a new revision without a new file.');
+    $this->assertEquals($node_file_r2->id(), $node_file_r3->id(), 'Previous revision file still in place after creating a new revision without a new file.');
     $this->assertFileIsPermanent($node_file_r3, 'New revision file is permanent.');
 
     // Revert to the first revision and check that the original file is active.
@@ -81,7 +81,7 @@ public function testRevisions() {
     $node_storage->resetCache([$nid]);
     $node = $node_storage->load($nid);
     $node_file_r4 = File::load($node->{$field_name}->target_id);
-    $this->assertEqual($node_file_r1->id(), $node_file_r4->id(), 'Original revision file still in place after reverting to the original revision.');
+    $this->assertEquals($node_file_r1->id(), $node_file_r4->id(), 'Original revision file still in place after reverting to the original revision.');
     $this->assertFileIsPermanent($node_file_r4, 'Original revision file still permanent after reverting to the original revision.');
 
     // Delete the second revision and check that the file is kept (since it is
diff --git a/core/modules/file/src/Tests/FileFieldTestBase.php b/core/modules/file/src/Tests/FileFieldTestBase.php
index ba34c8f42b..f167b3ba02 100644
--- a/core/modules/file/src/Tests/FileFieldTestBase.php
+++ b/core/modules/file/src/Tests/FileFieldTestBase.php
@@ -274,7 +274,7 @@ public function assertFileEntryExists($file, $message = NULL) {
     $this->container->get('entity.manager')->getStorage('file')->resetCache();
     $db_file = File::load($file->id());
     $message = isset($message) ? $message : format_string('File %file exists in database at the correct path.', ['%file' => $file->getFileUri()]);
-    $this->assertEqual($db_file->getFileUri(), $file->getFileUri(), $message);
+    $this->assertEquals($db_file->getFileUri(), $file->getFileUri(), $message);
   }
 
   /**
diff --git a/core/modules/file/src/Tests/FileFieldWidgetTest.php b/core/modules/file/src/Tests/FileFieldWidgetTest.php
index 8017ebf1b2..59b57a19c2 100644
--- a/core/modules/file/src/Tests/FileFieldWidgetTest.php
+++ b/core/modules/file/src/Tests/FileFieldWidgetTest.php
@@ -251,7 +251,7 @@ public function testMultiValuedWidget() {
     $nid = $this->uploadNodeFiles($upload_files_node_creation, $field_name, $type_name);
     $node_storage->resetCache([$nid]);
     $node = $node_storage->load($nid);
-    $this->assertEqual(count($node->{$field_name}), count($upload_files_node_creation), 'Node was successfully saved with mulitple files.');
+    $this->assertEquals(count($node->{$field_name}), count($upload_files_node_creation), 'Node was successfully saved with mulitple files.');
 
     // Try to upload more files than allowed on revision.
     $upload_files_node_revision = [$test_file, $test_file, $test_file, $test_file];
@@ -265,7 +265,7 @@ public function testMultiValuedWidget() {
     $this->assertRaw(t('Field %field can only hold @max values but there were @count uploaded. The following files have been omitted as a result: %list.', $args));
     $node_storage->resetCache([$nid]);
     $node = $node_storage->load($nid);
-    $this->assertEqual(count($node->{$field_name}), $cardinality, 'More files than allowed could not be saved to node.');
+    $this->assertEquals(count($node->{$field_name}), $cardinality, 'More files than allowed could not be saved to node.');
 
     // Try to upload exactly the allowed number of files on revision. Create an
     // empty node first, to fill it in its first revision.
@@ -275,14 +275,14 @@ public function testMultiValuedWidget() {
     $this->uploadNodeFile($test_file, $field_name, $node->id(), 1);
     $node_storage->resetCache([$nid]);
     $node = $node_storage->load($nid);
-    $this->assertEqual(count($node->{$field_name}), $cardinality, 'Node was successfully revised to maximum number of files.');
+    $this->assertEquals(count($node->{$field_name}), $cardinality, 'Node was successfully revised to maximum number of files.');
 
     // Try to upload exactly the allowed number of files, new node.
     $upload_files = array_fill(0, $cardinality, $test_file);
     $nid = $this->uploadNodeFiles($upload_files, $field_name, $type_name);
     $node_storage->resetCache([$nid]);
     $node = $node_storage->load($nid);
-    $this->assertEqual(count($node->{$field_name}), $cardinality, 'Node was successfully saved with maximum number of files.');
+    $this->assertEquals(count($node->{$field_name}), $cardinality, 'Node was successfully saved with maximum number of files.');
 
     // Try to upload more files than allowed, new node.
     $upload_files[] = $test_file;
@@ -557,7 +557,7 @@ protected function doTestTemporaryFileRemovalExploit(UserInterface $victim_user,
       $victim_tmp_file = File::load($victim_tmp_file->id());
       $this->assertTrue($victim_tmp_file->isTemporary(), 'New file saved to disk is temporary.');
       $this->assertFalse(empty($victim_tmp_file->id()), 'New file has an fid.');
-      $this->assertEqual($victim_user->id(), $victim_tmp_file->getOwnerId(), 'New file belongs to the victim.');
+      $this->assertEquals($victim_user->id(), $victim_tmp_file->getOwnerId(), 'New file belongs to the victim.');
 
       // Have attacker create a new node with a different uploaded file and
       // ensure it got uploaded successfully.
@@ -573,7 +573,7 @@ protected function doTestTemporaryFileRemovalExploit(UserInterface $victim_user,
       /** @var \Drupal\file\FileInterface $node_file */
       $node_file = File::load($node->{$field_name}->target_id);
       $this->assertFileExists($node_file, 'A file was saved to disk on node creation');
-      $this->assertEqual($attacker_user->id(), $node_file->getOwnerId(), 'New file belongs to the attacker.');
+      $this->assertEquals($attacker_user->id(), $node_file->getOwnerId(), 'New file belongs to the attacker.');
 
       // Ensure the file can be downloaded.
       $this->drupalGet(file_create_url($node_file->getFileUri()));
diff --git a/core/modules/file/src/Tests/FileListingTest.php b/core/modules/file/src/Tests/FileListingTest.php
index 5c8b834b8b..e8f3d001de 100644
--- a/core/modules/file/src/Tests/FileListingTest.php
+++ b/core/modules/file/src/Tests/FileListingTest.php
@@ -128,7 +128,7 @@ public function testFileListingPages() {
     $this->assertRaw('admin/content/files/usage/' . $file->id() . '">' . $usage);
 
     $result = $this->xpath("//td[contains(@class, 'views-field-status') and contains(text(), :value)]", [':value' => t('Temporary')]);
-    $this->assertEqual(1, count($result), 'Unused file marked as temporary.');
+    $this->assertEquals(1, count($result), 'Unused file marked as temporary.');
 
     // Test file usage page.
     foreach ($nodes as $node) {
diff --git a/core/modules/file/src/Tests/FileManagedFileElementTest.php b/core/modules/file/src/Tests/FileManagedFileElementTest.php
index f48532e8d8..c2d39bf130 100644
--- a/core/modules/file/src/Tests/FileManagedFileElementTest.php
+++ b/core/modules/file/src/Tests/FileManagedFileElementTest.php
@@ -42,7 +42,7 @@ public function testManagedFile() {
           $this->drupalPostForm($path, $edit, t('Save'));
           $this->assertText('The form has become outdated. Copy any unsaved work in the form below');
           $last_fid = $this->getLastFileId();
-          $this->assertEqual($last_fid_prior, $last_fid, 'File was not saved when uploaded with an invalid form token.');
+          $this->assertEquals($last_fid_prior, $last_fid, 'File was not saved when uploaded with an invalid form token.');
 
           // Submit a new file, without using the Upload button.
           $last_fid_prior = $this->getLastFileId();
diff --git a/core/modules/file/src/Tests/FileManagedTestBase.php b/core/modules/file/src/Tests/FileManagedTestBase.php
index 879e1c4e94..63286f004d 100644
--- a/core/modules/file/src/Tests/FileManagedTestBase.php
+++ b/core/modules/file/src/Tests/FileManagedTestBase.php
@@ -85,7 +85,7 @@ public function assertFileHookCalled($hook, $expected_count = 1, $message = NULL
         $message = format_string('hook_file_@name was expected to be called %expected times but was called %actual times.', ['@name' => $hook, '%expected' => $expected_count, '%actual' => $actual_count]);
       }
     }
-    $this->assertEqual($actual_count, $expected_count, $message);
+    $this->assertEquals($actual_count, $expected_count, $message);
   }
 
   /**
@@ -97,13 +97,13 @@ public function assertFileHookCalled($hook, $expected_count = 1, $message = NULL
    *   File object to compare.
    */
   public function assertFileUnchanged(FileInterface $before, FileInterface $after) {
-    $this->assertEqual($before->id(), $after->id(), t('File id is the same: %file1 == %file2.', ['%file1' => $before->id(), '%file2' => $after->id()]), 'File unchanged');
-    $this->assertEqual($before->getOwner()->id(), $after->getOwner()->id(), t('File owner is the same: %file1 == %file2.', ['%file1' => $before->getOwner()->id(), '%file2' => $after->getOwner()->id()]), 'File unchanged');
-    $this->assertEqual($before->getFilename(), $after->getFilename(), t('File name is the same: %file1 == %file2.', ['%file1' => $before->getFilename(), '%file2' => $after->getFilename()]), 'File unchanged');
-    $this->assertEqual($before->getFileUri(), $after->getFileUri(), t('File path is the same: %file1 == %file2.', ['%file1' => $before->getFileUri(), '%file2' => $after->getFileUri()]), 'File unchanged');
-    $this->assertEqual($before->getMimeType(), $after->getMimeType(), t('File MIME type is the same: %file1 == %file2.', ['%file1' => $before->getMimeType(), '%file2' => $after->getMimeType()]), 'File unchanged');
-    $this->assertEqual($before->getSize(), $after->getSize(), t('File size is the same: %file1 == %file2.', ['%file1' => $before->getSize(), '%file2' => $after->getSize()]), 'File unchanged');
-    $this->assertEqual($before->isPermanent(), $after->isPermanent(), t('File status is the same: %file1 == %file2.', ['%file1' => $before->isPermanent(), '%file2' => $after->isPermanent()]), 'File unchanged');
+    $this->assertEquals($before->id(), $after->id(), t('File id is the same: %file1 == %file2.', ['%file1' => $before->id(), '%file2' => $after->id()]), 'File unchanged');
+    $this->assertEquals($before->getOwner()->id(), $after->getOwner()->id(), t('File owner is the same: %file1 == %file2.', ['%file1' => $before->getOwner()->id(), '%file2' => $after->getOwner()->id()]), 'File unchanged');
+    $this->assertEquals($before->getFilename(), $after->getFilename(), t('File name is the same: %file1 == %file2.', ['%file1' => $before->getFilename(), '%file2' => $after->getFilename()]), 'File unchanged');
+    $this->assertEquals($before->getFileUri(), $after->getFileUri(), t('File path is the same: %file1 == %file2.', ['%file1' => $before->getFileUri(), '%file2' => $after->getFileUri()]), 'File unchanged');
+    $this->assertEquals($before->getMimeType(), $after->getMimeType(), t('File MIME type is the same: %file1 == %file2.', ['%file1' => $before->getMimeType(), '%file2' => $after->getMimeType()]), 'File unchanged');
+    $this->assertEquals($before->getSize(), $after->getSize(), t('File size is the same: %file1 == %file2.', ['%file1' => $before->getSize(), '%file2' => $after->getSize()]), 'File unchanged');
+    $this->assertEquals($before->isPermanent(), $after->isPermanent(), t('File status is the same: %file1 == %file2.', ['%file1' => $before->isPermanent(), '%file2' => $after->isPermanent()]), 'File unchanged');
   }
 
   /**
@@ -128,8 +128,8 @@ public function assertDifferentFile(FileInterface $file1, FileInterface $file2)
    *   File object to compare.
    */
   public function assertSameFile(FileInterface $file1, FileInterface $file2) {
-    $this->assertEqual($file1->id(), $file2->id(), t('Files have the same ids: %file1 == %file2.', ['%file1' => $file1->id(), '%file2-fid' => $file2->id()]), 'Same file');
-    $this->assertEqual($file1->getFileUri(), $file2->getFileUri(), t('Files have the same path: %file1 == %file2.', ['%file1' => $file1->getFileUri(), '%file2' => $file2->getFileUri()]), 'Same file');
+    $this->assertEquals($file1->id(), $file2->id(), t('Files have the same ids: %file1 == %file2.', ['%file1' => $file1->id(), '%file2-fid' => $file2->id()]), 'Same file');
+    $this->assertEquals($file1->getFileUri(), $file2->getFileUri(), t('Files have the same path: %file1 == %file2.', ['%file1' => $file1->getFileUri(), '%file2' => $file2->getFileUri()]), 'Same file');
   }
 
   /**
diff --git a/core/modules/file/src/Tests/FilePrivateTest.php b/core/modules/file/src/Tests/FilePrivateTest.php
index 88574cb652..2942cdecac 100644
--- a/core/modules/file/src/Tests/FilePrivateTest.php
+++ b/core/modules/file/src/Tests/FilePrivateTest.php
@@ -135,7 +135,7 @@ public function testPrivateFile() {
     /** @var \Drupal\file\FileStorageInterface $file_storage */
     $file_storage = $this->container->get('entity.manager')->getStorage('file');
     $files = $file_storage->loadByProperties(['uid' => 0]);
-    $this->assertEqual(1, count($files), 'Loaded one anonymous file.');
+    $this->assertEquals(1, count($files), 'Loaded one anonymous file.');
     $file = end($files);
     $this->assertTrue($file->isTemporary(), 'File is temporary.');
     $usage = $this->container->get('file.usage')->listUsage($file);
diff --git a/core/modules/file/src/Tests/FileTokenReplaceTest.php b/core/modules/file/src/Tests/FileTokenReplaceTest.php
index 5bfa07b9ab..e48f038e52 100644
--- a/core/modules/file/src/Tests/FileTokenReplaceTest.php
+++ b/core/modules/file/src/Tests/FileTokenReplaceTest.php
@@ -78,8 +78,8 @@ public function testFileTokenReplacement() {
     foreach ($tests as $input => $expected) {
       $bubbleable_metadata = new BubbleableMetadata();
       $output = $token_service->replace($input, ['file' => $file], ['langcode' => $language_interface->getId()], $bubbleable_metadata);
-      $this->assertEqual($output, $expected, format_string('Sanitized file token %token replaced.', ['%token' => $input]));
-      $this->assertEqual($bubbleable_metadata, $metadata_tests[$input]);
+      $this->assertEquals($output, $expected, format_string('Sanitized file token %token replaced.', ['%token' => $input]));
+      $this->assertEquals($bubbleable_metadata, $metadata_tests[$input]);
     }
 
     // Generate and test unsanitized tokens.
@@ -90,7 +90,7 @@ public function testFileTokenReplacement() {
 
     foreach ($tests as $input => $expected) {
       $output = $token_service->replace($input, ['file' => $file], ['langcode' => $language_interface->getId(), 'sanitize' => FALSE]);
-      $this->assertEqual($output, $expected, format_string('Unsanitized file token %token replaced.', ['%token' => $input]));
+      $this->assertEquals($output, $expected, format_string('Unsanitized file token %token replaced.', ['%token' => $input]));
     }
   }
 
diff --git a/core/modules/file/src/Tests/SaveUploadFormTest.php b/core/modules/file/src/Tests/SaveUploadFormTest.php
index e568070616..3d3a7f4756 100644
--- a/core/modules/file/src/Tests/SaveUploadFormTest.php
+++ b/core/modules/file/src/Tests/SaveUploadFormTest.php
@@ -89,7 +89,7 @@ public function testNormal() {
     $file1 = File::load($max_fid_after);
     $this->assertTrue($file1, 'Loaded the file.');
     // MIME type of the uploaded image may be either image/jpeg or image/png.
-    $this->assertEqual(substr($file1->getMimeType(), 0, 5), 'image', 'A MIME type was set.');
+    $this->assertEquals(substr($file1->getMimeType(), 0, 5), 'image', 'A MIME type was set.');
 
     // Reset the hook counters to get rid of the 'load' we just called.
     file_test_reset();
@@ -110,7 +110,7 @@ public function testNormal() {
     $file2 = File::load($max_fid_after);
     $this->assertTrue($file2, 'Loaded the file');
     // MIME type of the uploaded image may be either image/jpeg or image/png.
-    $this->assertEqual(substr($file2->getMimeType(), 0, 5), 'image', 'A MIME type was set.');
+    $this->assertEquals(substr($file2->getMimeType(), 0, 5), 'image', 'A MIME type was set.');
 
     // Load both files using File::loadMultiple().
     $files = File::loadMultiple([$file1->id(), $file2->id()]);
@@ -467,7 +467,7 @@ public function testCombinedErrorMessages() {
    * Tests highlighting of file upload field when it has an error.
    */
   public function testUploadFieldIsHighlighted() {
-    $this->assertEqual(0, count($this->cssSelect('input[name="files[file_test_upload][]"].error')), 'Successful file upload has no error.');
+    $this->assertEquals(0, count($this->cssSelect('input[name="files[file_test_upload][]"].error')), 'Successful file upload has no error.');
 
     /** @var \Drupal\Core\File\FileSystemInterface $file_system */
     $file_system = \Drupal::service('file_system');
@@ -478,7 +478,7 @@ public function testUploadFieldIsHighlighted() {
     $this->drupalPostForm('file-test/save_upload_from_form_test', $edit, t('Submit'));
     $this->assertResponse(200, 'Received a 200 response for posted test file.');
     $this->assertRaw(t('Epic upload FAIL!'), 'Found the failure message.');
-    $this->assertEqual(1, count($this->cssSelect('input[name="files[file_test_upload][]"].error')), 'File upload field has error.');
+    $this->assertEquals(1, count($this->cssSelect('input[name="files[file_test_upload][]"].error')), 'File upload field has error.');
   }
 
 }
diff --git a/core/modules/file/src/Tests/SaveUploadTest.php b/core/modules/file/src/Tests/SaveUploadTest.php
index a6e6f9a46a..8ffef84f8a 100644
--- a/core/modules/file/src/Tests/SaveUploadTest.php
+++ b/core/modules/file/src/Tests/SaveUploadTest.php
@@ -81,7 +81,7 @@ public function testNormal() {
     $file1 = File::load($max_fid_after);
     $this->assertTrue($file1, 'Loaded the file.');
     // MIME type of the uploaded image may be either image/jpeg or image/png.
-    $this->assertEqual(substr($file1->getMimeType(), 0, 5), 'image', 'A MIME type was set.');
+    $this->assertEquals(substr($file1->getMimeType(), 0, 5), 'image', 'A MIME type was set.');
 
     // Reset the hook counters to get rid of the 'load' we just called.
     file_test_reset();
@@ -100,7 +100,7 @@ public function testNormal() {
     $file2 = File::load($max_fid_after);
     $this->assertTrue($file2, 'Loaded the file');
     // MIME type of the uploaded image may be either image/jpeg or image/png.
-    $this->assertEqual(substr($file2->getMimeType(), 0, 5), 'image', 'A MIME type was set.');
+    $this->assertEquals(substr($file2->getMimeType(), 0, 5), 'image', 'A MIME type was set.');
 
     // Load both files using File::loadMultiple().
     $files = File::loadMultiple([$file1->id(), $file2->id()]);
diff --git a/core/modules/file/src/Tests/Update/FileUpdateTest.php b/core/modules/file/src/Tests/Update/FileUpdateTest.php
index bd724f41b0..dbdb53149d 100644
--- a/core/modules/file/src/Tests/Update/FileUpdateTest.php
+++ b/core/modules/file/src/Tests/Update/FileUpdateTest.php
@@ -48,12 +48,12 @@ public function testPostUpdate8001() {
     // Check that field_file_generic formatter has a
     // use_description_as_link_text setting which value is TRUE.
     $formatter_settings = $this->config($view)->get('content.field_file_generic_2677990.settings');
-    $this->assertEqual($formatter_settings, ['use_description_as_link_text' => TRUE]);
+    $this->assertEquals($formatter_settings, ['use_description_as_link_text' => TRUE]);
 
     // Check that field_file_table formatter has a use_description_as_link_text
     // setting which value is FALSE.
     $formatter_settings = $this->config($view)->get('content.field_file_table_2677990.settings');
-    $this->assertEqual($formatter_settings, ['use_description_as_link_text' => FALSE]);
+    $this->assertEquals($formatter_settings, ['use_description_as_link_text' => FALSE]);
   }
 
 }
diff --git a/core/modules/file/tests/src/Functional/FileFieldTestBase.php b/core/modules/file/tests/src/Functional/FileFieldTestBase.php
index 937bf212a2..238a789feb 100644
--- a/core/modules/file/tests/src/Functional/FileFieldTestBase.php
+++ b/core/modules/file/tests/src/Functional/FileFieldTestBase.php
@@ -280,7 +280,7 @@ public function assertFileEntryExists($file, $message = NULL) {
     $this->container->get('entity.manager')->getStorage('file')->resetCache();
     $db_file = File::load($file->id());
     $message = isset($message) ? $message : format_string('File %file exists in database at the correct path.', ['%file' => $file->getFileUri()]);
-    $this->assertEqual($db_file->getFileUri(), $file->getFileUri(), $message);
+    $this->assertEquals($db_file->getFileUri(), $file->getFileUri(), $message);
   }
 
   /**
diff --git a/core/modules/file/tests/src/Functional/FileManagedTestBase.php b/core/modules/file/tests/src/Functional/FileManagedTestBase.php
index e0da7d1a00..01ec5c72da 100644
--- a/core/modules/file/tests/src/Functional/FileManagedTestBase.php
+++ b/core/modules/file/tests/src/Functional/FileManagedTestBase.php
@@ -82,7 +82,7 @@ public function assertFileHookCalled($hook, $expected_count = 1, $message = NULL
         $message = format_string('hook_file_@name was expected to be called %expected times but was called %actual times.', ['@name' => $hook, '%expected' => $expected_count, '%actual' => $actual_count]);
       }
     }
-    $this->assertEqual($actual_count, $expected_count, $message);
+    $this->assertEquals($actual_count, $expected_count, $message);
   }
 
   /**
@@ -94,13 +94,13 @@ public function assertFileHookCalled($hook, $expected_count = 1, $message = NULL
    *   File object to compare.
    */
   public function assertFileUnchanged(FileInterface $before, FileInterface $after) {
-    $this->assertEqual($before->id(), $after->id(), t('File id is the same: %file1 == %file2.', ['%file1' => $before->id(), '%file2' => $after->id()]), 'File unchanged');
-    $this->assertEqual($before->getOwner()->id(), $after->getOwner()->id(), t('File owner is the same: %file1 == %file2.', ['%file1' => $before->getOwner()->id(), '%file2' => $after->getOwner()->id()]), 'File unchanged');
-    $this->assertEqual($before->getFilename(), $after->getFilename(), t('File name is the same: %file1 == %file2.', ['%file1' => $before->getFilename(), '%file2' => $after->getFilename()]), 'File unchanged');
-    $this->assertEqual($before->getFileUri(), $after->getFileUri(), t('File path is the same: %file1 == %file2.', ['%file1' => $before->getFileUri(), '%file2' => $after->getFileUri()]), 'File unchanged');
-    $this->assertEqual($before->getMimeType(), $after->getMimeType(), t('File MIME type is the same: %file1 == %file2.', ['%file1' => $before->getMimeType(), '%file2' => $after->getMimeType()]), 'File unchanged');
-    $this->assertEqual($before->getSize(), $after->getSize(), t('File size is the same: %file1 == %file2.', ['%file1' => $before->getSize(), '%file2' => $after->getSize()]), 'File unchanged');
-    $this->assertEqual($before->isPermanent(), $after->isPermanent(), t('File status is the same: %file1 == %file2.', ['%file1' => $before->isPermanent(), '%file2' => $after->isPermanent()]), 'File unchanged');
+    $this->assertEquals($before->id(), $after->id(), t('File id is the same: %file1 == %file2.', ['%file1' => $before->id(), '%file2' => $after->id()]), 'File unchanged');
+    $this->assertEquals($before->getOwner()->id(), $after->getOwner()->id(), t('File owner is the same: %file1 == %file2.', ['%file1' => $before->getOwner()->id(), '%file2' => $after->getOwner()->id()]), 'File unchanged');
+    $this->assertEquals($before->getFilename(), $after->getFilename(), t('File name is the same: %file1 == %file2.', ['%file1' => $before->getFilename(), '%file2' => $after->getFilename()]), 'File unchanged');
+    $this->assertEquals($before->getFileUri(), $after->getFileUri(), t('File path is the same: %file1 == %file2.', ['%file1' => $before->getFileUri(), '%file2' => $after->getFileUri()]), 'File unchanged');
+    $this->assertEquals($before->getMimeType(), $after->getMimeType(), t('File MIME type is the same: %file1 == %file2.', ['%file1' => $before->getMimeType(), '%file2' => $after->getMimeType()]), 'File unchanged');
+    $this->assertEquals($before->getSize(), $after->getSize(), t('File size is the same: %file1 == %file2.', ['%file1' => $before->getSize(), '%file2' => $after->getSize()]), 'File unchanged');
+    $this->assertEquals($before->isPermanent(), $after->isPermanent(), t('File status is the same: %file1 == %file2.', ['%file1' => $before->isPermanent(), '%file2' => $after->isPermanent()]), 'File unchanged');
   }
 
   /**
@@ -125,8 +125,8 @@ public function assertDifferentFile(FileInterface $file1, FileInterface $file2)
    *   File object to compare.
    */
   public function assertSameFile(FileInterface $file1, FileInterface $file2) {
-    $this->assertEqual($file1->id(), $file2->id(), t('Files have the same ids: %file1 == %file2.', ['%file1' => $file1->id(), '%file2-fid' => $file2->id()]), 'Same file');
-    $this->assertEqual($file1->getFileUri(), $file2->getFileUri(), t('Files have the same path: %file1 == %file2.', ['%file1' => $file1->getFileUri(), '%file2' => $file2->getFileUri()]), 'Same file');
+    $this->assertEquals($file1->id(), $file2->id(), t('Files have the same ids: %file1 == %file2.', ['%file1' => $file1->id(), '%file2-fid' => $file2->id()]), 'Same file');
+    $this->assertEquals($file1->getFileUri(), $file2->getFileUri(), t('Files have the same path: %file1 == %file2.', ['%file1' => $file1->getFileUri(), '%file2' => $file2->getFileUri()]), 'Same file');
   }
 
   /**
diff --git a/core/modules/file/tests/src/Kernel/CopyTest.php b/core/modules/file/tests/src/Kernel/CopyTest.php
index 3193cb6619..6f49bd87af 100644
--- a/core/modules/file/tests/src/Kernel/CopyTest.php
+++ b/core/modules/file/tests/src/Kernel/CopyTest.php
@@ -24,13 +24,13 @@ public function testNormal() {
 
     // Check the return status and that the contents changed.
     $this->assertTrue($result, 'File copied successfully.');
-    $this->assertEqual($contents, file_get_contents($result->getFileUri()), 'Contents of file were copied correctly.');
+    $this->assertEquals($contents, file_get_contents($result->getFileUri()), 'Contents of file were copied correctly.');
 
     // Check that the correct hooks were called.
     $this->assertFileHooksCalled(['copy', 'insert']);
 
     $this->assertDifferentFile($source, $result);
-    $this->assertEqual($result->getFileUri(), $desired_uri, 'The copied file entity has the desired filepath.');
+    $this->assertEquals($result->getFileUri(), $desired_uri, 'The copied file entity has the desired filepath.');
     $this->assertTrue(file_exists($source->getFileUri()), 'The original file still exists.');
     $this->assertTrue(file_exists($result->getFileUri()), 'The copied file exists.');
 
@@ -55,7 +55,7 @@ public function testExistingRename() {
 
     // Check the return status and that the contents changed.
     $this->assertTrue($result, 'File copied successfully.');
-    $this->assertEqual($contents, file_get_contents($result->getFileUri()), 'Contents of file were copied correctly.');
+    $this->assertEquals($contents, file_get_contents($result->getFileUri()), 'Contents of file were copied correctly.');
     $this->assertNotEqual($result->getFileUri(), $source->getFileUri(), 'Returned file path has changed from the original.');
 
     // Check that the correct hooks were called.
@@ -95,7 +95,7 @@ public function testExistingReplace() {
 
     // Check the return status and that the contents changed.
     $this->assertTrue($result, 'File copied successfully.');
-    $this->assertEqual($contents, file_get_contents($result->getFileUri()), 'Contents of file were overwritten.');
+    $this->assertEquals($contents, file_get_contents($result->getFileUri()), 'Contents of file were overwritten.');
     $this->assertDifferentFile($source, $result);
 
     // Check that the correct hooks were called.
@@ -133,7 +133,7 @@ public function testExistingError() {
 
     // Check the return status and that the contents were not changed.
     $this->assertFalse($result, 'File copy failed.');
-    $this->assertEqual($contents, file_get_contents($target->getFileUri()), 'Contents of file were not altered.');
+    $this->assertEquals($contents, file_get_contents($target->getFileUri()), 'Contents of file were not altered.');
 
     // Check that the correct hooks were called.
     $this->assertFileHooksCalled([]);
diff --git a/core/modules/file/tests/src/Kernel/DeleteTest.php b/core/modules/file/tests/src/Kernel/DeleteTest.php
index de5a5bc045..52e9ab2bfe 100644
--- a/core/modules/file/tests/src/Kernel/DeleteTest.php
+++ b/core/modules/file/tests/src/Kernel/DeleteTest.php
@@ -40,7 +40,7 @@ public function testInUse() {
 
     $file_usage->delete($file, 'testing', 'test', 1);
     $usage = $file_usage->listUsage($file);
-    $this->assertEqual($usage['testing']['test'], [1 => 1], 'Test file is still in use.');
+    $this->assertEquals($usage['testing']['test'], [1 => 1], 'Test file is still in use.');
     $this->assertTrue(file_exists($file->getFileUri()), 'File still exists on the disk.');
     $this->assertTrue(File::load($file->id()), 'File still exists in the database.');
 
diff --git a/core/modules/file/tests/src/Kernel/FileItemTest.php b/core/modules/file/tests/src/Kernel/FileItemTest.php
index ac6cd8899f..095da12697 100644
--- a/core/modules/file/tests/src/Kernel/FileItemTest.php
+++ b/core/modules/file/tests/src/Kernel/FileItemTest.php
@@ -82,7 +82,7 @@ public function testFileItem() {
     // 'default:file'.
     $field_definition = FieldConfig::load('entity_test.entity_test.file_test');
     $handler_id = $field_definition->getSetting('handler');
-    $this->assertEqual($handler_id, 'default:file');
+    $this->assertEquals($handler_id, 'default:file');
 
     // Create a test entity with the
     $entity = EntityTest::create();
@@ -95,13 +95,13 @@ public function testFileItem() {
     $entity = EntityTest::load($entity->id());
     $this->assertTrue($entity->file_test instanceof FieldItemListInterface, 'Field implements interface.');
     $this->assertTrue($entity->file_test[0] instanceof FieldItemInterface, 'Field item implements interface.');
-    $this->assertEqual($entity->file_test->target_id, $this->file->id());
-    $this->assertEqual($entity->file_test->display, 1);
-    $this->assertEqual($entity->file_test->description, $description);
-    $this->assertEqual($entity->file_test->entity->getFileUri(), $this->file->getFileUri());
-    $this->assertEqual($entity->file_test->entity->url(), $url = file_create_url($this->file->getFileUri()));
-    $this->assertEqual($entity->file_test->entity->id(), $this->file->id());
-    $this->assertEqual($entity->file_test->entity->uuid(), $this->file->uuid());
+    $this->assertEquals($entity->file_test->target_id, $this->file->id());
+    $this->assertEquals($entity->file_test->display, 1);
+    $this->assertEquals($entity->file_test->description, $description);
+    $this->assertEquals($entity->file_test->entity->getFileUri(), $this->file->getFileUri());
+    $this->assertEquals($entity->file_test->entity->url(), $url = file_create_url($this->file->getFileUri()));
+    $this->assertEquals($entity->file_test->entity->id(), $this->file->id());
+    $this->assertEquals($entity->file_test->entity->uuid(), $this->file->uuid());
 
     // Make sure the computed files reflects updates to the file.
     file_put_contents('public://example-2.txt', $this->randomMachineName());
@@ -111,8 +111,8 @@ public function testFileItem() {
     $file2->save();
 
     $entity->file_test->target_id = $file2->id();
-    $this->assertEqual($entity->file_test->entity->id(), $file2->id());
-    $this->assertEqual($entity->file_test->entity->getFileUri(), $file2->getFileUri());
+    $this->assertEquals($entity->file_test->entity->id(), $file2->id());
+    $this->assertEquals($entity->file_test->entity->getFileUri(), $file2->getFileUri());
 
     // Test the deletion of an entity having an entity reference field targeting
     // a non-existing entity.
@@ -125,7 +125,7 @@ public function testFileItem() {
     $this->entityValidateAndSave($entity);
     // Verify that the sample file was stored in the correct directory.
     $uri = $entity->file_test->entity->getFileUri();
-    $this->assertEqual($this->directory, dirname(file_uri_target($uri)));
+    $this->assertEquals($this->directory, dirname(file_uri_target($uri)));
 
     // Make sure the computed files reflects updates to the file.
     file_put_contents('public://example-3.txt', $this->randomMachineName());
@@ -145,7 +145,7 @@ public function testFileItem() {
     $output = entity_view($entity, 'default');
     \Drupal::service('renderer')->renderRoot($output);
     $this->assertTrue(!empty($entity->file_test->entity));
-    $this->assertEqual($entity->file_test->entity->getFileUri(), $uri);
+    $this->assertEquals($entity->file_test->entity->getFileUri(), $uri);
   }
 
 }
diff --git a/core/modules/file/tests/src/Kernel/FileManagedUnitTestBase.php b/core/modules/file/tests/src/Kernel/FileManagedUnitTestBase.php
index 7c43e9bfd0..95ea546350 100644
--- a/core/modules/file/tests/src/Kernel/FileManagedUnitTestBase.php
+++ b/core/modules/file/tests/src/Kernel/FileManagedUnitTestBase.php
@@ -95,7 +95,7 @@ public function assertFileHookCalled($hook, $expected_count = 1, $message = NULL
         $message = format_string('hook_file_@name was expected to be called %expected times but was called %actual times.', ['@name' => $hook, '%expected' => $expected_count, '%actual' => $actual_count]);
       }
     }
-    $this->assertEqual($actual_count, $expected_count, $message);
+    $this->assertEquals($actual_count, $expected_count, $message);
   }
 
   /**
@@ -107,13 +107,13 @@ public function assertFileHookCalled($hook, $expected_count = 1, $message = NULL
    *   File object to compare.
    */
   public function assertFileUnchanged(FileInterface $before, FileInterface $after) {
-    $this->assertEqual($before->id(), $after->id(), t('File id is the same: %file1 == %file2.', ['%file1' => $before->id(), '%file2' => $after->id()]), 'File unchanged');
-    $this->assertEqual($before->getOwner()->id(), $after->getOwner()->id(), t('File owner is the same: %file1 == %file2.', ['%file1' => $before->getOwner()->id(), '%file2' => $after->getOwner()->id()]), 'File unchanged');
-    $this->assertEqual($before->getFilename(), $after->getFilename(), t('File name is the same: %file1 == %file2.', ['%file1' => $before->getFilename(), '%file2' => $after->getFilename()]), 'File unchanged');
-    $this->assertEqual($before->getFileUri(), $after->getFileUri(), t('File path is the same: %file1 == %file2.', ['%file1' => $before->getFileUri(), '%file2' => $after->getFileUri()]), 'File unchanged');
-    $this->assertEqual($before->getMimeType(), $after->getMimeType(), t('File MIME type is the same: %file1 == %file2.', ['%file1' => $before->getMimeType(), '%file2' => $after->getMimeType()]), 'File unchanged');
-    $this->assertEqual($before->getSize(), $after->getSize(), t('File size is the same: %file1 == %file2.', ['%file1' => $before->getSize(), '%file2' => $after->getSize()]), 'File unchanged');
-    $this->assertEqual($before->isPermanent(), $after->isPermanent(), t('File status is the same: %file1 == %file2.', ['%file1' => $before->isPermanent(), '%file2' => $after->isPermanent()]), 'File unchanged');
+    $this->assertEquals($before->id(), $after->id(), t('File id is the same: %file1 == %file2.', ['%file1' => $before->id(), '%file2' => $after->id()]), 'File unchanged');
+    $this->assertEquals($before->getOwner()->id(), $after->getOwner()->id(), t('File owner is the same: %file1 == %file2.', ['%file1' => $before->getOwner()->id(), '%file2' => $after->getOwner()->id()]), 'File unchanged');
+    $this->assertEquals($before->getFilename(), $after->getFilename(), t('File name is the same: %file1 == %file2.', ['%file1' => $before->getFilename(), '%file2' => $after->getFilename()]), 'File unchanged');
+    $this->assertEquals($before->getFileUri(), $after->getFileUri(), t('File path is the same: %file1 == %file2.', ['%file1' => $before->getFileUri(), '%file2' => $after->getFileUri()]), 'File unchanged');
+    $this->assertEquals($before->getMimeType(), $after->getMimeType(), t('File MIME type is the same: %file1 == %file2.', ['%file1' => $before->getMimeType(), '%file2' => $after->getMimeType()]), 'File unchanged');
+    $this->assertEquals($before->getSize(), $after->getSize(), t('File size is the same: %file1 == %file2.', ['%file1' => $before->getSize(), '%file2' => $after->getSize()]), 'File unchanged');
+    $this->assertEquals($before->isPermanent(), $after->isPermanent(), t('File status is the same: %file1 == %file2.', ['%file1' => $before->isPermanent(), '%file2' => $after->isPermanent()]), 'File unchanged');
   }
 
   /**
@@ -138,8 +138,8 @@ public function assertDifferentFile(FileInterface $file1, FileInterface $file2)
    *   File object to compare.
    */
   public function assertSameFile(FileInterface $file1, FileInterface $file2) {
-    $this->assertEqual($file1->id(), $file2->id(), t('Files have the same ids: %file1 == %file2.', ['%file1' => $file1->id(), '%file2-fid' => $file2->id()]), 'Same file');
-    $this->assertEqual($file1->getFileUri(), $file2->getFileUri(), t('Files have the same path: %file1 == %file2.', ['%file1' => $file1->getFileUri(), '%file2' => $file2->getFileUri()]), 'Same file');
+    $this->assertEquals($file1->id(), $file2->id(), t('Files have the same ids: %file1 == %file2.', ['%file1' => $file1->id(), '%file2-fid' => $file2->id()]), 'Same file');
+    $this->assertEquals($file1->getFileUri(), $file2->getFileUri(), t('Files have the same path: %file1 == %file2.', ['%file1' => $file1->getFileUri(), '%file2' => $file2->getFileUri()]), 'Same file');
   }
 
   /**
diff --git a/core/modules/file/tests/src/Kernel/Formatter/FileEntityFormatterTest.php b/core/modules/file/tests/src/Kernel/Formatter/FileEntityFormatterTest.php
index 743da8026e..5e5f1da1cd 100644
--- a/core/modules/file/tests/src/Kernel/Formatter/FileEntityFormatterTest.php
+++ b/core/modules/file/tests/src/Kernel/Formatter/FileEntityFormatterTest.php
@@ -79,8 +79,8 @@ public function testFormatterFileLink() {
     $entity_display->setComponent('filename', ['type' => 'file_link']);
 
     $build = $entity_display->buildMultiple($this->files)[0]['filename'][0];
-    $this->assertEqual('file.png', $build['#title']);
-    $this->assertEqual(Url::fromUri(file_create_url('public://file.png')), $build['#url']);
+    $this->assertEquals('file.png', $build['#title']);
+    $this->assertEquals(Url::fromUri(file_create_url('public://file.png')), $build['#url']);
   }
 
   /**
@@ -94,16 +94,16 @@ public function testFormatterFileUri() {
     $entity_display->setComponent('uri', ['type' => 'file_uri']);
 
     $build = $entity_display->buildMultiple($this->files)[0]['uri'][0];
-    $this->assertEqual('public://file.png', $build['#markup']);
+    $this->assertEquals('public://file.png', $build['#markup']);
 
     $entity_display->setComponent('uri', ['type' => 'file_uri', 'settings' => ['file_download_path' => TRUE]]);
     $build = $entity_display->buildMultiple($this->files)[0]['uri'][0];
-    $this->assertEqual(file_create_url('public://file.png'), $build['#markup']);
+    $this->assertEquals(file_create_url('public://file.png'), $build['#markup']);
 
     $entity_display->setComponent('uri', ['type' => 'file_uri', 'settings' => ['file_download_path' => TRUE, 'link_to_file' => TRUE]]);
     $build = $entity_display->buildMultiple($this->files)[0]['uri'][0];
-    $this->assertEqual(file_create_url('public://file.png'), $build['#title']);
-    $this->assertEqual(Url::fromUri(file_create_url('public://file.png')), $build['#url']);
+    $this->assertEquals(file_create_url('public://file.png'), $build['#title']);
+    $this->assertEquals(Url::fromUri(file_create_url('public://file.png')), $build['#url']);
   }
 
   /**
@@ -119,7 +119,7 @@ public function testFormatterFileExtension() {
     $expected = ['png', 'tar', 'gz', ''];
     foreach (array_values($this->files) as $i => $file) {
       $build = $entity_display->build($file);
-      $this->assertEqual($expected[$i], $build['filename'][0]['#markup']);
+      $this->assertEquals($expected[$i], $build['filename'][0]['#markup']);
     }
 
     $entity_display->setComponent('filename', ['type' => 'file_extension', 'settings' => ['extension_detect_tar' => TRUE]]);
@@ -127,7 +127,7 @@ public function testFormatterFileExtension() {
     $expected = ['png', 'tar', 'tar.gz', ''];
     foreach (array_values($this->files) as $i => $file) {
       $build = $entity_display->build($file);
-      $this->assertEqual($expected[$i], $build['filename'][0]['#markup']);
+      $this->assertEquals($expected[$i], $build['filename'][0]['#markup']);
     }
   }
 
@@ -143,8 +143,8 @@ public function testFormatterFileMime() {
 
     foreach (array_values($this->files) as $i => $file) {
       $build = $entity_display->build($file);
-      $this->assertEqual('image__file_icon', $build['filemime'][0]['#theme']);
-      $this->assertEqual(spl_object_hash($file), spl_object_hash($build['filemime'][0]['#file']));
+      $this->assertEquals('image__file_icon', $build['filemime'][0]['#theme']);
+      $this->assertEquals(spl_object_hash($file), spl_object_hash($build['filemime'][0]['#file']));
     }
   }
 
@@ -161,7 +161,7 @@ public function testFormatterFileSize() {
     $expected = ['10 bytes', '200 bytes', '39.06 KB', '7.63 MB'];
     foreach (array_values($this->files) as $i => $file) {
       $build = $entity_display->build($file);
-      $this->assertEqual($expected[$i], $build['filesize'][0]['#markup']);
+      $this->assertEquals($expected[$i], $build['filesize'][0]['#markup']);
     }
   }
 
diff --git a/core/modules/file/tests/src/Kernel/LoadTest.php b/core/modules/file/tests/src/Kernel/LoadTest.php
index 9d715395b0..71312ce0b9 100644
--- a/core/modules/file/tests/src/Kernel/LoadTest.php
+++ b/core/modules/file/tests/src/Kernel/LoadTest.php
@@ -45,11 +45,11 @@ public function testSingleValues() {
     $by_fid_file = File::load($file->id());
     $this->assertFileHookCalled('load');
     $this->assertTrue(is_object($by_fid_file), '\Drupal\file\Entity\File::load() returned an object.');
-    $this->assertEqual($by_fid_file->id(), $file->id(), 'Loading by fid got the same fid.', 'File');
-    $this->assertEqual($by_fid_file->getFileUri(), $file->getFileUri(), 'Loading by fid got the correct filepath.', 'File');
-    $this->assertEqual($by_fid_file->getFilename(), $file->getFilename(), 'Loading by fid got the correct filename.', 'File');
-    $this->assertEqual($by_fid_file->getMimeType(), $file->getMimeType(), 'Loading by fid got the correct MIME type.', 'File');
-    $this->assertEqual($by_fid_file->isPermanent(), $file->isPermanent(), 'Loading by fid got the correct status.', 'File');
+    $this->assertEquals($by_fid_file->id(), $file->id(), 'Loading by fid got the same fid.', 'File');
+    $this->assertEquals($by_fid_file->getFileUri(), $file->getFileUri(), 'Loading by fid got the correct filepath.', 'File');
+    $this->assertEquals($by_fid_file->getFilename(), $file->getFilename(), 'Loading by fid got the correct filename.', 'File');
+    $this->assertEquals($by_fid_file->getMimeType(), $file->getMimeType(), 'Loading by fid got the correct MIME type.', 'File');
+    $this->assertEquals($by_fid_file->isPermanent(), $file->isPermanent(), 'Loading by fid got the correct status.', 'File');
     $this->assertTrue($by_fid_file->file_test['loaded'], 'file_test_file_load() was able to modify the file during load.');
   }
 
@@ -64,19 +64,19 @@ public function testMultiple() {
     file_test_reset();
     $by_path_files = entity_load_multiple_by_properties('file', ['uri' => $file->getFileUri()]);
     $this->assertFileHookCalled('load');
-    $this->assertEqual(1, count($by_path_files), 'entity_load_multiple_by_properties() returned an array of the correct size.');
+    $this->assertEquals(1, count($by_path_files), 'entity_load_multiple_by_properties() returned an array of the correct size.');
     $by_path_file = reset($by_path_files);
     $this->assertTrue($by_path_file->file_test['loaded'], 'file_test_file_load() was able to modify the file during load.');
-    $this->assertEqual($by_path_file->id(), $file->id(), 'Loading by filepath got the correct fid.', 'File');
+    $this->assertEquals($by_path_file->id(), $file->id(), 'Loading by filepath got the correct fid.', 'File');
 
     // Load by fid.
     file_test_reset();
     $by_fid_files = File::loadMultiple([$file->id()]);
     $this->assertFileHooksCalled([]);
-    $this->assertEqual(1, count($by_fid_files), '\Drupal\file\Entity\File::loadMultiple() returned an array of the correct size.');
+    $this->assertEquals(1, count($by_fid_files), '\Drupal\file\Entity\File::loadMultiple() returned an array of the correct size.');
     $by_fid_file = reset($by_fid_files);
     $this->assertTrue($by_fid_file->file_test['loaded'], 'file_test_file_load() was able to modify the file during load.');
-    $this->assertEqual($by_fid_file->getFileUri(), $file->getFileUri(), 'Loading by fid got the correct filepath.', 'File');
+    $this->assertEquals($by_fid_file->getFileUri(), $file->getFileUri(), 'Loading by fid got the correct filepath.', 'File');
   }
 
   /**
@@ -92,7 +92,7 @@ public function testUuidValues() {
     $this->assertFileHookCalled('load');
     $this->assertTrue(is_object($by_uuid_file), '\Drupal::entityManager()->loadEntityByUuid() returned a file object.');
     if (is_object($by_uuid_file)) {
-      $this->assertEqual($by_uuid_file->id(), $file->id(), 'Loading by UUID got the same fid.', 'File');
+      $this->assertEquals($by_uuid_file->id(), $file->id(), 'Loading by UUID got the same fid.', 'File');
       $this->assertTrue($by_uuid_file->file_test['loaded'], 'file_test_file_load() was able to modify the file during load.');
     }
   }
diff --git a/core/modules/file/tests/src/Kernel/MoveTest.php b/core/modules/file/tests/src/Kernel/MoveTest.php
index 3183ecfe42..0680330782 100644
--- a/core/modules/file/tests/src/Kernel/MoveTest.php
+++ b/core/modules/file/tests/src/Kernel/MoveTest.php
@@ -25,13 +25,13 @@ public function testNormal() {
     // Check the return status and that the contents changed.
     $this->assertTrue($result, 'File moved successfully.');
     $this->assertFalse(file_exists($source->getFileUri()));
-    $this->assertEqual($contents, file_get_contents($result->getFileUri()), 'Contents of file correctly written.');
+    $this->assertEquals($contents, file_get_contents($result->getFileUri()), 'Contents of file correctly written.');
 
     // Check that the correct hooks were called.
     $this->assertFileHooksCalled(['move', 'load', 'update']);
 
     // Make sure we got the same file back.
-    $this->assertEqual($source->id(), $result->id(), format_string("Source file id's' %fid is unchanged after move.", ['%fid' => $source->id()]));
+    $this->assertEquals($source->id(), $result->id(), format_string("Source file id's' %fid is unchanged after move.", ['%fid' => $source->id()]));
 
     // Reload the file from the database and check that the changes were
     // actually saved.
@@ -57,7 +57,7 @@ public function testExistingRename() {
     // Check the return status and that the contents changed.
     $this->assertTrue($result, 'File moved successfully.');
     $this->assertFalse(file_exists($source->getFileUri()));
-    $this->assertEqual($contents, file_get_contents($result->getFileUri()), 'Contents of file correctly written.');
+    $this->assertEquals($contents, file_get_contents($result->getFileUri()), 'Contents of file correctly written.');
 
     // Check that the correct hooks were called.
     $this->assertFileHooksCalled(['move', 'load', 'update']);
@@ -71,7 +71,7 @@ public function testExistingRename() {
 
     // Compare the source and results.
     $loaded_source = File::load($source->id());
-    $this->assertEqual($loaded_source->id(), $result->id(), "Returned file's id matches the source.");
+    $this->assertEquals($loaded_source->id(), $result->id(), "Returned file's id matches the source.");
     $this->assertNotEqual($loaded_source->getFileUri(), $source->getFileUri(), 'Returned file path has changed from the original.');
   }
 
@@ -90,7 +90,7 @@ public function testExistingReplace() {
     $result = file_move(clone $source, $target->getFileUri(), FILE_EXISTS_REPLACE);
 
     // Look at the results.
-    $this->assertEqual($contents, file_get_contents($result->getFileUri()), 'Contents of file were overwritten.');
+    $this->assertEquals($contents, file_get_contents($result->getFileUri()), 'Contents of file were overwritten.');
     $this->assertFalse(file_exists($source->getFileUri()));
     $this->assertTrue($result, 'File moved successfully.');
 
@@ -119,7 +119,7 @@ public function testExistingReplaceSelf() {
     // about the function changing our reference copy.
     $result = file_move(clone $source, $source->getFileUri(), FILE_EXISTS_REPLACE);
     $this->assertFalse($result, 'File move failed.');
-    $this->assertEqual($contents, file_get_contents($source->getFileUri()), 'Contents of file were not altered.');
+    $this->assertEquals($contents, file_get_contents($source->getFileUri()), 'Contents of file were not altered.');
 
     // Check that no hooks were called while failing.
     $this->assertFileHooksCalled([]);
@@ -146,7 +146,7 @@ public function testExistingError() {
     // Check the return status and that the contents did not change.
     $this->assertFalse($result, 'File move failed.');
     $this->assertTrue(file_exists($source->getFileUri()));
-    $this->assertEqual($contents, file_get_contents($target->getFileUri()), 'Contents of file were not altered.');
+    $this->assertEquals($contents, file_get_contents($target->getFileUri()), 'Contents of file were not altered.');
 
     // Check that no hooks were called while failing.
     $this->assertFileHooksCalled([]);
diff --git a/core/modules/file/tests/src/Kernel/SaveDataTest.php b/core/modules/file/tests/src/Kernel/SaveDataTest.php
index 747c7b1ca5..e1554f9de7 100644
--- a/core/modules/file/tests/src/Kernel/SaveDataTest.php
+++ b/core/modules/file/tests/src/Kernel/SaveDataTest.php
@@ -19,10 +19,10 @@ public function testWithoutFilename() {
     $result = file_save_data($contents);
     $this->assertTrue($result, 'Unnamed file saved correctly.');
 
-    $this->assertEqual(file_default_scheme(), file_uri_scheme($result->getFileUri()), "File was placed in Drupal's files directory.");
-    $this->assertEqual($result->getFilename(), drupal_basename($result->getFileUri()), "Filename was set to the file's basename.");
-    $this->assertEqual($contents, file_get_contents($result->getFileUri()), 'Contents of the file are correct.');
-    $this->assertEqual($result->getMimeType(), 'application/octet-stream', 'A MIME type was set.');
+    $this->assertEquals(file_default_scheme(), file_uri_scheme($result->getFileUri()), "File was placed in Drupal's files directory.");
+    $this->assertEquals($result->getFilename(), drupal_basename($result->getFileUri()), "Filename was set to the file's basename.");
+    $this->assertEquals($contents, file_get_contents($result->getFileUri()), 'Contents of the file are correct.');
+    $this->assertEquals($result->getMimeType(), 'application/octet-stream', 'A MIME type was set.');
     $this->assertTrue($result->isPermanent(), "The file's status was set to permanent.");
 
     // Check that the correct hooks were called.
@@ -44,10 +44,10 @@ public function testWithFilename() {
     $result = file_save_data($contents, 'public://' . $filename);
     $this->assertTrue($result, 'Unnamed file saved correctly.');
 
-    $this->assertEqual('public', file_uri_scheme($result->getFileUri()), "File was placed in Drupal's files directory.");
-    $this->assertEqual($filename, drupal_basename($result->getFileUri()), 'File was named correctly.');
-    $this->assertEqual($contents, file_get_contents($result->getFileUri()), 'Contents of the file are correct.');
-    $this->assertEqual($result->getMimeType(), 'text/plain', 'A MIME type was set.');
+    $this->assertEquals('public', file_uri_scheme($result->getFileUri()), "File was placed in Drupal's files directory.");
+    $this->assertEquals($filename, drupal_basename($result->getFileUri()), 'File was named correctly.');
+    $this->assertEquals($contents, file_get_contents($result->getFileUri()), 'Contents of the file are correct.');
+    $this->assertEquals($result->getMimeType(), 'text/plain', 'A MIME type was set.');
     $this->assertTrue($result->isPermanent(), "The file's status was set to permanent.");
 
     // Check that the correct hooks were called.
@@ -68,10 +68,10 @@ public function testExistingRename() {
     $result = file_save_data($contents, $existing->getFileUri(), FILE_EXISTS_RENAME);
     $this->assertTrue($result, 'File saved successfully.');
 
-    $this->assertEqual('public', file_uri_scheme($result->getFileUri()), "File was placed in Drupal's files directory.");
-    $this->assertEqual($result->getFilename(), $existing->getFilename(), 'Filename was set to the basename of the source, rather than that of the renamed file.');
-    $this->assertEqual($contents, file_get_contents($result->getFileUri()), 'Contents of the file are correct.');
-    $this->assertEqual($result->getMimeType(), 'application/octet-stream', 'A MIME type was set.');
+    $this->assertEquals('public', file_uri_scheme($result->getFileUri()), "File was placed in Drupal's files directory.");
+    $this->assertEquals($result->getFilename(), $existing->getFilename(), 'Filename was set to the basename of the source, rather than that of the renamed file.');
+    $this->assertEquals($contents, file_get_contents($result->getFileUri()), 'Contents of the file are correct.');
+    $this->assertEquals($result->getMimeType(), 'application/octet-stream', 'A MIME type was set.');
     $this->assertTrue($result->isPermanent(), "The file's status was set to permanent.");
 
     // Check that the correct hooks were called.
@@ -96,10 +96,10 @@ public function testExistingReplace() {
     $result = file_save_data($contents, $existing->getFileUri(), FILE_EXISTS_REPLACE);
     $this->assertTrue($result, 'File saved successfully.');
 
-    $this->assertEqual('public', file_uri_scheme($result->getFileUri()), "File was placed in Drupal's files directory.");
-    $this->assertEqual($result->getFilename(), $existing->getFilename(), 'Filename was set to the basename of the existing file, rather than preserving the original name.');
-    $this->assertEqual($contents, file_get_contents($result->getFileUri()), 'Contents of the file are correct.');
-    $this->assertEqual($result->getMimeType(), 'application/octet-stream', 'A MIME type was set.');
+    $this->assertEquals('public', file_uri_scheme($result->getFileUri()), "File was placed in Drupal's files directory.");
+    $this->assertEquals($result->getFilename(), $existing->getFilename(), 'Filename was set to the basename of the existing file, rather than preserving the original name.');
+    $this->assertEquals($contents, file_get_contents($result->getFileUri()), 'Contents of the file are correct.');
+    $this->assertEquals($result->getMimeType(), 'application/octet-stream', 'A MIME type was set.');
     $this->assertTrue($result->isPermanent(), "The file's status was set to permanent.");
 
     // Check that the correct hooks were called.
@@ -122,7 +122,7 @@ public function testExistingError() {
     // Check the overwrite error.
     $result = file_save_data('asdf', $existing->getFileUri(), FILE_EXISTS_ERROR);
     $this->assertFalse($result, 'Overwriting a file fails when FILE_EXISTS_ERROR is specified.');
-    $this->assertEqual($contents, file_get_contents($existing->getFileUri()), 'Contents of existing file were unchanged.');
+    $this->assertEquals($contents, file_get_contents($existing->getFileUri()), 'Contents of existing file were unchanged.');
 
     // Check that no hooks were called while failing.
     $this->assertFileHooksCalled([]);
diff --git a/core/modules/file/tests/src/Kernel/SaveTest.php b/core/modules/file/tests/src/Kernel/SaveTest.php
index 193c5684ec..cc34160753 100644
--- a/core/modules/file/tests/src/Kernel/SaveTest.php
+++ b/core/modules/file/tests/src/Kernel/SaveTest.php
@@ -30,10 +30,10 @@ public function testFileSave() {
     $this->assertTrue($file->id() > 0, 'A new file ID is set when saving a new file to the database.', 'File');
     $loaded_file = File::load($file->id());
     $this->assertNotNull($loaded_file, 'Record exists in the database.');
-    $this->assertEqual($loaded_file->isPermanent(), $file->isPermanent(), 'Status was saved correctly.');
-    $this->assertEqual($file->getSize(), filesize($file->getFileUri()), 'File size was set correctly.', 'File');
+    $this->assertEquals($loaded_file->isPermanent(), $file->isPermanent(), 'Status was saved correctly.');
+    $this->assertEquals($file->getSize(), filesize($file->getFileUri()), 'File size was set correctly.', 'File');
     $this->assertTrue($file->getChangedTime() > 1, 'File size was set correctly.', 'File');
-    $this->assertEqual($loaded_file->langcode->value, 'en', 'Langcode was defaulted correctly.');
+    $this->assertEquals($loaded_file->langcode->value, 'en', 'Langcode was defaulted correctly.');
 
     // Resave the file, updating the existing record.
     file_test_reset();
@@ -43,12 +43,12 @@ public function testFileSave() {
     // Check that the correct hooks were called.
     $this->assertFileHooksCalled(['load', 'update']);
 
-    $this->assertEqual($file->id(), $file->id(), 'The file ID of an existing file is not changed when updating the database.', 'File');
+    $this->assertEquals($file->id(), $file->id(), 'The file ID of an existing file is not changed when updating the database.', 'File');
     $this->assertTrue($file->getChangedTime() >= $file->getChangedTime(), "Timestamp didn't go backwards.", 'File');
     $loaded_file = File::load($file->id());
     $this->assertNotNull($loaded_file, 'Record still exists in the database.', 'File');
-    $this->assertEqual($loaded_file->isPermanent(), $file->isPermanent(), 'Status was saved correctly.');
-    $this->assertEqual($loaded_file->langcode->value, 'en', 'Langcode was saved correctly.');
+    $this->assertEquals($loaded_file->isPermanent(), $file->isPermanent(), 'Status was saved correctly.');
+    $this->assertEquals($loaded_file->langcode->value, 'en', 'Langcode was saved correctly.');
 
     // Try to insert a second file with the same name apart from case insensitivity
     // to ensure the 'uri' index allows for filenames with different cases.
@@ -62,15 +62,15 @@ public function testFileSave() {
     $uppercase_file = File::create($uppercase_values);
     file_put_contents($uppercase_file->getFileUri(), 'hello world');
     $violations = $uppercase_file->validate();
-    $this->assertEqual(count($violations), 0, 'No violations when adding an URI with an existing filename in upper case.');
+    $this->assertEquals(count($violations), 0, 'No violations when adding an URI with an existing filename in upper case.');
     $uppercase_file->save();
 
     // Ensure the database URI uniqueness constraint is triggered.
     $uppercase_file_duplicate = File::create($uppercase_values);
     file_put_contents($uppercase_file_duplicate->getFileUri(), 'hello world');
     $violations = $uppercase_file_duplicate->validate();
-    $this->assertEqual(count($violations), 1);
-    $this->assertEqual($violations[0]->getMessage(), t('The file %value already exists. Enter a unique file URI.', [
+    $this->assertEquals(count($violations), 1);
+    $this->assertEquals($violations[0]->getMessage(), t('The file %value already exists. Enter a unique file URI.', [
       '%value' => $uppercase_file_duplicate->getFileUri(),
     ]));
     // Ensure that file URI entity queries are case sensitive.
@@ -78,8 +78,8 @@ public function testFileSave() {
       ->condition('uri', $uppercase_file->getFileUri())
       ->execute();
 
-    $this->assertEqual(1, count($fids));
-    $this->assertEqual([$uppercase_file->id() => $uppercase_file->id()], $fids);
+    $this->assertEquals(1, count($fids));
+    $this->assertEquals([$uppercase_file->id() => $uppercase_file->id()], $fids);
 
     // Save a file with zero bytes.
     $file = File::create([
diff --git a/core/modules/file/tests/src/Kernel/SpaceUsedTest.php b/core/modules/file/tests/src/Kernel/SpaceUsedTest.php
index 650a289cfa..9e65a34c6d 100644
--- a/core/modules/file/tests/src/Kernel/SpaceUsedTest.php
+++ b/core/modules/file/tests/src/Kernel/SpaceUsedTest.php
@@ -56,21 +56,21 @@ protected function createFileWithSize($uri, $size, $uid, $status = FILE_STATUS_P
   public function testFileSpaceUsed() {
     $file = $this->container->get('entity.manager')->getStorage('file');
     // Test different users with default status.
-    $this->assertEqual($file->spaceUsed(2), 70);
-    $this->assertEqual($file->spaceUsed(3), 300);
-    $this->assertEqual($file->spaceUsed(), 370);
+    $this->assertEquals($file->spaceUsed(2), 70);
+    $this->assertEquals($file->spaceUsed(3), 300);
+    $this->assertEquals($file->spaceUsed(), 370);
 
     // Test the status fields
-    $this->assertEqual($file->spaceUsed(NULL, 0), 4);
-    $this->assertEqual($file->spaceUsed(NULL, FILE_STATUS_PERMANENT), 370);
+    $this->assertEquals($file->spaceUsed(NULL, 0), 4);
+    $this->assertEquals($file->spaceUsed(NULL, FILE_STATUS_PERMANENT), 370);
 
     // Test both the user and status.
-    $this->assertEqual($file->spaceUsed(1, 0), 0);
-    $this->assertEqual($file->spaceUsed(1, FILE_STATUS_PERMANENT), 0);
-    $this->assertEqual($file->spaceUsed(2, 0), 1);
-    $this->assertEqual($file->spaceUsed(2, FILE_STATUS_PERMANENT), 70);
-    $this->assertEqual($file->spaceUsed(3, 0), 3);
-    $this->assertEqual($file->spaceUsed(3, FILE_STATUS_PERMANENT), 300);
+    $this->assertEquals($file->spaceUsed(1, 0), 0);
+    $this->assertEquals($file->spaceUsed(1, FILE_STATUS_PERMANENT), 0);
+    $this->assertEquals($file->spaceUsed(2, 0), 1);
+    $this->assertEquals($file->spaceUsed(2, FILE_STATUS_PERMANENT), 70);
+    $this->assertEquals($file->spaceUsed(3, 0), 3);
+    $this->assertEquals($file->spaceUsed(3, FILE_STATUS_PERMANENT), 300);
   }
 
 }
diff --git a/core/modules/file/tests/src/Kernel/UsageTest.php b/core/modules/file/tests/src/Kernel/UsageTest.php
index f95e9cd488..8f3042e8ca 100644
--- a/core/modules/file/tests/src/Kernel/UsageTest.php
+++ b/core/modules/file/tests/src/Kernel/UsageTest.php
@@ -41,11 +41,11 @@ public function testGetUsage() {
 
     $usage = $this->container->get('file.usage')->listUsage($file);
 
-    $this->assertEqual(count($usage['testing']), 2, 'Returned the correct number of items.');
+    $this->assertEquals(count($usage['testing']), 2, 'Returned the correct number of items.');
     $this->assertTrue(isset($usage['testing']['foo'][1]), 'Returned the correct id.');
     $this->assertTrue(isset($usage['testing']['bar'][2]), 'Returned the correct id.');
-    $this->assertEqual($usage['testing']['foo'][1], 1, 'Returned the correct count.');
-    $this->assertEqual($usage['testing']['bar'][2], 2, 'Returned the correct count.');
+    $this->assertEquals($usage['testing']['foo'][1], 1, 'Returned the correct count.');
+    $this->assertEquals($usage['testing']['bar'][2], 2, 'Returned the correct count.');
   }
 
   /**
@@ -65,13 +65,13 @@ public function testAddUsage() {
       ->condition('f.fid', $file->id())
       ->execute()
       ->fetchAllAssoc('id');
-    $this->assertEqual(count($usage), 2, 'Created two records');
-    $this->assertEqual($usage[1]->module, 'testing', 'Correct module');
-    $this->assertEqual($usage[2]->module, 'testing', 'Correct module');
-    $this->assertEqual($usage[1]->type, 'foo', 'Correct type');
-    $this->assertEqual($usage[2]->type, 'bar', 'Correct type');
-    $this->assertEqual($usage[1]->count, 1, 'Correct count');
-    $this->assertEqual($usage[2]->count, 2, 'Correct count');
+    $this->assertEquals(count($usage), 2, 'Created two records');
+    $this->assertEquals($usage[1]->module, 'testing', 'Correct module');
+    $this->assertEquals($usage[2]->module, 'testing', 'Correct module');
+    $this->assertEquals($usage[1]->type, 'foo', 'Correct type');
+    $this->assertEquals($usage[2]->type, 'bar', 'Correct type');
+    $this->assertEquals($usage[1]->count, 1, 'Correct count');
+    $this->assertEquals($usage[2]->count, 2, 'Correct count');
   }
 
   /**
@@ -120,7 +120,7 @@ public function doTestRemoveUsage() {
       ->condition('f.fid', $file->id())
       ->execute()
       ->fetchField();
-    $this->assertEqual(2, $count, 'The count was decremented correctly.');
+    $this->assertEquals(2, $count, 'The count was decremented correctly.');
 
     // Multiple decrement and removal.
     $file_usage->delete($file, 'testing', 'bar', 2, 2);
diff --git a/core/modules/file/tests/src/Kernel/ValidateTest.php b/core/modules/file/tests/src/Kernel/ValidateTest.php
index 0f348d69bd..c156dcb225 100644
--- a/core/modules/file/tests/src/Kernel/ValidateTest.php
+++ b/core/modules/file/tests/src/Kernel/ValidateTest.php
@@ -15,7 +15,7 @@ public function testCallerValidation() {
     $file = $this->createFile();
 
     // Empty validators.
-    $this->assertEqual(file_validate($file, []), [], 'Validating an empty array works successfully.');
+    $this->assertEquals(file_validate($file, []), [], 'Validating an empty array works successfully.');
     $this->assertFileHooksCalled(['validate']);
 
     // Use the file_test.module's test validator to ensure that passing tests
@@ -23,14 +23,14 @@ public function testCallerValidation() {
     file_test_reset();
     file_test_set_return('validate', []);
     $passing = ['file_test_validator' => [[]]];
-    $this->assertEqual(file_validate($file, $passing), [], 'Validating passes.');
+    $this->assertEquals(file_validate($file, $passing), [], 'Validating passes.');
     $this->assertFileHooksCalled(['validate']);
 
     // Now test for failures in validators passed in and by hook_validate.
     file_test_reset();
     file_test_set_return('validate', ['Epic fail']);
     $failing = ['file_test_validator' => [['Failed', 'Badly']]];
-    $this->assertEqual(file_validate($file, $failing), ['Failed', 'Badly', 'Epic fail'], 'Validating returns errors.');
+    $this->assertEquals(file_validate($file, $failing), ['Failed', 'Badly', 'Epic fail'], 'Validating returns errors.');
     $this->assertFileHooksCalled(['validate']);
   }
 
diff --git a/core/modules/file/tests/src/Kernel/ValidatorTest.php b/core/modules/file/tests/src/Kernel/ValidatorTest.php
index b645f39139..0647ac316b 100644
--- a/core/modules/file/tests/src/Kernel/ValidatorTest.php
+++ b/core/modules/file/tests/src/Kernel/ValidatorTest.php
@@ -43,11 +43,11 @@ protected function setUp() {
   public function testFileValidateExtensions() {
     $file = File::create(['filename' => 'asdf.txt']);
     $errors = file_validate_extensions($file, 'asdf txt pork');
-    $this->assertEqual(count($errors), 0, 'Valid extension accepted.', 'File');
+    $this->assertEquals(count($errors), 0, 'Valid extension accepted.', 'File');
 
     $file->setFilename('asdf.txt');
     $errors = file_validate_extensions($file, 'exe png');
-    $this->assertEqual(count($errors), 1, 'Invalid extension blocked.', 'File');
+    $this->assertEquals(count($errors), 1, 'Invalid extension blocked.', 'File');
   }
 
   /**
@@ -56,11 +56,11 @@ public function testFileValidateExtensions() {
   public function testFileValidateIsImage() {
     $this->assertTrue(file_exists($this->image->getFileUri()), 'The image being tested exists.', 'File');
     $errors = file_validate_is_image($this->image);
-    $this->assertEqual(count($errors), 0, 'No error reported for our image file.', 'File');
+    $this->assertEquals(count($errors), 0, 'No error reported for our image file.', 'File');
 
     $this->assertTrue(file_exists($this->nonImage->getFileUri()), 'The non-image being tested exists.', 'File');
     $errors = file_validate_is_image($this->nonImage);
-    $this->assertEqual(count($errors), 1, 'An error reported for our non-image file.', 'File');
+    $this->assertEquals(count($errors), 1, 'An error reported for our non-image file.', 'File');
   }
 
   /**
@@ -71,19 +71,19 @@ public function testFileValidateIsImage() {
   public function testFileValidateImageResolution() {
     // Non-images.
     $errors = file_validate_image_resolution($this->nonImage);
-    $this->assertEqual(count($errors), 0, 'Should not get any errors for a non-image file.', 'File');
+    $this->assertEquals(count($errors), 0, 'Should not get any errors for a non-image file.', 'File');
     $errors = file_validate_image_resolution($this->nonImage, '50x50', '100x100');
-    $this->assertEqual(count($errors), 0, 'Do not check the resolution on non files.', 'File');
+    $this->assertEquals(count($errors), 0, 'Do not check the resolution on non files.', 'File');
 
     // Minimum size.
     $errors = file_validate_image_resolution($this->image);
-    $this->assertEqual(count($errors), 0, 'No errors for an image when there is no minimum or maximum resolution.', 'File');
+    $this->assertEquals(count($errors), 0, 'No errors for an image when there is no minimum or maximum resolution.', 'File');
     $errors = file_validate_image_resolution($this->image, 0, '200x1');
-    $this->assertEqual(count($errors), 1, 'Got an error for an image that was not wide enough.', 'File');
+    $this->assertEquals(count($errors), 1, 'Got an error for an image that was not wide enough.', 'File');
     $errors = file_validate_image_resolution($this->image, 0, '1x200');
-    $this->assertEqual(count($errors), 1, 'Got an error for an image that was not tall enough.', 'File');
+    $this->assertEquals(count($errors), 1, 'Got an error for an image that was not tall enough.', 'File');
     $errors = file_validate_image_resolution($this->image, 0, '200x200');
-    $this->assertEqual(count($errors), 1, 'Small images report an error.', 'File');
+    $this->assertEquals(count($errors), 1, 'Small images report an error.', 'File');
 
     // Maximum size.
     if ($this->container->get('image.factory')->getToolkitId()) {
@@ -92,7 +92,7 @@ public function testFileValidateImageResolution() {
       $this->image->setFileUri('temporary://druplicon.png');
 
       $errors = file_validate_image_resolution($this->image, '10x5');
-      $this->assertEqual(count($errors), 0, 'No errors should be reported when an oversized image can be scaled down.', 'File');
+      $this->assertEquals(count($errors), 0, 'No errors should be reported when an oversized image can be scaled down.', 'File');
 
       $image = $this->container->get('image.factory')->get($this->image->getFileUri());
       $this->assertTrue($image->getWidth() <= 10, 'Image scaled to correct width.', 'File');
@@ -102,14 +102,14 @@ public function testFileValidateImageResolution() {
       copy('core/misc/druplicon.png', 'temporary://druplicon.png');
       $this->image->setFileUri('temporary://druplicon.png');
       $errors = file_validate_image_resolution($this->image, '-10x-5');
-      $this->assertEqual(count($errors), 1, 'An error reported for an oversized image that can not be scaled down.', 'File');
+      $this->assertEquals(count($errors), 1, 'An error reported for an oversized image that can not be scaled down.', 'File');
 
       drupal_unlink('temporary://druplicon.png');
     }
     else {
       // TODO: should check that the error is returned if no toolkit is available.
       $errors = file_validate_image_resolution($this->image, '5x10');
-      $this->assertEqual(count($errors), 1, 'Oversize images that cannot be scaled get an error.', 'File');
+      $this->assertEquals(count($errors), 1, 'Oversize images that cannot be scaled get an error.', 'File');
     }
   }
 
@@ -122,19 +122,19 @@ public function testFileValidateNameLength() {
 
     // Add a filename with an allowed length and test it.
     $file->setFilename(str_repeat('x', 240));
-    $this->assertEqual(strlen($file->getFilename()), 240);
+    $this->assertEquals(strlen($file->getFilename()), 240);
     $errors = file_validate_name_length($file);
-    $this->assertEqual(count($errors), 0, 'No errors reported for 240 length filename.', 'File');
+    $this->assertEquals(count($errors), 0, 'No errors reported for 240 length filename.', 'File');
 
     // Add a filename with a length too long and test it.
     $file->setFilename(str_repeat('x', 241));
     $errors = file_validate_name_length($file);
-    $this->assertEqual(count($errors), 1, 'An error reported for 241 length filename.', 'File');
+    $this->assertEquals(count($errors), 1, 'An error reported for 241 length filename.', 'File');
 
     // Add a filename with an empty string and test it.
     $file->setFilename('');
     $errors = file_validate_name_length($file);
-    $this->assertEqual(count($errors), 1, 'An error reported for 0 length filename.', 'File');
+    $this->assertEquals(count($errors), 1, 'An error reported for 0 length filename.', 'File');
   }
 
 
@@ -145,13 +145,13 @@ public function testFileValidateSize() {
     // Create a file with a size of 1000 bytes, and quotas of only 1 byte.
     $file = File::create(['filesize' => 1000]);
     $errors = file_validate_size($file, 0, 0);
-    $this->assertEqual(count($errors), 0, 'No limits means no errors.', 'File');
+    $this->assertEquals(count($errors), 0, 'No limits means no errors.', 'File');
     $errors = file_validate_size($file, 1, 0);
-    $this->assertEqual(count($errors), 1, 'Error for the file being over the limit.', 'File');
+    $this->assertEquals(count($errors), 1, 'Error for the file being over the limit.', 'File');
     $errors = file_validate_size($file, 0, 1);
-    $this->assertEqual(count($errors), 1, 'Error for the user being over their limit.', 'File');
+    $this->assertEquals(count($errors), 1, 'Error for the user being over their limit.', 'File');
     $errors = file_validate_size($file, 1, 1);
-    $this->assertEqual(count($errors), 2, 'Errors for both the file and their limit.', 'File');
+    $this->assertEquals(count($errors), 2, 'Errors for both the file and their limit.', 'File');
   }
 
 }
diff --git a/core/modules/file/tests/src/Kernel/Views/ExtensionViewsFieldTest.php b/core/modules/file/tests/src/Kernel/Views/ExtensionViewsFieldTest.php
index 867ab7aaa1..85015b6107 100644
--- a/core/modules/file/tests/src/Kernel/Views/ExtensionViewsFieldTest.php
+++ b/core/modules/file/tests/src/Kernel/Views/ExtensionViewsFieldTest.php
@@ -74,10 +74,10 @@ public function testFileExtensionTarOption() {
 
     // Test without the tar option.
     $renderer->executeInRenderContext(new RenderContext(), function () use ($view) {
-      $this->assertEqual($view->field['extension']->advancedRender($view->result[0]), 'png');
-      $this->assertEqual($view->field['extension']->advancedRender($view->result[1]), 'tar');
-      $this->assertEqual($view->field['extension']->advancedRender($view->result[2]), 'gz');
-      $this->assertEqual($view->field['extension']->advancedRender($view->result[3]), '');
+      $this->assertEquals($view->field['extension']->advancedRender($view->result[0]), 'png');
+      $this->assertEquals($view->field['extension']->advancedRender($view->result[1]), 'tar');
+      $this->assertEquals($view->field['extension']->advancedRender($view->result[2]), 'gz');
+      $this->assertEquals($view->field['extension']->advancedRender($view->result[3]), '');
     });
 
     // Test with the tar option.
@@ -89,10 +89,10 @@ public function testFileExtensionTarOption() {
     $this->executeView($view);
 
     $renderer->executeInRenderContext(new RenderContext(), function () use ($view) {
-      $this->assertEqual($view->field['extension']->advancedRender($view->result[0]), 'png');
-      $this->assertEqual($view->field['extension']->advancedRender($view->result[1]), 'tar');
-      $this->assertEqual($view->field['extension']->advancedRender($view->result[2]), 'tar.gz');
-      $this->assertEqual($view->field['extension']->advancedRender($view->result[3]), '');
+      $this->assertEquals($view->field['extension']->advancedRender($view->result[0]), 'png');
+      $this->assertEquals($view->field['extension']->advancedRender($view->result[1]), 'tar');
+      $this->assertEquals($view->field['extension']->advancedRender($view->result[2]), 'tar.gz');
+      $this->assertEquals($view->field['extension']->advancedRender($view->result[3]), '');
     });
   }
 
diff --git a/core/modules/filter/tests/src/Functional/FilterAdminTest.php b/core/modules/filter/tests/src/Functional/FilterAdminTest.php
index a6e429304e..b55b077d9a 100644
--- a/core/modules/filter/tests/src/Functional/FilterAdminTest.php
+++ b/core/modules/filter/tests/src/Functional/FilterAdminTest.php
@@ -237,7 +237,7 @@ public function testFilterAdmin() {
       }
     }
     // Ensure that the second filter is now before the first filter.
-    $this->assertEqual($filter_format->filters($second_filter)->weight + 1, $filter_format->filters($first_filter)->weight, 'Order confirmed in configuration.');
+    $this->assertEquals($filter_format->filters($second_filter)->weight + 1, $filter_format->filters($first_filter)->weight, 'Order confirmed in configuration.');
 
     // Add format.
     $edit = [];
diff --git a/core/modules/filter/tests/src/Functional/FilterDefaultFormatTest.php b/core/modules/filter/tests/src/Functional/FilterDefaultFormatTest.php
index 45c3711711..72d66f65e9 100644
--- a/core/modules/filter/tests/src/Functional/FilterDefaultFormatTest.php
+++ b/core/modules/filter/tests/src/Functional/FilterDefaultFormatTest.php
@@ -55,10 +55,10 @@ public function testDefaultTextFormats() {
     // the user has access to.
     $actual = filter_default_format($first_user);
     $expected = $first_format->id();
-    $this->assertEqual($actual, $expected, "First user's default format $actual is the expected lowest weighted format $expected that the user has access to.");
+    $this->assertEquals($actual, $expected, "First user's default format $actual is the expected lowest weighted format $expected that the user has access to.");
     $actual = filter_default_format($second_user);
     $expected = $second_format->id();
-    $this->assertEqual($actual, $expected, "Second user's default format $actual is the expected lowest weighted format $expected that the user has access to, and different to the first user's.");
+    $this->assertEquals($actual, $expected, "Second user's default format $actual is the expected lowest weighted format $expected that the user has access to, and different to the first user's.");
 
     // Reorder the two formats, and check that both users now have the same
     // default.
@@ -66,7 +66,7 @@ public function testDefaultTextFormats() {
     $edit['formats[' . $second_format->id() . '][weight]'] = -3;
     $this->drupalPostForm('admin/config/content/formats', $edit, t('Save'));
     $this->resetFilterCaches();
-    $this->assertEqual(filter_default_format($first_user), filter_default_format($second_user), 'After the formats are reordered, both users have the same default format.');
+    $this->assertEquals(filter_default_format($first_user), filter_default_format($second_user), 'After the formats are reordered, both users have the same default format.');
   }
 
   /**
diff --git a/core/modules/filter/tests/src/Functional/FilterFormTest.php b/core/modules/filter/tests/src/Functional/FilterFormTest.php
index fb0046b08a..ea3269a6b1 100644
--- a/core/modules/filter/tests/src/Functional/FilterFormTest.php
+++ b/core/modules/filter/tests/src/Functional/FilterFormTest.php
@@ -292,7 +292,7 @@ protected function assertDisabledTextarea($id) {
     ]));
     $textarea = reset($textarea);
     $expected = 'This field has been disabled because you do not have sufficient permissions to edit it.';
-    $this->assertEqual($textarea->getText(), $expected, SafeMarkup::format('Disabled textarea @id hides text in an inaccessible text format.', [
+    $this->assertEquals($textarea->getText(), $expected, SafeMarkup::format('Disabled textarea @id hides text in an inaccessible text format.', [
       '@id' => $id,
     ]));
     // Make sure the text format select is not shown.
diff --git a/core/modules/filter/tests/src/Functional/FilterFormatAccessTest.php b/core/modules/filter/tests/src/Functional/FilterFormatAccessTest.php
index 8c3394bdbf..23ad4e7722 100644
--- a/core/modules/filter/tests/src/Functional/FilterFormatAccessTest.php
+++ b/core/modules/filter/tests/src/Functional/FilterFormatAccessTest.php
@@ -124,11 +124,11 @@ public function testFormatPermissions() {
     $fallback_format = FilterFormat::load(filter_fallback_format());
     $disallowed_format_name = $this->disallowedFormat->getPermissionName();
     $this->assertTrue($this->allowedFormat->access('use', $this->webUser), 'A regular user has access to use a text format they were granted access to.');
-    $this->assertEqual(AccessResult::allowed()->addCacheContexts(['user.permissions']), $this->allowedFormat->access('use', $this->webUser, TRUE), 'A regular user has access to use a text format they were granted access to.');
+    $this->assertEquals(AccessResult::allowed()->addCacheContexts(['user.permissions']), $this->allowedFormat->access('use', $this->webUser, TRUE), 'A regular user has access to use a text format they were granted access to.');
     $this->assertFalse($this->disallowedFormat->access('use', $this->webUser), 'A regular user does not have access to use a text format they were not granted access to.');
-    $this->assertEqual(AccessResult::neutral("The '$disallowed_format_name' permission is required.")->cachePerPermissions(), $this->disallowedFormat->access('use', $this->webUser, TRUE), 'A regular user does not have access to use a text format they were not granted access to.');
+    $this->assertEquals(AccessResult::neutral("The '$disallowed_format_name' permission is required.")->cachePerPermissions(), $this->disallowedFormat->access('use', $this->webUser, TRUE), 'A regular user does not have access to use a text format they were not granted access to.');
     $this->assertTrue($fallback_format->access('use', $this->webUser), 'A regular user has access to use the fallback format.');
-    $this->assertEqual(AccessResult::allowed(), $fallback_format->access('use', $this->webUser, TRUE), 'A regular user has access to use the fallback format.');
+    $this->assertEquals(AccessResult::allowed(), $fallback_format->access('use', $this->webUser, TRUE), 'A regular user has access to use the fallback format.');
 
     // Perform similar checks as above, but now against the entire list of
     // available formats for this user.
@@ -199,7 +199,7 @@ public function testFormatRoles() {
     $this->assertFalse(in_array($this->disallowedFormat->id(), array_keys(filter_get_formats_by_role($rid))), 'A text format which a role does not have access to does not appear in the list of formats available to that role.');
 
     // Check that the fallback format is always allowed.
-    $this->assertEqual(filter_get_roles_by_format(FilterFormat::load(filter_fallback_format())), user_role_names(), 'All roles have access to the fallback format.');
+    $this->assertEquals(filter_get_roles_by_format(FilterFormat::load(filter_fallback_format())), user_role_names(), 'All roles have access to the fallback format.');
     $this->assertTrue(in_array(filter_fallback_format(), array_keys(filter_get_formats_by_role($rid))), 'The fallback format appears in the list of allowed formats for any role.');
   }
 
diff --git a/core/modules/filter/tests/src/Functional/FilterHtmlImageSecureTest.php b/core/modules/filter/tests/src/Functional/FilterHtmlImageSecureTest.php
index 065d4a6f79..d0b32204d3 100644
--- a/core/modules/filter/tests/src/Functional/FilterHtmlImageSecureTest.php
+++ b/core/modules/filter/tests/src/Functional/FilterHtmlImageSecureTest.php
@@ -143,14 +143,14 @@ public function testImageSource() {
       foreach ($this->xpath('//img[@testattribute="' . hash('sha256', $image) . '"]') as $element) {
         $found = TRUE;
         if ($converted == $red_x_image) {
-          $this->assertEqual($element->getAttribute('src'), $red_x_image);
-          $this->assertEqual($element->getAttribute('alt'), $alt_text);
-          $this->assertEqual($element->getAttribute('title'), $title_text);
-          $this->assertEqual($element->getAttribute('height'), '16');
-          $this->assertEqual($element->getAttribute('width'), '16');
+          $this->assertEquals($element->getAttribute('src'), $red_x_image);
+          $this->assertEquals($element->getAttribute('alt'), $alt_text);
+          $this->assertEquals($element->getAttribute('title'), $title_text);
+          $this->assertEquals($element->getAttribute('height'), '16');
+          $this->assertEquals($element->getAttribute('width'), '16');
         }
         else {
-          $this->assertEqual($element->getAttribute('src'), $converted);
+          $this->assertEquals($element->getAttribute('src'), $converted);
         }
       }
       $this->assertTrue($found, format_string('@image was found.', ['@image' => $image]));
diff --git a/core/modules/filter/tests/src/Functional/FilterNoFormatTest.php b/core/modules/filter/tests/src/Functional/FilterNoFormatTest.php
index 19c57ac00f..4ae81e5c1c 100644
--- a/core/modules/filter/tests/src/Functional/FilterNoFormatTest.php
+++ b/core/modules/filter/tests/src/Functional/FilterNoFormatTest.php
@@ -31,7 +31,7 @@ public function testCheckMarkupNoFormat() {
 
     // Make sure that when this text is run through check_markup() with no text
     // format, it is filtered as though it is in the fallback format.
-    $this->assertEqual(check_markup($text), check_markup($text, filter_fallback_format()), 'Text with no format is filtered the same as text in the fallback format.');
+    $this->assertEquals(check_markup($text), check_markup($text, filter_fallback_format()), 'Text with no format is filtered the same as text in the fallback format.');
   }
 
 }
diff --git a/core/modules/filter/tests/src/Functional/FilterSecurityTest.php b/core/modules/filter/tests/src/Functional/FilterSecurityTest.php
index 4a5b7c49d2..d154cecf23 100644
--- a/core/modules/filter/tests/src/Functional/FilterSecurityTest.php
+++ b/core/modules/filter/tests/src/Functional/FilterSecurityTest.php
@@ -84,8 +84,8 @@ public function testDisableFilterModule() {
   public function testSkipSecurityFilters() {
     $text = "Text with some disallowed tags: <script />, <p><object>unicorn</object></p>, <i><table></i>.";
     $expected_filtered_text = "Text with some disallowed tags: , <p>unicorn</p>, .";
-    $this->assertEqual(check_markup($text, 'filtered_html', '', []), $expected_filtered_text, 'Expected filter result.');
-    $this->assertEqual(check_markup($text, 'filtered_html', '', [FilterInterface::TYPE_HTML_RESTRICTOR]), $expected_filtered_text, 'Expected filter result, even when trying to disable filters of the FilterInterface::TYPE_HTML_RESTRICTOR type.');
+    $this->assertEquals(check_markup($text, 'filtered_html', '', []), $expected_filtered_text, 'Expected filter result.');
+    $this->assertEquals(check_markup($text, 'filtered_html', '', [FilterInterface::TYPE_HTML_RESTRICTOR]), $expected_filtered_text, 'Expected filter result, even when trying to disable filters of the FilterInterface::TYPE_HTML_RESTRICTOR type.');
   }
 
 }
diff --git a/core/modules/filter/tests/src/Kernel/FilterAPITest.php b/core/modules/filter/tests/src/Kernel/FilterAPITest.php
index f74edbbcac..eb30abbb7b 100644
--- a/core/modules/filter/tests/src/Kernel/FilterAPITest.php
+++ b/core/modules/filter/tests/src/Kernel/FilterAPITest.php
@@ -55,7 +55,7 @@ public function testCheckMarkupFilterOrder() {
     $text = "<p>Llamas are <not> awesome!</p>";
     $expected_filtered_text = "&lt;p&gt;Llamas are  awesome!&lt;/p&gt;";
 
-    $this->assertEqual(check_markup($text, 'crazy'), $expected_filtered_text, 'Filters applied in correct order.');
+    $this->assertEquals(check_markup($text, 'crazy'), $expected_filtered_text, 'Filters applied in correct order.');
   }
 
   /**
@@ -68,14 +68,14 @@ public function testCheckMarkupFilterSubset() {
 
     $actual_filtered_text = check_markup($text, 'filtered_html', '', []);
     $this->verbose("Actual:<pre>$actual_filtered_text</pre>Expected:<pre>$expected_filtered_text</pre>");
-    $this->assertEqual(
+    $this->assertEquals(
       $actual_filtered_text,
       $expected_filtered_text,
       'Expected filter result.'
     );
     $actual_filtered_text_without_html_generators = check_markup($text, 'filtered_html', '', [FilterInterface::TYPE_MARKUP_LANGUAGE]);
     $this->verbose("Actual:<pre>$actual_filtered_text_without_html_generators</pre>Expected:<pre>$expected_filter_text_without_html_generators</pre>");
-    $this->assertEqual(
+    $this->assertEquals(
       $actual_filtered_text_without_html_generators,
       $expected_filter_text_without_html_generators,
       'Expected filter result when skipping FilterInterface::TYPE_MARKUP_LANGUAGE filters.'
@@ -86,7 +86,7 @@ public function testCheckMarkupFilterSubset() {
     // most extensive test possible.
     $actual_filtered_text_without_html_generators = check_markup($text, 'filtered_html', '', [FilterInterface::TYPE_HTML_RESTRICTOR, FilterInterface::TYPE_MARKUP_LANGUAGE]);
     $this->verbose("Actual:<pre>$actual_filtered_text_without_html_generators</pre>Expected:<pre>$expected_filter_text_without_html_generators</pre>");
-    $this->assertEqual(
+    $this->assertEquals(
       $actual_filtered_text_without_html_generators,
       $expected_filter_text_without_html_generators,
       'Expected filter result when skipping FilterInterface::TYPE_MARKUP_LANGUAGE filters, even when trying to disable filters of the FilterInterface::TYPE_HTML_RESTRICTOR type.'
@@ -302,7 +302,7 @@ public function testProcessedTextElement() {
       // The placeholders attached that still need to be processed.
       'placeholders' => [],
     ];
-    $this->assertEqual($expected_attachments, $build['#attached'], 'Expected attachments present');
+    $this->assertEquals($expected_attachments, $build['#attached'], 'Expected attachments present');
     $expected_cache_tags = [
       // The cache tag set by the processed_text element itself.
       'config:filter.format.element_test',
@@ -312,7 +312,7 @@ public function testProcessedTextElement() {
       // The cache tags set by the filter_test_cache_merge filter.
       'merge:tag',
     ];
-    $this->assertEqual($expected_cache_tags, $build['#cache']['tags'], 'Expected cache tags present.');
+    $this->assertEquals($expected_cache_tags, $build['#cache']['tags'], 'Expected cache tags present.');
     $expected_cache_contexts = [
       // The cache context set by the filter_test_cache_contexts filter.
       'languages:' . LanguageInterface::TYPE_CONTENT,
@@ -322,9 +322,9 @@ public function testProcessedTextElement() {
       // The cache tags set by the filter_test_cache_merge filter.
       'user.permissions',
     ];
-    $this->assertEqual($expected_cache_contexts, $build['#cache']['contexts'], 'Expected cache contexts present.');
+    $this->assertEquals($expected_cache_contexts, $build['#cache']['contexts'], 'Expected cache contexts present.');
     $expected_markup = '<p>Hello, world!</p><p>This is a dynamic llama.</p>';
-    $this->assertEqual($expected_markup, $build['#markup'], 'Expected #lazy_builder callback has been applied.');
+    $this->assertEquals($expected_markup, $build['#markup'], 'Expected #lazy_builder callback has been applied.');
   }
 
   /**
@@ -352,14 +352,14 @@ public function testTypedDataAPI() {
     ];
 
     $available_values = $data->getPossibleValues();
-    $this->assertEqual($available_values, array_keys($expected_available_options));
+    $this->assertEquals($available_values, array_keys($expected_available_options));
     $available_options = $data->getPossibleOptions();
-    $this->assertEqual($available_options, $expected_available_options);
+    $this->assertEquals($available_options, $expected_available_options);
 
     $allowed_values = $data->getSettableValues($user);
-    $this->assertEqual($allowed_values, ['plain_text']);
+    $this->assertEquals($allowed_values, ['plain_text']);
     $allowed_options = $data->getSettableOptions($user);
-    $this->assertEqual($allowed_options, ['plain_text' => 'Plain text']);
+    $this->assertEquals($allowed_options, ['plain_text' => 'Plain text']);
 
     $data->setValue('foo');
     $violations = $data->validate();
@@ -367,13 +367,13 @@ public function testTypedDataAPI() {
 
     // Make sure the information provided by a violation is correct.
     $violation = $violations[0];
-    $this->assertEqual($violation->getRoot(), $data, 'Violation root is filter format.');
-    $this->assertEqual($violation->getPropertyPath(), '', 'Violation property path is correct.');
-    $this->assertEqual($violation->getInvalidValue(), 'foo', 'Violation contains invalid value.');
+    $this->assertEquals($violation->getRoot(), $data, 'Violation root is filter format.');
+    $this->assertEquals($violation->getPropertyPath(), '', 'Violation property path is correct.');
+    $this->assertEquals($violation->getInvalidValue(), 'foo', 'Violation contains invalid value.');
 
     $data->setValue('plain_text');
     $violations = $data->validate();
-    $this->assertEqual(count($violations), 0, "No validation violation for format 'plain_text' found");
+    $this->assertEquals(count($violations), 0, "No validation violation for format 'plain_text' found");
 
     // Anonymous doesn't have access to the 'filtered_html' format.
     $data->setValue('filtered_html');
@@ -383,16 +383,16 @@ public function testTypedDataAPI() {
     // Set user with access to 'filtered_html' format.
     \Drupal::currentUser()->setAccount($filtered_html_user);
     $violations = $data->validate();
-    $this->assertEqual(count($violations), 0, "No validation violation for accessible format 'filtered_html' found.");
+    $this->assertEquals(count($violations), 0, "No validation violation for accessible format 'filtered_html' found.");
 
     $allowed_values = $data->getSettableValues($filtered_html_user);
-    $this->assertEqual($allowed_values, ['filtered_html', 'plain_text']);
+    $this->assertEquals($allowed_values, ['filtered_html', 'plain_text']);
     $allowed_options = $data->getSettableOptions($filtered_html_user);
     $expected_allowed_options = [
       'filtered_html' => 'Filtered HTML',
       'plain_text' => 'Plain text',
     ];
-    $this->assertEqual($allowed_options, $expected_allowed_options);
+    $this->assertEquals($allowed_options, $expected_allowed_options);
   }
 
   /**
@@ -422,21 +422,21 @@ public function testFilterFormatPreSave() {
     // Use config to directly load the configuration and check that only enabled
     // or customized plugins are saved to configuration.
     $filters = $this->config('filter.format.crazy')->get('filters');
-    $this->assertEqual(['filter_html_escape', 'filter_html'], array_keys($filters));
+    $this->assertEquals(['filter_html_escape', 'filter_html'], array_keys($filters));
 
     // Disable a plugin to ensure that disabled plugins with custom settings are
     // stored in configuration.
     $crazy_format->setFilterConfig('filter_html_escape', ['status' => FALSE]);
     $crazy_format->save();
     $filters = $this->config('filter.format.crazy')->get('filters');
-    $this->assertEqual(['filter_html_escape', 'filter_html'], array_keys($filters));
+    $this->assertEquals(['filter_html_escape', 'filter_html'], array_keys($filters));
 
     // Set the settings as per default to ensure that disable plugins in this
     // state are not stored in configuration.
     $crazy_format->setFilterConfig('filter_html_escape', ['weight' => -10]);
     $crazy_format->save();
     $filters = $this->config('filter.format.crazy')->get('filters');
-    $this->assertEqual(['filter_html'], array_keys($filters));
+    $this->assertEquals(['filter_html'], array_keys($filters));
   }
 
   /**
@@ -493,7 +493,7 @@ public function testDependencyRemoval() {
 
     // Verify that a dependency exists on the module that provides the filter
     // plugin since it has configuration for the disabled plugin.
-    $this->assertEqual(['module' => ['filter_test']], $filter_format->getDependencies());
+    $this->assertEquals(['module' => ['filter_test']], $filter_format->getDependencies());
 
     // Uninstall the module.
     \Drupal::service('module_installer')->uninstall(['filter_test']);
@@ -502,7 +502,7 @@ public function testDependencyRemoval() {
     // gone.
     \Drupal::entityManager()->getStorage('filter_format')->resetCache();
     $filter_format = FilterFormat::load('filtered_html');
-    $this->assertEqual([], $filter_format->getDependencies());
+    $this->assertEquals([], $filter_format->getDependencies());
     // Use the get method since the FilterFormat::filters() method only returns
     // existing plugins.
     $filters = $filter_format->get('filters');
diff --git a/core/modules/filter/tests/src/Kernel/FilterCrudTest.php b/core/modules/filter/tests/src/Kernel/FilterCrudTest.php
index b73b180bfe..8f50cb549c 100644
--- a/core/modules/filter/tests/src/Kernel/FilterCrudTest.php
+++ b/core/modules/filter/tests/src/Kernel/FilterCrudTest.php
@@ -94,11 +94,11 @@ public function verifyTextFormat($format) {
 
     // Verify the loaded filter has all properties.
     $filter_format = FilterFormat::load($format->id());
-    $this->assertEqual($filter_format->id(), $format->id(), format_string('filter_format_load: Proper format id for text format %format.', $t_args));
-    $this->assertEqual($filter_format->label(), $format->label(), format_string('filter_format_load: Proper title for text format %format.', $t_args));
-    $this->assertEqual($filter_format->get('weight'), $format->get('weight'), format_string('filter_format_load: Proper weight for text format %format.', $t_args));
+    $this->assertEquals($filter_format->id(), $format->id(), format_string('filter_format_load: Proper format id for text format %format.', $t_args));
+    $this->assertEquals($filter_format->label(), $format->label(), format_string('filter_format_load: Proper title for text format %format.', $t_args));
+    $this->assertEquals($filter_format->get('weight'), $format->get('weight'), format_string('filter_format_load: Proper weight for text format %format.', $t_args));
     // Check that the filter was created in site default language.
-    $this->assertEqual($format->language()->getId(), $default_langcode, format_string('filter_format_load: Proper language code for text format %format.', $t_args));
+    $this->assertEquals($format->language()->getId(), $default_langcode, format_string('filter_format_load: Proper language code for text format %format.', $t_args));
   }
 
 }
diff --git a/core/modules/filter/tests/src/Kernel/FilterDefaultConfigTest.php b/core/modules/filter/tests/src/Kernel/FilterDefaultConfigTest.php
index e16bddade5..7a5f53ce4c 100644
--- a/core/modules/filter/tests/src/Kernel/FilterDefaultConfigTest.php
+++ b/core/modules/filter/tests/src/Kernel/FilterDefaultConfigTest.php
@@ -34,35 +34,35 @@ public function testInstallation() {
     // Verify that the format was installed correctly.
     $format = FilterFormat::load('filter_test');
     $this->assertTrue((bool) $format);
-    $this->assertEqual($format->id(), 'filter_test');
-    $this->assertEqual($format->label(), 'Test format');
-    $this->assertEqual($format->get('weight'), 2);
+    $this->assertEquals($format->id(), 'filter_test');
+    $this->assertEquals($format->label(), 'Test format');
+    $this->assertEquals($format->get('weight'), 2);
 
     // Verify that format default property values have been added/injected.
     $this->assertTrue($format->uuid());
 
     // Verify that the loaded format does not contain any roles.
-    $this->assertEqual($format->get('roles'), NULL);
+    $this->assertEquals($format->get('roles'), NULL);
     // Verify that the defined roles in the default config have been processed.
-    $this->assertEqual(array_keys(filter_get_roles_by_format($format)), [
+    $this->assertEquals(array_keys(filter_get_roles_by_format($format)), [
       RoleInterface::ANONYMOUS_ID,
       RoleInterface::AUTHENTICATED_ID,
     ]);
 
     // Verify enabled filters.
     $filters = $format->get('filters');
-    $this->assertEqual($filters['filter_html_escape']['status'], 1);
-    $this->assertEqual($filters['filter_html_escape']['weight'], -10);
-    $this->assertEqual($filters['filter_html_escape']['provider'], 'filter');
-    $this->assertEqual($filters['filter_html_escape']['settings'], []);
-    $this->assertEqual($filters['filter_autop']['status'], 1);
-    $this->assertEqual($filters['filter_autop']['weight'], 0);
-    $this->assertEqual($filters['filter_autop']['provider'], 'filter');
-    $this->assertEqual($filters['filter_autop']['settings'], []);
-    $this->assertEqual($filters['filter_url']['status'], 1);
-    $this->assertEqual($filters['filter_url']['weight'], 0);
-    $this->assertEqual($filters['filter_url']['provider'], 'filter');
-    $this->assertEqual($filters['filter_url']['settings'], [
+    $this->assertEquals($filters['filter_html_escape']['status'], 1);
+    $this->assertEquals($filters['filter_html_escape']['weight'], -10);
+    $this->assertEquals($filters['filter_html_escape']['provider'], 'filter');
+    $this->assertEquals($filters['filter_html_escape']['settings'], []);
+    $this->assertEquals($filters['filter_autop']['status'], 1);
+    $this->assertEquals($filters['filter_autop']['weight'], 0);
+    $this->assertEquals($filters['filter_autop']['provider'], 'filter');
+    $this->assertEquals($filters['filter_autop']['settings'], []);
+    $this->assertEquals($filters['filter_url']['status'], 1);
+    $this->assertEquals($filters['filter_url']['weight'], 0);
+    $this->assertEquals($filters['filter_url']['provider'], 'filter');
+    $this->assertEquals($filters['filter_url']['settings'], [
       'filter_url_length' => 72,
     ]);
   }
@@ -73,7 +73,7 @@ public function testInstallation() {
   public function testUpdateRoles() {
     // Verify role permissions declared in default config.
     $format = FilterFormat::load('filter_test');
-    $this->assertEqual(array_keys(filter_get_roles_by_format($format)), [
+    $this->assertEquals(array_keys(filter_get_roles_by_format($format)), [
       RoleInterface::ANONYMOUS_ID,
       RoleInterface::AUTHENTICATED_ID,
     ]);
@@ -86,7 +86,7 @@ public function testUpdateRoles() {
 
     // Verify that roles have not been updated.
     $format = FilterFormat::load('filter_test');
-    $this->assertEqual(array_keys(filter_get_roles_by_format($format)), [
+    $this->assertEquals(array_keys(filter_get_roles_by_format($format)), [
       RoleInterface::ANONYMOUS_ID,
       RoleInterface::AUTHENTICATED_ID,
     ]);
diff --git a/core/modules/filter/tests/src/Kernel/FilterKernelTest.php b/core/modules/filter/tests/src/Kernel/FilterKernelTest.php
index 7b0c029b1b..73551ff50e 100644
--- a/core/modules/filter/tests/src/Kernel/FilterKernelTest.php
+++ b/core/modules/filter/tests/src/Kernel/FilterKernelTest.php
@@ -382,7 +382,7 @@ public function testLineBreakFilter() {
     $limit = max(ini_get('pcre.backtrack_limit'), ini_get('pcre.recursion_limit'));
     $source = $this->randomMachineName($limit);
     $result = _filter_autop($source);
-    $success = $this->assertEqual($result, '<p>' . $source . "</p>\n", 'Line break filter can process very long strings.');
+    $success = $this->assertEquals($result, '<p>' . $source . "</p>\n", 'Line break filter can process very long strings.');
     if (!$success) {
       $this->verbose("\n" . $source . "\n<hr />\n" . $result);
     }
@@ -942,110 +942,110 @@ public function testUrlFilterContent() {
   public function testHtmlCorrectorFilter() {
     // Tag closing.
     $f = Html::normalize('<p>text');
-    $this->assertEqual($f, '<p>text</p>', 'HTML corrector -- tag closing at the end of input.');
+    $this->assertEquals($f, '<p>text</p>', 'HTML corrector -- tag closing at the end of input.');
 
     $f = Html::normalize('<p>text<p><p>text');
-    $this->assertEqual($f, '<p>text</p><p></p><p>text</p>', 'HTML corrector -- tag closing.');
+    $this->assertEquals($f, '<p>text</p><p></p><p>text</p>', 'HTML corrector -- tag closing.');
 
     $f = Html::normalize("<ul><li>e1<li>e2");
-    $this->assertEqual($f, "<ul><li>e1</li><li>e2</li></ul>", 'HTML corrector -- unclosed list tags.');
+    $this->assertEquals($f, "<ul><li>e1</li><li>e2</li></ul>", 'HTML corrector -- unclosed list tags.');
 
     $f = Html::normalize('<div id="d">content');
-    $this->assertEqual($f, '<div id="d">content</div>', 'HTML corrector -- unclosed tag with attribute.');
+    $this->assertEquals($f, '<div id="d">content</div>', 'HTML corrector -- unclosed tag with attribute.');
 
     // XHTML slash for empty elements.
     $f = Html::normalize('<hr><br>');
-    $this->assertEqual($f, '<hr /><br />', 'HTML corrector -- XHTML closing slash.');
+    $this->assertEquals($f, '<hr /><br />', 'HTML corrector -- XHTML closing slash.');
 
     $f = Html::normalize('<P>test</P>');
-    $this->assertEqual($f, '<p>test</p>', 'HTML corrector -- Convert uppercased tags to proper lowercased ones.');
+    $this->assertEquals($f, '<p>test</p>', 'HTML corrector -- Convert uppercased tags to proper lowercased ones.');
 
     $f = Html::normalize('<P>test</p>');
-    $this->assertEqual($f, '<p>test</p>', 'HTML corrector -- Convert uppercased tags to proper lowercased ones.');
+    $this->assertEquals($f, '<p>test</p>', 'HTML corrector -- Convert uppercased tags to proper lowercased ones.');
 
     $f = Html::normalize('test<hr />');
-    $this->assertEqual($f, 'test<hr />', 'HTML corrector -- Let proper XHTML pass through.');
+    $this->assertEquals($f, 'test<hr />', 'HTML corrector -- Let proper XHTML pass through.');
 
     $f = Html::normalize('test<hr/>');
-    $this->assertEqual($f, 'test<hr />', 'HTML corrector -- Let proper XHTML pass through, but ensure there is a single space before the closing slash.');
+    $this->assertEquals($f, 'test<hr />', 'HTML corrector -- Let proper XHTML pass through, but ensure there is a single space before the closing slash.');
 
     $f = Html::normalize('test<hr    />');
-    $this->assertEqual($f, 'test<hr />', 'HTML corrector -- Let proper XHTML pass through, but ensure there are not too many spaces before the closing slash.');
+    $this->assertEquals($f, 'test<hr />', 'HTML corrector -- Let proper XHTML pass through, but ensure there are not too many spaces before the closing slash.');
 
     $f = Html::normalize('<span class="test" />');
-    $this->assertEqual($f, '<span class="test"></span>', 'HTML corrector -- Convert XHTML that is properly formed but that would not be compatible with typical HTML user agents.');
+    $this->assertEquals($f, '<span class="test"></span>', 'HTML corrector -- Convert XHTML that is properly formed but that would not be compatible with typical HTML user agents.');
 
     $f = Html::normalize('test1<br class="test">test2');
-    $this->assertEqual($f, 'test1<br class="test" />test2', 'HTML corrector -- Automatically close single tags.');
+    $this->assertEquals($f, 'test1<br class="test" />test2', 'HTML corrector -- Automatically close single tags.');
 
     $f = Html::normalize('line1<hr>line2');
-    $this->assertEqual($f, 'line1<hr />line2', 'HTML corrector -- Automatically close single tags.');
+    $this->assertEquals($f, 'line1<hr />line2', 'HTML corrector -- Automatically close single tags.');
 
     $f = Html::normalize('line1<HR>line2');
-    $this->assertEqual($f, 'line1<hr />line2', 'HTML corrector -- Automatically close single tags.');
+    $this->assertEquals($f, 'line1<hr />line2', 'HTML corrector -- Automatically close single tags.');
 
     $f = Html::normalize('<img src="http://example.com/test.jpg">test</img>');
-    $this->assertEqual($f, '<img src="http://example.com/test.jpg" />test', 'HTML corrector -- Automatically close single tags.');
+    $this->assertEquals($f, '<img src="http://example.com/test.jpg" />test', 'HTML corrector -- Automatically close single tags.');
 
     $f = Html::normalize('<br></br>');
-    $this->assertEqual($f, '<br />', "HTML corrector -- Transform empty tags to a single closed tag if the tag's content model is EMPTY.");
+    $this->assertEquals($f, '<br />', "HTML corrector -- Transform empty tags to a single closed tag if the tag's content model is EMPTY.");
 
     $f = Html::normalize('<div></div>');
-    $this->assertEqual($f, '<div></div>', "HTML corrector -- Do not transform empty tags to a single closed tag if the tag's content model is not EMPTY.");
+    $this->assertEquals($f, '<div></div>', "HTML corrector -- Do not transform empty tags to a single closed tag if the tag's content model is not EMPTY.");
 
     $f = Html::normalize('<p>line1<br/><hr/>line2</p>');
-    $this->assertEqual($f, '<p>line1<br /></p><hr />line2', 'HTML corrector -- Move non-inline elements outside of inline containers.');
+    $this->assertEquals($f, '<p>line1<br /></p><hr />line2', 'HTML corrector -- Move non-inline elements outside of inline containers.');
 
     $f = Html::normalize('<p>line1<div>line2</div></p>');
-    $this->assertEqual($f, '<p>line1</p><div>line2</div>', 'HTML corrector -- Move non-inline elements outside of inline containers.');
+    $this->assertEquals($f, '<p>line1</p><div>line2</div>', 'HTML corrector -- Move non-inline elements outside of inline containers.');
 
     $f = Html::normalize('<p>test<p>test</p>\n');
-    $this->assertEqual($f, '<p>test</p><p>test</p>\n', 'HTML corrector -- Auto-close improperly nested tags.');
+    $this->assertEquals($f, '<p>test</p><p>test</p>\n', 'HTML corrector -- Auto-close improperly nested tags.');
 
     $f = Html::normalize('<p>Line1<br><STRONG>bold stuff</b>');
-    $this->assertEqual($f, '<p>Line1<br /><strong>bold stuff</strong></p>', 'HTML corrector -- Properly close unclosed tags, and remove useless closing tags.');
+    $this->assertEquals($f, '<p>Line1<br /><strong>bold stuff</strong></p>', 'HTML corrector -- Properly close unclosed tags, and remove useless closing tags.');
 
     $f = Html::normalize('test <!-- this is a comment -->');
-    $this->assertEqual($f, 'test <!-- this is a comment -->', 'HTML corrector -- Do not touch HTML comments.');
+    $this->assertEquals($f, 'test <!-- this is a comment -->', 'HTML corrector -- Do not touch HTML comments.');
 
     $f = Html::normalize('test <!--this is a comment-->');
-    $this->assertEqual($f, 'test <!--this is a comment-->', 'HTML corrector -- Do not touch HTML comments.');
+    $this->assertEquals($f, 'test <!--this is a comment-->', 'HTML corrector -- Do not touch HTML comments.');
 
     $f = Html::normalize('test <!-- comment <p>another
     <strong>multiple</strong> line
     comment</p> -->');
-    $this->assertEqual($f, 'test <!-- comment <p>another
+    $this->assertEquals($f, 'test <!-- comment <p>another
     <strong>multiple</strong> line
     comment</p> -->', 'HTML corrector -- Do not touch HTML comments.');
 
     $f = Html::normalize('test <!-- comment <p>another comment</p> -->');
-    $this->assertEqual($f, 'test <!-- comment <p>another comment</p> -->', 'HTML corrector -- Do not touch HTML comments.');
+    $this->assertEquals($f, 'test <!-- comment <p>another comment</p> -->', 'HTML corrector -- Do not touch HTML comments.');
 
     $f = Html::normalize('test <!--break-->');
-    $this->assertEqual($f, 'test <!--break-->', 'HTML corrector -- Do not touch HTML comments.');
+    $this->assertEquals($f, 'test <!--break-->', 'HTML corrector -- Do not touch HTML comments.');
 
     $f = Html::normalize('<p>test\n</p>\n');
-    $this->assertEqual($f, '<p>test\n</p>\n', 'HTML corrector -- New-lines are accepted and kept as-is.');
+    $this->assertEquals($f, '<p>test\n</p>\n', 'HTML corrector -- New-lines are accepted and kept as-is.');
 
     $f = Html::normalize('<p>دروبال');
-    $this->assertEqual($f, '<p>دروبال</p>', 'HTML corrector -- Encoding is correctly kept.');
+    $this->assertEquals($f, '<p>دروبال</p>', 'HTML corrector -- Encoding is correctly kept.');
 
     $f = Html::normalize('<script>alert("test")</script>');
-    $this->assertEqual($f, '<script>
+    $this->assertEquals($f, '<script>
 <!--//--><![CDATA[// ><!--
 alert("test")
 //--><!]]>
 </script>', 'HTML corrector -- CDATA added to script element');
 
     $f = Html::normalize('<p><script>alert("test")</script></p>');
-    $this->assertEqual($f, '<p><script>
+    $this->assertEquals($f, '<p><script>
 <!--//--><![CDATA[// ><!--
 alert("test")
 //--><!]]>
 </script></p>', 'HTML corrector -- CDATA added to a nested script element');
 
     $f = Html::normalize('<p><style> /* Styling */ body {color:red}</style></p>');
-    $this->assertEqual($f, '<p><style>
+    $this->assertEquals($f, '<p><style>
 <!--/*--><![CDATA[/* ><!--*/
  /* Styling */ body {color:red}
 /*--><!]]>*/
@@ -1057,7 +1057,7 @@ public function testHtmlCorrectorFilter() {
 body {color:red}
 /*]]>*/
 </style></p>');
-    $this->assertEqual($filtered_data, '<p><style>
+    $this->assertEquals($filtered_data, '<p><style>
 <!--/*--><![CDATA[/* ><!--*/
 
 /*<![CDATA[*/
@@ -1076,7 +1076,7 @@ public function testHtmlCorrectorFilter() {
   body {color:red}
   /*--><!]]>*/
 </style></p>');
-    $this->assertEqual($filtered_data, '<p><style>
+    $this->assertEquals($filtered_data, '<p><style>
 <!--/*--><![CDATA[/* ><!--*/
 
   <!--/*--><![CDATA[/* ><!--*/
@@ -1094,7 +1094,7 @@ public function testHtmlCorrectorFilter() {
   alert("test");
 //--><!]]>
 </script></p>');
-    $this->assertEqual($filtered_data, '<p><script>
+    $this->assertEquals($filtered_data, '<p><script>
 <!--//--><![CDATA[// ><!--
 
 <!--//--><![CDATA[// ><!--
@@ -1111,7 +1111,7 @@ public function testHtmlCorrectorFilter() {
   alert("test");
 // ]]>
 </script></p>');
-    $this->assertEqual($filtered_data, '<p><script>
+    $this->assertEquals($filtered_data, '<p><script>
 <!--//--><![CDATA[// ><!--
 
 // <![CDATA[
diff --git a/core/modules/filter/tests/src/Kernel/FilterSettingsTest.php b/core/modules/filter/tests/src/Kernel/FilterSettingsTest.php
index f77efac85a..dd5b44d574 100644
--- a/core/modules/filter/tests/src/Kernel/FilterSettingsTest.php
+++ b/core/modules/filter/tests/src/Kernel/FilterSettingsTest.php
@@ -36,7 +36,7 @@ public function testFilterDefaults() {
     $saved_settings = [];
     foreach ($filter_defaults_format->filters() as $name => $filter) {
       $expected_weight = $filter_info[$name]['weight'];
-      $this->assertEqual($filter->weight, $expected_weight, format_string('@name filter weight %saved equals %default', [
+      $this->assertEquals($filter->weight, $expected_weight, format_string('@name filter weight %saved equals %default', [
         '@name' => $name,
         '%saved' => $filter->weight,
         '%default' => $expected_weight,
@@ -51,7 +51,7 @@ public function testFilterDefaults() {
 
     // Verify that saved filter settings have not been changed.
     foreach ($filter_defaults_format->filters() as $name => $filter) {
-      $this->assertEqual($filter->weight, $saved_settings[$name]['weight'], format_string('@name filter weight %saved equals %previous', [
+      $this->assertEquals($filter->weight, $saved_settings[$name]['weight'], format_string('@name filter weight %saved equals %previous', [
         '@name' => $name,
         '%saved' => $filter->weight,
         '%previous' => $saved_settings[$name]['weight'],
diff --git a/core/modules/forum/tests/src/Functional/ForumTest.php b/core/modules/forum/tests/src/Functional/ForumTest.php
index 9ba4be7b2a..4d70ca0458 100644
--- a/core/modules/forum/tests/src/Functional/ForumTest.php
+++ b/core/modules/forum/tests/src/Functional/ForumTest.php
@@ -267,7 +267,7 @@ public function testAddOrphanTopic() {
     $this->drupalPostForm('node/add/forum', $edit, t('Save'));
 
     $nid_count = db_query('SELECT COUNT(nid) FROM {node}')->fetchField();
-    $this->assertEqual(0, $nid_count, 'A forum node was not created when missing a forum vocabulary.');
+    $this->assertEquals(0, $nid_count, 'A forum node was not created when missing a forum vocabulary.');
 
     // Reset the defaults for future tests.
     \Drupal::service('module_installer')->install(['forum']);
@@ -376,8 +376,8 @@ public function editForumVocabulary() {
     $current_vocabulary = Vocabulary::load($vid);
 
     // Make sure we actually edited the vocabulary properly.
-    $this->assertEqual($current_vocabulary->label(), $edit['name'], 'The name was updated');
-    $this->assertEqual($current_vocabulary->getDescription(), $edit['description'], 'The description was updated');
+    $this->assertEquals($current_vocabulary->label(), $edit['name'], 'The name was updated');
+    $this->assertEquals($current_vocabulary->getDescription(), $edit['description'], 'The description was updated');
 
     // Restore the original vocabulary's name and description.
     $current_vocabulary->set('name', $original_vocabulary->label());
@@ -385,7 +385,7 @@ public function editForumVocabulary() {
     $current_vocabulary->save();
     // Reload vocabulary to make sure changes are saved.
     $current_vocabulary = Vocabulary::load($vid);
-    $this->assertEqual($current_vocabulary->label(), $original_vocabulary->label(), 'The original vocabulary settings were restored');
+    $this->assertEquals($current_vocabulary->label(), $original_vocabulary->label(), 'The original vocabulary settings were restored');
   }
 
   /**
@@ -437,7 +437,7 @@ public function createForum($type, $parent = 0) {
     $this->assertTrue($parent == $parent_tid, 'The ' . $type . ' is linked to its container');
 
     $forum = $this->container->get('entity.manager')->getStorage('taxonomy_term')->load($tid);
-    $this->assertEqual(($type == 'forum container'), (bool) $forum->forum_container->value);
+    $this->assertEquals(($type == 'forum container'), (bool) $forum->forum_container->value);
     return $term;
   }
 
@@ -560,7 +560,7 @@ public function createForumTopic($forum, $container = FALSE) {
     // Retrieve node object, ensure that the topic was created and in the proper forum.
     $node = $this->drupalGetNodeByTitle($title);
     $this->assertTrue($node != NULL, format_string('Node @title was loaded', ['@title' => $title]));
-    $this->assertEqual($node->taxonomy_forums->target_id, $tid, 'Saved forum topic was in the expected forum');
+    $this->assertEquals($node->taxonomy_forums->target_id, $tid, 'Saved forum topic was in the expected forum');
 
     // View forum topic.
     $this->drupalGet('node/' . $node->id());
diff --git a/core/modules/forum/tests/src/Kernel/ForumValidationTest.php b/core/modules/forum/tests/src/Kernel/ForumValidationTest.php
index 9b9661b5a2..f9e579f305 100644
--- a/core/modules/forum/tests/src/Kernel/ForumValidationTest.php
+++ b/core/modules/forum/tests/src/Kernel/ForumValidationTest.php
@@ -45,19 +45,19 @@ public function testValidation() {
     ]);
 
     $violations = $forum_post->validate();
-    $this->assertEqual(count($violations), 1);
-    $this->assertEqual($violations[0]->getMessage(), 'This value should not be null.');
+    $this->assertEquals(count($violations), 1);
+    $this->assertEquals($violations[0]->getMessage(), 'This value should not be null.');
 
     // Add the forum term.
     $forum_post->set('taxonomy_forums', $forum);
     $violations = $forum_post->validate();
-    $this->assertEqual(count($violations), 0);
+    $this->assertEquals(count($violations), 0);
 
     // Try to use a container.
     $forum_post->set('taxonomy_forums', $container);
     $violations = $forum_post->validate();
-    $this->assertEqual(count($violations), 1);
-    $this->assertEqual($violations[0]->getMessage(), t('The item %forum is a forum container, not a forum. Select one of the forums below instead.', [
+    $this->assertEquals(count($violations), 1);
+    $this->assertEquals($violations[0]->getMessage(), t('The item %forum is a forum container, not a forum. Select one of the forums below instead.', [
       '%forum' => $container->label(),
     ]));
   }
diff --git a/core/modules/hal/tests/src/Kernel/DenormalizeTest.php b/core/modules/hal/tests/src/Kernel/DenormalizeTest.php
index 87eb97329f..d577701b2b 100644
--- a/core/modules/hal/tests/src/Kernel/DenormalizeTest.php
+++ b/core/modules/hal/tests/src/Kernel/DenormalizeTest.php
@@ -26,7 +26,7 @@ public function testTypeHandling() {
       ],
     ];
     $denormalized = $this->serializer->denormalize($data_with_valid_type, $this->entityClass, $this->format);
-    $this->assertEqual(get_class($denormalized), $this->entityClass, 'Request with valid type results in creation of correct bundle.');
+    $this->assertEquals(get_class($denormalized), $this->entityClass, 'Request with valid type results in creation of correct bundle.');
 
     // Multiple types.
     $data_with_multiple_types = [
@@ -42,7 +42,7 @@ public function testTypeHandling() {
       ],
     ];
     $denormalized = $this->serializer->denormalize($data_with_multiple_types, $this->entityClass, $this->format);
-    $this->assertEqual(get_class($denormalized), $this->entityClass, 'Request with multiple types results in creation of correct bundle.');
+    $this->assertEquals(get_class($denormalized), $this->entityClass, 'Request with multiple types results in creation of correct bundle.');
 
     // Invalid type.
     $data_with_invalid_type = [
@@ -122,8 +122,8 @@ public function testMarkFieldForDeletion() {
       ],
     ];
     $entity = $this->serializer->denormalize($data, $this->entityClass, $this->format);
-    $this->assertEqual($entity->field_test_text->count(), 1);
-    $this->assertEqual($entity->field_test_text->value, 'Llama');
+    $this->assertEquals($entity->field_test_text->count(), 1);
+    $this->assertEquals($entity->field_test_text->value, 'Llama');
 
     // Denormalize data that contains an empty entry for the field, and check
     // that the field is empty in the resulting entity.
@@ -136,7 +136,7 @@ public function testMarkFieldForDeletion() {
       'field_test_text' => [],
     ];
     $entity = $this->serializer->denormalize($data, get_class($entity), $this->format, ['target_instance' => $entity]);
-    $this->assertEqual($entity->field_test_text->count(), 0);
+    $this->assertEquals($entity->field_test_text->count(), 0);
   }
 
 }
diff --git a/core/modules/hal/tests/src/Kernel/FileNormalizeTest.php b/core/modules/hal/tests/src/Kernel/FileNormalizeTest.php
index c4b67f54e3..bab831151b 100644
--- a/core/modules/hal/tests/src/Kernel/FileNormalizeTest.php
+++ b/core/modules/hal/tests/src/Kernel/FileNormalizeTest.php
@@ -49,7 +49,7 @@ public function testNormalize() {
     ];
 
     $normalized = $this->serializer->normalize($file, $this->format);
-    $this->assertEqual($normalized['uri'], $expected_array['uri'], 'URI is normalized.');
+    $this->assertEquals($normalized['uri'], $expected_array['uri'], 'URI is normalized.');
 
   }
 
diff --git a/core/modules/hal/tests/src/Kernel/HalLinkManagerTest.php b/core/modules/hal/tests/src/Kernel/HalLinkManagerTest.php
index 1387149c4e..a5f8707920 100644
--- a/core/modules/hal/tests/src/Kernel/HalLinkManagerTest.php
+++ b/core/modules/hal/tests/src/Kernel/HalLinkManagerTest.php
@@ -265,11 +265,11 @@ public function testHalLinkManagersSetLinkDomain() {
     $link_manager = \Drupal::service('hal.link_manager');
     $link_manager->setLinkDomain('http://example.com/');
     $link = $link_manager->getTypeUri('node', 'page', $serialization_context);
-    $this->assertEqual($link, 'http://example.com/rest/type/node/page');
-    $this->assertEqual(new CacheableMetadata(), $serialization_context[ResourceResponseSubscriber::SERIALIZATION_CONTEXT_CACHEABILITY]);
+    $this->assertEquals($link, 'http://example.com/rest/type/node/page');
+    $this->assertEquals(new CacheableMetadata(), $serialization_context[ResourceResponseSubscriber::SERIALIZATION_CONTEXT_CACHEABILITY]);
     $link = $link_manager->getRelationUri('node', 'page', 'field_ref', $serialization_context);
-    $this->assertEqual($link, 'http://example.com/rest/relation/node/page/field_ref');
-    $this->assertEqual(new CacheableMetadata(), $serialization_context[ResourceResponseSubscriber::SERIALIZATION_CONTEXT_CACHEABILITY]);
+    $this->assertEquals($link, 'http://example.com/rest/relation/node/page/field_ref');
+    $this->assertEquals(new CacheableMetadata(), $serialization_context[ResourceResponseSubscriber::SERIALIZATION_CONTEXT_CACHEABILITY]);
   }
 
 }
diff --git a/core/modules/hal/tests/src/Kernel/NormalizeTest.php b/core/modules/hal/tests/src/Kernel/NormalizeTest.php
index d837b79a02..443041d817 100644
--- a/core/modules/hal/tests/src/Kernel/NormalizeTest.php
+++ b/core/modules/hal/tests/src/Kernel/NormalizeTest.php
@@ -157,15 +157,15 @@ public function testNormalize() {
     ];
 
     $normalized = $this->serializer->normalize($entity, $this->format);
-    $this->assertEqual($normalized['_links']['self'], $expected_array['_links']['self'], 'self link placed correctly.');
+    $this->assertEquals($normalized['_links']['self'], $expected_array['_links']['self'], 'self link placed correctly.');
     // @todo Test curies.
     // @todo Test type.
-    $this->assertEqual($normalized['id'], $expected_array['id'], 'Internal id is exposed.');
-    $this->assertEqual($normalized['uuid'], $expected_array['uuid'], 'Non-translatable fields is normalized.');
-    $this->assertEqual($normalized['name'], $expected_array['name'], 'Translatable field with multiple language values is normalized.');
-    $this->assertEqual($normalized['field_test_text'], $expected_array['field_test_text'], 'Field with properties is normalized.');
-    $this->assertEqual($normalized['_embedded'][$relation_uri], $expected_array['_embedded'][$relation_uri], 'Entity reference field is normalized.');
-    $this->assertEqual($normalized['_links'][$relation_uri], $expected_array['_links'][$relation_uri], 'Links are added for entity reference field.');
+    $this->assertEquals($normalized['id'], $expected_array['id'], 'Internal id is exposed.');
+    $this->assertEquals($normalized['uuid'], $expected_array['uuid'], 'Non-translatable fields is normalized.');
+    $this->assertEquals($normalized['name'], $expected_array['name'], 'Translatable field with multiple language values is normalized.');
+    $this->assertEquals($normalized['field_test_text'], $expected_array['field_test_text'], 'Field with properties is normalized.');
+    $this->assertEquals($normalized['_embedded'][$relation_uri], $expected_array['_embedded'][$relation_uri], 'Entity reference field is normalized.');
+    $this->assertEquals($normalized['_links'][$relation_uri], $expected_array['_links'][$relation_uri], 'Links are added for entity reference field.');
   }
 
   /**
diff --git a/core/modules/history/tests/src/Functional/HistoryTest.php b/core/modules/history/tests/src/Functional/HistoryTest.php
index 065b9af7aa..c2dfd2f764 100644
--- a/core/modules/history/tests/src/Functional/HistoryTest.php
+++ b/core/modules/history/tests/src/Functional/HistoryTest.php
@@ -128,7 +128,7 @@ public function testHistory() {
     $settings = $this->getDrupalSettings();
     $libraries = explode(',', $settings['ajaxPageState']['libraries']);
     $this->assertTrue(in_array('history/mark-as-read', $libraries), 'history/mark-as-read library is present.');
-    $this->assertEqual([$nid => TRUE], $settings['history']['nodesToMarkAsRead'], 'drupalSettings to mark node as read are present.');
+    $this->assertEquals([$nid => TRUE], $settings['history']['nodesToMarkAsRead'], 'drupalSettings to mark node as read are present.');
 
     // Simulate JavaScript: perform HTTP request to mark node as read.
     $response = $this->markNodeAsRead($nid);
diff --git a/core/modules/history/tests/src/Kernel/Views/HistoryTimestampTest.php b/core/modules/history/tests/src/Kernel/Views/HistoryTimestampTest.php
index 5aebaf43a1..a2b9f4397b 100644
--- a/core/modules/history/tests/src/Kernel/Views/HistoryTimestampTest.php
+++ b/core/modules/history/tests/src/Kernel/Views/HistoryTimestampTest.php
@@ -89,17 +89,17 @@ public function testHandlers() {
     $view = Views::getView('test_history');
     $view->setDisplay('page_1');
     $this->executeView($view);
-    $this->assertEqual(count($view->result), 2);
+    $this->assertEquals(count($view->result), 2);
     $output = $view->preview();
     $this->setRawContent(\Drupal::service('renderer')->renderRoot($output));
     $result = $this->xpath('//span[@class=:class]', [':class' => 'marker']);
-    $this->assertEqual(count($result), 1, 'Just one node is marked as new');
+    $this->assertEquals(count($result), 1, 'Just one node is marked as new');
 
     // Test the history filter.
     $view = Views::getView('test_history');
     $view->setDisplay('page_2');
     $this->executeView($view);
-    $this->assertEqual(count($view->result), 1);
+    $this->assertEquals(count($view->result), 1);
     $this->assertIdenticalResultset($view, [['nid' => $nodes[0]->id()]], $column_map);
 
     // Install Comment module and make sure that content types without comment
diff --git a/core/modules/image/src/Tests/ImageAdminStylesTest.php b/core/modules/image/src/Tests/ImageAdminStylesTest.php
index 38fd984876..67f66e51d5 100644
--- a/core/modules/image/src/Tests/ImageAdminStylesTest.php
+++ b/core/modules/image/src/Tests/ImageAdminStylesTest.php
@@ -132,7 +132,7 @@ public function testStyle() {
     // Ensure that third party settings were added to the config entity.
     // These are added by a hook_image_style_presave() implemented in
     // image_module_test module.
-    $this->assertEqual('bar', $style->getThirdPartySetting('image_module_test', 'foo'), 'Third party settings were added to the image style.');
+    $this->assertEquals('bar', $style->getThirdPartySetting('image_module_test', 'foo'), 'Third party settings were added to the image style.');
 
     // Ensure that the image style URI matches our expected path.
     $style_uri_path = $style->url();
@@ -146,7 +146,7 @@ public function testStyle() {
       $uuids[$effect->getPluginId()] = $uuid;
       $effect_configuration = $effect->getConfiguration();
       foreach ($effect_edits[$effect->getPluginId()] as $field => $value) {
-        $this->assertEqual($value, $effect_configuration['data'][$field], SafeMarkup::format('The %field field in the %effect effect has the correct value of %value.', ['%field' => $field, '%effect' => $effect->getPluginId(), '%value' => $value]));
+        $this->assertEquals($value, $effect_configuration['data'][$field], SafeMarkup::format('The %field field in the %effect effect has the correct value of %value.', ['%field' => $field, '%effect' => $effect->getPluginId(), '%value' => $value]));
       }
     }
 
@@ -191,7 +191,7 @@ public function testStyle() {
 
     // Create an image to make sure it gets flushed after saving.
     $image_path = $this->createSampleImage($style);
-    $this->assertEqual($this->getImageCount($style), 1, format_string('Image style %style image %file successfully generated.', ['%style' => $style->label(), '%file' => $image_path]));
+    $this->assertEquals($this->getImageCount($style), 1, format_string('Image style %style image %file successfully generated.', ['%style' => $style->label(), '%file' => $image_path]));
 
     $this->drupalPostForm($style_path, $edit, t('Update style'));
 
@@ -210,7 +210,7 @@ public function testStyle() {
     // Check that the image was flushed after updating the style.
     // This is especially important when renaming the style. Make sure that
     // the old image directory has been deleted.
-    $this->assertEqual($this->getImageCount($style), 0, format_string('Image style %style was flushed after renaming the style and updating the order of effects.', ['%style' => $style->label()]));
+    $this->assertEquals($this->getImageCount($style), 0, format_string('Image style %style was flushed after renaming the style and updating the order of effects.', ['%style' => $style->label()]));
 
     // Load the style by the new name with the new weights.
     $style = ImageStyle::load($style_name);
@@ -231,7 +231,7 @@ public function testStyle() {
 
     // Create an image to make sure it gets flushed after deleting an effect.
     $image_path = $this->createSampleImage($style);
-    $this->assertEqual($this->getImageCount($style), 1, format_string('Image style %style image %file successfully generated.', ['%style' => $style->label(), '%file' => $image_path]));
+    $this->assertEquals($this->getImageCount($style), 1, format_string('Image style %style image %file successfully generated.', ['%style' => $style->label(), '%file' => $image_path]));
 
     // Delete the 'image_crop' effect from the style.
     $this->drupalPostForm($style_path . '/effects/' . $uuids['image_crop'] . '/delete', [], t('Delete'));
@@ -262,7 +262,7 @@ public function testStyle() {
     $this->drupalPostForm(NULL, $edit, t('Add effect'));
     $entity_type_manager = $this->container->get('entity_type.manager');
     $style = $entity_type_manager->getStorage('image_style')->loadUnchanged($style_name);
-    $this->assertEqual(count($style->getEffects()), 6, 'Rotate effect with transparent background was added.');
+    $this->assertEquals(count($style->getEffects()), 6, 'Rotate effect with transparent background was added.');
 
     // Style deletion form.
 
@@ -451,7 +451,7 @@ public function testFlushUserInterface() {
     $image_uri = $files[0]->uri;
     $derivative_uri = $style->buildUri($image_uri);
     $this->assertTrue($style->createDerivative($image_uri, $derivative_uri));
-    $this->assertEqual($this->getImageCount($style), 1);
+    $this->assertEquals($this->getImageCount($style), 1);
 
     // Go to image styles list page and check if the flush operation link
     // exists.
@@ -463,7 +463,7 @@ public function testFlushUserInterface() {
     $this->drupalPostForm($flush_path, [], t('Flush'));
 
     // The derivative image file should have been deleted.
-    $this->assertEqual($this->getImageCount($style), 0);
+    $this->assertEquals($this->getImageCount($style), 0);
   }
 
   /**
@@ -512,7 +512,7 @@ public function testConfigImport() {
     $this->configImporter()->import();
 
     $this->assertFalse(ImageStyle::load($style_name), 'Style deleted after config import.');
-    $this->assertEqual($this->getImageCount($style), 0, 'Image style was flushed after being deleted by config import.');
+    $this->assertEquals($this->getImageCount($style), 0, 'Image style was flushed after being deleted by config import.');
   }
 
   /**
diff --git a/core/modules/image/src/Tests/ImageDimensionsTest.php b/core/modules/image/src/Tests/ImageDimensionsTest.php
index 136b0f1f15..f59b063b5c 100644
--- a/core/modules/image/src/Tests/ImageDimensionsTest.php
+++ b/core/modules/image/src/Tests/ImageDimensionsTest.php
@@ -47,8 +47,8 @@ public function testImageDimensions() {
     ];
     // Verify that the original image matches the hard-coded values.
     $image_file = $image_factory->get($original_uri);
-    $this->assertEqual($image_file->getWidth(), $variables['#width']);
-    $this->assertEqual($image_file->getHeight(), $variables['#height']);
+    $this->assertEquals($image_file->getWidth(), $variables['#width']);
+    $this->assertEquals($image_file->getHeight(), $variables['#height']);
 
     // Scale an image that is wider than it is high.
     $effect = [
@@ -63,14 +63,14 @@ public function testImageDimensions() {
 
     $style->addImageEffect($effect);
     $style->save();
-    $this->assertEqual($this->getImageTag($variables), '<img src="' . $url . '" width="120" height="60" alt="" class="image-style-test" />');
+    $this->assertEquals($this->getImageTag($variables), '<img src="' . $url . '" width="120" height="60" alt="" class="image-style-test" />');
     $this->assertFalse(file_exists($generated_uri), 'Generated file does not exist.');
     $this->drupalGet($this->getAbsoluteUrl($url));
     $this->assertResponse(200, 'Image was generated at the URL.');
     $this->assertTrue(file_exists($generated_uri), 'Generated file does exist after we accessed it.');
     $image_file = $image_factory->get($generated_uri);
-    $this->assertEqual($image_file->getWidth(), 120);
-    $this->assertEqual($image_file->getHeight(), 60);
+    $this->assertEquals($image_file->getWidth(), 120);
+    $this->assertEquals($image_file->getHeight(), 60);
 
     // Rotate 90 degrees anticlockwise.
     $effect = [
@@ -84,14 +84,14 @@ public function testImageDimensions() {
 
     $style->addImageEffect($effect);
     $style->save();
-    $this->assertEqual($this->getImageTag($variables), '<img src="' . $url . '" width="60" height="120" alt="" class="image-style-test" />');
+    $this->assertEquals($this->getImageTag($variables), '<img src="' . $url . '" width="60" height="120" alt="" class="image-style-test" />');
     $this->assertFalse(file_exists($generated_uri), 'Generated file does not exist.');
     $this->drupalGet($this->getAbsoluteUrl($url));
     $this->assertResponse(200, 'Image was generated at the URL.');
     $this->assertTrue(file_exists($generated_uri), 'Generated file does exist after we accessed it.');
     $image_file = $image_factory->get($generated_uri);
-    $this->assertEqual($image_file->getWidth(), 60);
-    $this->assertEqual($image_file->getHeight(), 120);
+    $this->assertEquals($image_file->getWidth(), 60);
+    $this->assertEquals($image_file->getHeight(), 120);
 
     // Scale an image that is higher than it is wide (rotated by previous effect).
     $effect = [
@@ -106,14 +106,14 @@ public function testImageDimensions() {
 
     $style->addImageEffect($effect);
     $style->save();
-    $this->assertEqual($this->getImageTag($variables), '<img src="' . $url . '" width="45" height="90" alt="" class="image-style-test" />');
+    $this->assertEquals($this->getImageTag($variables), '<img src="' . $url . '" width="45" height="90" alt="" class="image-style-test" />');
     $this->assertFalse(file_exists($generated_uri), 'Generated file does not exist.');
     $this->drupalGet($this->getAbsoluteUrl($url));
     $this->assertResponse(200, 'Image was generated at the URL.');
     $this->assertTrue(file_exists($generated_uri), 'Generated file does exist after we accessed it.');
     $image_file = $image_factory->get($generated_uri);
-    $this->assertEqual($image_file->getWidth(), 45);
-    $this->assertEqual($image_file->getHeight(), 90);
+    $this->assertEquals($image_file->getWidth(), 45);
+    $this->assertEquals($image_file->getHeight(), 90);
 
     // Test upscale disabled.
     $effect = [
@@ -128,14 +128,14 @@ public function testImageDimensions() {
 
     $style->addImageEffect($effect);
     $style->save();
-    $this->assertEqual($this->getImageTag($variables), '<img src="' . $url . '" width="45" height="90" alt="" class="image-style-test" />');
+    $this->assertEquals($this->getImageTag($variables), '<img src="' . $url . '" width="45" height="90" alt="" class="image-style-test" />');
     $this->assertFalse(file_exists($generated_uri), 'Generated file does not exist.');
     $this->drupalGet($this->getAbsoluteUrl($url));
     $this->assertResponse(200, 'Image was generated at the URL.');
     $this->assertTrue(file_exists($generated_uri), 'Generated file does exist after we accessed it.');
     $image_file = $image_factory->get($generated_uri);
-    $this->assertEqual($image_file->getWidth(), 45);
-    $this->assertEqual($image_file->getHeight(), 90);
+    $this->assertEquals($image_file->getWidth(), 45);
+    $this->assertEquals($image_file->getHeight(), 90);
 
     // Add a desaturate effect.
     $effect = [
@@ -146,14 +146,14 @@ public function testImageDimensions() {
 
     $style->addImageEffect($effect);
     $style->save();
-    $this->assertEqual($this->getImageTag($variables), '<img src="' . $url . '" width="45" height="90" alt="" class="image-style-test" />');
+    $this->assertEquals($this->getImageTag($variables), '<img src="' . $url . '" width="45" height="90" alt="" class="image-style-test" />');
     $this->assertFalse(file_exists($generated_uri), 'Generated file does not exist.');
     $this->drupalGet($this->getAbsoluteUrl($url));
     $this->assertResponse(200, 'Image was generated at the URL.');
     $this->assertTrue(file_exists($generated_uri), 'Generated file does exist after we accessed it.');
     $image_file = $image_factory->get($generated_uri);
-    $this->assertEqual($image_file->getWidth(), 45);
-    $this->assertEqual($image_file->getHeight(), 90);
+    $this->assertEquals($image_file->getWidth(), 45);
+    $this->assertEquals($image_file->getHeight(), 90);
 
     // Add a random rotate effect.
     $effect = [
@@ -167,7 +167,7 @@ public function testImageDimensions() {
 
     $style->addImageEffect($effect);
     $style->save();
-    $this->assertEqual($this->getImageTag($variables), '<img src="' . $url . '" alt="" class="image-style-test" />');
+    $this->assertEquals($this->getImageTag($variables), '<img src="' . $url . '" alt="" class="image-style-test" />');
     $this->assertFalse(file_exists($generated_uri), 'Generated file does not exist.');
     $this->drupalGet($this->getAbsoluteUrl($url));
     $this->assertResponse(200, 'Image was generated at the URL.');
@@ -186,14 +186,14 @@ public function testImageDimensions() {
 
     $style->addImageEffect($effect);
     $style->save();
-    $this->assertEqual($this->getImageTag($variables), '<img src="' . $url . '" width="30" height="30" alt="" class="image-style-test" />');
+    $this->assertEquals($this->getImageTag($variables), '<img src="' . $url . '" width="30" height="30" alt="" class="image-style-test" />');
     $this->assertFalse(file_exists($generated_uri), 'Generated file does not exist.');
     $this->drupalGet($this->getAbsoluteUrl($url));
     $this->assertResponse(200, 'Image was generated at the URL.');
     $this->assertTrue(file_exists($generated_uri), 'Generated file does exist after we accessed it.');
     $image_file = $image_factory->get($generated_uri);
-    $this->assertEqual($image_file->getWidth(), 30);
-    $this->assertEqual($image_file->getHeight(), 30);
+    $this->assertEquals($image_file->getWidth(), 30);
+    $this->assertEquals($image_file->getHeight(), 30);
 
     // Rotate to a non-multiple of 90 degrees.
     $effect = [
@@ -209,7 +209,7 @@ public function testImageDimensions() {
     $style->save();
     // @todo Uncomment this once
     //   https://www.drupal.org/project/drupal/issues/2670966 is resolved.
-    // $this->assertEqual($this->getImageTag($variables), '<img src="' . $url . '" width="41" height="41" alt="" class="image-style-test" />');
+    // $this->assertEquals($this->getImageTag($variables), '<img src="' . $url . '" width="41" height="41" alt="" class="image-style-test" />');
     $this->assertFalse(file_exists($generated_uri), 'Generated file does not exist.');
     $this->drupalGet($this->getAbsoluteUrl($url));
     $this->assertResponse(200, 'Image was generated at the URL.');
@@ -217,8 +217,8 @@ public function testImageDimensions() {
     $image_file = $image_factory->get($generated_uri);
     // @todo Uncomment this once
     //   https://www.drupal.org/project/drupal/issues/2670966 is resolved.
-    // $this->assertEqual($image_file->getWidth(), 41);
-    // $this->assertEqual($image_file->getHeight(), 41);
+    // $this->assertEquals($image_file->getWidth(), 41);
+    // $this->assertEquals($image_file->getHeight(), 41);
 
     $effect_plugin = $style->getEffect($effect_id);
     $style->deleteImageEffect($effect_plugin);
@@ -232,7 +232,7 @@ public function testImageDimensions() {
 
     $style->addImageEffect($effect);
     $style->save();
-    $this->assertEqual($this->getImageTag($variables), '<img src="' . $url . '" alt="" class="image-style-test" />');
+    $this->assertEquals($this->getImageTag($variables), '<img src="' . $url . '" alt="" class="image-style-test" />');
 
     // Test URI dependent image effect.
     $style = ImageStyle::create(['name' => 'test_uri', 'label' => 'Test URI']);
@@ -253,28 +253,28 @@ public function testImageDimensions() {
     // PNG original image. Should be resized to 100x100.
     $generated_uri = 'public://styles/test_uri/public/' . \Drupal::service('file_system')->basename($original_uri);
     $url = file_url_transform_relative($style->buildUrl($original_uri));
-    $this->assertEqual($this->getImageTag($variables), '<img src="' . $url . '" width="100" height="100" alt="" class="image-style-test-uri" />');
+    $this->assertEquals($this->getImageTag($variables), '<img src="' . $url . '" width="100" height="100" alt="" class="image-style-test-uri" />');
     $this->assertFalse(file_exists($generated_uri), 'Generated file does not exist.');
     $this->drupalGet($this->getAbsoluteUrl($url));
     $this->assertResponse(200, 'Image was generated at the URL.');
     $this->assertTrue(file_exists($generated_uri), 'Generated file does exist after we accessed it.');
     $image_file = $image_factory->get($generated_uri);
-    $this->assertEqual($image_file->getWidth(), 100);
-    $this->assertEqual($image_file->getHeight(), 100);
+    $this->assertEquals($image_file->getWidth(), 100);
+    $this->assertEquals($image_file->getHeight(), 100);
     // GIF original image. Should be resized to 50x50.
     $file = $files[1];
     $original_uri = file_unmanaged_copy($file->uri, 'public://', FILE_EXISTS_RENAME);
     $generated_uri = 'public://styles/test_uri/public/' . \Drupal::service('file_system')->basename($original_uri);
     $url = file_url_transform_relative($style->buildUrl($original_uri));
     $variables['#uri'] = $original_uri;
-    $this->assertEqual($this->getImageTag($variables), '<img src="' . $url . '" width="50" height="50" alt="" class="image-style-test-uri" />');
+    $this->assertEquals($this->getImageTag($variables), '<img src="' . $url . '" width="50" height="50" alt="" class="image-style-test-uri" />');
     $this->assertFalse(file_exists($generated_uri), 'Generated file does not exist.');
     $this->drupalGet($this->getAbsoluteUrl($url));
     $this->assertResponse(200, 'Image was generated at the URL.');
     $this->assertTrue(file_exists($generated_uri), 'Generated file does exist after we accessed it.');
     $image_file = $image_factory->get($generated_uri);
-    $this->assertEqual($image_file->getWidth(), 50);
-    $this->assertEqual($image_file->getHeight(), 50);
+    $this->assertEquals($image_file->getWidth(), 50);
+    $this->assertEquals($image_file->getHeight(), 50);
   }
 
   /**
diff --git a/core/modules/image/src/Tests/ImageFieldDefaultImagesTest.php b/core/modules/image/src/Tests/ImageFieldDefaultImagesTest.php
index b82348ec70..d7da0ae37a 100644
--- a/core/modules/image/src/Tests/ImageFieldDefaultImagesTest.php
+++ b/core/modules/image/src/Tests/ImageFieldDefaultImagesTest.php
@@ -67,18 +67,18 @@ public function testDefaultImages() {
     $field = $this->createImageField($field_name, 'article', $storage_settings, $field_settings, $widget_settings);
 
     // The field default image id should be 2.
-    $this->assertEqual($field->getSetting('default_image')['uuid'], $default_images['field']->uuid());
+    $this->assertEquals($field->getSetting('default_image')['uuid'], $default_images['field']->uuid());
 
     // Also test \Drupal\field\Entity\FieldConfig::getSettings().
-    $this->assertEqual($field->getSettings()['default_image']['uuid'], $default_images['field']->uuid());
+    $this->assertEquals($field->getSettings()['default_image']['uuid'], $default_images['field']->uuid());
 
     $field_storage = $field->getFieldStorageDefinition();
 
     // The field storage default image id should be 1.
-    $this->assertEqual($field_storage->getSetting('default_image')['uuid'], $default_images['field_storage']->uuid());
+    $this->assertEquals($field_storage->getSetting('default_image')['uuid'], $default_images['field_storage']->uuid());
 
     // Also test \Drupal\field\Entity\FieldStorageConfig::getSettings().
-    $this->assertEqual($field_storage->getSettings()['default_image']['uuid'], $default_images['field_storage']->uuid());
+    $this->assertEquals($field_storage->getSettings()['default_image']['uuid'], $default_images['field_storage']->uuid());
 
     // Add another field with another default image to the page content type.
     $field2 = FieldConfig::create([
@@ -154,7 +154,7 @@ public function testDefaultImages() {
     // Confirm that the image default is shown for a new article node.
     $article = $this->drupalCreateNode(['type' => 'article']);
     $article_built = $this->drupalBuildEntityView($article);
-    $this->assertEqual(
+    $this->assertEquals(
       $article_built[$field_name][0]['#item']->target_id,
       $default_images['field']->id(),
       format_string(
@@ -173,7 +173,7 @@ public function testDefaultImages() {
     // Confirm that the image default is shown for a new page node.
     $page = $this->drupalCreateNode(['type' => 'page']);
     $page_built = $this->drupalBuildEntityView($page);
-    $this->assertEqual(
+    $this->assertEquals(
       $page_built[$field_name][0]['#item']->target_id,
       $default_images['field2']->id(),
       format_string(
@@ -204,7 +204,7 @@ public function testDefaultImages() {
     $node_storage->resetCache([$article->id(), $page->id()]);
     $article_built = $this->drupalBuildEntityView($article = $node_storage->load($article->id()));
     $page_built = $this->drupalBuildEntityView($page = $node_storage->load($page->id()));
-    $this->assertEqual(
+    $this->assertEquals(
       $article_built[$field_name][0]['#item']->target_id,
       $default_images['field']->id(),
       format_string(
@@ -212,7 +212,7 @@ public function testDefaultImages() {
         ['@fid' => $default_images['field']->id()]
       )
     );
-    $this->assertEqual(
+    $this->assertEquals(
       $page_built[$field_name][0]['#item']->target_id,
       $default_images['field2']->id(),
       format_string(
@@ -244,7 +244,7 @@ public function testDefaultImages() {
     $page_built = $this->drupalBuildEntityView($page = $node_storage->load($page->id()));
 
     // Confirm the article uses the new default.
-    $this->assertEqual(
+    $this->assertEquals(
       $article_built[$field_name][0]['#item']->target_id,
       $default_images['field_new']->id(),
       format_string(
@@ -253,7 +253,7 @@ public function testDefaultImages() {
       )
     );
     // Confirm the page remains unchanged.
-    $this->assertEqual(
+    $this->assertEquals(
       $page_built[$field_name][0]['#item']->target_id,
       $default_images['field2']->id(),
       format_string(
@@ -286,7 +286,7 @@ public function testDefaultImages() {
     $article_built = $this->drupalBuildEntityView($article = $node_storage->load($article->id()));
     $page_built = $this->drupalBuildEntityView($page = $node_storage->load($page->id()));
     // Confirm the article uses the new field storage (not field) default.
-    $this->assertEqual(
+    $this->assertEquals(
       $article_built[$field_name][0]['#item']->target_id,
       $default_images['field_storage_new']->id(),
       format_string(
@@ -295,7 +295,7 @@ public function testDefaultImages() {
       )
     );
     // Confirm the page remains unchanged.
-    $this->assertEqual(
+    $this->assertEquals(
       $page_built[$field_name][0]['#item']->target_id,
       $default_images['field2']->id(),
       format_string(
diff --git a/core/modules/image/src/Tests/ImageFieldDisplayTest.php b/core/modules/image/src/Tests/ImageFieldDisplayTest.php
index 05d716c367..98e3fe3f99 100644
--- a/core/modules/image/src/Tests/ImageFieldDisplayTest.php
+++ b/core/modules/image/src/Tests/ImageFieldDisplayTest.php
@@ -128,11 +128,11 @@ public function _testImageFieldFormatters($scheme) {
     $this->assertTrue(!preg_match('/ image_style\:/', $cache_tags_header), 'No image style cache tag found.');
     $this->assertRaw($default_output, 'Image linked to file formatter displaying correctly on full node view.');
     // Verify that the image can be downloaded.
-    $this->assertEqual(file_get_contents($test_image->uri), $this->drupalGet(file_create_url($image_uri)), 'File was downloaded successfully.');
+    $this->assertEquals(file_get_contents($test_image->uri), $this->drupalGet(file_create_url($image_uri)), 'File was downloaded successfully.');
     if ($scheme == 'private') {
       // Only verify HTTP headers when using private scheme and the headers are
       // sent by Drupal.
-      $this->assertEqual($this->drupalGetHeader('Content-Type'), 'image/png', 'Content-Type header was sent.');
+      $this->assertEquals($this->drupalGetHeader('Content-Type'), 'image/png', 'Content-Type header was sent.');
       $this->assertTrue(strstr($this->drupalGetHeader('Cache-Control'), 'private') !== FALSE, 'Cache-Control header was sent.');
 
       // Log out and try to access the file.
@@ -168,7 +168,7 @@ public function _testImageFieldFormatters($scheme) {
         ':alt' => $alt,
       ]
     );
-    $this->assertEqual(count($elements), 1, 'Image linked to content formatter displaying correctly on full node view.');
+    $this->assertEquals(count($elements), 1, 'Image linked to content formatter displaying correctly on full node view.');
 
     // Test the image style 'thumbnail' formatter.
     $display_options['settings']['image_link'] = '';
@@ -206,12 +206,12 @@ public function _testImageFieldFormatters($scheme) {
       'settings' => ['image_style' => ''],
     ];
     $expected_url = file_url_transform_relative(file_create_url($image_uri));
-    $this->assertEqual($expected_url, $node->{$field_name}->view($display_options)[0]['#markup']);
+    $this->assertEquals($expected_url, $node->{$field_name}->view($display_options)[0]['#markup']);
 
     // Test the image URL formatter with an image style.
     $display_options['settings']['image_style'] = 'thumbnail';
     $expected_url = file_url_transform_relative(ImageStyle::load('thumbnail')->buildUrl($image_uri));
-    $this->assertEqual($expected_url, $node->{$field_name}->view($display_options)[0]['#markup']);
+    $this->assertEquals($expected_url, $node->{$field_name}->view($display_options)[0]['#markup']);
   }
 
   /**
@@ -437,7 +437,7 @@ public function testImageFieldDefaultImage() {
     $private_field_storage = FieldStorageConfig::loadByName('node', $private_field_name);
     $default_image = $private_field_storage->getSetting('default_image');
     $file = \Drupal::entityManager()->loadEntityByUuid('file', $default_image['uuid']);
-    $this->assertEqual('private', file_uri_scheme($file->getFileUri()), 'Default image uses private:// scheme.');
+    $this->assertEquals('private', file_uri_scheme($file->getFileUri()), 'Default image uses private:// scheme.');
     $this->assertTrue($file->isPermanent(), 'The default image status is permanent.');
     // Create a new node with no image attached and ensure that default private
     // image is displayed.
diff --git a/core/modules/image/src/Tests/ImageStyleFlushTest.php b/core/modules/image/src/Tests/ImageStyleFlushTest.php
index 4e8cd2c779..20d549591c 100644
--- a/core/modules/image/src/Tests/ImageStyleFlushTest.php
+++ b/core/modules/image/src/Tests/ImageStyleFlushTest.php
@@ -82,11 +82,11 @@ public function testFlush() {
     $image_path = $this->createSampleImage($style, 'public');
     // Expecting to find 2 images, one is the sample.png image shown in
     // image style preview.
-    $this->assertEqual($this->getImageCount($style, 'public'), 2, format_string('Image style %style image %file successfully generated.', ['%style' => $style->label(), '%file' => $image_path]));
+    $this->assertEquals($this->getImageCount($style, 'public'), 2, format_string('Image style %style image %file successfully generated.', ['%style' => $style->label(), '%file' => $image_path]));
 
     // Create an image for the 'private' wrapper.
     $image_path = $this->createSampleImage($style, 'private');
-    $this->assertEqual($this->getImageCount($style, 'private'), 1, format_string('Image style %style image %file successfully generated.', ['%style' => $style->label(), '%file' => $image_path]));
+    $this->assertEquals($this->getImageCount($style, 'private'), 1, format_string('Image style %style image %file successfully generated.', ['%style' => $style->label(), '%file' => $image_path]));
 
     // Remove the 'image_scale' effect and updates the style, which in turn
     // forces an image style flush.
@@ -101,10 +101,10 @@ public function testFlush() {
     $this->assertResponse(200);
 
     // Post flush, expected 1 image in the 'public' wrapper (sample.png).
-    $this->assertEqual($this->getImageCount($style, 'public'), 1, format_string('Image style %style flushed correctly for %wrapper wrapper.', ['%style' => $style->label(), '%wrapper' => 'public']));
+    $this->assertEquals($this->getImageCount($style, 'public'), 1, format_string('Image style %style flushed correctly for %wrapper wrapper.', ['%style' => $style->label(), '%wrapper' => 'public']));
 
     // Post flush, expected no image in the 'private' wrapper.
-    $this->assertEqual($this->getImageCount($style, 'private'), 0, format_string('Image style %style flushed correctly for %wrapper wrapper.', ['%style' => $style->label(), '%wrapper' => 'private']));
+    $this->assertEquals($this->getImageCount($style, 'private'), 0, format_string('Image style %style flushed correctly for %wrapper wrapper.', ['%style' => $style->label(), '%wrapper' => 'private']));
   }
 
 }
diff --git a/core/modules/image/src/Tests/ImageStylesPathAndUrlTest.php b/core/modules/image/src/Tests/ImageStylesPathAndUrlTest.php
index baa4e7fd53..25403ddcb3 100644
--- a/core/modules/image/src/Tests/ImageStylesPathAndUrlTest.php
+++ b/core/modules/image/src/Tests/ImageStylesPathAndUrlTest.php
@@ -38,11 +38,11 @@ public function testImageStylePath() {
     $scheme = 'public';
     $actual = $this->style->buildUri("$scheme://foo/bar.gif");
     $expected = "$scheme://styles/" . $this->style->id() . "/$scheme/foo/bar.gif";
-    $this->assertEqual($actual, $expected, 'Got the path for a file URI.');
+    $this->assertEquals($actual, $expected, 'Got the path for a file URI.');
 
     $actual = $this->style->buildUri('foo/bar.gif');
     $expected = "$scheme://styles/" . $this->style->id() . "/$scheme/foo/bar.gif";
-    $this->assertEqual($actual, $expected, 'Got the path for a relative file path.');
+    $this->assertEquals($actual, $expected, 'Got the path for a relative file path.');
   }
 
   /**
@@ -144,7 +144,7 @@ public function doImageStyleUrlAndPathTests($scheme, $clean_url = TRUE, $extra_s
     $this->config('system.file')->set('default_scheme', $scheme)->save();
     $relative_path = file_uri_target($original_uri);
     $generate_url_from_relative_path = $this->style->buildUrl($relative_path, $clean_url);
-    $this->assertEqual($generate_url, $generate_url_from_relative_path);
+    $this->assertEquals($generate_url, $generate_url_from_relative_path);
     $this->config('system.file')->set('default_scheme', 'temporary')->save();
 
     // Fetch the URL that generates the file.
@@ -153,17 +153,17 @@ public function doImageStyleUrlAndPathTests($scheme, $clean_url = TRUE, $extra_s
     $this->assertTrue(file_exists($generated_uri), 'Generated file does exist after we accessed it.');
     $this->assertRaw(file_get_contents($generated_uri), 'URL returns expected file.');
     $image = $this->container->get('image.factory')->get($generated_uri);
-    $this->assertEqual($this->drupalGetHeader('Content-Type'), $image->getMimeType(), 'Expected Content-Type was reported.');
-    $this->assertEqual($this->drupalGetHeader('Content-Length'), $image->getFileSize(), 'Expected Content-Length was reported.');
+    $this->assertEquals($this->drupalGetHeader('Content-Type'), $image->getMimeType(), 'Expected Content-Type was reported.');
+    $this->assertEquals($this->drupalGetHeader('Content-Length'), $image->getFileSize(), 'Expected Content-Length was reported.');
 
     // Check that we did not download the original file.
     $original_image = $this->container->get('image.factory')->get($original_uri);
     $this->assertNotEqual($this->drupalGetHeader('Content-Length'), $original_image->getFileSize());
 
     if ($scheme == 'private') {
-      $this->assertEqual($this->drupalGetHeader('Expires'), 'Sun, 19 Nov 1978 05:00:00 GMT', 'Expires header was sent.');
+      $this->assertEquals($this->drupalGetHeader('Expires'), 'Sun, 19 Nov 1978 05:00:00 GMT', 'Expires header was sent.');
       $this->assertNotEqual(strpos($this->drupalGetHeader('Cache-Control'), 'no-cache'), FALSE, 'Cache-Control header contains \'no-cache\' to prevent caching.');
-      $this->assertEqual($this->drupalGetHeader('X-Image-Owned-By'), 'image_module_test', 'Expected custom header has been added.');
+      $this->assertEquals($this->drupalGetHeader('X-Image-Owned-By'), 'image_module_test', 'Expected custom header has been added.');
 
       // Make sure that a second request to the already existing derivative
       // works too.
@@ -171,7 +171,7 @@ public function doImageStyleUrlAndPathTests($scheme, $clean_url = TRUE, $extra_s
       $this->assertResponse(200, 'Image was generated at the URL.');
 
       // Check that the second request also returned the generated image.
-      $this->assertEqual($this->drupalGetHeader('Content-Length'), $image->getFileSize());
+      $this->assertEquals($this->drupalGetHeader('Content-Length'), $image->getFileSize());
 
       // Check that we did not download the original file.
       $this->assertNotEqual($this->drupalGetHeader('Content-Length'), $original_image->getFileSize());
@@ -203,8 +203,8 @@ public function doImageStyleUrlAndPathTests($scheme, $clean_url = TRUE, $extra_s
       }
     }
     else {
-      $this->assertEqual($this->drupalGetHeader('Expires'), 'Sun, 19 Nov 1978 05:00:00 GMT', 'Expires header was sent.');
-      $this->assertEqual(strpos($this->drupalGetHeader('Cache-Control'), 'no-cache'), FALSE, 'Cache-Control header contains \'no-cache\' to prevent caching.');
+      $this->assertEquals($this->drupalGetHeader('Expires'), 'Sun, 19 Nov 1978 05:00:00 GMT', 'Expires header was sent.');
+      $this->assertEquals(strpos($this->drupalGetHeader('Cache-Control'), 'no-cache'), FALSE, 'Cache-Control header contains \'no-cache\' to prevent caching.');
 
       if ($clean_url) {
         // Add some extra chars to the token.
@@ -239,7 +239,7 @@ public function doImageStyleUrlAndPathTests($scheme, $clean_url = TRUE, $extra_s
     // Stop supressing the security token in the URL.
     $this->config('image.settings')->set('suppress_itok_output', FALSE)->save();
     // Ensure allow_insecure_derivatives is enabled.
-    $this->assertEqual($this->config('image.settings')->get('allow_insecure_derivatives'), TRUE);
+    $this->assertEquals($this->config('image.settings')->get('allow_insecure_derivatives'), TRUE);
     // Check that a security token is still required when generating a second
     // image derivative using the first one as a source.
     $nested_url = $this->style->buildUrl($generated_uri, $clean_url);
diff --git a/core/modules/image/src/Tests/ImageThemeFunctionTest.php b/core/modules/image/src/Tests/ImageThemeFunctionTest.php
index 54c5c64a19..d6485d8da2 100644
--- a/core/modules/image/src/Tests/ImageThemeFunctionTest.php
+++ b/core/modules/image/src/Tests/ImageThemeFunctionTest.php
@@ -97,7 +97,7 @@ public function testImageFormatterTheme() {
     $element = $base_element;
     $this->setRawContent($renderer->renderRoot($element));
     $elements = $this->xpath('//a[@href=:path]/img[@class="image-style-test" and @src=:url and @width=:width and @height=:height]', [':path' => base_path() . $path, ':url' => $url, ':width' => $image->getWidth(), ':height' => $image->getHeight()]);
-    $this->assertEqual(count($elements), 1, 'theme_image_formatter() correctly renders with a NULL value for the alt option.');
+    $this->assertEquals(count($elements), 1, 'theme_image_formatter() correctly renders with a NULL value for the alt option.');
 
     // Test using theme_image_formatter() without an image title, alt text, or
     // link options.
@@ -105,7 +105,7 @@ public function testImageFormatterTheme() {
     $element['#item']->alt = '';
     $this->setRawContent($renderer->renderRoot($element));
     $elements = $this->xpath('//a[@href=:path]/img[@class="image-style-test" and @src=:url and @width=:width and @height=:height and @alt=""]', [':path' => base_path() . $path, ':url' => $url, ':width' => $image->getWidth(), ':height' => $image->getHeight()]);
-    $this->assertEqual(count($elements), 1, 'theme_image_formatter() correctly renders without title, alt, or path options.');
+    $this->assertEquals(count($elements), 1, 'theme_image_formatter() correctly renders without title, alt, or path options.');
 
     // Link the image to a fragment on the page, and not a full URL.
     $fragment = $this->randomMachineName();
@@ -118,7 +118,7 @@ public function testImageFormatterTheme() {
       ':width' => $image->getWidth(),
       ':height' => $image->getHeight()
     ]);
-    $this->assertEqual(count($elements), 1, 'theme_image_formatter() correctly renders a link fragment.');
+    $this->assertEquals(count($elements), 1, 'theme_image_formatter() correctly renders a link fragment.');
   }
 
   /**
@@ -148,14 +148,14 @@ public function testImageStyleTheme() {
     $element = $base_element;
     $this->setRawContent($renderer->renderRoot($element));
     $elements = $this->xpath('//img[@class="image-style-image-test" and @src=:url and @alt=""]', [':url' => $url]);
-    $this->assertEqual(count($elements), 1, 'theme_image_style() renders an image correctly.');
+    $this->assertEquals(count($elements), 1, 'theme_image_style() renders an image correctly.');
 
     // Test using theme_image_style() with a NULL value for the alt option.
     $element = $base_element;
     $element['#alt'] = NULL;
     $this->setRawContent($renderer->renderRoot($element));
     $elements = $this->xpath('//img[@class="image-style-image-test" and @src=:url]', [':url' => $url]);
-    $this->assertEqual(count($elements), 1, 'theme_image_style() renders an image correctly with a NULL value for the alt option.');
+    $this->assertEquals(count($elements), 1, 'theme_image_style() renders an image correctly with a NULL value for the alt option.');
   }
 
   /**
@@ -178,7 +178,7 @@ public function testImageAltFunctionality() {
 
     $this->setRawContent($renderer->renderRoot($image_with_alt_property));
     $elements = $this->xpath('//img[contains(@class, class) and contains(@alt, :alt)]', [":class" => "image-with-regular-alt", ":alt" => "Regular alt"]);
-    $this->assertEqual(count($elements), 1, 'Regular alt displays correctly');
+    $this->assertEquals(count($elements), 1, 'Regular alt displays correctly');
 
     // Test using alt attribute inside attributes.
     $image_with_alt_attribute_alt_attribute = [
@@ -196,7 +196,7 @@ public function testImageAltFunctionality() {
 
     $this->setRawContent($renderer->renderRoot($image_with_alt_attribute_alt_attribute));
     $elements = $this->xpath('//img[contains(@class, class) and contains(@alt, :alt)]', [":class" => "image-with-attribute-alt", ":alt" => "Attribute alt"]);
-    $this->assertEqual(count($elements), 1, 'Attribute alt displays correctly');
+    $this->assertEquals(count($elements), 1, 'Attribute alt displays correctly');
 
     // Test using alt attribute as property and inside attributes.
     $image_with_alt_attribute_both = [
@@ -215,7 +215,7 @@ public function testImageAltFunctionality() {
 
     $this->setRawContent($renderer->renderRoot($image_with_alt_attribute_both));
     $elements = $this->xpath('//img[contains(@class, class) and contains(@alt, :alt)]', [":class" => "image-with-attribute-alt", ":alt" => "Attribute alt"]);
-    $this->assertEqual(count($elements), 1, 'Attribute alt overrides alt property if both set.');
+    $this->assertEquals(count($elements), 1, 'Attribute alt overrides alt property if both set.');
   }
 
 }
diff --git a/core/modules/image/tests/src/Functional/ImageEffectsTest.php b/core/modules/image/tests/src/Functional/ImageEffectsTest.php
index 3207442ab2..c9308bad7e 100644
--- a/core/modules/image/tests/src/Functional/ImageEffectsTest.php
+++ b/core/modules/image/tests/src/Functional/ImageEffectsTest.php
@@ -43,8 +43,8 @@ public function testResizeEffect() {
 
     // Check the parameters.
     $calls = $this->imageTestGetAllCalls();
-    $this->assertEqual($calls['resize'][0][0], 1, 'Width was passed correctly');
-    $this->assertEqual($calls['resize'][0][1], 2, 'Height was passed correctly');
+    $this->assertEquals($calls['resize'][0][0], 1, 'Width was passed correctly');
+    $this->assertEquals($calls['resize'][0][1], 2, 'Height was passed correctly');
   }
 
   /**
@@ -60,8 +60,8 @@ public function testScaleEffect() {
 
     // Check the parameters.
     $calls = $this->imageTestGetAllCalls();
-    $this->assertEqual($calls['scale'][0][0], 10, 'Width was passed correctly');
-    $this->assertEqual($calls['scale'][0][1], 10, 'Height was based off aspect ratio and passed correctly');
+    $this->assertEquals($calls['scale'][0][0], 10, 'Width was passed correctly');
+    $this->assertEquals($calls['scale'][0][1], 10, 'Height was based off aspect ratio and passed correctly');
   }
 
   /**
@@ -78,10 +78,10 @@ public function testCropEffect() {
 
     // Check the parameters.
     $calls = $this->imageTestGetAllCalls();
-    $this->assertEqual($calls['crop'][0][0], 0, 'X was passed correctly');
-    $this->assertEqual($calls['crop'][0][1], 1, 'Y was passed correctly');
-    $this->assertEqual($calls['crop'][0][2], 3, 'Width was passed correctly');
-    $this->assertEqual($calls['crop'][0][3], 4, 'Height was passed correctly');
+    $this->assertEquals($calls['crop'][0][0], 0, 'X was passed correctly');
+    $this->assertEquals($calls['crop'][0][1], 1, 'Y was passed correctly');
+    $this->assertEquals($calls['crop'][0][2], 3, 'Width was passed correctly');
+    $this->assertEquals($calls['crop'][0][3], 4, 'Height was passed correctly');
   }
 
   /**
@@ -96,7 +96,7 @@ public function testConvertEffect() {
 
     // Check the parameters.
     $calls = $this->imageTestGetAllCalls();
-    $this->assertEqual($calls['convert'][0][0], 'jpeg', 'Extension was passed correctly');
+    $this->assertEquals($calls['convert'][0][0], 'jpeg', 'Extension was passed correctly');
   }
 
   /**
@@ -111,8 +111,8 @@ public function testScaleAndCropEffect() {
 
     // Check the parameters.
     $calls = $this->imageTestGetAllCalls();
-    $this->assertEqual($calls['scale_and_crop'][0][0], 5, 'Width was computed and passed correctly');
-    $this->assertEqual($calls['scale_and_crop'][0][1], 10, 'Height was computed and passed correctly');
+    $this->assertEquals($calls['scale_and_crop'][0][0], 5, 'Width was computed and passed correctly');
+    $this->assertEquals($calls['scale_and_crop'][0][1], 10, 'Height was computed and passed correctly');
   }
 
   /**
@@ -124,7 +124,7 @@ public function testDesaturateEffect() {
 
     // Check the parameters.
     $calls = $this->imageTestGetAllCalls();
-    $this->assertEqual(count($calls['desaturate'][0]), 0, 'No parameters were passed.');
+    $this->assertEquals(count($calls['desaturate'][0]), 0, 'No parameters were passed.');
   }
 
   /**
@@ -140,8 +140,8 @@ public function testRotateEffect() {
 
     // Check the parameters.
     $calls = $this->imageTestGetAllCalls();
-    $this->assertEqual($calls['rotate'][0][0], 90, 'Degrees were passed correctly');
-    $this->assertEqual($calls['rotate'][0][1], '#fff', 'Background color was passed correctly');
+    $this->assertEquals($calls['rotate'][0][0], 90, 'Degrees were passed correctly');
+    $this->assertEquals($calls['rotate'][0][1], '#fff', 'Background color was passed correctly');
   }
 
   /**
diff --git a/core/modules/image/tests/src/Kernel/ImageImportTest.php b/core/modules/image/tests/src/Kernel/ImageImportTest.php
index 14eeaa3f2b..da0f3e00b0 100644
--- a/core/modules/image/tests/src/Kernel/ImageImportTest.php
+++ b/core/modules/image/tests/src/Kernel/ImageImportTest.php
@@ -29,7 +29,7 @@ public function testImport() {
     $style->addImageEffect(['id' => 'image_module_test_null']);
     $style->save();
 
-    $this->assertEqual(count($style->getEffects()), 2);
+    $this->assertEquals(count($style->getEffects()), 2);
 
     $uuid = \Drupal::service('uuid')->generate();
     $style->set('effects', [
@@ -40,7 +40,7 @@ public function testImport() {
     $style->save();
 
     $style = ImageStyle::load('test');
-    $this->assertEqual(count($style->getEffects()), 1);
+    $this->assertEquals(count($style->getEffects()), 1);
   }
 
 }
diff --git a/core/modules/image/tests/src/Kernel/ImageItemTest.php b/core/modules/image/tests/src/Kernel/ImageItemTest.php
index 45d9d0378a..41a598e49b 100644
--- a/core/modules/image/tests/src/Kernel/ImageItemTest.php
+++ b/core/modules/image/tests/src/Kernel/ImageItemTest.php
@@ -90,14 +90,14 @@ public function testImageItem() {
     $entity = EntityTest::load($entity->id());
     $this->assertTrue($entity->image_test instanceof FieldItemListInterface, 'Field implements interface.');
     $this->assertTrue($entity->image_test[0] instanceof FieldItemInterface, 'Field item implements interface.');
-    $this->assertEqual($entity->image_test->target_id, $this->image->id());
-    $this->assertEqual($entity->image_test->alt, $alt);
-    $this->assertEqual($entity->image_test->title, $title);
+    $this->assertEquals($entity->image_test->target_id, $this->image->id());
+    $this->assertEquals($entity->image_test->alt, $alt);
+    $this->assertEquals($entity->image_test->title, $title);
     $image = $this->imageFactory->get('public://example.jpg');
-    $this->assertEqual($entity->image_test->width, $image->getWidth());
-    $this->assertEqual($entity->image_test->height, $image->getHeight());
-    $this->assertEqual($entity->image_test->entity->id(), $this->image->id());
-    $this->assertEqual($entity->image_test->entity->uuid(), $this->image->uuid());
+    $this->assertEquals($entity->image_test->width, $image->getWidth());
+    $this->assertEquals($entity->image_test->height, $image->getHeight());
+    $this->assertEquals($entity->image_test->entity->id(), $this->image->id());
+    $this->assertEquals($entity->image_test->entity->uuid(), $this->image->uuid());
 
     // Make sure the computed entity reflects updates to the referenced file.
     file_unmanaged_copy(\Drupal::root() . '/core/misc/druplicon.png', 'public://example-2.jpg');
@@ -111,16 +111,16 @@ public function testImageItem() {
     // The width and height is only updated when width is not set.
     $entity->image_test->width = NULL;
     $entity->save();
-    $this->assertEqual($entity->image_test->entity->id(), $image2->id());
-    $this->assertEqual($entity->image_test->entity->getFileUri(), $image2->getFileUri());
+    $this->assertEquals($entity->image_test->entity->id(), $image2->id());
+    $this->assertEquals($entity->image_test->entity->getFileUri(), $image2->getFileUri());
     $image = $this->imageFactory->get('public://example-2.jpg');
-    $this->assertEqual($entity->image_test->width, $image->getWidth());
-    $this->assertEqual($entity->image_test->height, $image->getHeight());
-    $this->assertEqual($entity->image_test->alt, $new_alt);
+    $this->assertEquals($entity->image_test->width, $image->getWidth());
+    $this->assertEquals($entity->image_test->height, $image->getHeight());
+    $this->assertEquals($entity->image_test->alt, $new_alt);
 
     // Check that the image item can be set to the referenced file directly.
     $entity->image_test = $this->image;
-    $this->assertEqual($entity->image_test->target_id, $this->image->id());
+    $this->assertEquals($entity->image_test->target_id, $this->image->id());
 
     // Delete the image and try to save the entity again.
     $this->image->delete();
@@ -130,13 +130,13 @@ public function testImageItem() {
     // Test image item properties.
     $expected = ['target_id', 'entity', 'alt', 'title', 'width', 'height'];
     $properties = $entity->getFieldDefinition('image_test')->getFieldStorageDefinition()->getPropertyDefinitions();
-    $this->assertEqual(array_keys($properties), $expected);
+    $this->assertEquals(array_keys($properties), $expected);
 
     // Test the generateSampleValue() method.
     $entity = EntityTest::create();
     $entity->image_test->generateSampleItems();
     $this->entityValidateAndSave($entity);
-    $this->assertEqual($entity->image_test->entity->get('filemime')->value, 'image/jpeg');
+    $this->assertEquals($entity->image_test->entity->get('filemime')->value, 'image/jpeg');
   }
 
   /**
diff --git a/core/modules/image/tests/src/Kernel/Migrate/d6/MigrateImageCacheTest.php b/core/modules/image/tests/src/Kernel/Migrate/d6/MigrateImageCacheTest.php
index e92685b845..8d6c353d4c 100644
--- a/core/modules/image/tests/src/Kernel/Migrate/d6/MigrateImageCacheTest.php
+++ b/core/modules/image/tests/src/Kernel/Migrate/d6/MigrateImageCacheTest.php
@@ -109,11 +109,11 @@ public function testMissingEffectPlugin() {
     $count = 0;
     foreach ($messages as $message) {
       $count++;
-      $this->assertEqual($message->message, 'The "image_deprecated_scale" plugin does not exist.');
-      $this->assertEqual($message->level, MigrationInterface::MESSAGE_ERROR);
+      $this->assertEquals($message->message, 'The "image_deprecated_scale" plugin does not exist.');
+      $this->assertEquals($message->level, MigrationInterface::MESSAGE_ERROR);
     }
     // There should be only the one message.
-    $this->assertEqual($count, 1);
+    $this->assertEquals($count, 1);
   }
 
   /**
@@ -141,7 +141,7 @@ public function testInvalidCropValues() {
 
     $this->startCollectingMessages();
     $this->executeMigration('d6_imagecache_presets');
-    $this->assertEqual([
+    $this->assertEquals([
       'error' => [
         'The Drupal 8 image crop effect does not support numeric values for x and y offsets. Use keywords to set crop effect offsets instead.',
       ],
diff --git a/core/modules/image/tests/src/Kernel/Views/ImageViewsDataTest.php b/core/modules/image/tests/src/Kernel/Views/ImageViewsDataTest.php
index a324d5ead3..a0a52e804f 100644
--- a/core/modules/image/tests/src/Kernel/Views/ImageViewsDataTest.php
+++ b/core/modules/image/tests/src/Kernel/Views/ImageViewsDataTest.php
@@ -42,21 +42,21 @@ public function testRelationshipViewsData() {
     // Check the generated views data.
     $views_data = Views::viewsData()->get('entity_test__field_base_image');
     $relationship = $views_data['field_base_image_target_id']['relationship'];
-    $this->assertEqual($relationship['id'], 'standard');
-    $this->assertEqual($relationship['base'], 'file_managed');
-    $this->assertEqual($relationship['base field'], 'fid');
-    $this->assertEqual($relationship['entity type'], 'file');
+    $this->assertEquals($relationship['id'], 'standard');
+    $this->assertEquals($relationship['base'], 'file_managed');
+    $this->assertEquals($relationship['base field'], 'fid');
+    $this->assertEquals($relationship['entity type'], 'file');
     // Check the backwards reference.
     $views_data = Views::viewsData()->get('file_managed');
     $relationship = $views_data['reverse_field_base_image_entity_test']['relationship'];
-    $this->assertEqual($relationship['id'], 'entity_reverse');
-    $this->assertEqual($relationship['base'], 'entity_test');
-    $this->assertEqual($relationship['base field'], 'id');
-    $this->assertEqual($relationship['field table'], 'entity_test__field_base_image');
-    $this->assertEqual($relationship['field field'], 'field_base_image_target_id');
-    $this->assertEqual($relationship['field_name'], 'field_base_image');
-    $this->assertEqual($relationship['entity_type'], 'entity_test');
-    $this->assertEqual($relationship['join_extra'][0], ['field' => 'deleted', 'value' => 0, 'numeric' => TRUE]);
+    $this->assertEquals($relationship['id'], 'entity_reverse');
+    $this->assertEquals($relationship['base'], 'entity_test');
+    $this->assertEquals($relationship['base field'], 'id');
+    $this->assertEquals($relationship['field table'], 'entity_test__field_base_image');
+    $this->assertEquals($relationship['field field'], 'field_base_image_target_id');
+    $this->assertEquals($relationship['field_name'], 'field_base_image');
+    $this->assertEquals($relationship['entity_type'], 'entity_test');
+    $this->assertEquals($relationship['join_extra'][0], ['field' => 'deleted', 'value' => 0, 'numeric' => TRUE]);
 
     // Create image field to entity_test_mul.
     FieldStorageConfig::create([
@@ -72,21 +72,21 @@ public function testRelationshipViewsData() {
     // Check the generated views data.
     $views_data = Views::viewsData()->get('entity_test_mul__field_data_image');
     $relationship = $views_data['field_data_image_target_id']['relationship'];
-    $this->assertEqual($relationship['id'], 'standard');
-    $this->assertEqual($relationship['base'], 'file_managed');
-    $this->assertEqual($relationship['base field'], 'fid');
-    $this->assertEqual($relationship['entity type'], 'file');
+    $this->assertEquals($relationship['id'], 'standard');
+    $this->assertEquals($relationship['base'], 'file_managed');
+    $this->assertEquals($relationship['base field'], 'fid');
+    $this->assertEquals($relationship['entity type'], 'file');
     // Check the backwards reference.
     $views_data = Views::viewsData()->get('file_managed');
     $relationship = $views_data['reverse_field_data_image_entity_test_mul']['relationship'];
-    $this->assertEqual($relationship['id'], 'entity_reverse');
-    $this->assertEqual($relationship['base'], 'entity_test_mul_property_data');
-    $this->assertEqual($relationship['base field'], 'id');
-    $this->assertEqual($relationship['field table'], 'entity_test_mul__field_data_image');
-    $this->assertEqual($relationship['field field'], 'field_data_image_target_id');
-    $this->assertEqual($relationship['field_name'], 'field_data_image');
-    $this->assertEqual($relationship['entity_type'], 'entity_test_mul');
-    $this->assertEqual($relationship['join_extra'][0], ['field' => 'deleted', 'value' => 0, 'numeric' => TRUE]);
+    $this->assertEquals($relationship['id'], 'entity_reverse');
+    $this->assertEquals($relationship['base'], 'entity_test_mul_property_data');
+    $this->assertEquals($relationship['base field'], 'id');
+    $this->assertEquals($relationship['field table'], 'entity_test_mul__field_data_image');
+    $this->assertEquals($relationship['field field'], 'field_data_image_target_id');
+    $this->assertEquals($relationship['field_name'], 'field_data_image');
+    $this->assertEquals($relationship['entity_type'], 'entity_test_mul');
+    $this->assertEquals($relationship['join_extra'][0], ['field' => 'deleted', 'value' => 0, 'numeric' => TRUE]);
   }
 
 }
diff --git a/core/modules/language/tests/src/Functional/LanguageConfigOverrideImportTest.php b/core/modules/language/tests/src/Functional/LanguageConfigOverrideImportTest.php
index 2ddd4963ed..fc3318077c 100644
--- a/core/modules/language/tests/src/Functional/LanguageConfigOverrideImportTest.php
+++ b/core/modules/language/tests/src/Functional/LanguageConfigOverrideImportTest.php
@@ -47,7 +47,7 @@ public function testConfigOverrideImport() {
     \Drupal::service('router.builder')->rebuild();
 
     $override = \Drupal::languageManager()->getLanguageConfigOverride('fr', 'system.site');
-    $this->assertEqual('FR default site name', $override->get('name'));
+    $this->assertEquals('FR default site name', $override->get('name'));
     $this->drupalGet('fr');
     $this->assertText('FR default site name');
 
diff --git a/core/modules/language/tests/src/Functional/LanguageConfigurationElementTest.php b/core/modules/language/tests/src/Functional/LanguageConfigurationElementTest.php
index 87ad05bfd1..198c766b7b 100644
--- a/core/modules/language/tests/src/Functional/LanguageConfigurationElementTest.php
+++ b/core/modules/language/tests/src/Functional/LanguageConfigurationElementTest.php
@@ -39,7 +39,7 @@ public function testLanguageConfigurationElement() {
     $lang_conf = ContentLanguageSettings::loadByEntityTypeBundle('entity_test', 'some_bundle');
 
     // Check that the settings have been saved.
-    $this->assertEqual($lang_conf->getDefaultLangcode(), 'current_interface');
+    $this->assertEquals($lang_conf->getDefaultLangcode(), 'current_interface');
     $this->assertFalse($lang_conf->isLanguageAlterable());
     $this->drupalGet('language-tests/language_configuration_element');
     $this->assertOptionSelected('edit-lang-configuration-langcode', 'current_interface');
@@ -53,7 +53,7 @@ public function testLanguageConfigurationElement() {
     $lang_conf = ContentLanguageSettings::loadByEntityTypeBundle('entity_test', 'some_bundle');
 
     // Check that the settings have been saved.
-    $this->assertEqual($lang_conf->getDefaultLangcode(), 'authors_default');
+    $this->assertEquals($lang_conf->getDefaultLangcode(), 'authors_default');
     $this->assertTrue($lang_conf->isLanguageAlterable());
     $this->drupalGet('language-tests/language_configuration_element');
     $this->assertOptionSelected('edit-lang-configuration-langcode', 'authors_default');
@@ -94,7 +94,7 @@ public function testDefaultLangcode() {
       ->save();
 
     $langcode = language_get_default_langcode('entity_test', 'custom_bundle');
-    $this->assertEqual($langcode, 'bb');
+    $this->assertEquals($langcode, 'bb');
 
     // Current interface.
     ContentLanguageSettings::loadByEntityTypeBundle('entity_test', 'custom_bundle')
@@ -104,7 +104,7 @@ public function testDefaultLangcode() {
 
     $langcode = language_get_default_langcode('entity_test', 'custom_bundle');
     $language_interface = \Drupal::languageManager()->getCurrentLanguage();
-    $this->assertEqual($langcode, $language_interface->getId());
+    $this->assertEquals($langcode, $language_interface->getId());
 
     // Site's default.
     $old_default = \Drupal::languageManager()->getDefaultLanguage();
@@ -118,7 +118,7 @@ public function testDefaultLangcode() {
       ->setDefaultLangcode(LanguageInterface::LANGCODE_SITE_DEFAULT)
       ->save();
     $langcode = language_get_default_langcode('entity_test', 'custom_bundle');
-    $this->assertEqual($langcode, 'cc');
+    $this->assertEquals($langcode, 'cc');
 
     // Ensure the language entity default value is correct.
     $configurable_language = ConfigurableLanguage::load($old_default->getId());
@@ -166,7 +166,7 @@ public function testNodeTypeUpdate() {
     // Check the language default configuration for the articles.
     $configuration = ContentLanguageSettings::loadByEntityTypeBundle('node', 'article');
     $uuid = $configuration->uuid();
-    $this->assertEqual($configuration->getDefaultLangcode(), 'current_interface', 'The default language configuration has been saved on the Article content type.');
+    $this->assertEquals($configuration->getDefaultLangcode(), 'current_interface', 'The default language configuration has been saved on the Article content type.');
     $this->assertTrue($configuration->isLanguageAlterable(), 'The alterable language configuration has been saved on the Article content type.');
     // Update the article content type by changing the title label.
     $edit = [
@@ -175,9 +175,9 @@ public function testNodeTypeUpdate() {
     $this->drupalPostForm('admin/structure/types/manage/article', $edit, t('Save content type'));
     // Check that we still have the settings for the updated node type.
     $configuration = ContentLanguageSettings::loadByEntityTypeBundle('node', 'article');
-    $this->assertEqual($configuration->getDefaultLangcode(), 'current_interface', 'The default language configuration has been kept on the updated Article content type.');
+    $this->assertEquals($configuration->getDefaultLangcode(), 'current_interface', 'The default language configuration has been kept on the updated Article content type.');
     $this->assertTrue($configuration->isLanguageAlterable(), 'The alterable language configuration has been kept on the updated Article content type.');
-    $this->assertEqual($configuration->uuid(), $uuid, 'The language configuration uuid has been kept on the updated Article content type.');
+    $this->assertEquals($configuration->uuid(), $uuid, 'The language configuration uuid has been kept on the updated Article content type.');
   }
 
   /**
@@ -236,7 +236,7 @@ public function testTaxonomyVocabularyUpdate() {
     // Check the language default configuration.
     $configuration = ContentLanguageSettings::loadByEntityTypeBundle('taxonomy_term', 'country');
     $uuid = $configuration->uuid();
-    $this->assertEqual($configuration->getDefaultLangcode(), 'current_interface', 'The default language configuration has been saved on the Country vocabulary.');
+    $this->assertEquals($configuration->getDefaultLangcode(), 'current_interface', 'The default language configuration has been saved on the Country vocabulary.');
     $this->assertTrue($configuration->isLanguageAlterable(), 'The alterable language configuration has been saved on the Country vocabulary.');
     // Update the vocabulary.
     $edit = [
@@ -245,9 +245,9 @@ public function testTaxonomyVocabularyUpdate() {
     $this->drupalPostForm('admin/structure/taxonomy/manage/country', $edit, t('Save'));
     // Check that we still have the settings for the updated vocabulary.
     $configuration = ContentLanguageSettings::loadByEntityTypeBundle('taxonomy_term', 'country');
-    $this->assertEqual($configuration->getDefaultLangcode(), 'current_interface', 'The default language configuration has been kept on the updated Country vocabulary.');
+    $this->assertEquals($configuration->getDefaultLangcode(), 'current_interface', 'The default language configuration has been kept on the updated Country vocabulary.');
     $this->assertTrue($configuration->isLanguageAlterable(), 'The alterable language configuration has been kept on the updated Country vocabulary.');
-    $this->assertEqual($configuration->uuid(), $uuid, 'The language configuration uuid has been kept on the updated Country vocabulary.');
+    $this->assertEquals($configuration->uuid(), $uuid, 'The language configuration uuid has been kept on the updated Country vocabulary.');
   }
 
 }
diff --git a/core/modules/language/tests/src/Functional/LanguageConfigurationTest.php b/core/modules/language/tests/src/Functional/LanguageConfigurationTest.php
index 7095bc18e2..2b59250430 100644
--- a/core/modules/language/tests/src/Functional/LanguageConfigurationTest.php
+++ b/core/modules/language/tests/src/Functional/LanguageConfigurationTest.php
@@ -26,7 +26,7 @@ class LanguageConfigurationTest extends BrowserTestBase {
   public function testLanguageConfiguration() {
     // Ensure the after installing the language module the weight of the English
     // language is still 0.
-    $this->assertEqual(ConfigurableLanguage::load('en')->getWeight(), 0, 'The English language has a weight of 0.');
+    $this->assertEquals(ConfigurableLanguage::load('en')->getWeight(), 0, 'The English language has a weight of 0.');
 
     // User to add and remove language.
     $admin_user = $this->drupalCreateUser(['administer languages', 'access administration pages']);
@@ -49,7 +49,7 @@ public function testLanguageConfiguration() {
     $this->assertUrl(\Drupal::url('entity.configurable_language.collection', [], ['absolute' => TRUE]), [], 'Correct page redirection.');
     // Langcode for Languages is always 'en'.
     $language = $this->config('language.entity.fr')->get();
-    $this->assertEqual($language['langcode'], 'en');
+    $this->assertEquals($language['langcode'], 'en');
 
     // Check if the Default English language has no path prefix.
     $this->drupalGet('admin/config/regional/language/detection/url');
@@ -119,30 +119,30 @@ public function testLanguageConfiguration() {
     // Ensure that French language has a weight of 1 after being created through
     // the UI.
     $french = ConfigurableLanguage::load('fr');
-    $this->assertEqual($french->getWeight(), 1, 'The French language has a weight of 1.');
+    $this->assertEquals($french->getWeight(), 1, 'The French language has a weight of 1.');
     // Ensure that French language can now have a weight of 0.
     $french->setWeight(0)->save();
-    $this->assertEqual($french->getWeight(), 0, 'The French language has a weight of 0.');
+    $this->assertEquals($french->getWeight(), 0, 'The French language has a weight of 0.');
     // Ensure that new languages created through the API get a weight of 0.
     $afrikaans = ConfigurableLanguage::createFromLangcode('af');
     $afrikaans->save();
-    $this->assertEqual($afrikaans->getWeight(), 0, 'The Afrikaans language has a weight of 0.');
+    $this->assertEquals($afrikaans->getWeight(), 0, 'The Afrikaans language has a weight of 0.');
     // Ensure that a new language can be created with any weight.
     $arabic = ConfigurableLanguage::createFromLangcode('ar');
     $arabic->setWeight(4)->save();
-    $this->assertEqual($arabic->getWeight(), 4, 'The Arabic language has a weight of 0.');
+    $this->assertEquals($arabic->getWeight(), 4, 'The Arabic language has a weight of 0.');
 
     $edit = [
       'predefined_langcode' => 'de',
     ];
     $this->drupalPostForm('admin/config/regional/language/add', $edit, 'Add language');
     $language = $this->config('language.entity.de')->get();
-    $this->assertEqual($language['langcode'], 'fr');
+    $this->assertEquals($language['langcode'], 'fr');
 
     // Ensure that German language has a weight of 5 after being created through
     // the UI.
     $french = ConfigurableLanguage::load('de');
-    $this->assertEqual($french->getWeight(), 5, 'The German language has a weight of 5.');
+    $this->assertEquals($french->getWeight(), 5, 'The German language has a weight of 5.');
   }
 
   /**
diff --git a/core/modules/language/tests/src/Functional/LanguageListModuleInstallTest.php b/core/modules/language/tests/src/Functional/LanguageListModuleInstallTest.php
index 013d00d8db..3e264db2e7 100644
--- a/core/modules/language/tests/src/Functional/LanguageListModuleInstallTest.php
+++ b/core/modules/language/tests/src/Functional/LanguageListModuleInstallTest.php
@@ -31,7 +31,7 @@ public function testModuleInstallLanguageList() {
     $edit['modules[language][enable]'] = 'language';
     $this->drupalPostForm('admin/modules', $edit, t('Install'));
 
-    $this->assertEqual(\Drupal::state()->get('language_test.language_count_preinstall', 0), 1, 'Using LanguageManager::getLanguages() returns 1 language during Language installation.');
+    $this->assertEquals(\Drupal::state()->get('language_test.language_count_preinstall', 0), 1, 'Using LanguageManager::getLanguages() returns 1 language during Language installation.');
 
     // Get updated module list by rebuilding container.
     $this->rebuildContainer();
diff --git a/core/modules/language/tests/src/Functional/LanguageListTest.php b/core/modules/language/tests/src/Functional/LanguageListTest.php
index 8c671cfccf..8048914474 100644
--- a/core/modules/language/tests/src/Functional/LanguageListTest.php
+++ b/core/modules/language/tests/src/Functional/LanguageListTest.php
@@ -47,8 +47,8 @@ public function testLanguageList() {
     $this->rebuildContainer();
     $languages = \Drupal::service('language_manager')->getLanguages();
     $last_language = end($languages);
-    $this->assertEqual($last_language->getWeight(), $last_language_weight + 1);
-    $this->assertEqual($last_language->getId(), $edit['predefined_langcode']);
+    $this->assertEquals($last_language->getWeight(), $last_language_weight + 1);
+    $this->assertEquals($last_language->getId(), $edit['predefined_langcode']);
 
     // Add custom language.
     $langcode = 'xx';
@@ -208,13 +208,13 @@ public function testLanguageStates() {
     $expected_conf_languages = ['l3' => 'l3', 'l1' => 'l1', 'en' => 'en'];
 
     $locked_languages = $this->container->get('language_manager')->getLanguages(LanguageInterface::STATE_LOCKED);
-    $this->assertEqual(array_diff_key($expected_locked_languages, $locked_languages), [], 'Locked languages loaded correctly.');
+    $this->assertEquals(array_diff_key($expected_locked_languages, $locked_languages), [], 'Locked languages loaded correctly.');
 
     $all_languages = $this->container->get('language_manager')->getLanguages(LanguageInterface::STATE_ALL);
-    $this->assertEqual(array_diff_key($expected_all_languages, $all_languages), [], 'All languages loaded correctly.');
+    $this->assertEquals(array_diff_key($expected_all_languages, $all_languages), [], 'All languages loaded correctly.');
 
     $conf_languages = $this->container->get('language_manager')->getLanguages();
-    $this->assertEqual(array_diff_key($expected_conf_languages, $conf_languages), [], 'Configurable languages loaded correctly.');
+    $this->assertEquals(array_diff_key($expected_conf_languages, $conf_languages), [], 'Configurable languages loaded correctly.');
   }
 
 }
diff --git a/core/modules/language/tests/src/Functional/LanguageNegotiationInfoTest.php b/core/modules/language/tests/src/Functional/LanguageNegotiationInfoTest.php
index c5e3c2c7b1..7863ea2fdb 100644
--- a/core/modules/language/tests/src/Functional/LanguageNegotiationInfoTest.php
+++ b/core/modules/language/tests/src/Functional/LanguageNegotiationInfoTest.php
@@ -125,7 +125,7 @@ public function testInfoAlterations() {
     foreach ($this->languageManager()->getDefinedLanguageTypes() as $type) {
       $langcode = $last[$type];
       $value = $type == LanguageInterface::TYPE_CONTENT || strpos($type, 'test') !== FALSE ? 'it' : 'en';
-      $this->assertEqual($langcode, $value, format_string('The negotiated language for %type is %language', ['%type' => $type, '%language' => $value]));
+      $this->assertEquals($langcode, $value, format_string('The negotiated language for %type is %language', ['%type' => $type, '%language' => $value]));
     }
 
     // Uninstall language_test and check that everything is set back to the
diff --git a/core/modules/language/tests/src/Functional/LanguagePathMonolingualTest.php b/core/modules/language/tests/src/Functional/LanguagePathMonolingualTest.php
index 17ff3f936d..e0ca49db05 100644
--- a/core/modules/language/tests/src/Functional/LanguagePathMonolingualTest.php
+++ b/core/modules/language/tests/src/Functional/LanguagePathMonolingualTest.php
@@ -46,7 +46,7 @@ protected function setUp() {
     // Verify that French is the only language.
     $this->container->get('language_manager')->reset();
     $this->assertFalse(\Drupal::languageManager()->isMultilingual(), 'Site is mono-lingual');
-    $this->assertEqual(\Drupal::languageManager()->getDefaultLanguage()->getId(), 'fr', 'French is the default language');
+    $this->assertEquals(\Drupal::languageManager()->getDefaultLanguage()->getId(), 'fr', 'French is the default language');
 
     // Set language detection to URL.
     $edit = ['language_interface[enabled][language-url]' => TRUE];
diff --git a/core/modules/language/tests/src/Functional/LanguageSelectorTranslatableTest.php b/core/modules/language/tests/src/Functional/LanguageSelectorTranslatableTest.php
index 3d027c3fb5..f4e0c28eae 100644
--- a/core/modules/language/tests/src/Functional/LanguageSelectorTranslatableTest.php
+++ b/core/modules/language/tests/src/Functional/LanguageSelectorTranslatableTest.php
@@ -82,7 +82,7 @@ public function testLanguageStringSelector() {
     $elements = $this->xpath('//select[@id=:id]//option[@value=:option]', [':id' => 'edit-settings-user-user-settings-language-langcode', ':option' => 'en']);
 
     // Check that the language text is translated.
-    $this->assertEqual($elements[0]->getText(), $name_translation, 'Checking the option string English is translated to Spanish.');
+    $this->assertEquals($elements[0]->getText(), $name_translation, 'Checking the option string English is translated to Spanish.');
   }
 
 }
diff --git a/core/modules/language/tests/src/Functional/LanguageSwitchingTest.php b/core/modules/language/tests/src/Functional/LanguageSwitchingTest.php
index 1303082c15..f39357c01c 100644
--- a/core/modules/language/tests/src/Functional/LanguageSwitchingTest.php
+++ b/core/modules/language/tests/src/Functional/LanguageSwitchingTest.php
@@ -212,7 +212,7 @@ public function testLanguageBlockWithDomain() {
       ':hreflang' => 'en',
     ]);
     $english_url = $generator->generateFromRoute('entity.user.canonical', ['user' => 2], ['language' => $languages['en']]);
-    $this->assertEqual($english_url, $english_link->getAttribute('href'));
+    $this->assertEquals($english_url, $english_link->getAttribute('href'));
 
     // Verify the Italian URL is correct
     list($italian_link) = $this->xpath('//div[@id=:id]/ul/li/a[@hreflang=:hreflang]', [
@@ -220,7 +220,7 @@ public function testLanguageBlockWithDomain() {
       ':hreflang' => 'it',
     ]);
     $italian_url = $generator->generateFromRoute('entity.user.canonical', ['user' => 2], ['language' => $languages['it']]);
-    $this->assertEqual($italian_url, $italian_link->getAttribute('href'));
+    $this->assertEquals($italian_url, $italian_link->getAttribute('href'));
   }
 
   /**
diff --git a/core/modules/language/tests/src/Functional/LanguageUILanguageNegotiationTest.php b/core/modules/language/tests/src/Functional/LanguageUILanguageNegotiationTest.php
index 34f0c81f01..dbdf73e0a3 100644
--- a/core/modules/language/tests/src/Functional/LanguageUILanguageNegotiationTest.php
+++ b/core/modules/language/tests/src/Functional/LanguageUILanguageNegotiationTest.php
@@ -471,7 +471,7 @@ public function testLanguageDomain() {
     $italian_url = Url::fromRoute('system.admin', [], ['language' => $languages['it']])->toString();
     $url_scheme = \Drupal::request()->isSecure() ? 'https://' : 'http://';
     $correct_link = $url_scheme . $link;
-    $this->assertEqual($italian_url, $correct_link, format_string('The right URL (@url) in accordance with the chosen language', ['@url' => $italian_url]));
+    $this->assertEquals($italian_url, $correct_link, format_string('The right URL (@url) in accordance with the chosen language', ['@url' => $italian_url]));
 
     // Test HTTPS via options.
     $italian_url = Url::fromRoute('system.admin', [], ['https' => TRUE, 'language' => $languages['it']])->toString();
diff --git a/core/modules/language/tests/src/Functional/LanguageUrlRewritingTest.php b/core/modules/language/tests/src/Functional/LanguageUrlRewritingTest.php
index 7021aa0027..5181b8524b 100644
--- a/core/modules/language/tests/src/Functional/LanguageUrlRewritingTest.php
+++ b/core/modules/language/tests/src/Functional/LanguageUrlRewritingTest.php
@@ -140,7 +140,7 @@ public function testDomainNameNegotiationPort() {
 
     $expected = ($index_php ? 'http://example.fr:88/index.php' : 'http://example.fr:88') . rtrim(base_path(), '/') . '/';
 
-    $this->assertEqual($url, $expected, 'The right port is used.');
+    $this->assertEquals($url, $expected, 'The right port is used.');
 
     // If we set the port explicitly, it should not be overridden.
     $url = Url::fromRoute('<front>', [], [
@@ -151,7 +151,7 @@ public function testDomainNameNegotiationPort() {
 
     $expected = $index_php ? 'http://example.fr:90/index.php' : 'http://example.fr:90' . rtrim(base_path(), '/') . '/';
 
-    $this->assertEqual($url, $expected, 'A given port is not overridden.');
+    $this->assertEquals($url, $expected, 'A given port is not overridden.');
 
   }
 
diff --git a/core/modules/language/tests/src/Functional/Update/LanguageSelectWidgetUpdateTest.php b/core/modules/language/tests/src/Functional/Update/LanguageSelectWidgetUpdateTest.php
index afc8464609..bfbfd46463 100644
--- a/core/modules/language/tests/src/Functional/Update/LanguageSelectWidgetUpdateTest.php
+++ b/core/modules/language/tests/src/Functional/Update/LanguageSelectWidgetUpdateTest.php
@@ -27,14 +27,14 @@ protected function setDatabaseDumpFiles() {
   public function testLanguagePostUpdateLanguageSelectWidget() {
     // Tests before the update.
     $content_before = EntityFormDisplay::load('node.page.default')->get('content');
-    $this->assertEqual([], $content_before['langcode']['settings']);
+    $this->assertEquals([], $content_before['langcode']['settings']);
 
     // Run the update.
     $this->runUpdates();
 
     // Tests after the update.
     $content_after = EntityFormDisplay::load('node.page.default')->get('content');
-    $this->assertEqual(['include_locked' => TRUE], $content_after['langcode']['settings']);
+    $this->assertEquals(['include_locked' => TRUE], $content_after['langcode']['settings']);
   }
 
 }
diff --git a/core/modules/language/tests/src/Kernel/Condition/LanguageConditionTest.php b/core/modules/language/tests/src/Kernel/Condition/LanguageConditionTest.php
index af7eed4b7f..94d857b5b9 100644
--- a/core/modules/language/tests/src/Kernel/Condition/LanguageConditionTest.php
+++ b/core/modules/language/tests/src/Kernel/Condition/LanguageConditionTest.php
@@ -56,19 +56,19 @@ public function testConditions() {
       ->setContextValue('language', $language);
     $this->assertTrue($condition->execute(), 'Language condition passes as expected.');
     // Check for the proper summary.
-    $this->assertEqual($condition->summary(), 'The language is English, Italian.');
+    $this->assertEquals($condition->summary(), 'The language is English, Italian.');
 
     // Change to Italian only.
     $condition->setConfig('langcodes', ['it' => 'it']);
     $this->assertFalse($condition->execute(), 'Language condition fails as expected.');
     // Check for the proper summary.
-    $this->assertEqual($condition->summary(), 'The language is Italian.');
+    $this->assertEquals($condition->summary(), 'The language is Italian.');
 
     // Negate the condition
     $condition->setConfig('negate', TRUE);
     $this->assertTrue($condition->execute(), 'Language condition passes as expected.');
     // Check for the proper summary.
-    $this->assertEqual($condition->summary(), 'The language is not Italian.');
+    $this->assertEquals($condition->summary(), 'The language is not Italian.');
 
     // Change the default language to Italian.
     $language = \Drupal::languageManager()->getLanguage('it');
@@ -79,19 +79,19 @@ public function testConditions() {
 
     $this->assertTrue($condition->execute(), 'Language condition passes as expected.');
     // Check for the proper summary.
-    $this->assertEqual($condition->summary(), 'The language is English, Italian.');
+    $this->assertEquals($condition->summary(), 'The language is English, Italian.');
 
     // Change to Italian only.
     $condition->setConfig('langcodes', ['it' => 'it']);
     $this->assertTrue($condition->execute(), 'Language condition passes as expected.');
     // Check for the proper summary.
-    $this->assertEqual($condition->summary(), 'The language is Italian.');
+    $this->assertEquals($condition->summary(), 'The language is Italian.');
 
     // Negate the condition
     $condition->setConfig('negate', TRUE);
     $this->assertFalse($condition->execute(), 'Language condition fails as expected.');
     // Check for the proper summary.
-    $this->assertEqual($condition->summary(), 'The language is not Italian.');
+    $this->assertEquals($condition->summary(), 'The language is not Italian.');
   }
 
 }
diff --git a/core/modules/language/tests/src/Kernel/ConfigurableLanguageTest.php b/core/modules/language/tests/src/Kernel/ConfigurableLanguageTest.php
index 00af14cbd3..a3514bcf44 100644
--- a/core/modules/language/tests/src/Kernel/ConfigurableLanguageTest.php
+++ b/core/modules/language/tests/src/Kernel/ConfigurableLanguageTest.php
@@ -27,8 +27,8 @@ public function testName() {
     $name = $this->randomMachineName();
     $language_code = $this->randomMachineName(2);
     $configurableLanguage = new ConfigurableLanguage(['label' => $name, 'id' => $language_code], 'configurable_language');
-    $this->assertEqual($configurableLanguage->getName(), $name);
-    $this->assertEqual($configurableLanguage->setName('Test language')->getName(), 'Test language');
+    $this->assertEquals($configurableLanguage->getName(), $name);
+    $this->assertEquals($configurableLanguage->setName('Test language')->getName(), 'Test language');
   }
 
 }
diff --git a/core/modules/language/tests/src/Kernel/EntityDefaultLanguageTest.php b/core/modules/language/tests/src/Kernel/EntityDefaultLanguageTest.php
index 88abdd9006..a1e023f2bb 100644
--- a/core/modules/language/tests/src/Kernel/EntityDefaultLanguageTest.php
+++ b/core/modules/language/tests/src/Kernel/EntityDefaultLanguageTest.php
@@ -48,23 +48,23 @@ public function testEntityTranslationDefaultLanguageViaCode() {
     // have no language by default, a new node of this content type will have
     // "und" language code when language is not specified.
     $node = $this->createNode('ctund');
-    $this->assertEqual($node->langcode->value, LanguageInterface::LANGCODE_NOT_SPECIFIED);
+    $this->assertEquals($node->langcode->value, LanguageInterface::LANGCODE_NOT_SPECIFIED);
     // With language module activated, and a content type that is configured to
     // have no language by default, a new node of this content type will have
     // "es" language code when language is specified as "es".
     $node = $this->createNode('ctund', 'es');
-    $this->assertEqual($node->langcode->value, 'es');
+    $this->assertEquals($node->langcode->value, 'es');
 
     // With language module activated, and a content type that is configured to
     // have language "es" by default, a new node of this content type will have
     // "es" language code when language is not specified.
     $node = $this->createNode('ctes');
-    $this->assertEqual($node->langcode->value, 'es');
+    $this->assertEquals($node->langcode->value, 'es');
     // With language module activated, and a content type that is configured to
     // have language "es" by default, a new node of this content type will have
     // "en" language code when language "en" is specified.
     $node = $this->createNode('ctes', 'en');
-    $this->assertEqual($node->langcode->value, 'en');
+    $this->assertEquals($node->langcode->value, 'en');
 
     // Disable language module.
     $this->disableModules(['language']);
@@ -73,23 +73,23 @@ public function testEntityTranslationDefaultLanguageViaCode() {
     // have no language specified by default, a new node of this content type
     // will have site's default language code when language is not specified.
     $node = $this->createNode('ctund');
-    $this->assertEqual($node->langcode->value, 'en');
+    $this->assertEquals($node->langcode->value, 'en');
     // With language module disabled, and a content type that is configured to
     // have no language specified by default, a new node of this type will have
     // "es" language code when language "es" is specified.
     $node = $this->createNode('ctund', 'es');
-    $this->assertEqual($node->langcode->value, 'es');
+    $this->assertEquals($node->langcode->value, 'es');
 
     // With language module disabled, and a content type that is configured to
     // have language "es" by default, a new node of this type will have site's
     // default language code when language is not specified.
     $node = $this->createNode('ctes');
-    $this->assertEqual($node->langcode->value, 'en');
+    $this->assertEquals($node->langcode->value, 'en');
     // With language module disabled, and a content type that is configured to
     // have language "es" by default, a new node of this type will have "en"
     // language code when language "en" is specified.
     $node = $this->createNode('ctes', 'en');
-    $this->assertEqual($node->langcode->value, 'en');
+    $this->assertEquals($node->langcode->value, 'en');
   }
 
   /**
diff --git a/core/modules/language/tests/src/Kernel/LanguageConfigOverrideInstallTest.php b/core/modules/language/tests/src/Kernel/LanguageConfigOverrideInstallTest.php
index 7d505baf78..565967dc80 100644
--- a/core/modules/language/tests/src/Kernel/LanguageConfigOverrideInstallTest.php
+++ b/core/modules/language/tests/src/Kernel/LanguageConfigOverrideInstallTest.php
@@ -32,7 +32,7 @@ public function testLanguageConfigOverrideInstall() {
     $event_recorder = \Drupal::state()->get('config_events_test.event', FALSE);
     $this->assertFalse($event_recorder);
     $config = \Drupal::service('language.config_factory_override')->getOverride('de', 'language_config_override_test.settings');
-    $this->assertEqual($config->get('name'), 'Deutsch');
+    $this->assertEquals($config->get('name'), 'Deutsch');
   }
 
 }
diff --git a/core/modules/language/tests/src/Kernel/LanguageDependencyInjectionTest.php b/core/modules/language/tests/src/Kernel/LanguageDependencyInjectionTest.php
index 287ab95288..14a021eeb7 100644
--- a/core/modules/language/tests/src/Kernel/LanguageDependencyInjectionTest.php
+++ b/core/modules/language/tests/src/Kernel/LanguageDependencyInjectionTest.php
@@ -22,7 +22,7 @@ public function testDependencyInjectedNewLanguage() {
     $expected = $this->languageManager->getDefaultLanguage();
     $result = $this->languageManager->getCurrentLanguage();
     foreach ($expected as $property => $value) {
-      $this->assertEqual($expected->$property, $result->$property, format_string('The dependency injected language object %prop property equals the new Language object %prop property.', ['%prop' => $property]));
+      $this->assertEquals($expected->$property, $result->$property, format_string('The dependency injected language object %prop property equals the new Language object %prop property.', ['%prop' => $property]));
     }
   }
 
diff --git a/core/modules/language/tests/src/Kernel/LanguageFallbackTest.php b/core/modules/language/tests/src/Kernel/LanguageFallbackTest.php
index 17f4ca396f..707d177d53 100644
--- a/core/modules/language/tests/src/Kernel/LanguageFallbackTest.php
+++ b/core/modules/language/tests/src/Kernel/LanguageFallbackTest.php
@@ -36,13 +36,13 @@ public function testCandidates() {
     // Check that language fallback candidates by default are all the available
     // languages sorted by weight.
     $candidates = $this->languageManager->getFallbackCandidates();
-    $this->assertEqual(array_values($candidates), $expected, 'Language fallback candidates are properly returned.');
+    $this->assertEquals(array_values($candidates), $expected, 'Language fallback candidates are properly returned.');
 
     // Check that candidates are alterable.
     $this->state->set('language_test.fallback_alter.candidates', TRUE);
     $expected = array_slice($expected, 0, count($expected) - 1);
     $candidates = $this->languageManager->getFallbackCandidates();
-    $this->assertEqual(array_values($candidates), $expected, 'Language fallback candidates are alterable.');
+    $this->assertEquals(array_values($candidates), $expected, 'Language fallback candidates are alterable.');
 
     // Check that candidates are alterable for specific operations.
     $this->state->set('language_test.fallback_alter.candidates', FALSE);
@@ -50,7 +50,7 @@ public function testCandidates() {
     $expected[] = LanguageInterface::LANGCODE_NOT_SPECIFIED;
     $expected[] = LanguageInterface::LANGCODE_NOT_APPLICABLE;
     $candidates = $this->languageManager->getFallbackCandidates(['operation' => 'test']);
-    $this->assertEqual(array_values($candidates), $expected, 'Language fallback candidates are alterable for specific operations.');
+    $this->assertEquals(array_values($candidates), $expected, 'Language fallback candidates are alterable for specific operations.');
 
     // Check that when the site is monolingual no language fallback is applied.
     $langcodes_to_delete = [];
@@ -61,7 +61,7 @@ public function testCandidates() {
     }
     entity_delete_multiple('configurable_language', $langcodes_to_delete);
     $candidates = $this->languageManager->getFallbackCandidates();
-    $this->assertEqual(array_values($candidates), [LanguageInterface::LANGCODE_DEFAULT], 'Language fallback is not applied when the Language module is not enabled.');
+    $this->assertEquals(array_values($candidates), [LanguageInterface::LANGCODE_DEFAULT], 'Language fallback is not applied when the Language module is not enabled.');
   }
 
 }
diff --git a/core/modules/language/tests/src/Kernel/Views/FieldLanguageTest.php b/core/modules/language/tests/src/Kernel/Views/FieldLanguageTest.php
index 5dc7124046..70595482c6 100644
--- a/core/modules/language/tests/src/Kernel/Views/FieldLanguageTest.php
+++ b/core/modules/language/tests/src/Kernel/Views/FieldLanguageTest.php
@@ -34,8 +34,8 @@ public function testField() {
     ]);
     $this->executeView($view);
 
-    $this->assertEqual($view->field['langcode']->advancedRender($view->result[0]), 'English');
-    $this->assertEqual($view->field['langcode']->advancedRender($view->result[1]), 'Lolspeak');
+    $this->assertEquals($view->field['langcode']->advancedRender($view->result[0]), 'English');
+    $this->assertEquals($view->field['langcode']->advancedRender($view->result[1]), 'Lolspeak');
   }
 
 }
diff --git a/core/modules/link/tests/src/Functional/LinkFieldTest.php b/core/modules/link/tests/src/Functional/LinkFieldTest.php
index 065a2bddec..56c4df3432 100644
--- a/core/modules/link/tests/src/Functional/LinkFieldTest.php
+++ b/core/modules/link/tests/src/Functional/LinkFieldTest.php
@@ -646,7 +646,7 @@ public function testLinkTypeOnLinkWidget() {
       ->save();
 
     $form = \Drupal::service('entity.form_builder')->getForm(EntityTest::create());
-    $this->assertEqual($form[$field_name]['widget'][0]['uri']['#link_type'], $link_type);
+    $this->assertEquals($form[$field_name]['widget'][0]['uri']['#link_type'], $link_type);
   }
 
 
diff --git a/core/modules/link/tests/src/Kernel/LinkItemTest.php b/core/modules/link/tests/src/Kernel/LinkItemTest.php
index ff4f840567..d7d49b4f60 100644
--- a/core/modules/link/tests/src/Kernel/LinkItemTest.php
+++ b/core/modules/link/tests/src/Kernel/LinkItemTest.php
@@ -94,12 +94,12 @@ public function testLinkItem() {
     $entity = EntityTest::load($id);
     $this->assertTrue($entity->field_test instanceof FieldItemListInterface, 'Field implements interface.');
     $this->assertTrue($entity->field_test[0] instanceof FieldItemInterface, 'Field item implements interface.');
-    $this->assertEqual($entity->field_test->uri, $parsed_url['path']);
-    $this->assertEqual($entity->field_test[0]->uri, $parsed_url['path']);
-    $this->assertEqual($entity->field_test->title, $title);
-    $this->assertEqual($entity->field_test[0]->title, $title);
-    $this->assertEqual($entity->field_test->options['attributes']['class'], $class);
-    $this->assertEqual($entity->field_test->options['query'], $parsed_url['query']);
+    $this->assertEquals($entity->field_test->uri, $parsed_url['path']);
+    $this->assertEquals($entity->field_test[0]->uri, $parsed_url['path']);
+    $this->assertEquals($entity->field_test->title, $title);
+    $this->assertEquals($entity->field_test[0]->title, $title);
+    $this->assertEquals($entity->field_test->options['attributes']['class'], $class);
+    $this->assertEquals($entity->field_test->options['query'], $parsed_url['query']);
 
     // Update only the entity name property to check if the link field data will
     // remain intact.
@@ -107,9 +107,9 @@ public function testLinkItem() {
     $entity->save();
     $id = $entity->id();
     $entity = EntityTest::load($id);
-    $this->assertEqual($entity->field_test->uri, $parsed_url['path']);
-    $this->assertEqual($entity->field_test->options['attributes']['class'], $class);
-    $this->assertEqual($entity->field_test->options['query'], $parsed_url['query']);
+    $this->assertEquals($entity->field_test->uri, $parsed_url['path']);
+    $this->assertEquals($entity->field_test->options['attributes']['class'], $class);
+    $this->assertEquals($entity->field_test->options['query'], $parsed_url['query']);
 
     // Verify changing the field value.
     $new_url = 'https://www.drupal.org';
@@ -119,22 +119,22 @@ public function testLinkItem() {
     $entity->field_test->title = $new_title;
     $entity->field_test->first()->get('options')->set('query', NULL);
     $entity->field_test->first()->get('options')->set('attributes', ['class' => $new_class]);
-    $this->assertEqual($entity->field_test->uri, $new_url);
-    $this->assertEqual($entity->field_test->title, $new_title);
-    $this->assertEqual($entity->field_test->options['attributes']['class'], $new_class);
+    $this->assertEquals($entity->field_test->uri, $new_url);
+    $this->assertEquals($entity->field_test->title, $new_title);
+    $this->assertEquals($entity->field_test->options['attributes']['class'], $new_class);
     $this->assertNull($entity->field_test->options['query']);
 
     // Read changed entity and assert changed values.
     $entity->save();
     $entity = EntityTest::load($id);
-    $this->assertEqual($entity->field_test->uri, $new_url);
-    $this->assertEqual($entity->field_test->title, $new_title);
-    $this->assertEqual($entity->field_test->options['attributes']['class'], $new_class);
+    $this->assertEquals($entity->field_test->uri, $new_url);
+    $this->assertEquals($entity->field_test->title, $new_title);
+    $this->assertEquals($entity->field_test->options['attributes']['class'], $new_class);
 
     // Check that if we only set uri the default values for title and options
     // are also initialized.
     $entity->field_test = ['uri' => 'internal:/node/add'];
-    $this->assertEqual($entity->field_test->uri, 'internal:/node/add');
+    $this->assertEquals($entity->field_test->uri, 'internal:/node/add');
     $this->assertNull($entity->field_test->title);
     $this->assertIdentical($entity->field_test->options, []);
 
@@ -144,14 +144,14 @@ public function testLinkItem() {
       'uri' => 'internal:/node/add',
       'options' => serialize(['query' => NULL]),
     ];
-    $this->assertEqual($entity->field_test->uri, 'internal:/node/add');
+    $this->assertEquals($entity->field_test->uri, 'internal:/node/add');
     $this->assertNull($entity->field_test->title);
     $this->assertNull($entity->field_test->options['query']);
 
     // Check that if we set the direct value of link field it correctly set the
     // uri and the default values of the field.
     $entity->field_test = 'internal:/node/add';
-    $this->assertEqual($entity->field_test->uri, 'internal:/node/add');
+    $this->assertEquals($entity->field_test->uri, 'internal:/node/add');
     $this->assertNull($entity->field_test->title);
     $this->assertIdentical($entity->field_test->options, []);
 
diff --git a/core/modules/locale/tests/src/Functional/LocaleConfigTranslationImportTest.php b/core/modules/locale/tests/src/Functional/LocaleConfigTranslationImportTest.php
index 67c2dfa707..b78e104882 100644
--- a/core/modules/locale/tests/src/Functional/LocaleConfigTranslationImportTest.php
+++ b/core/modules/locale/tests/src/Functional/LocaleConfigTranslationImportTest.php
@@ -61,7 +61,7 @@ public function testConfigTranslationImport() {
 
     // Check if configuration translations have been imported.
     $override = \Drupal::languageManager()->getLanguageConfigOverride('af', 'system.maintenance');
-    $this->assertEqual($override->get('message'), 'Ons is tans besig met onderhoud op @site. Wees asseblief geduldig, ons sal binnekort weer terug wees.');
+    $this->assertEquals($override->get('message'), 'Ons is tans besig met onderhoud op @site. Wees asseblief geduldig, ons sal binnekort weer terug wees.');
   }
 
   /**
@@ -99,7 +99,7 @@ public function testConfigTranslationModuleInstall() {
     $this->assertText('Test site slogan in Afrikaans');
 
     $override = \Drupal::languageManager()->getLanguageConfigOverride('af', 'locale_test_translate.settings');
-    $this->assertEqual('Locale can translate Afrikaans', $override->get('translatable_default_with_translation'));
+    $this->assertEquals('Locale can translate Afrikaans', $override->get('translatable_default_with_translation'));
 
     // Update test configuration.
     $override
@@ -124,7 +124,7 @@ public function testConfigTranslationModuleInstall() {
       'translatable_default_with_translation' => 'This translation is preserved',
       'translatable_default_with_no_translation' => 'This translation is preserved'
     ];
-    $this->assertEqual($expected, $override->get());
+    $this->assertEquals($expected, $override->get());
   }
 
   /**
@@ -148,7 +148,7 @@ public function testLocaleRemovalAndConfigOverrideDelete() {
     $this->drupalPostForm('admin/config/regional/language/add', ['predefined_langcode' => 'af'], t('Add language'));
 
     $override = \Drupal::languageManager()->getLanguageConfigOverride('af', 'locale_test_translate.settings');
-    $this->assertEqual(['translatable_default_with_translation' => 'Locale can translate Afrikaans'], $override->get());
+    $this->assertEquals(['translatable_default_with_translation' => 'Locale can translate Afrikaans'], $override->get());
 
     // Remove the string from translation to simulate a Locale removal. Note
     // that is no current way of doing this in the UI.
@@ -157,10 +157,10 @@ public function testLocaleRemovalAndConfigOverrideDelete() {
     \Drupal::service('locale.storage')->delete($string);
     // Force a rebuild of config translations.
     $count = Locale::config()->updateConfigTranslations(['locale_test_translate.settings'], ['af']);
-    $this->assertEqual($count, 1, 'Correct count of updated translations');
+    $this->assertEquals($count, 1, 'Correct count of updated translations');
 
     $override = \Drupal::languageManager()->getLanguageConfigOverride('af', 'locale_test_translate.settings');
-    $this->assertEqual([], $override->get());
+    $this->assertEquals([], $override->get());
     $this->assertTrue($override->isNew(), 'The configuration override was deleted when the Locale string was deleted.');
   }
 
@@ -195,7 +195,7 @@ public function testLocaleRemovalAndConfigOverridePreserve() {
       'translatable_no_default' => 'This translation is preserved',
       'translatable_default_with_no_translation' => 'This translation is preserved'
     ];
-    $this->assertEqual($expected, $override->get());
+    $this->assertEquals($expected, $override->get());
 
     // Set the translated string to empty.
     $search = [
@@ -217,7 +217,7 @@ public function testLocaleRemovalAndConfigOverridePreserve() {
       'translatable_no_default' => 'This translation is preserved',
       'translatable_default_with_no_translation' => 'This translation is preserved'
     ];
-    $this->assertEqual($expected, $override->get());
+    $this->assertEquals($expected, $override->get());
   }
 
 }
diff --git a/core/modules/locale/tests/src/Functional/LocaleConfigTranslationTest.php b/core/modules/locale/tests/src/Functional/LocaleConfigTranslationTest.php
index beae85d3e6..a41d7be9a2 100644
--- a/core/modules/locale/tests/src/Functional/LocaleConfigTranslationTest.php
+++ b/core/modules/locale/tests/src/Functional/LocaleConfigTranslationTest.php
@@ -84,8 +84,8 @@ public function testConfigTranslation() {
 
     // Get translation and check we've only got the message.
     $translation = \Drupal::languageManager()->getLanguageConfigOverride($this->langcode, 'system.maintenance')->get();
-    $this->assertEqual(count($translation), 1, 'Got the right number of properties after translation.');
-    $this->assertEqual($translation['message'], $message);
+    $this->assertEquals(count($translation), 1, 'Got the right number of properties after translation.');
+    $this->assertEquals($translation['message'], $message);
 
     // Check default medium date format exists and create a translation for it.
     $string = $this->storage->findString(['source' => 'D, m/d/Y - H:i', 'context' => 'PHP date format', 'type' => 'configuration']);
@@ -107,12 +107,12 @@ public function testConfigTranslation() {
     $this->drupalPostForm('admin/config/regional/translate', $edit, t('Save translations'));
 
     $translation = \Drupal::languageManager()->getLanguageConfigOverride($this->langcode, 'core.date_format.medium')->get();
-    $this->assertEqual($translation['pattern'], 'D', 'Got the right date format pattern after translation.');
+    $this->assertEquals($translation['pattern'], 'D', 'Got the right date format pattern after translation.');
 
     // Formatting the date 8 / 27 / 1985 @ 13:37 EST with pattern D should
     // display "Tue".
     $formatted_date = format_date(494015820, $type = 'medium', NULL, 'America/New_York', $this->langcode);
-    $this->assertEqual($formatted_date, 'Tue', 'Got the right formatted date using the date format translation pattern.');
+    $this->assertEquals($formatted_date, 'Tue', 'Got the right formatted date using the date format translation pattern.');
 
     // Assert strings from image module config are not available.
     $string = $this->storage->findString(['source' => 'Medium (220×220)', 'context' => '', 'type' => 'configuration']);
@@ -129,9 +129,9 @@ public function testConfigTranslation() {
 
     // Check the string is unique and has no translation yet.
     $translations = $this->storage->getTranslations(['language' => $this->langcode, 'type' => 'configuration', 'name' => 'image.style.medium']);
-    $this->assertEqual(count($translations), 1);
+    $this->assertEquals(count($translations), 1);
     $translation = reset($translations);
-    $this->assertEqual($translation->source, $string->source);
+    $this->assertEquals($translation->source, $string->source);
     $this->assertTrue(empty($translation->translation));
 
     // Translate using the UI so configuration is refreshed.
@@ -156,7 +156,7 @@ public function testConfigTranslation() {
 
     // Try more complex configuration data.
     $translation = \Drupal::languageManager()->getLanguageConfigOverride($this->langcode, 'image.style.medium')->get();
-    $this->assertEqual($translation['label'], $image_style_label, 'Got the right translation for image style name after translation');
+    $this->assertEquals($translation['label'], $image_style_label, 'Got the right translation for image style name after translation');
 
     // Uninstall the module.
     $this->drupalPostForm('admin/modules/uninstall', ['uninstall[image]' => "image"], t('Uninstall'));
diff --git a/core/modules/locale/tests/src/Functional/LocaleFileSystemFormTest.php b/core/modules/locale/tests/src/Functional/LocaleFileSystemFormTest.php
index ee496e248a..3b77db6445 100644
--- a/core/modules/locale/tests/src/Functional/LocaleFileSystemFormTest.php
+++ b/core/modules/locale/tests/src/Functional/LocaleFileSystemFormTest.php
@@ -50,7 +50,7 @@ public function testFileConfigurationPage() {
     $this->drupalPostForm(NULL, $fields, t('Save configuration'));
     $this->drupalGet('admin/config/media/file-system');
     $this->assertFieldByName('translation_path', $translation_path);
-    $this->assertEqual($translation_path, $this->config('locale.settings')->get('translation.path'));
+    $this->assertEquals($translation_path, $this->config('locale.settings')->get('translation.path'));
   }
 
 }
diff --git a/core/modules/locale/tests/src/Functional/LocaleImportFunctionalTest.php b/core/modules/locale/tests/src/Functional/LocaleImportFunctionalTest.php
index 581c98fbab..dac0116b49 100644
--- a/core/modules/locale/tests/src/Functional/LocaleImportFunctionalTest.php
+++ b/core/modules/locale/tests/src/Functional/LocaleImportFunctionalTest.php
@@ -72,7 +72,7 @@ public function testStandalonePoFile() {
 
     // This import should have saved plural forms to have 2 variants.
     $locale_plurals = \Drupal::service('locale.plural.formula')->getNumberOfPlurals('fr');
-    $this->assertEqual(2, $locale_plurals, 'Plural number initialized.');
+    $this->assertEquals(2, $locale_plurals, 'Plural number initialized.');
 
     // Ensure we were redirected correctly.
     $this->assertUrl(\Drupal::url('locale.translate_page', [], ['absolute' => TRUE]), [], 'Correct page redirection.');
@@ -147,7 +147,7 @@ public function testStandalonePoFile() {
 
     // This import should not have changed number of plural forms.
     $locale_plurals = \Drupal::service('locale.plural.formula')->getNumberOfPlurals('fr');
-    $this->assertEqual(2, $locale_plurals, 'Plural numbers untouched.');
+    $this->assertEquals(2, $locale_plurals, 'Plural numbers untouched.');
 
     // Try importing a .po file with overriding strings, and ensure existing
     // strings are overwritten.
@@ -168,7 +168,7 @@ public function testStandalonePoFile() {
     $this->assertNoText(t('No strings available.'), 'String overwritten by imported string.');
     // This import should have changed number of plural forms.
     $locale_plurals = \Drupal::service('locale.plural.formula')->reset()->getNumberOfPlurals('fr');
-    $this->assertEqual(3, $locale_plurals, 'Plural numbers changed.');
+    $this->assertEquals(3, $locale_plurals, 'Plural numbers changed.');
 
     // Importing a .po file and mark its strings as customized strings.
     $this->importPoFile($this->getCustomPoFile(), [
@@ -182,7 +182,7 @@ public function testStandalonePoFile() {
     // The database should now contain 6 customized strings (two imported
     // strings are not translated).
     $count = db_query('SELECT COUNT(*) FROM {locales_target} WHERE customized = :custom', [':custom' => 1])->fetchField();
-    $this->assertEqual($count, 6, 'Customized translations successfully imported.');
+    $this->assertEquals($count, 6, 'Customized translations successfully imported.');
 
     // Try importing a .po file with overriding strings, and ensure existing
     // customized strings are kept.
@@ -328,7 +328,7 @@ public function testConfigPoFile() {
     $overrides = \Drupal::service('language.config_factory_override');
     foreach ($config_strings as $config_key => $config_string) {
       $override = $overrides->getOverride($langcode, $config_key);
-      $this->assertEqual($override->get($config_string[2]), $config_string[1]);
+      $this->assertEquals($override->get($config_string[2]), $config_string[1]);
     }
   }
 
@@ -346,7 +346,7 @@ public function testConfigtranslationImportingPoFile() {
 
     // Check that the 'Anonymous' string is translated.
     $config = \Drupal::languageManager()->getLanguageConfigOverride($langcode, 'user.settings');
-    $this->assertEqual($config->get('anonymous'), 'Anonymous German');
+    $this->assertEquals($config->get('anonymous'), 'Anonymous German');
   }
 
   /**
@@ -358,7 +358,7 @@ public function testCreatedLanguageTranslation() {
 
     // Get the language.entity.de label and check it's been translated.
     $override = \Drupal::languageManager()->getLanguageConfigOverride('de', 'language.entity.de');
-    $this->assertEqual($override->get('label'), 'Deutsch');
+    $this->assertEquals($override->get('label'), 'Deutsch');
   }
 
   /**
diff --git a/core/modules/locale/tests/src/Functional/LocaleJavascriptTranslationTest.php b/core/modules/locale/tests/src/Functional/LocaleJavascriptTranslationTest.php
index d46fa5ea91..781141607d 100644
--- a/core/modules/locale/tests/src/Functional/LocaleJavascriptTranslationTest.php
+++ b/core/modules/locale/tests/src/Functional/LocaleJavascriptTranslationTest.php
@@ -99,7 +99,7 @@ public function testFileParsing() {
         $this->assertTrue(isset($source_strings[$str]) && $source_strings[$str] === $context, $message);
       }
 
-      $this->assertEqual(count($source_strings), count($test_strings), 'Found correct number of source strings.');
+      $this->assertEquals(count($source_strings), count($test_strings), 'Found correct number of source strings.');
     }
   }
 
diff --git a/core/modules/locale/tests/src/Functional/LocaleLocaleLookupTest.php b/core/modules/locale/tests/src/Functional/LocaleLocaleLookupTest.php
index 4afd1c81ff..cfca6d3f25 100644
--- a/core/modules/locale/tests/src/Functional/LocaleLocaleLookupTest.php
+++ b/core/modules/locale/tests/src/Functional/LocaleLocaleLookupTest.php
@@ -49,11 +49,11 @@ public function testLanguageFallbackDefaults() {
     $this->drupalGet('');
     // Ensure state of fallback languages persisted by
     // locale_test_language_fallback_candidates_locale_lookup_alter() is empty.
-    $this->assertEqual(\Drupal::state()->get('locale.test_language_fallback_candidates_locale_lookup_alter_candidates'), []);
+    $this->assertEquals(\Drupal::state()->get('locale.test_language_fallback_candidates_locale_lookup_alter_candidates'), []);
     // Make sure there is enough information provided for alter hooks.
     $context = \Drupal::state()->get('locale.test_language_fallback_candidates_locale_lookup_alter_context');
-    $this->assertEqual($context['langcode'], 'fr');
-    $this->assertEqual($context['operation'], 'locale_lookup');
+    $this->assertEquals($context['langcode'], 'fr');
+    $this->assertEquals($context['operation'], 'locale_lookup');
   }
 
   /**
diff --git a/core/modules/locale/tests/src/Functional/LocalePathTest.php b/core/modules/locale/tests/src/Functional/LocalePathTest.php
index 16cc26865e..35bc0c0af3 100644
--- a/core/modules/locale/tests/src/Functional/LocalePathTest.php
+++ b/core/modules/locale/tests/src/Functional/LocalePathTest.php
@@ -103,10 +103,10 @@ public function testPathLanguageConfiguration() {
     ];
     $this->container->get('path.alias_storage')->save($edit['source'], $edit['alias'], $edit['langcode']);
     $lookup_path = $this->container->get('path.alias_manager')->getAliasByPath('/node/' . $node->id(), 'en');
-    $this->assertEqual('/' . $english_path, $lookup_path, 'English language alias has priority.');
+    $this->assertEquals('/' . $english_path, $lookup_path, 'English language alias has priority.');
     // Same check for language 'xx'.
     $lookup_path = $this->container->get('path.alias_manager')->getAliasByPath('/node/' . $node->id(), $prefix);
-    $this->assertEqual('/' . $custom_language_path, $lookup_path, 'Custom language alias has priority.');
+    $this->assertEquals('/' . $custom_language_path, $lookup_path, 'Custom language alias has priority.');
     $this->container->get('path.alias_storage')->delete($edit);
 
     // Create language nodes to check priority of aliases.
diff --git a/core/modules/locale/tests/src/Functional/LocaleStringTest.php b/core/modules/locale/tests/src/Functional/LocaleStringTest.php
index 601b7388e6..192584a5f3 100644
--- a/core/modules/locale/tests/src/Functional/LocaleStringTest.php
+++ b/core/modules/locale/tests/src/Functional/LocaleStringTest.php
@@ -50,30 +50,30 @@ public function testStringCRUDAPI() {
 
     // Load strings by lid and source.
     $string1 = $this->storage->findString(['lid' => $source->lid]);
-    $this->assertEqual($source, $string1, 'Successfully retrieved string by identifier.');
+    $this->assertEquals($source, $string1, 'Successfully retrieved string by identifier.');
     $string2 = $this->storage->findString(['source' => $source->source, 'context' => $source->context]);
-    $this->assertEqual($source, $string2, 'Successfully retrieved string by source and context.');
+    $this->assertEquals($source, $string2, 'Successfully retrieved string by source and context.');
     $string3 = $this->storage->findString(['source' => $source->source, 'context' => '']);
     $this->assertFalse($string3, 'Cannot retrieve string with wrong context.');
 
     // Check version handling and updating.
-    $this->assertEqual($source->version, 'none', 'String originally created without version.');
+    $this->assertEquals($source->version, 'none', 'String originally created without version.');
     $string = $this->storage->findTranslation(['lid' => $source->lid]);
-    $this->assertEqual($string->version, \Drupal::VERSION, 'Checked and updated string version to Drupal version.');
+    $this->assertEquals($string->version, \Drupal::VERSION, 'Checked and updated string version to Drupal version.');
 
     // Create translation and find it by lid and source.
     $langcode = 'es';
     $translation = $this->createTranslation($source, $langcode);
-    $this->assertEqual($translation->customized, LOCALE_NOT_CUSTOMIZED, 'Translation created as not customized by default.');
+    $this->assertEquals($translation->customized, LOCALE_NOT_CUSTOMIZED, 'Translation created as not customized by default.');
     $string1 = $this->storage->findTranslation(['language' => $langcode, 'lid' => $source->lid]);
-    $this->assertEqual($string1->translation, $translation->translation, 'Successfully loaded translation by string identifier.');
+    $this->assertEquals($string1->translation, $translation->translation, 'Successfully loaded translation by string identifier.');
     $string2 = $this->storage->findTranslation(['language' => $langcode, 'source' => $source->source, 'context' => $source->context]);
-    $this->assertEqual($string2->translation, $translation->translation, 'Successfully loaded translation by source and context.');
+    $this->assertEquals($string2->translation, $translation->translation, 'Successfully loaded translation by source and context.');
     $translation
       ->setCustomized()
       ->save();
     $translation = $this->storage->findTranslation(['language' => $langcode, 'lid' => $source->lid]);
-    $this->assertEqual($translation->customized, LOCALE_CUSTOMIZED, 'Translation successfully marked as customized.');
+    $this->assertEquals($translation->customized, LOCALE_CUSTOMIZED, 'Translation successfully marked as customized.');
 
     // Delete translation.
     $translation->delete();
@@ -85,7 +85,7 @@ public function testStringCRUDAPI() {
     $lid = $source->lid;
     $this->createAllTranslations($source);
     $search = $this->storage->getTranslations(['lid' => $source->lid]);
-    $this->assertEqual(count($search), 3, 'Created and retrieved all translations for our source string.');
+    $this->assertEquals(count($search), 3, 'Created and retrieved all translations for our source string.');
 
     $source->delete();
     $string = $this->storage->findString(['lid' => $lid]);
@@ -103,8 +103,8 @@ public function testStringCRUDAPI() {
     $source_string->save();
 
     $rows = db_query('SELECT * FROM {locales_location} WHERE sid = :sid', [':sid' => $source_string->lid])->fetchAllAssoc('type');
-    $this->assertEqual(count($rows), 4, '4 source locations have been persisted.');
-    $this->assertEqual($rows['path']->name, substr($location, 0, 255), 'Too long location has been limited to 255 characters.');
+    $this->assertEquals(count($rows), 4, '4 source locations have been persisted.');
+    $this->assertEquals($rows['path']->name, substr($location, 0, 255), 'Too long location has been limited to 255 characters.');
   }
 
   /**
@@ -122,11 +122,11 @@ public function testStringSearchAPI() {
     $source3 = $this->buildSourceString()->save();
     // Load all source strings.
     $strings = $this->storage->getStrings([]);
-    $this->assertEqual(count($strings), 3, 'Found 3 source strings in the database.');
+    $this->assertEquals(count($strings), 3, 'Found 3 source strings in the database.');
     // Load all source strings matching a given string.
     $filter_options['filters'] = ['source' => $prefix];
     $strings = $this->storage->getStrings([], $filter_options);
-    $this->assertEqual(count($strings), 2, 'Found 2 strings using some string filter.');
+    $this->assertEquals(count($strings), 2, 'Found 2 strings using some string filter.');
 
     // Not customized translations.
     $translate1 = $this->createAllTranslations($source1);
@@ -136,7 +136,7 @@ public function testStringSearchAPI() {
     $langcode = 'es';
     $found = $this->storage->findTranslation(['language' => $langcode, 'source' => $source1->source, 'context' => $source1->context]);
     $this->assertTrue($found && isset($found->language) && isset($found->translation) && !$found->isNew(), 'Translation found searching by source and context.');
-    $this->assertEqual($found->translation, $translate1[$langcode]->translation, 'Found the right translation.');
+    $this->assertEquals($found->translation, $translate1[$langcode]->translation, 'Found the right translation.');
     // Now try a translation not found.
     $found = $this->storage->findTranslation(['language' => $langcode, 'source' => $source3->source, 'context' => $source3->context]);
     $this->assertTrue($found && $found->lid == $source3->lid && !isset($found->translation) && $found->isNew(), 'Translation not found but source string found.');
@@ -144,24 +144,24 @@ public function testStringSearchAPI() {
     // Load all translations. For next queries we'll be loading only translated
     // strings.
     $translations = $this->storage->getTranslations(['translated' => TRUE]);
-    $this->assertEqual(count($translations), 2 * $language_count, 'Created and retrieved all translations for source strings.');
+    $this->assertEquals(count($translations), 2 * $language_count, 'Created and retrieved all translations for source strings.');
 
     // Load all customized translations.
     $translations = $this->storage->getTranslations(['customized' => LOCALE_CUSTOMIZED, 'translated' => TRUE]);
-    $this->assertEqual(count($translations), $language_count, 'Retrieved all customized translations for source strings.');
+    $this->assertEquals(count($translations), $language_count, 'Retrieved all customized translations for source strings.');
 
     // Load all Spanish customized translations.
     $translations = $this->storage->getTranslations(['language' => 'es', 'customized' => LOCALE_CUSTOMIZED, 'translated' => TRUE]);
-    $this->assertEqual(count($translations), 1, 'Found only Spanish and customized translations.');
+    $this->assertEquals(count($translations), 1, 'Found only Spanish and customized translations.');
 
     // Load all source strings without translation (1).
     $translations = $this->storage->getStrings(['translated' => FALSE]);
-    $this->assertEqual(count($translations), 1, 'Found 1 source string without translations.');
+    $this->assertEquals(count($translations), 1, 'Found 1 source string without translations.');
 
     // Load Spanish translations using string filter.
     $filter_options['filters'] = ['source' => $prefix];
     $translations = $this->storage->getTranslations(['language' => 'es'], $filter_options);
-    $this->assertEqual(count($translations), 2, 'Found 2 translations using some string filter.');
+    $this->assertEquals(count($translations), 2, 'Found 2 translations using some string filter.');
 
   }
 
diff --git a/core/modules/locale/tests/src/Functional/LocaleTranslatedSchemaDefinitionTest.php b/core/modules/locale/tests/src/Functional/LocaleTranslatedSchemaDefinitionTest.php
index 39d7c3d533..41f2d0ad52 100644
--- a/core/modules/locale/tests/src/Functional/LocaleTranslatedSchemaDefinitionTest.php
+++ b/core/modules/locale/tests/src/Functional/LocaleTranslatedSchemaDefinitionTest.php
@@ -51,7 +51,7 @@ public function testTranslatedSchemaDefinition() {
     ])->save();
 
     // Ensure that the field is translated when access through the API.
-    $this->assertEqual('Translated Revision ID', \Drupal::entityManager()->getBaseFieldDefinitions('node')['vid']->getLabel());
+    $this->assertEquals('Translated Revision ID', \Drupal::entityManager()->getBaseFieldDefinitions('node')['vid']->getLabel());
 
     // Assert there are no updates.
     $this->assertFalse(\Drupal::service('entity.definition_update_manager')->needsUpdates());
diff --git a/core/modules/locale/tests/src/Functional/LocaleTranslationUiTest.php b/core/modules/locale/tests/src/Functional/LocaleTranslationUiTest.php
index e7d28b3683..a6bce3434b 100644
--- a/core/modules/locale/tests/src/Functional/LocaleTranslationUiTest.php
+++ b/core/modules/locale/tests/src/Functional/LocaleTranslationUiTest.php
@@ -96,7 +96,7 @@ public function testStringTranslation() {
     $this->drupalPostForm('admin/config/regional/translate', $edit, t('Save translations'));
     $this->assertText(t('The strings have been saved.'), 'The strings have been saved.');
     $url_bits = explode('?', $this->getUrl());
-    $this->assertEqual($url_bits[0], \Drupal::url('locale.translate_page', [], ['absolute' => TRUE]), 'Correct page redirection.');
+    $this->assertEquals($url_bits[0], \Drupal::url('locale.translate_page', [], ['absolute' => TRUE]), 'Correct page redirection.');
     $search = [
       'string' => $name,
       'langcode' => $langcode,
diff --git a/core/modules/locale/tests/src/Functional/LocaleUpdateBase.php b/core/modules/locale/tests/src/Functional/LocaleUpdateBase.php
index 2dc379c165..ec10ec492e 100644
--- a/core/modules/locale/tests/src/Functional/LocaleUpdateBase.php
+++ b/core/modules/locale/tests/src/Functional/LocaleUpdateBase.php
@@ -299,7 +299,7 @@ protected function setCurrentTranslations() {
   protected function assertTranslation($source, $translation, $langcode, $message = '') {
     $db_translation = db_query('SELECT translation FROM {locales_target} lt INNER JOIN {locales_source} ls ON ls.lid = lt.lid WHERE ls.source = :source AND lt.language = :langcode', [':source' => $source, ':langcode' => $langcode])->fetchField();
     $db_translation = $db_translation == FALSE ? '' : $db_translation;
-    $this->assertEqual($translation, $db_translation, $message ? $message : format_string('Correct translation of %source (%language)', ['%source' => $source, '%language' => $langcode]));
+    $this->assertEquals($translation, $db_translation, $message ? $message : format_string('Correct translation of %source (%language)', ['%source' => $source, '%language' => $langcode]));
   }
 
 }
diff --git a/core/modules/locale/tests/src/Functional/LocaleUpdateCronTest.php b/core/modules/locale/tests/src/Functional/LocaleUpdateCronTest.php
index 2e7add6033..ddce52eb46 100644
--- a/core/modules/locale/tests/src/Functional/LocaleUpdateCronTest.php
+++ b/core/modules/locale/tests/src/Functional/LocaleUpdateCronTest.php
@@ -69,7 +69,7 @@ public function testUpdateCron() {
 
     // Check whether no tasks are added to the queue.
     $queue = \Drupal::queue('locale_translation', TRUE);
-    $this->assertEqual($queue->numberOfItems(), 0, 'Queue is empty');
+    $this->assertEquals($queue->numberOfItems(), 0, 'Queue is empty');
 
     // Test: Enable cron update and check if update tasks are added to the
     // queue.
@@ -84,10 +84,10 @@ public function testUpdateCron() {
 
     // Check whether tasks are added to the queue.
     $queue = \Drupal::queue('locale_translation', TRUE);
-    $this->assertEqual($queue->numberOfItems(), 3, 'Queue holds tasks for one project.');
+    $this->assertEquals($queue->numberOfItems(), 3, 'Queue holds tasks for one project.');
     $item = $queue->claimItem();
     $queue->releaseItem($item);
-    $this->assertEqual($item->data[1][0], 'contrib_module_two', 'Queue holds tasks for contrib module one.');
+    $this->assertEquals($item->data[1][0], 'contrib_module_two', 'Queue holds tasks for contrib module one.');
 
     // Test: Run cron for a second time and check if tasks are not added to
     // the queue twice.
@@ -95,7 +95,7 @@ public function testUpdateCron() {
 
     // Check whether no more tasks are added to the queue.
     $queue = \Drupal::queue('locale_translation', TRUE);
-    $this->assertEqual($queue->numberOfItems(), 3, 'Queue holds tasks for one project.');
+    $this->assertEquals($queue->numberOfItems(), 3, 'Queue holds tasks for one project.');
 
     // Ensure last checked is updated to a greater time than the initial value.
     sleep(1);
diff --git a/core/modules/locale/tests/src/Functional/LocaleUpdateDevelopmentReleaseTest.php b/core/modules/locale/tests/src/Functional/LocaleUpdateDevelopmentReleaseTest.php
index 5c972d1ef3..977e3f27fc 100644
--- a/core/modules/locale/tests/src/Functional/LocaleUpdateDevelopmentReleaseTest.php
+++ b/core/modules/locale/tests/src/Functional/LocaleUpdateDevelopmentReleaseTest.php
@@ -24,9 +24,9 @@ protected function setUp() {
   public function testLocaleUpdateDevelopmentRelease() {
     $projects = locale_translation_build_projects();
     $this->verbose($projects['drupal']->info['version']);
-    $this->assertEqual($projects['drupal']->info['version'], '8.0.x', 'The branch of the core dev release.');
+    $this->assertEquals($projects['drupal']->info['version'], '8.0.x', 'The branch of the core dev release.');
     $this->verbose($projects['contrib']->info['version']);
-    $this->assertEqual($projects['contrib']->info['version'], '12.x-10.x', 'The branch of the contrib module dev release.');
+    $this->assertEquals($projects['contrib']->info['version'], '12.x-10.x', 'The branch of the contrib module dev release.');
   }
 
 }
diff --git a/core/modules/locale/tests/src/Functional/LocaleUpdateTest.php b/core/modules/locale/tests/src/Functional/LocaleUpdateTest.php
index 907e572c42..dd5bc03270 100644
--- a/core/modules/locale/tests/src/Functional/LocaleUpdateTest.php
+++ b/core/modules/locale/tests/src/Functional/LocaleUpdateTest.php
@@ -41,8 +41,8 @@ public function testUpdateProjects() {
     // Check if interface translation data is collected from hook_info.
     $projects = locale_translation_project_list();
     $this->assertFalse(isset($projects['locale_test_translate']), 'Hidden module not found');
-    $this->assertEqual($projects['locale_test']['info']['interface translation server pattern'], 'core/modules/locale/test/test.%language.po', 'Interface translation parameter found in project info.');
-    $this->assertEqual($projects['locale_test']['name'], 'locale_test', format_string('%key found in project info.', ['%key' => 'interface translation project']));
+    $this->assertEquals($projects['locale_test']['info']['interface translation server pattern'], 'core/modules/locale/test/test.%language.po', 'Interface translation parameter found in project info.');
+    $this->assertEquals($projects['locale_test']['name'], 'locale_test', format_string('%key found in project info.', ['%key' => 'interface translation project']));
   }
 
   /**
@@ -82,12 +82,12 @@ public function testUpdateCheckStatus() {
     // Get status of translation sources at local file system.
     $this->drupalGet('admin/reports/translations/check');
     $result = locale_translation_get_status();
-    $this->assertEqual($result['contrib_module_one']['de']->type, LOCALE_TRANSLATION_LOCAL, 'Translation of contrib_module_one found');
-    $this->assertEqual($result['contrib_module_one']['de']->timestamp, $this->timestampOld, 'Translation timestamp found');
-    $this->assertEqual($result['contrib_module_two']['de']->type, LOCALE_TRANSLATION_LOCAL, 'Translation of contrib_module_two found');
-    $this->assertEqual($result['contrib_module_two']['de']->timestamp, $this->timestampNew, 'Translation timestamp found');
-    $this->assertEqual($result['locale_test']['de']->type, LOCALE_TRANSLATION_LOCAL, 'Translation of locale_test found');
-    $this->assertEqual($result['custom_module_one']['de']->type, LOCALE_TRANSLATION_LOCAL, 'Translation of custom_module_one found');
+    $this->assertEquals($result['contrib_module_one']['de']->type, LOCALE_TRANSLATION_LOCAL, 'Translation of contrib_module_one found');
+    $this->assertEquals($result['contrib_module_one']['de']->timestamp, $this->timestampOld, 'Translation timestamp found');
+    $this->assertEquals($result['contrib_module_two']['de']->type, LOCALE_TRANSLATION_LOCAL, 'Translation of contrib_module_two found');
+    $this->assertEquals($result['contrib_module_two']['de']->timestamp, $this->timestampNew, 'Translation timestamp found');
+    $this->assertEquals($result['locale_test']['de']->type, LOCALE_TRANSLATION_LOCAL, 'Translation of locale_test found');
+    $this->assertEquals($result['custom_module_one']['de']->type, LOCALE_TRANSLATION_LOCAL, 'Translation of custom_module_one found');
 
     // Set the test conditions.
     $edit = [
@@ -98,14 +98,14 @@ public function testUpdateCheckStatus() {
     // Get status of translation sources at both local and remote locations.
     $this->drupalGet('admin/reports/translations/check');
     $result = locale_translation_get_status();
-    $this->assertEqual($result['contrib_module_one']['de']->type, LOCALE_TRANSLATION_REMOTE, 'Translation of contrib_module_one found');
-    $this->assertEqual($result['contrib_module_one']['de']->timestamp, $this->timestampNew, 'Translation timestamp found');
-    $this->assertEqual($result['contrib_module_two']['de']->type, LOCALE_TRANSLATION_LOCAL, 'Translation of contrib_module_two found');
-    $this->assertEqual($result['contrib_module_two']['de']->timestamp, $this->timestampNew, 'Translation timestamp found');
-    $this->assertEqual($result['contrib_module_three']['de']->type, LOCALE_TRANSLATION_LOCAL, 'Translation of contrib_module_three found');
-    $this->assertEqual($result['contrib_module_three']['de']->timestamp, $this->timestampOld, 'Translation timestamp found');
-    $this->assertEqual($result['locale_test']['de']->type, LOCALE_TRANSLATION_LOCAL, 'Translation of locale_test found');
-    $this->assertEqual($result['custom_module_one']['de']->type, LOCALE_TRANSLATION_LOCAL, 'Translation of custom_module_one found');
+    $this->assertEquals($result['contrib_module_one']['de']->type, LOCALE_TRANSLATION_REMOTE, 'Translation of contrib_module_one found');
+    $this->assertEquals($result['contrib_module_one']['de']->timestamp, $this->timestampNew, 'Translation timestamp found');
+    $this->assertEquals($result['contrib_module_two']['de']->type, LOCALE_TRANSLATION_LOCAL, 'Translation of contrib_module_two found');
+    $this->assertEquals($result['contrib_module_two']['de']->timestamp, $this->timestampNew, 'Translation timestamp found');
+    $this->assertEquals($result['contrib_module_three']['de']->type, LOCALE_TRANSLATION_LOCAL, 'Translation of contrib_module_three found');
+    $this->assertEquals($result['contrib_module_three']['de']->timestamp, $this->timestampOld, 'Translation timestamp found');
+    $this->assertEquals($result['locale_test']['de']->type, LOCALE_TRANSLATION_LOCAL, 'Translation of locale_test found');
+    $this->assertEquals($result['custom_module_one']['de']->type, LOCALE_TRANSLATION_LOCAL, 'Translation of custom_module_one found');
   }
 
   /**
@@ -144,9 +144,9 @@ public function testUpdateImportSourceRemote() {
 
     // Check if the translation has been updated, using the status cache.
     $status = locale_translation_get_status();
-    $this->assertEqual($status['contrib_module_one']['de']->type, LOCALE_TRANSLATION_CURRENT, 'Translation of contrib_module_one found');
-    $this->assertEqual($status['contrib_module_two']['de']->type, LOCALE_TRANSLATION_CURRENT, 'Translation of contrib_module_two found');
-    $this->assertEqual($status['contrib_module_three']['de']->type, LOCALE_TRANSLATION_CURRENT, 'Translation of contrib_module_three found');
+    $this->assertEquals($status['contrib_module_one']['de']->type, LOCALE_TRANSLATION_CURRENT, 'Translation of contrib_module_one found');
+    $this->assertEquals($status['contrib_module_two']['de']->type, LOCALE_TRANSLATION_CURRENT, 'Translation of contrib_module_two found');
+    $this->assertEquals($status['contrib_module_three']['de']->type, LOCALE_TRANSLATION_CURRENT, 'Translation of contrib_module_three found');
 
     // Check the new translation status.
     // The static cache needs to be flushed first to get the most recent data
@@ -155,19 +155,19 @@ public function testUpdateImportSourceRemote() {
     $history = locale_translation_get_file_history();
     $this->assertTrue($history['contrib_module_one']['de']->timestamp >= $this->timestampNow, 'Translation of contrib_module_one is imported');
     $this->assertTrue($history['contrib_module_one']['de']->last_checked >= $this->timestampNow, 'Translation of contrib_module_one is updated');
-    $this->assertEqual($history['contrib_module_two']['de']->timestamp, $this->timestampNew, 'Translation of contrib_module_two is imported');
+    $this->assertEquals($history['contrib_module_two']['de']->timestamp, $this->timestampNew, 'Translation of contrib_module_two is imported');
     $this->assertTrue($history['contrib_module_two']['de']->last_checked >= $this->timestampNow, 'Translation of contrib_module_two is updated');
-    $this->assertEqual($history['contrib_module_three']['de']->timestamp, $this->timestampMedium, 'Translation of contrib_module_three is not imported');
-    $this->assertEqual($history['contrib_module_three']['de']->last_checked, $this->timestampMedium, 'Translation of contrib_module_three is not updated');
+    $this->assertEquals($history['contrib_module_three']['de']->timestamp, $this->timestampMedium, 'Translation of contrib_module_three is not imported');
+    $this->assertEquals($history['contrib_module_three']['de']->last_checked, $this->timestampMedium, 'Translation of contrib_module_three is not updated');
 
     // Check whether existing translations have (not) been overwritten.
-    $this->assertEqual(t('January', [], ['langcode' => 'de']), 'Januar_1', 'Translation of January');
-    $this->assertEqual(t('February', [], ['langcode' => 'de']), 'Februar_2', 'Translation of February');
-    $this->assertEqual(t('March', [], ['langcode' => 'de']), 'Marz_2', 'Translation of March');
-    $this->assertEqual(t('April', [], ['langcode' => 'de']), 'April_2', 'Translation of April');
-    $this->assertEqual(t('May', [], ['langcode' => 'de']), 'Mai_customized', 'Translation of May');
-    $this->assertEqual(t('June', [], ['langcode' => 'de']), 'Juni', 'Translation of June');
-    $this->assertEqual(t('Monday', [], ['langcode' => 'de']), 'Montag', 'Translation of Monday');
+    $this->assertEquals(t('January', [], ['langcode' => 'de']), 'Januar_1', 'Translation of January');
+    $this->assertEquals(t('February', [], ['langcode' => 'de']), 'Februar_2', 'Translation of February');
+    $this->assertEquals(t('March', [], ['langcode' => 'de']), 'Marz_2', 'Translation of March');
+    $this->assertEquals(t('April', [], ['langcode' => 'de']), 'April_2', 'Translation of April');
+    $this->assertEquals(t('May', [], ['langcode' => 'de']), 'Mai_customized', 'Translation of May');
+    $this->assertEquals(t('June', [], ['langcode' => 'de']), 'Juni', 'Translation of June');
+    $this->assertEquals(t('Monday', [], ['langcode' => 'de']), 'Montag', 'Translation of Monday');
   }
 
   /**
@@ -198,9 +198,9 @@ public function testUpdateImportSourceLocal() {
 
     // Check if the translation has been updated, using the status cache.
     $status = locale_translation_get_status();
-    $this->assertEqual($status['contrib_module_one']['de']->type, LOCALE_TRANSLATION_CURRENT, 'Translation of contrib_module_one found');
-    $this->assertEqual($status['contrib_module_two']['de']->type, LOCALE_TRANSLATION_CURRENT, 'Translation of contrib_module_two found');
-    $this->assertEqual($status['contrib_module_three']['de']->type, LOCALE_TRANSLATION_CURRENT, 'Translation of contrib_module_three found');
+    $this->assertEquals($status['contrib_module_one']['de']->type, LOCALE_TRANSLATION_CURRENT, 'Translation of contrib_module_one found');
+    $this->assertEquals($status['contrib_module_two']['de']->type, LOCALE_TRANSLATION_CURRENT, 'Translation of contrib_module_two found');
+    $this->assertEquals($status['contrib_module_three']['de']->type, LOCALE_TRANSLATION_CURRENT, 'Translation of contrib_module_three found');
 
     // Check the new translation status.
     // The static cache needs to be flushed first to get the most recent data
@@ -208,20 +208,20 @@ public function testUpdateImportSourceLocal() {
     drupal_static_reset('locale_translation_get_file_history');
     $history = locale_translation_get_file_history();
     $this->assertTrue($history['contrib_module_one']['de']->timestamp >= $this->timestampMedium, 'Translation of contrib_module_one is imported');
-    $this->assertEqual($history['contrib_module_one']['de']->last_checked, $this->timestampMedium, 'Translation of contrib_module_one is updated');
-    $this->assertEqual($history['contrib_module_two']['de']->timestamp, $this->timestampNew, 'Translation of contrib_module_two is imported');
+    $this->assertEquals($history['contrib_module_one']['de']->last_checked, $this->timestampMedium, 'Translation of contrib_module_one is updated');
+    $this->assertEquals($history['contrib_module_two']['de']->timestamp, $this->timestampNew, 'Translation of contrib_module_two is imported');
     $this->assertTrue($history['contrib_module_two']['de']->last_checked >= $this->timestampNow, 'Translation of contrib_module_two is updated');
-    $this->assertEqual($history['contrib_module_three']['de']->timestamp, $this->timestampMedium, 'Translation of contrib_module_three is not imported');
-    $this->assertEqual($history['contrib_module_three']['de']->last_checked, $this->timestampMedium, 'Translation of contrib_module_three is not updated');
+    $this->assertEquals($history['contrib_module_three']['de']->timestamp, $this->timestampMedium, 'Translation of contrib_module_three is not imported');
+    $this->assertEquals($history['contrib_module_three']['de']->last_checked, $this->timestampMedium, 'Translation of contrib_module_three is not updated');
 
     // Check whether existing translations have (not) been overwritten.
-    $this->assertEqual(t('January', [], ['langcode' => 'de']), 'Januar_customized', 'Translation of January');
-    $this->assertEqual(t('February', [], ['langcode' => 'de']), 'Februar_2', 'Translation of February');
-    $this->assertEqual(t('March', [], ['langcode' => 'de']), 'Marz_2', 'Translation of March');
-    $this->assertEqual(t('April', [], ['langcode' => 'de']), 'April_2', 'Translation of April');
-    $this->assertEqual(t('May', [], ['langcode' => 'de']), 'Mai_customized', 'Translation of May');
-    $this->assertEqual(t('June', [], ['langcode' => 'de']), 'Juni', 'Translation of June');
-    $this->assertEqual(t('Monday', [], ['langcode' => 'de']), 'Montag', 'Translation of Monday');
+    $this->assertEquals(t('January', [], ['langcode' => 'de']), 'Januar_customized', 'Translation of January');
+    $this->assertEquals(t('February', [], ['langcode' => 'de']), 'Februar_2', 'Translation of February');
+    $this->assertEquals(t('March', [], ['langcode' => 'de']), 'Marz_2', 'Translation of March');
+    $this->assertEquals(t('April', [], ['langcode' => 'de']), 'April_2', 'Translation of April');
+    $this->assertEquals(t('May', [], ['langcode' => 'de']), 'Mai_customized', 'Translation of May');
+    $this->assertEquals(t('June', [], ['langcode' => 'de']), 'Juni', 'Translation of June');
+    $this->assertEquals(t('Monday', [], ['langcode' => 'de']), 'Montag', 'Translation of Monday');
   }
 
   /**
@@ -251,13 +251,13 @@ public function testUpdateImportModeNonCustomized() {
     $this->drupalPostForm('admin/reports/translations', [], t('Update translations'));
 
     // Check whether existing translations have (not) been overwritten.
-    $this->assertEqual(t('January', [], ['langcode' => 'de']), 'Januar_customized', 'Translation of January');
-    $this->assertEqual(t('February', [], ['langcode' => 'de']), 'Februar_customized', 'Translation of February');
-    $this->assertEqual(t('March', [], ['langcode' => 'de']), 'Marz_2', 'Translation of March');
-    $this->assertEqual(t('April', [], ['langcode' => 'de']), 'April_2', 'Translation of April');
-    $this->assertEqual(t('May', [], ['langcode' => 'de']), 'Mai_customized', 'Translation of May');
-    $this->assertEqual(t('June', [], ['langcode' => 'de']), 'Juni', 'Translation of June');
-    $this->assertEqual(t('Monday', [], ['langcode' => 'de']), 'Montag', 'Translation of Monday');
+    $this->assertEquals(t('January', [], ['langcode' => 'de']), 'Januar_customized', 'Translation of January');
+    $this->assertEquals(t('February', [], ['langcode' => 'de']), 'Februar_customized', 'Translation of February');
+    $this->assertEquals(t('March', [], ['langcode' => 'de']), 'Marz_2', 'Translation of March');
+    $this->assertEquals(t('April', [], ['langcode' => 'de']), 'April_2', 'Translation of April');
+    $this->assertEquals(t('May', [], ['langcode' => 'de']), 'Mai_customized', 'Translation of May');
+    $this->assertEquals(t('June', [], ['langcode' => 'de']), 'Juni', 'Translation of June');
+    $this->assertEquals(t('Monday', [], ['langcode' => 'de']), 'Montag', 'Translation of Monday');
   }
 
   /**
diff --git a/core/modules/locale/tests/src/Kernel/LocaleConfigManagerTest.php b/core/modules/locale/tests/src/Kernel/LocaleConfigManagerTest.php
index 8389b6e973..76ebbfb654 100644
--- a/core/modules/locale/tests/src/Kernel/LocaleConfigManagerTest.php
+++ b/core/modules/locale/tests/src/Kernel/LocaleConfigManagerTest.php
@@ -74,7 +74,7 @@ public function testGetDefaultConfigLangcode() {
     $this->installConfig(['language']);
     $this->assertNull(\Drupal::service('locale.config_manager')->getDefaultConfigLangcode('locale_test_translate.settings'), 'Before installing a module the locale config manager can not access the shipped configuration.');
     \Drupal::service('module_installer')->install(['locale_test_translate']);
-    $this->assertEqual('en', \Drupal::service('locale.config_manager')->getDefaultConfigLangcode('locale_test_translate.settings'), 'After installing a module the locale config manager can get the shipped configuration langcode.');
+    $this->assertEquals('en', \Drupal::service('locale.config_manager')->getDefaultConfigLangcode('locale_test_translate.settings'), 'After installing a module the locale config manager can get the shipped configuration langcode.');
 
     $simple_config = \Drupal::configFactory()->getEditable('locale_test_translate.simple_config_extra');
     $simple_config->set('foo', 'bar')->save();
@@ -109,12 +109,12 @@ public function testGetDefaultConfigLangcode() {
     // module.
     $block->delete();
     $this->installConfig(['locale_test']);
-    $this->assertEqual('en', \Drupal::service('locale.config_manager')->getDefaultConfigLangcode('block.block.test_default_config'), 'The block.block.test_default_config is shipped configuration.');
+    $this->assertEquals('en', \Drupal::service('locale.config_manager')->getDefaultConfigLangcode('block.block.test_default_config'), 'The block.block.test_default_config is shipped configuration.');
 
     // Test the special case for configurable_language config entities.
     $fr_language = ConfigurableLanguage::createFromLangcode('fr');
     $fr_language->save();
-    $this->assertEqual('en', \Drupal::service('locale.config_manager')->getDefaultConfigLangcode('language.entity.fr'), 'The language.entity.fr is treated as shipped configuration because it is a configurable_language config entity and in the standard language list.');
+    $this->assertEquals('en', \Drupal::service('locale.config_manager')->getDefaultConfigLangcode('language.entity.fr'), 'The language.entity.fr is treated as shipped configuration because it is a configurable_language config entity and in the standard language list.');
     $custom_language = ConfigurableLanguage::createFromLangcode('custom');
     $custom_language->save();
     $this->assertNull(\Drupal::service('locale.config_manager')->getDefaultConfigLangcode('language.entity.custom'), 'The language.entity.custom is not shipped configuration because it is not in the standard language list.');
diff --git a/core/modules/locale/tests/src/Kernel/LocaleConfigSubscriberForeignTest.php b/core/modules/locale/tests/src/Kernel/LocaleConfigSubscriberForeignTest.php
index e7a13fc713..171efa0087 100644
--- a/core/modules/locale/tests/src/Kernel/LocaleConfigSubscriberForeignTest.php
+++ b/core/modules/locale/tests/src/Kernel/LocaleConfigSubscriberForeignTest.php
@@ -45,9 +45,9 @@ protected function setUpLocale() {
    * Tests that the language of default configuration was updated.
    */
   public function testDefaultConfigLanguage() {
-    $this->assertEqual('hu', $this->configFactory->getEditable('locale_test.no_translation')->get('langcode'));
-    $this->assertEqual('hu', $this->configFactory->getEditable('locale_test.translation')->get('langcode'));
-    $this->assertEqual($this->configFactory->getEditable('locale_test.translation')->get('test'), 'Hungarian test');
+    $this->assertEquals('hu', $this->configFactory->getEditable('locale_test.no_translation')->get('langcode'));
+    $this->assertEquals('hu', $this->configFactory->getEditable('locale_test.translation')->get('langcode'));
+    $this->assertEquals($this->configFactory->getEditable('locale_test.translation')->get('test'), 'Hungarian test');
   }
 
   /**
@@ -114,7 +114,7 @@ public function testLocaleDeleteActiveTranslation() {
     $config_name = 'locale_test.translation';
     $this->deleteLocaleTranslationData($config_name, 'test', 'English test', 'hu');
     // Deleting the locale translation should not change active config.
-    $this->assertEqual($this->configFactory->getEditable($config_name)->get('test'), 'Hungarian test');
+    $this->assertEquals($this->configFactory->getEditable($config_name)->get('test'), 'Hungarian test');
   }
 
   /**
diff --git a/core/modules/locale/tests/src/Kernel/LocaleConfigSubscriberTest.php b/core/modules/locale/tests/src/Kernel/LocaleConfigSubscriberTest.php
index 3a12efdf24..0615d685c7 100644
--- a/core/modules/locale/tests/src/Kernel/LocaleConfigSubscriberTest.php
+++ b/core/modules/locale/tests/src/Kernel/LocaleConfigSubscriberTest.php
@@ -376,7 +376,7 @@ protected function deleteLocaleTranslationData($config_name, $key, $source_value
   protected function assertNoConfigOverride($config_name, $langcode) {
     $config_langcode = $this->configFactory->getEditable($config_name)->get('langcode');
     $override = $this->languageManager->getLanguageConfigOverride($langcode, $config_name);
-    return $this->assertNotEqual($config_langcode, $langcode) && $this->assertEqual($override->isNew(), TRUE);
+    return $this->assertNotEqual($config_langcode, $langcode) && $this->assertEquals($override->isNew(), TRUE);
   }
 
   /**
@@ -397,7 +397,7 @@ protected function assertNoConfigOverride($config_name, $langcode) {
   protected function assertConfigOverride($config_name, $key, $value, $langcode) {
     $config_langcode = $this->configFactory->getEditable($config_name)->get('langcode');
     $override = $this->languageManager->getLanguageConfigOverride($langcode, $config_name);
-    return $this->assertNotEqual($config_langcode, $langcode) && $this->assertEqual($override->get($key), $value);
+    return $this->assertNotEqual($config_langcode, $langcode) && $this->assertEquals($override->get($key), $value);
   }
 
   /**
@@ -418,7 +418,7 @@ protected function assertConfigOverride($config_name, $key, $value, $langcode) {
   protected function assertActiveConfig($config_name, $key, $value, $langcode) {
     $config = $this->configFactory->getEditable($config_name);
     return
-      $this->assertEqual($config->get('langcode'), $langcode) &&
+      $this->assertEquals($config->get('langcode'), $langcode) &&
       $this->assertIdentical($config->get($key), $value);
   }
 
@@ -477,7 +477,7 @@ protected function assertTranslation($config_name, $translation, $langcode, $cus
         /** @var \Drupal\locale\TranslationString $string */
         // Make sure the string is marked as customized so that it does not get
         // overridden when the string translations are updated.
-        return $pass && $this->assertEqual($customized, $string->customized);
+        return $pass && $this->assertEquals($customized, $string->customized);
       }
     }
     return FALSE;
diff --git a/core/modules/locale/tests/src/Kernel/LocaleConfigurableLanguageManagerTest.php b/core/modules/locale/tests/src/Kernel/LocaleConfigurableLanguageManagerTest.php
index 07909bacc4..eff7f958e4 100644
--- a/core/modules/locale/tests/src/Kernel/LocaleConfigurableLanguageManagerTest.php
+++ b/core/modules/locale/tests/src/Kernel/LocaleConfigurableLanguageManagerTest.php
@@ -30,7 +30,7 @@ public function testGetLanguages() {
     \Drupal::service('string_translation')->setDefaultLangcode($default_language->getId());
 
     $languages = \Drupal::service('language_manager')->getLanguages(LanguageInterface::STATE_ALL);
-    $this->assertEqual(['default', 'und', 'zxx'], array_keys($languages));
+    $this->assertEquals(['default', 'und', 'zxx'], array_keys($languages));
 
     $configurableLanguage = new ConfigurableLanguage(['label' => $this->randomMachineName(), 'id' => 'test', 'weight' => 1], 'configurable_language');
     // Simulate a configuration sync by setting the flag otherwise the locked
@@ -39,7 +39,7 @@ public function testGetLanguages() {
     $configurableLanguage->setSyncing(TRUE)->save();
 
     $languages = \Drupal::service('language_manager')->getLanguages(LanguageInterface::STATE_ALL);
-    $this->assertEqual(['default', 'test', 'und', 'zxx'], array_keys($languages));
+    $this->assertEquals(['default', 'test', 'und', 'zxx'], array_keys($languages));
   }
 
 }
diff --git a/core/modules/locale/tests/src/Kernel/LocaleStringIsSafeTest.php b/core/modules/locale/tests/src/Kernel/LocaleStringIsSafeTest.php
index 4129cdc883..6f35961d73 100644
--- a/core/modules/locale/tests/src/Kernel/LocaleStringIsSafeTest.php
+++ b/core/modules/locale/tests/src/Kernel/LocaleStringIsSafeTest.php
@@ -78,7 +78,7 @@ public function testLocalizedTokenizedString() {
       $rendered_safe_string = \Drupal::theme()->render('locale_test_tokenized', ['content' => $safe_string]);
       // t() function always marks the string as safe so it won't be escaped,
       // and should be the same as the original.
-      $this->assertEqual(
+      $this->assertEquals(
         $rendered_safe_string,
         $original_string . "\n",
         'Security test ' . $i . ' after translation before token replacement'
@@ -90,7 +90,7 @@ public function testLocalizedTokenizedString() {
       $rendered_unsafe_string = \Drupal::theme()->render('locale_test_tokenized', ['content' => $unsafe_string]);
       // Token replacement changes the string so it is not marked as safe
       // anymore. Check it is escaped the way we expect.
-      $this->assertEqual(
+      $this->assertEquals(
         $rendered_unsafe_string,
         $test['replaced'] . "\n",
         'Security test ' . $i . ' after translation  after token replacement'
diff --git a/core/modules/locale/tests/src/Kernel/LocaleTranslationProjectsTest.php b/core/modules/locale/tests/src/Kernel/LocaleTranslationProjectsTest.php
index 370c0146de..4b408916b3 100644
--- a/core/modules/locale/tests/src/Kernel/LocaleTranslationProjectsTest.php
+++ b/core/modules/locale/tests/src/Kernel/LocaleTranslationProjectsTest.php
@@ -53,12 +53,12 @@ public function testLocaleTranslationClearCacheProjects() {
 
     $this->projectStorage->set('foo', []);
     $expected['foo'] = new \stdClass();
-    $this->assertEqual($expected, locale_translation_get_projects());
+    $this->assertEquals($expected, locale_translation_get_projects());
 
     $this->projectStorage->set('bar', []);
     locale_translation_clear_cache_projects();
     $expected['bar'] = new \stdClass();
-    $this->assertEqual($expected, locale_translation_get_projects());
+    $this->assertEquals($expected, locale_translation_get_projects());
   }
 
 }
diff --git a/core/modules/menu_link_content/tests/src/Functional/LinksTest.php b/core/modules/menu_link_content/tests/src/Functional/LinksTest.php
index 6a3d50b319..7812cd14b7 100644
--- a/core/modules/menu_link_content/tests/src/Functional/LinksTest.php
+++ b/core/modules/menu_link_content/tests/src/Functional/LinksTest.php
@@ -115,7 +115,7 @@ public function assertMenuLinkParents($links, $expected_hierarchy) {
       $menu_link_plugin = $this->menuLinkManager->createInstance($links[$id]);
       $expected_parent = isset($links[$parent]) ? $links[$parent] : '';
 
-      $this->assertEqual($menu_link_plugin->getParent(), $expected_parent, SafeMarkup::format('Menu link %id has parent of %parent, expected %expected_parent.', ['%id' => $id, '%parent' => $menu_link_plugin->getParent(), '%expected_parent' => $expected_parent]));
+      $this->assertEquals($menu_link_plugin->getParent(), $expected_parent, SafeMarkup::format('Menu link %id has parent of %parent, expected %expected_parent.', ['%id' => $id, '%parent' => $menu_link_plugin->getParent(), '%expected_parent' => $expected_parent]));
     }
   }
 
@@ -131,7 +131,7 @@ public function testCreateLink() {
     $link = MenuLinkContent::create($options);
     $link->save();
     // Make sure the changed timestamp is set.
-    $this->assertEqual($link->getChangedTime(), REQUEST_TIME, 'Creating a menu link sets the "changed" timestamp.');
+    $this->assertEquals($link->getChangedTime(), REQUEST_TIME, 'Creating a menu link sets the "changed" timestamp.');
     $options = [
       'title' => 'Test Link',
     ];
@@ -139,7 +139,7 @@ public function testCreateLink() {
     $link->changed->value = 0;
     $link->save();
     // Make sure the changed timestamp is updated.
-    $this->assertEqual($link->getChangedTime(), REQUEST_TIME, 'Changing a menu link sets "changed" timestamp.');
+    $this->assertEquals($link->getChangedTime(), REQUEST_TIME, 'Changing a menu link sets "changed" timestamp.');
   }
 
   /**
@@ -181,7 +181,7 @@ public function testMenuLinkReparenting($module = 'menu_test') {
     // Verify that the entity was updated too.
     $menu_link_plugin = $this->menuLinkManager->createInstance($links['child-1']);
     $entity = \Drupal::entityManager()->loadEntityByUuid('menu_link_content', $menu_link_plugin->getDerivativeId());
-    $this->assertEqual($entity->getParentId(), $links['child-2']);
+    $this->assertEquals($entity->getParentId(), $links['child-2']);
 
     $expected_hierarchy = [
       'parent' => '',
@@ -231,15 +231,15 @@ public function testModuleUninstalledMenuLinks() {
     \Drupal::service('router.builder')->rebuild();
     \Drupal::service('plugin.manager.menu.link')->rebuild();
     $menu_links = $this->menuLinkManager->loadLinksByRoute('menu_test.menu_test');
-    $this->assertEqual(count($menu_links), 1);
+    $this->assertEquals(count($menu_links), 1);
     $menu_link = reset($menu_links);
-    $this->assertEqual($menu_link->getPluginId(), 'menu_test');
+    $this->assertEquals($menu_link->getPluginId(), 'menu_test');
 
     // Uninstall the module and ensure the menu link got removed.
     \Drupal::service('module_installer')->uninstall(['menu_test']);
     \Drupal::service('plugin.manager.menu.link')->rebuild();
     $menu_links = $this->menuLinkManager->loadLinksByRoute('menu_test.menu_test');
-    $this->assertEqual(count($menu_links), 0);
+    $this->assertEquals(count($menu_links), 0);
   }
 
 }
diff --git a/core/modules/menu_link_content/tests/src/Functional/MenuLinkContentFormTest.php b/core/modules/menu_link_content/tests/src/Functional/MenuLinkContentFormTest.php
index 8796bc7488..4b8e933111 100644
--- a/core/modules/menu_link_content/tests/src/Functional/MenuLinkContentFormTest.php
+++ b/core/modules/menu_link_content/tests/src/Functional/MenuLinkContentFormTest.php
@@ -77,7 +77,7 @@ public function testMenuLinkContentForm() {
     $this->drupalGet('admin/structure/menu/manage/admin/add');
     $element = $this->xpath('//select[@id = :id]/option[@selected]', [':id' => 'edit-menu-parent']);
     $this->assertTrue($element, 'A default menu parent was found.');
-    $this->assertEqual('admin:', $element[0]->getValue(), '<Administration> menu is the parent.');
+    $this->assertEquals('admin:', $element[0]->getValue(), '<Administration> menu is the parent.');
     // Test that the field description is present.
     $this->assertRaw('The location this menu link points to.');
 
diff --git a/core/modules/menu_link_content/tests/src/Kernel/MenuLinkContentCacheabilityBubblingTest.php b/core/modules/menu_link_content/tests/src/Kernel/MenuLinkContentCacheabilityBubblingTest.php
index 414ecdeb0d..8acade51ec 100644
--- a/core/modules/menu_link_content/tests/src/Kernel/MenuLinkContentCacheabilityBubblingTest.php
+++ b/core/modules/menu_link_content/tests/src/Kernel/MenuLinkContentCacheabilityBubblingTest.php
@@ -115,7 +115,7 @@ public function testOutboundPathAndRouteProcessing() {
       $renderer->renderRoot($build);
 
       $expected_cacheability = $default_menu_cacheability->merge($expectation['cacheability']);
-      $this->assertEqual($expected_cacheability, BubbleableMetadata::createFromRenderArray($build));
+      $this->assertEquals($expected_cacheability, BubbleableMetadata::createFromRenderArray($build));
 
       $menu_link_content->delete();
     }
@@ -136,7 +136,7 @@ public function testOutboundPathAndRouteProcessing() {
     $build = $menu_tree->build($tree);
     $renderer->renderRoot($build);
     $expected_cacheability = $expected_cacheability->merge($default_menu_cacheability);
-    $this->assertEqual($expected_cacheability, BubbleableMetadata::createFromRenderArray($build));
+    $this->assertEquals($expected_cacheability, BubbleableMetadata::createFromRenderArray($build));
   }
 
 }
diff --git a/core/modules/menu_link_content/tests/src/Kernel/MenuLinkContentDeriverTest.php b/core/modules/menu_link_content/tests/src/Kernel/MenuLinkContentDeriverTest.php
index 12d8d35afd..55cf9e68e6 100644
--- a/core/modules/menu_link_content/tests/src/Kernel/MenuLinkContentDeriverTest.php
+++ b/core/modules/menu_link_content/tests/src/Kernel/MenuLinkContentDeriverTest.php
@@ -46,10 +46,10 @@ public function testRediscover() {
     ]);
     $parent->save();
     $menu_tree = \Drupal::menuTree()->load('tools', new MenuTreeParameters());
-    $this->assertEqual(1, count($menu_tree));
+    $this->assertEquals(1, count($menu_tree));
     /** @var \Drupal\Core\Menu\MenuLinkTreeElement $tree_element */
     $tree_element = reset($menu_tree);
-    $this->assertEqual('route_name_1', $tree_element->link->getRouteName());
+    $this->assertEquals('route_name_1', $tree_element->link->getRouteName());
 
     // Change the underlying route and trigger the rediscovering.
     \Drupal::state()->set('menu_link_content_dynamic_route.routes', [
@@ -59,10 +59,10 @@ public function testRediscover() {
 
     // Ensure that the new route name / parameters are captured by the tree.
     $menu_tree = \Drupal::menuTree()->load('tools', new MenuTreeParameters());
-    $this->assertEqual(1, count($menu_tree));
+    $this->assertEquals(1, count($menu_tree));
     /** @var \Drupal\Core\Menu\MenuLinkTreeElement $tree_element */
     $tree_element = reset($menu_tree);
-    $this->assertEqual('route_name_2', $tree_element->link->getRouteName());
+    $this->assertEquals('route_name_2', $tree_element->link->getRouteName());
     $title = $tree_element->link->getTitle();
     $this->assertFalse($title instanceof TranslatableMarkup);
     $this->assertIdentical('<script>alert("Welcome to the discovered jungle!")</script>', $title);
@@ -82,11 +82,11 @@ public function testRediscover() {
     $parent->set('link', [['uri' => 'entity:/example-path']]);
     $parent->save();
     $menu_tree = \Drupal::menuTree()->load('tools', new MenuTreeParameters());
-    $this->assertEqual(1, count($menu_tree));
+    $this->assertEquals(1, count($menu_tree));
     /** @var \Drupal\Core\Menu\MenuLinkTreeElement $tree_element */
     $tree_element = reset($menu_tree);
     $this->assertTrue($tree_element->hasChildren);
-    $this->assertEqual(1, count($tree_element->subtree));
+    $this->assertEquals(1, count($tree_element->subtree));
 
     // Edit child element link to use 'internal' instead of 'entity'.
     $child->set('link', [['uri' => 'internal:/example-path/child']]);
@@ -94,11 +94,11 @@ public function testRediscover() {
     \Drupal::service('plugin.manager.menu.link')->rebuild();
 
     $menu_tree = \Drupal::menuTree()->load('tools', new MenuTreeParameters());
-    $this->assertEqual(1, count($menu_tree));
+    $this->assertEquals(1, count($menu_tree));
     /** @var \Drupal\Core\Menu\MenuLinkTreeElement $tree_element */
     $tree_element = reset($menu_tree);
     $this->assertTrue($tree_element->hasChildren);
-    $this->assertEqual(1, count($tree_element->subtree));
+    $this->assertEquals(1, count($tree_element->subtree));
   }
 
 }
diff --git a/core/modules/menu_link_content/tests/src/Kernel/PathAliasMenuLinkContentTest.php b/core/modules/menu_link_content/tests/src/Kernel/PathAliasMenuLinkContentTest.php
index 046deb4a00..c911e23394 100644
--- a/core/modules/menu_link_content/tests/src/Kernel/PathAliasMenuLinkContentTest.php
+++ b/core/modules/menu_link_content/tests/src/Kernel/PathAliasMenuLinkContentTest.php
@@ -64,21 +64,21 @@ public function testPathAliasChange() {
     $menu_link_content->save();
 
     $tree = \Drupal::menuTree()->load('tools', new MenuTreeParameters());
-    $this->assertEqual('test_page_test.test_page', $tree[$menu_link_content->getPluginId()]->link->getPluginDefinition()['route_name']);
+    $this->assertEquals('test_page_test.test_page', $tree[$menu_link_content->getPluginId()]->link->getPluginDefinition()['route_name']);
 
     // Saving an alias should clear the alias manager cache.
     $path_alias_storage->save('/test-render-title', '/my-blog', LanguageInterface::LANGCODE_NOT_SPECIFIED, $pid);
 
     $tree = \Drupal::menuTree()->load('tools', new MenuTreeParameters());
-    $this->assertEqual('test_page_test.render_title', $tree[$menu_link_content->getPluginId()]->link->getPluginDefinition()['route_name']);
+    $this->assertEquals('test_page_test.render_title', $tree[$menu_link_content->getPluginId()]->link->getPluginDefinition()['route_name']);
 
     // Delete the alias.
     $path_alias_storage->delete(['pid' => $pid]);
     $tree = \Drupal::menuTree()->load('tools', new MenuTreeParameters());
     $this->assertTrue(isset($tree[$menu_link_content->getPluginId()]));
-    $this->assertEqual('', $tree[$menu_link_content->getPluginId()]->link->getRouteName());
+    $this->assertEquals('', $tree[$menu_link_content->getPluginId()]->link->getRouteName());
     // Verify the plugin now references a path that does not match any route.
-    $this->assertEqual('base:my-blog', $tree[$menu_link_content->getPluginId()]->link->getUrlObject()->getUri());
+    $this->assertEquals('base:my-blog', $tree[$menu_link_content->getPluginId()]->link->getUrlObject()->getUri());
   }
 
 }
diff --git a/core/modules/menu_ui/src/Tests/MenuNodeTest.php b/core/modules/menu_ui/src/Tests/MenuNodeTest.php
index 99900955fb..abfcca3631 100644
--- a/core/modules/menu_ui/src/Tests/MenuNodeTest.php
+++ b/core/modules/menu_ui/src/Tests/MenuNodeTest.php
@@ -84,7 +84,7 @@ public function testMenuNodeFormWidget() {
     ];
     $this->drupalPostForm(NULL, $edit, t('Save'));
     $node = $this->drupalGetNodeByTitle($node_title);
-    $this->assertEqual($node->getTitle(), $edit['title[0][value]']);
+    $this->assertEquals($node->getTitle(), $edit['title[0][value]']);
 
     // Test that we cannot set a menu item from a menu that is not set as
     // available.
diff --git a/core/modules/menu_ui/src/Tests/MenuTest.php b/core/modules/menu_ui/src/Tests/MenuTest.php
index dde95027bd..898ae1c50e 100644
--- a/core/modules/menu_ui/src/Tests/MenuTest.php
+++ b/core/modules/menu_ui/src/Tests/MenuTest.php
@@ -141,7 +141,7 @@ public function testMenu() {
     $menu_link_manager->resetDefinitions();
 
     $instance = $menu_link_manager->createInstance($instance->getPluginId());
-    $this->assertEqual($edit['weight'], $instance->getWeight(), 'Saving an existing link updates the weight.');
+    $this->assertEquals($edit['weight'], $instance->getWeight(), 'Saving an existing link updates the weight.');
     $this->resetMenuLink($instance, $old_weight);
   }
 
@@ -786,7 +786,7 @@ public function resetMenuLink(MenuLinkInterface $menu_link, $old_weight) {
 
     // Verify menu link.
     $instance = \Drupal::service('plugin.manager.menu.link')->createInstance($menu_link->getPluginId());
-    $this->assertEqual($old_weight, $instance->getWeight(), 'Resets to the old weight.');
+    $this->assertEquals($old_weight, $instance->getWeight(), 'Resets to the old weight.');
   }
 
   /**
@@ -951,8 +951,8 @@ protected function doTestMenuBlock() {
     ], t('Save block'));
     $block = Block::load($block_id);
     $settings = $block->getPlugin()->getConfiguration();
-    $this->assertEqual($settings['depth'], 3);
-    $this->assertEqual($settings['level'], 2);
+    $this->assertEquals($settings['depth'], 3);
+    $this->assertEquals($settings['level'], 2);
     // Reset settings.
     $block->getPlugin()->setConfigurationValue('depth', 0);
     $block->getPlugin()->setConfigurationValue('level', 1);
diff --git a/core/modules/menu_ui/src/Tests/MenuWebTestBase.php b/core/modules/menu_ui/src/Tests/MenuWebTestBase.php
index e0ee98fbf0..a9bc4f0959 100644
--- a/core/modules/menu_ui/src/Tests/MenuWebTestBase.php
+++ b/core/modules/menu_ui/src/Tests/MenuWebTestBase.php
@@ -48,29 +48,29 @@ public function assertMenuLink($menu_plugin_id, array $expected_item) {
       if ($child_ids) {
         sort($child_ids);
       }
-      $this->assertEqual($expected_item['children'], $child_ids);
+      $this->assertEquals($expected_item['children'], $child_ids);
       unset($expected_item['children']);
     }
 
     if (isset($expected_item['parents'])) {
       $parent_ids = array_values($menu_link_manager->getParentIds($menu_plugin_id));
-      $this->assertEqual($expected_item['parents'], $parent_ids);
+      $this->assertEquals($expected_item['parents'], $parent_ids);
       unset($expected_item['parents']);
     }
 
     if (isset($expected_item['langcode']) && $entity) {
-      $this->assertEqual($entity->langcode->value, $expected_item['langcode']);
+      $this->assertEquals($entity->langcode->value, $expected_item['langcode']);
       unset($expected_item['langcode']);
     }
 
     if (isset($expected_item['enabled']) && $entity) {
-      $this->assertEqual($entity->enabled->value, $expected_item['enabled']);
+      $this->assertEquals($entity->enabled->value, $expected_item['enabled']);
       unset($expected_item['enabled']);
     }
 
     foreach ($expected_item as $key => $value) {
       $this->assertTrue(isset($definition[$key]));
-      $this->assertEqual($definition[$key], $value);
+      $this->assertEquals($definition[$key], $value);
     }
   }
 
diff --git a/core/modules/migrate/tests/src/Kernel/MigrateInterruptionTest.php b/core/modules/migrate/tests/src/Kernel/MigrateInterruptionTest.php
index 207af4d8e1..d2e69016de 100644
--- a/core/modules/migrate/tests/src/Kernel/MigrateInterruptionTest.php
+++ b/core/modules/migrate/tests/src/Kernel/MigrateInterruptionTest.php
@@ -60,10 +60,10 @@ public function testMigrateEvents() {
     // interruption.
     $result = $executable->import();
 
-    $this->assertEqual($result, MigrationInterface::RESULT_INCOMPLETE);
+    $this->assertEquals($result, MigrationInterface::RESULT_INCOMPLETE);
 
     // The status should have been reset to IDLE.
-    $this->assertEqual($migration->getStatus(), MigrationInterface::STATUS_IDLE);
+    $this->assertEquals($migration->getStatus(), MigrationInterface::STATUS_IDLE);
   }
 
   /**
diff --git a/core/modules/migrate/tests/src/Kernel/MigrateSkipRowTest.php b/core/modules/migrate/tests/src/Kernel/MigrateSkipRowTest.php
index 8c5e01e513..b06d4b6f44 100644
--- a/core/modules/migrate/tests/src/Kernel/MigrateSkipRowTest.php
+++ b/core/modules/migrate/tests/src/Kernel/MigrateSkipRowTest.php
@@ -51,13 +51,13 @@ public function testPrepareRowSkip() {
 
     $executable = new MigrateExecutable($migration);
     $result = $executable->import();
-    $this->assertEqual($result, MigrationInterface::RESULT_COMPLETED);
+    $this->assertEquals($result, MigrationInterface::RESULT_COMPLETED);
 
     /** @var \Drupal\migrate\Plugin\MigrateIdMapInterface $id_map_plugin */
     $id_map_plugin = $migration->getIdMap();
     // The first row is recorded in the map as ignored.
     $map_row = $id_map_plugin->getRowBySource(['id' => 1]);
-    $this->assertEqual(MigrateIdMapInterface::STATUS_IGNORED, $map_row['source_row_status']);
+    $this->assertEquals(MigrateIdMapInterface::STATUS_IGNORED, $map_row['source_row_status']);
     // Check that no message has been logged for the first exception.
     $messages = $id_map_plugin->getMessageIterator(['id' => 1])->fetchAll();
     $this->assertEmpty($messages);
diff --git a/core/modules/migrate/tests/src/Kernel/MigrationTest.php b/core/modules/migrate/tests/src/Kernel/MigrationTest.php
index 5fe56ecf95..667efb2e79 100644
--- a/core/modules/migrate/tests/src/Kernel/MigrationTest.php
+++ b/core/modules/migrate/tests/src/Kernel/MigrationTest.php
@@ -30,16 +30,16 @@ public function testSetInvalidation() {
       'source' => ['plugin' => 'empty'],
       'destination' => ['plugin' => 'entity:entity_view_mode'],
     ]);
-    $this->assertEqual('empty', $migration->getSourcePlugin()->getPluginId());
-    $this->assertEqual('entity:entity_view_mode', $migration->getDestinationPlugin()->getPluginId());
+    $this->assertEquals('empty', $migration->getSourcePlugin()->getPluginId());
+    $this->assertEquals('entity:entity_view_mode', $migration->getDestinationPlugin()->getPluginId());
 
     // Test the source plugin is invalidated.
     $migration->set('source', ['plugin' => 'embedded_data', 'data_rows' => [], 'ids' => []]);
-    $this->assertEqual('embedded_data', $migration->getSourcePlugin()->getPluginId());
+    $this->assertEquals('embedded_data', $migration->getSourcePlugin()->getPluginId());
 
     // Test the destination plugin is invalidated.
     $migration->set('destination', ['plugin' => 'null']);
-    $this->assertEqual('null', $migration->getDestinationPlugin()->getPluginId());
+    $this->assertEquals('null', $migration->getDestinationPlugin()->getPluginId());
   }
 
 }
diff --git a/core/modules/migrate_drupal/tests/src/Kernel/dependencies/MigrateDependenciesTest.php b/core/modules/migrate_drupal/tests/src/Kernel/dependencies/MigrateDependenciesTest.php
index 1a30489d03..77b00220de 100644
--- a/core/modules/migrate_drupal/tests/src/Kernel/dependencies/MigrateDependenciesTest.php
+++ b/core/modules/migrate_drupal/tests/src/Kernel/dependencies/MigrateDependenciesTest.php
@@ -67,7 +67,7 @@ public function testAggregatorMigrateDependencies() {
     $executable = new MigrateExecutable($migration, $this);
     $this->startCollectingMessages();
     $executable->import();
-    $this->assertEqual($this->migrateMessages['error'], [SafeMarkup::format('Migration @id did not meet the requirements. Missing migrations d6_aggregator_feed. requirements: d6_aggregator_feed.', ['@id' => $migration->id()])]);
+    $this->assertEquals($this->migrateMessages['error'], [SafeMarkup::format('Migration @id did not meet the requirements. Missing migrations d6_aggregator_feed. requirements: d6_aggregator_feed.', ['@id' => $migration->id()])]);
     $this->collectMessages = FALSE;
   }
 
diff --git a/core/modules/migrate_drupal_ui/src/Tests/MigrateUpgradeTestBase.php b/core/modules/migrate_drupal_ui/src/Tests/MigrateUpgradeTestBase.php
index 0e01c232e7..a9f478bdf4 100644
--- a/core/modules/migrate_drupal_ui/src/Tests/MigrateUpgradeTestBase.php
+++ b/core/modules/migrate_drupal_ui/src/Tests/MigrateUpgradeTestBase.php
@@ -188,7 +188,7 @@ public function testMigrateUpgrade() {
       ->getDefinitions()) as $entity_type) {
       $real_count = \Drupal::entityQuery($entity_type)->count()->execute();
       $expected_count = isset($expected_counts[$entity_type]) ? $expected_counts[$entity_type] : 0;
-      $this->assertEqual($expected_count, $real_count, "Found $real_count $entity_type entities, expected $expected_count.");
+      $this->assertEquals($expected_count, $real_count, "Found $real_count $entity_type entities, expected $expected_count.");
     }
 
     $version_tag = 'Drupal ' . $this->getLegacyDrupalVersion($this->sourceDatabase);
diff --git a/core/modules/migrate_drupal_ui/tests/src/Functional/MigrateUpgradeTestBase.php b/core/modules/migrate_drupal_ui/tests/src/Functional/MigrateUpgradeTestBase.php
index d5cc93908a..69d67697ff 100644
--- a/core/modules/migrate_drupal_ui/tests/src/Functional/MigrateUpgradeTestBase.php
+++ b/core/modules/migrate_drupal_ui/tests/src/Functional/MigrateUpgradeTestBase.php
@@ -208,7 +208,7 @@ public function testMigrateUpgrade() {
       ->getDefinitions()) as $entity_type) {
       $real_count = \Drupal::entityQuery($entity_type)->count()->execute();
       $expected_count = isset($expected_counts[$entity_type]) ? $expected_counts[$entity_type] : 0;
-      $this->assertEqual($expected_count, $real_count, "Found $real_count $entity_type entities, expected $expected_count.");
+      $this->assertEquals($expected_count, $real_count, "Found $real_count $entity_type entities, expected $expected_count.");
     }
 
     $plugin_manager = \Drupal::service('plugin.manager.migration');
diff --git a/core/modules/node/src/Tests/AssertButtonsTrait.php b/core/modules/node/src/Tests/AssertButtonsTrait.php
index 97016dc2e4..4d8497717e 100644
--- a/core/modules/node/src/Tests/AssertButtonsTrait.php
+++ b/core/modules/node/src/Tests/AssertButtonsTrait.php
@@ -36,10 +36,10 @@ public function assertButtons($buttons, $dropbutton = TRUE) {
 
       // Dropbutton elements.
       $elements = $this->xpath('//div[@class="dropbutton-wrapper"]//input[@type="submit"]');
-      $this->assertEqual($count, count($elements));
+      $this->assertEquals($count, count($elements));
       foreach ($elements as $element) {
         $value = isset($element['value']) ? (string) $element['value'] : '';
-        $this->assertEqual($buttons[$i], $value);
+        $this->assertEquals($buttons[$i], $value);
         $i++;
       }
     }
diff --git a/core/modules/node/src/Tests/NodeRevisionsTest.php b/core/modules/node/src/Tests/NodeRevisionsTest.php
index da5b260537..2c27079f59 100644
--- a/core/modules/node/src/Tests/NodeRevisionsTest.php
+++ b/core/modules/node/src/Tests/NodeRevisionsTest.php
@@ -323,7 +323,7 @@ public function testNodeRevisionWithoutLogMessage() {
     $this->assertText($new_title, 'New node title appears on the page.');
     $node_storage->resetCache([$node->id()]);
     $node_revision = $node_storage->load($node->id());
-    $this->assertEqual($node_revision->revision_log->value, $revision_log, 'After an existing node revision is re-saved without a log message, the original log message is preserved.');
+    $this->assertEquals($node_revision->revision_log->value, $revision_log, 'After an existing node revision is re-saved without a log message, the original log message is preserved.');
 
     // Create another node with an initial revision log message.
     $node = $this->drupalCreateNode(['revision_log' => $revision_log]);
@@ -408,8 +408,8 @@ public function testRevisionTranslationRevert() {
     /** @var \Drupal\node\NodeInterface $node */
     $node = $node_storage->load($node->id());
     $this->assertTrue($node->getRevisionId() > $translation_revision_id);
-    $this->assertEqual($node->label(), $default_translation_title);
-    $this->assertEqual($node->getTranslation('it')->label(), $translated_title);
+    $this->assertEquals($node->label(), $default_translation_title);
+    $this->assertEquals($node->getTranslation('it')->label(), $translated_title);
     $this->assertNotEqual($node->untranslatable_string_field->value, $untranslatable_string);
 
     $latest_revision_id = $translation->getRevisionId();
@@ -423,9 +423,9 @@ public function testRevisionTranslationRevert() {
     /** @var \Drupal\node\NodeInterface $node */
     $node = $node_storage->load($node->id());
     $this->assertTrue($node->getRevisionId() > $latest_revision_id);
-    $this->assertEqual($node->label(), $default_translation_title);
-    $this->assertEqual($node->getTranslation('it')->label(), $translated_title);
-    $this->assertEqual($node->untranslatable_string_field->value, $untranslatable_string);
+    $this->assertEquals($node->label(), $default_translation_title);
+    $this->assertEquals($node->getTranslation('it')->label(), $translated_title);
+    $this->assertEquals($node->untranslatable_string_field->value, $untranslatable_string);
 
     $latest_revision_id = $translation->getRevisionId();
 
@@ -440,7 +440,7 @@ public function testRevisionTranslationRevert() {
     /** @var \Drupal\node\NodeInterface $node */
     $node = $node_storage->load($node->id());
     $this->assertTrue($node->getRevisionId() > $latest_revision_id);
-    $this->assertEqual($node->label(), $initial_title);
+    $this->assertEquals($node->label(), $initial_title);
     $this->assertFalse($node->hasTranslation('it'));
   }
 
diff --git a/core/modules/node/src/Tests/NodeTestBase.php b/core/modules/node/src/Tests/NodeTestBase.php
index 2dcaba5b38..2e3c8ff89f 100644
--- a/core/modules/node/src/Tests/NodeTestBase.php
+++ b/core/modules/node/src/Tests/NodeTestBase.php
@@ -61,7 +61,7 @@ protected function setUp() {
    */
   public function assertNodeAccess(array $ops, NodeInterface $node, AccountInterface $account) {
     foreach ($ops as $op => $result) {
-      $this->assertEqual($result, $this->accessHandler->access($node, $op, $account), $this->nodeAccessAssertMessage($op, $result, $node->language()->getId()));
+      $this->assertEquals($result, $this->accessHandler->access($node, $op, $account), $this->nodeAccessAssertMessage($op, $result, $node->language()->getId()));
     }
   }
 
@@ -79,7 +79,7 @@ public function assertNodeAccess(array $ops, NodeInterface $node, AccountInterfa
    *   to check. If NULL, the untranslated (fallback) access is checked.
    */
   public function assertNodeCreateAccess($bundle, $result, AccountInterface $account, $langcode = NULL) {
-    $this->assertEqual($result, $this->accessHandler->createAccess($bundle, $account, [
+    $this->assertEquals($result, $this->accessHandler->createAccess($bundle, $account, [
       'langcode' => $langcode,
     ]), $this->nodeAccessAssertMessage('create', $result, $langcode));
   }
diff --git a/core/modules/node/src/Tests/NodeTypeTest.php b/core/modules/node/src/Tests/NodeTypeTest.php
index 70d3ac40b5..e9c1b20a05 100644
--- a/core/modules/node/src/Tests/NodeTypeTest.php
+++ b/core/modules/node/src/Tests/NodeTypeTest.php
@@ -35,11 +35,11 @@ public function testNodeTypeGetFunctions() {
     $this->assertTrue(isset($node_types['article']), 'Node type article is available.');
     $this->assertTrue(isset($node_types['page']), 'Node type basic page is available.');
 
-    $this->assertEqual($node_types['article']->label(), $node_names['article'], 'Correct node type base has been returned.');
+    $this->assertEquals($node_types['article']->label(), $node_names['article'], 'Correct node type base has been returned.');
 
     $article = NodeType::load('article');
-    $this->assertEqual($node_types['article'], $article, 'Correct node type has been returned.');
-    $this->assertEqual($node_types['article']->label(), $article->label(), 'Correct node type name has been returned.');
+    $this->assertEquals($node_types['article'], $article, 'Correct node type has been returned.');
+    $this->assertEquals($node_types['article']->label(), $article->label(), 'Correct node type name has been returned.');
   }
 
   /**
@@ -67,7 +67,7 @@ public function testNodeTypeCreation() {
     $this->assertCacheTag('config:node_type_list');
     $this->assertCacheContext('user.permissions');
     $elements = $this->cssSelect('dl.node-type-list dt');
-    $this->assertEqual(3, count($elements));
+    $this->assertEquals(3, count($elements));
 
     $edit = [
       'name' => 'foo',
@@ -80,7 +80,7 @@ public function testNodeTypeCreation() {
 
     $this->drupalGet('node/add');
     $elements = $this->cssSelect('dl.node-type-list dt');
-    $this->assertEqual(4, count($elements));
+    $this->assertEquals(4, count($elements));
   }
 
   /**
@@ -92,7 +92,7 @@ public function testNodeTypeEditing() {
     $this->drupalLogin($web_user);
 
     $field = FieldConfig::loadByName('node', 'page', 'body');
-    $this->assertEqual($field->getLabel(), 'Body', 'Body field was found.');
+    $this->assertEquals($field->getLabel(), 'Body', 'Body field was found.');
 
     // Verify that title and body fields are displayed.
     $this->drupalGet('node/add/page');
@@ -132,7 +132,7 @@ public function testNodeTypeEditing() {
     /** @var \Drupal\Core\Entity\EntityTypeBundleInfoInterface $bundle_info */
     $bundle_info = \Drupal::service('entity_type.bundle.info');
     $node_bundles = $bundle_info->getBundleInfo('node');
-    $this->assertEqual($node_bundles['page']['label'], 'NewBar', 'Node type bundle cache is updated');
+    $this->assertEquals($node_bundles['page']['label'], 'NewBar', 'Node type bundle cache is updated');
 
     // Remove the body field.
     $this->drupalPostForm('admin/structure/types/manage/page/fields/node.page.body/delete', [], t('Delete'));
@@ -237,7 +237,7 @@ public function testNodeTypeFieldUiPermissions() {
   public function testNodeTypeNoContentType() {
     /** @var \Drupal\Core\Entity\EntityTypeBundleInfoInterface $bundle_info */
     $bundle_info = \Drupal::service('entity_type.bundle.info');
-    $this->assertEqual(2, count($bundle_info->getBundleInfo('node')), 'The bundle information service has 2 bundles for the Node entity type.');
+    $this->assertEquals(2, count($bundle_info->getBundleInfo('node')), 'The bundle information service has 2 bundles for the Node entity type.');
     $web_user = $this->drupalCreateUser(['administer content types']);
     $this->drupalLogin($web_user);
 
@@ -253,7 +253,7 @@ public function testNodeTypeNoContentType() {
       ]), 'Empty text when there are no content types in the system is correct.');
 
     $bundle_info->clearCachedBundles();
-    $this->assertEqual(0, count($bundle_info->getBundleInfo('node')), 'The bundle information service has 0 bundles for the Node entity type.');
+    $this->assertEquals(0, count($bundle_info->getBundleInfo('node')), 'The bundle information service has 0 bundles for the Node entity type.');
   }
 
 }
diff --git a/core/modules/node/tests/src/Functional/AssertButtonsTrait.php b/core/modules/node/tests/src/Functional/AssertButtonsTrait.php
index bc2ef9078b..75e1e50e18 100644
--- a/core/modules/node/tests/src/Functional/AssertButtonsTrait.php
+++ b/core/modules/node/tests/src/Functional/AssertButtonsTrait.php
@@ -32,10 +32,10 @@ public function assertButtons(array $buttons, $dropbutton = TRUE) {
       // Dropbutton elements.
       /** @var \Behat\Mink\Element\NodeElement[] $elements */
       $elements = $this->xpath('//div[@class="dropbutton-wrapper"]//input[@type="submit"]');
-      $this->assertEqual($count, count($elements));
+      $this->assertEquals($count, count($elements));
       foreach ($elements as $element) {
         $value = $element->getValue() ?: '';
-        $this->assertEqual($buttons[$i], $value);
+        $this->assertEquals($buttons[$i], $value);
         $i++;
       }
     }
diff --git a/core/modules/node/tests/src/Functional/NodeAccessBaseTableTest.php b/core/modules/node/tests/src/Functional/NodeAccessBaseTableTest.php
index d9e4e8b092..7d73b5c273 100644
--- a/core/modules/node/tests/src/Functional/NodeAccessBaseTableTest.php
+++ b/core/modules/node/tests/src/Functional/NodeAccessBaseTableTest.php
@@ -114,7 +114,7 @@ public function testNodeAccessBasic() {
 
         $this->drupalPostForm('node/add/article', $edit, t('Save'));
         $node = $this->drupalGetNodeByTitle($edit['title[0][value]']);
-        $this->assertEqual($is_private, (int) $node->private->value, 'The private status of the node was properly set in the node_access_test table.');
+        $this->assertEquals($is_private, (int) $node->private->value, 'The private status of the node was properly set in the node_access_test table.');
         if ($is_private) {
           $private_nodes[] = $node->id();
         }
diff --git a/core/modules/node/tests/src/Functional/NodeAccessLanguageAwareCombinationTest.php b/core/modules/node/tests/src/Functional/NodeAccessLanguageAwareCombinationTest.php
index e388afcbcb..7712b564cb 100644
--- a/core/modules/node/tests/src/Functional/NodeAccessLanguageAwareCombinationTest.php
+++ b/core/modules/node/tests/src/Functional/NodeAccessLanguageAwareCombinationTest.php
@@ -261,7 +261,7 @@ public function testNodeAccessLanguageAwareCombination() {
 
     // Four nodes should be returned with public Hungarian translations or the
     // no language public node.
-    $this->assertEqual(count($nids), 4, 'db_select() returns 4 nodes when no langcode is specified.');
+    $this->assertEquals(count($nids), 4, 'db_select() returns 4 nodes when no langcode is specified.');
     $this->assertTrue(array_key_exists($this->nodes['public_both_public']->id(), $nids), 'Returned node ID is full public node.');
     $this->assertTrue(array_key_exists($this->nodes['public_ca_private']->id(), $nids), 'Returned node ID is Hungarian public only node.');
     $this->assertTrue(array_key_exists($this->nodes['private_both_public']->id(), $nids), 'Returned node ID is both public non-language-aware private only node.');
@@ -276,7 +276,7 @@ public function testNodeAccessLanguageAwareCombination() {
     $nids = $select->execute()->fetchAllAssoc('nid');
 
     // Three nodes should be returned (with public Hungarian translations).
-    $this->assertEqual(count($nids), 3, 'db_select() returns 3 nodes.');
+    $this->assertEquals(count($nids), 3, 'db_select() returns 3 nodes.');
     $this->assertTrue(array_key_exists($this->nodes['public_both_public']->id(), $nids), 'Returned node ID is both public node.');
     $this->assertTrue(array_key_exists($this->nodes['public_ca_private']->id(), $nids), 'Returned node ID is Hungarian public only node.');
     $this->assertTrue(array_key_exists($this->nodes['private_both_public']->id(), $nids), 'Returned node ID is both public non-language-aware private only node.');
@@ -290,7 +290,7 @@ public function testNodeAccessLanguageAwareCombination() {
     $nids = $select->execute()->fetchAllAssoc('nid');
 
     // Three nodes should be returned (with public Catalan translations).
-    $this->assertEqual(count($nids), 3, 'db_select() returns 3 nodes.');
+    $this->assertEquals(count($nids), 3, 'db_select() returns 3 nodes.');
     $this->assertTrue(array_key_exists($this->nodes['public_both_public']->id(), $nids), 'Returned node ID is both public node.');
     $this->assertTrue(array_key_exists($this->nodes['public_hu_private']->id(), $nids), 'Returned node ID is Catalan public only node.');
     $this->assertTrue(array_key_exists($this->nodes['private_both_public']->id(), $nids), 'Returned node ID is both public non-language-aware private only node.');
@@ -315,7 +315,7 @@ public function testNodeAccessLanguageAwareCombination() {
     $nids = $select->execute()->fetchAllAssoc('nid');
 
     // All nodes are returned.
-    $this->assertEqual(count($nids), 10, 'db_select() returns all nodes.');
+    $this->assertEquals(count($nids), 10, 'db_select() returns all nodes.');
 
     // Query the nodes table as admin user (full access) with the node access
     // tag and langcode de.
@@ -328,7 +328,7 @@ public function testNodeAccessLanguageAwareCombination() {
 
     // Even though there is no German translation, all nodes are returned
     // because node access filtering does not occur when the user is user 1.
-    $this->assertEqual(count($nids), 10, 'db_select() returns all nodes.');
+    $this->assertEquals(count($nids), 10, 'db_select() returns all nodes.');
   }
 
 }
diff --git a/core/modules/node/tests/src/Functional/NodeAccessLanguageAwareTest.php b/core/modules/node/tests/src/Functional/NodeAccessLanguageAwareTest.php
index 48f9dfac36..55c8112620 100644
--- a/core/modules/node/tests/src/Functional/NodeAccessLanguageAwareTest.php
+++ b/core/modules/node/tests/src/Functional/NodeAccessLanguageAwareTest.php
@@ -204,7 +204,7 @@ public function testNodeAccessLanguageAware() {
     // - Node with both translations public.
     // - Node with only the Catalan translation marked as private.
     // - No language node marked as public.
-    $this->assertEqual(count($nids), 3, 'db_select() returns 3 nodes when no langcode is specified.');
+    $this->assertEquals(count($nids), 3, 'db_select() returns 3 nodes when no langcode is specified.');
     $this->assertTrue(array_key_exists($this->nodes['both_public']->id(), $nids), 'The node with both translations public is returned.');
     $this->assertTrue(array_key_exists($this->nodes['ca_private']->id(), $nids), 'The node with only the Catalan translation private is returned.');
     $this->assertTrue(array_key_exists($this->nodes['no_language_public']->id(), $nids), 'The node with no language is returned.');
@@ -219,7 +219,7 @@ public function testNodeAccessLanguageAware() {
 
     // Two nodes should be returned: the node with both translations public, and
     // the node with only the Catalan translation marked as private.
-    $this->assertEqual(count($nids), 2, 'db_select() returns 2 nodes when the hu langcode is specified.');
+    $this->assertEquals(count($nids), 2, 'db_select() returns 2 nodes when the hu langcode is specified.');
     $this->assertTrue(array_key_exists($this->nodes['both_public']->id(), $nids), 'The node with both translations public is returned.');
     $this->assertTrue(array_key_exists($this->nodes['ca_private']->id(), $nids), 'The node with only the Catalan translation private is returned.');
 
@@ -233,7 +233,7 @@ public function testNodeAccessLanguageAware() {
 
     // Two nodes should be returned: the node with both translations public, and
     // the node with only the Hungarian translation marked as private.
-    $this->assertEqual(count($nids), 2, 'db_select() returns 2 nodes when the hu langcode is specified.');
+    $this->assertEquals(count($nids), 2, 'db_select() returns 2 nodes when the hu langcode is specified.');
     $this->assertTrue(array_key_exists($this->nodes['both_public']->id(), $nids), 'The node with both translations public is returned.');
     $this->assertTrue(array_key_exists($this->nodes['hu_private']->id(), $nids), 'The node with only the Hungarian translation private is returned.');
 
@@ -257,7 +257,7 @@ public function testNodeAccessLanguageAware() {
     $nids = $select->execute()->fetchAllAssoc('nid');
 
     // All nodes are returned.
-    $this->assertEqual(count($nids), 6, 'db_select() returns all nodes.');
+    $this->assertEquals(count($nids), 6, 'db_select() returns all nodes.');
 
     // Query the nodes table as admin user (full access) with the node access
     // tag and langcode de.
@@ -270,7 +270,7 @@ public function testNodeAccessLanguageAware() {
 
     // Even though there is no German translation, all nodes are returned
     // because node access filtering does not occur when the user is user 1.
-    $this->assertEqual(count($nids), 6, 'db_select() returns all nodes.');
+    $this->assertEquals(count($nids), 6, 'db_select() returns all nodes.');
   }
 
 }
diff --git a/core/modules/node/tests/src/Functional/NodeAccessLanguageTest.php b/core/modules/node/tests/src/Functional/NodeAccessLanguageTest.php
index 1af5660fe5..bbabc91c40 100644
--- a/core/modules/node/tests/src/Functional/NodeAccessLanguageTest.php
+++ b/core/modules/node/tests/src/Functional/NodeAccessLanguageTest.php
@@ -211,7 +211,7 @@ public function testNodeAccessQueryTag() {
 
     // The public node and no language node should be returned. Because no
     // langcode is given it will use the fallback node.
-    $this->assertEqual(count($nids), 2, 'db_select() returns 2 node');
+    $this->assertEquals(count($nids), 2, 'db_select() returns 2 node');
     $this->assertTrue(array_key_exists($node_public->id(), $nids), 'Returned node ID is public node.');
     $this->assertTrue(array_key_exists($node_no_language->id(), $nids), 'Returned node ID is no language node.');
 
@@ -236,7 +236,7 @@ public function testNodeAccessQueryTag() {
     $nids = $select->execute()->fetchAllAssoc('nid');
 
     // All nodes are returned.
-    $this->assertEqual(count($nids), 3, 'db_select() returns all three nodes.');
+    $this->assertEquals(count($nids), 3, 'db_select() returns all three nodes.');
 
     // Query the nodes table as admin user (full access) with the node access
     // tag and langcode de.
@@ -249,7 +249,7 @@ public function testNodeAccessQueryTag() {
 
     // All nodes are returned because node access tag is not invoked when the
     // user is user 1.
-    $this->assertEqual(count($nids), 3, 'db_select() returns all three nodes.');
+    $this->assertEquals(count($nids), 3, 'db_select() returns all three nodes.');
   }
 
 }
diff --git a/core/modules/node/tests/src/Functional/NodeAccessRebuildNodeGrantsTest.php b/core/modules/node/tests/src/Functional/NodeAccessRebuildNodeGrantsTest.php
index 9ea75ccff7..8fa79151a2 100644
--- a/core/modules/node/tests/src/Functional/NodeAccessRebuildNodeGrantsTest.php
+++ b/core/modules/node/tests/src/Functional/NodeAccessRebuildNodeGrantsTest.php
@@ -65,7 +65,7 @@ public function testNodeAccessRebuildNodeGrants() {
       $this->assertTrue($grant_storage->access($node, 'view', $this->adminUser)->isAllowed(), 'Prior to rebuilding node access the grant storage returns allowed for the admin user.');
     }
 
-    $this->assertEqual(1, \Drupal::service('node.grant_storage')->checkAll($this->webUser), 'There is an all realm access record');
+    $this->assertEquals(1, \Drupal::service('node.grant_storage')->checkAll($this->webUser), 'There is an all realm access record');
     $this->assertTrue(\Drupal::state()->get('node.node_access_needs_rebuild'), 'Node access permissions need to be rebuilt');
 
     // Rebuild permissions.
@@ -99,7 +99,7 @@ public function testNodeAccessRebuildNodeGrants() {
    */
   public function testNodeAccessRebuildNoAccessModules() {
     // Default realm access is present.
-    $this->assertEqual(1, \Drupal::service('node.grant_storage')->count(), 'There is an all realm access record');
+    $this->assertEquals(1, \Drupal::service('node.grant_storage')->count(), 'There is an all realm access record');
 
     // No need to rebuild permissions.
     $this->assertFalse(\Drupal::state()->get('node.node_access_needs_rebuild'), 'Node access permissions need to be rebuilt');
@@ -112,7 +112,7 @@ public function testNodeAccessRebuildNoAccessModules() {
     $this->assertNull(\Drupal::state()->get('node.node_access_needs_rebuild'), 'Node access permissions have been rebuilt');
 
     // Default realm access is still present.
-    $this->assertEqual(1, \Drupal::service('node.grant_storage')->count(), 'There is an all realm access record');
+    $this->assertEquals(1, \Drupal::service('node.grant_storage')->count(), 'There is an all realm access record');
   }
 
 }
diff --git a/core/modules/node/tests/src/Functional/NodeAccessRecordsTest.php b/core/modules/node/tests/src/Functional/NodeAccessRecordsTest.php
index 259ed83efb..ce17044f5d 100644
--- a/core/modules/node/tests/src/Functional/NodeAccessRecordsTest.php
+++ b/core/modules/node/tests/src/Functional/NodeAccessRecordsTest.php
@@ -28,9 +28,9 @@ public function testNodeAccessRecords() {
 
     // Check to see if grants added by node_test_node_access_records made it in.
     $records = db_query('SELECT realm, gid FROM {node_access} WHERE nid = :nid', [':nid' => $node1->id()])->fetchAll();
-    $this->assertEqual(count($records), 1, 'Returned the correct number of rows.');
-    $this->assertEqual($records[0]->realm, 'test_article_realm', 'Grant with article_realm acquired for node without alteration.');
-    $this->assertEqual($records[0]->gid, 1, 'Grant with gid = 1 acquired for node without alteration.');
+    $this->assertEquals(count($records), 1, 'Returned the correct number of rows.');
+    $this->assertEquals($records[0]->realm, 'test_article_realm', 'Grant with article_realm acquired for node without alteration.');
+    $this->assertEquals($records[0]->gid, 1, 'Grant with gid = 1 acquired for node without alteration.');
 
     // Create an unpromoted "Basic page" node.
     $node2 = $this->drupalCreateNode(['type' => 'page', 'promote' => 0]);
@@ -38,9 +38,9 @@ public function testNodeAccessRecords() {
 
     // Check to see if grants added by node_test_node_access_records made it in.
     $records = db_query('SELECT realm, gid FROM {node_access} WHERE nid = :nid', [':nid' => $node2->id()])->fetchAll();
-    $this->assertEqual(count($records), 1, 'Returned the correct number of rows.');
-    $this->assertEqual($records[0]->realm, 'test_page_realm', 'Grant with page_realm acquired for node without alteration.');
-    $this->assertEqual($records[0]->gid, 1, 'Grant with gid = 1 acquired for node without alteration.');
+    $this->assertEquals(count($records), 1, 'Returned the correct number of rows.');
+    $this->assertEquals($records[0]->realm, 'test_page_realm', 'Grant with page_realm acquired for node without alteration.');
+    $this->assertEquals($records[0]->gid, 1, 'Grant with gid = 1 acquired for node without alteration.');
 
     // Create an unpromoted, unpublished "Basic page" node.
     $node3 = $this->drupalCreateNode(['type' => 'page', 'promote' => 0, 'status' => 0]);
@@ -48,9 +48,9 @@ public function testNodeAccessRecords() {
 
     // Check to see if grants added by node_test_node_access_records made it in.
     $records = db_query('SELECT realm, gid FROM {node_access} WHERE nid = :nid', [':nid' => $node3->id()])->fetchAll();
-    $this->assertEqual(count($records), 1, 'Returned the correct number of rows.');
-    $this->assertEqual($records[0]->realm, 'test_page_realm', 'Grant with page_realm acquired for node without alteration.');
-    $this->assertEqual($records[0]->gid, 1, 'Grant with gid = 1 acquired for node without alteration.');
+    $this->assertEquals(count($records), 1, 'Returned the correct number of rows.');
+    $this->assertEquals($records[0]->realm, 'test_page_realm', 'Grant with page_realm acquired for node without alteration.');
+    $this->assertEquals($records[0]->gid, 1, 'Grant with gid = 1 acquired for node without alteration.');
 
     // Create a promoted "Basic page" node.
     $node4 = $this->drupalCreateNode(['type' => 'page', 'promote' => 1]);
@@ -59,9 +59,9 @@ public function testNodeAccessRecords() {
     // Check to see if grant added by node_test_node_access_records was altered
     // by node_test_node_access_records_alter.
     $records = db_query('SELECT realm, gid FROM {node_access} WHERE nid = :nid', [':nid' => $node4->id()])->fetchAll();
-    $this->assertEqual(count($records), 1, 'Returned the correct number of rows.');
-    $this->assertEqual($records[0]->realm, 'test_alter_realm', 'Altered grant with alter_realm acquired for node.');
-    $this->assertEqual($records[0]->gid, 2, 'Altered grant with gid = 2 acquired for node.');
+    $this->assertEquals(count($records), 1, 'Returned the correct number of rows.');
+    $this->assertEquals($records[0]->realm, 'test_alter_realm', 'Altered grant with alter_realm acquired for node.');
+    $this->assertEquals($records[0]->gid, 2, 'Altered grant with gid = 2 acquired for node.');
 
     // Check to see if we can alter grants with hook_node_grants_alter().
     $operations = ['view', 'update', 'delete'];
@@ -78,7 +78,7 @@ public function testNodeAccessRecords() {
     // empty $grants array is returned.
     $node6 = $this->drupalCreateNode(['status' => 0, 'disable_node_access' => TRUE]);
     $records = db_query('SELECT realm, gid FROM {node_access} WHERE nid = :nid', [':nid' => $node6->id()])->fetchAll();
-    $this->assertEqual(count($records), 0, 'Returned no records for unpublished node.');
+    $this->assertEquals(count($records), 0, 'Returned no records for unpublished node.');
   }
 
 }
diff --git a/core/modules/node/tests/src/Functional/NodeAdminTest.php b/core/modules/node/tests/src/Functional/NodeAdminTest.php
index 24a50cf51a..2ba46e1c99 100644
--- a/core/modules/node/tests/src/Functional/NodeAdminTest.php
+++ b/core/modules/node/tests/src/Functional/NodeAdminTest.php
@@ -134,7 +134,7 @@ public function testContentAdminPages() {
       $this->assertLinkByHref('node/' . $node->id() . '/edit');
       $this->assertLinkByHref('node/' . $node->id() . '/delete');
       // Verify that we can see the content type label.
-      $this->assertEqual(trim($node_type_labels[$delta]->getText()), $node->type->entity->label());
+      $this->assertEquals(trim($node_type_labels[$delta]->getText()), $node->type->entity->label());
       $delta++;
     }
 
diff --git a/core/modules/node/tests/src/Functional/NodeCreationTest.php b/core/modules/node/tests/src/Functional/NodeCreationTest.php
index 1ea8fcc332..f5fb9ffc67 100644
--- a/core/modules/node/tests/src/Functional/NodeCreationTest.php
+++ b/core/modules/node/tests/src/Functional/NodeCreationTest.php
@@ -164,7 +164,7 @@ public function testAuthorAutocomplete() {
     $this->drupalGet('node/add/page');
 
     $result = $this->xpath('//input[@id="edit-uid-0-value" and contains(@data-autocomplete-path, "user/autocomplete")]');
-    $this->assertEqual(count($result), 0, 'No autocompletion without access user profiles.');
+    $this->assertEquals(count($result), 0, 'No autocompletion without access user profiles.');
 
     $admin_user = $this->drupalCreateUser(['administer nodes', 'create page content', 'access user profiles']);
     $this->drupalLogin($admin_user);
@@ -172,7 +172,7 @@ public function testAuthorAutocomplete() {
     $this->drupalGet('node/add/page');
 
     $result = $this->xpath('//input[@id="edit-uid-0-target-id" and contains(@data-autocomplete-path, "/entity_reference_autocomplete/user/default")]');
-    $this->assertEqual(count($result), 1, 'Ensure that the user does have access to the autocompletion');
+    $this->assertEquals(count($result), 1, 'Ensure that the user does have access to the autocompletion');
   }
 
   /**
diff --git a/core/modules/node/tests/src/Functional/NodeEditFormTest.php b/core/modules/node/tests/src/Functional/NodeEditFormTest.php
index c15ca70bbe..72f9a5e325 100644
--- a/core/modules/node/tests/src/Functional/NodeEditFormTest.php
+++ b/core/modules/node/tests/src/Functional/NodeEditFormTest.php
@@ -129,7 +129,7 @@ public function testNodeEdit() {
     $this->assertRaw('<details class="node-form-author js-form-wrapper form-wrapper" data-drupal-selector="edit-author" id="edit-author" open="open">');
     // Only one extra details element should now be open.
     $open_details_elements++;
-    $this->assertEqual(count($this->cssSelect('details[open="open"]')), $open_details_elements, 'Exactly one extra open &lt;details&gt; element found.');
+    $this->assertEquals(count($this->cssSelect('details[open="open"]')), $open_details_elements, 'Exactly one extra open &lt;details&gt; element found.');
 
     // Edit the same node, save it and verify it's unpublished after unchecking
     // the 'Published' boolean_checkbox and clicking 'Save'.
diff --git a/core/modules/node/tests/src/Functional/NodeEntityViewModeAlterTest.php b/core/modules/node/tests/src/Functional/NodeEntityViewModeAlterTest.php
index be0f1c0623..2cd12104fc 100644
--- a/core/modules/node/tests/src/Functional/NodeEntityViewModeAlterTest.php
+++ b/core/modules/node/tests/src/Functional/NodeEntityViewModeAlterTest.php
@@ -47,7 +47,7 @@ public function testNodeViewModeChange() {
 
     // Test that the correct build mode has been set.
     $build = $this->buildEntityView($node);
-    $this->assertEqual($build['#view_mode'], 'teaser', 'The view mode has correctly been set to teaser.');
+    $this->assertEquals($build['#view_mode'], 'teaser', 'The view mode has correctly been set to teaser.');
   }
 
 }
diff --git a/core/modules/node/tests/src/Functional/NodeFieldMultilingualTest.php b/core/modules/node/tests/src/Functional/NodeFieldMultilingualTest.php
index 771426d025..2945efad26 100644
--- a/core/modules/node/tests/src/Functional/NodeFieldMultilingualTest.php
+++ b/core/modules/node/tests/src/Functional/NodeFieldMultilingualTest.php
@@ -123,7 +123,7 @@ public function testMultilingualDisplaySettings() {
       ':node-class' => ' node ',
       ':content-class' => 'node__content',
     ]);
-    $this->assertEqual($body[0]->getText(), $node->body->value, 'Node body found.');
+    $this->assertEquals($body[0]->getText(), $node->body->value, 'Node body found.');
   }
 
 }
diff --git a/core/modules/node/tests/src/Functional/NodeFormSaveChangedTimeTest.php b/core/modules/node/tests/src/Functional/NodeFormSaveChangedTimeTest.php
index 607e68cf0d..41d74672a7 100644
--- a/core/modules/node/tests/src/Functional/NodeFormSaveChangedTimeTest.php
+++ b/core/modules/node/tests/src/Functional/NodeFormSaveChangedTimeTest.php
@@ -59,7 +59,7 @@ public function testChangedTimeAfterSaveWithoutChanges() {
     $node->save();
     $storage->resetCache([1]);
     $node = $storage->load(1);
-    $this->assertEqual($changed_timestamp, $node->getChangedTime(), "The entity's changed time wasn't updated after API save without changes.");
+    $this->assertEquals($changed_timestamp, $node->getChangedTime(), "The entity's changed time wasn't updated after API save without changes.");
 
     // Ensure different save timestamps.
     sleep(1);
diff --git a/core/modules/node/tests/src/Functional/NodeLoadMultipleTest.php b/core/modules/node/tests/src/Functional/NodeLoadMultipleTest.php
index 2da5d1bbeb..e06dc70f08 100644
--- a/core/modules/node/tests/src/Functional/NodeLoadMultipleTest.php
+++ b/core/modules/node/tests/src/Functional/NodeLoadMultipleTest.php
@@ -42,8 +42,8 @@ public function testNodeMultipleLoad() {
     // Load nodes with only a condition. Nodes 3 and 4 will be loaded.
     $nodes = $this->container->get('entity_type.manager')->getStorage('node')
       ->loadByProperties(['promote' => 0]);
-    $this->assertEqual($node3->label(), $nodes[$node3->id()]->label(), 'Node was loaded.');
-    $this->assertEqual($node4->label(), $nodes[$node4->id()]->label(), 'Node was loaded.');
+    $this->assertEquals($node3->label(), $nodes[$node3->id()]->label(), 'Node was loaded.');
+    $this->assertEquals($node4->label(), $nodes[$node4->id()]->label(), 'Node was loaded.');
     $count = count($nodes);
     $this->assertTrue($count == 2, format_string('@count nodes loaded.', ['@count' => $count]));
 
diff --git a/core/modules/node/tests/src/Functional/NodePostSettingsTest.php b/core/modules/node/tests/src/Functional/NodePostSettingsTest.php
index 4716b30067..cfaf1e1947 100644
--- a/core/modules/node/tests/src/Functional/NodePostSettingsTest.php
+++ b/core/modules/node/tests/src/Functional/NodePostSettingsTest.php
@@ -36,7 +36,7 @@ public function testPagePostInfo() {
     // Check that the post information is displayed.
     $node = $this->drupalGetNodeByTitle($edit['title[0][value]']);
     $elements = $this->xpath('//div[contains(@class, :class)]', [':class' => 'node__submitted']);
-    $this->assertEqual(count($elements), 1, 'Post information is displayed.');
+    $this->assertEquals(count($elements), 1, 'Post information is displayed.');
     $node->delete();
 
     // Set "Basic page" content type to display post information.
@@ -52,7 +52,7 @@ public function testPagePostInfo() {
 
     // Check that the post information is displayed.
     $elements = $this->xpath('//div[contains(@class, :class)]', [':class' => 'node__submitted']);
-    $this->assertEqual(count($elements), 0, 'Post information is not displayed.');
+    $this->assertEquals(count($elements), 0, 'Post information is not displayed.');
   }
 
 }
diff --git a/core/modules/node/tests/src/Functional/NodeQueryAlterTest.php b/core/modules/node/tests/src/Functional/NodeQueryAlterTest.php
index 362a27fc48..f430763f3f 100644
--- a/core/modules/node/tests/src/Functional/NodeQueryAlterTest.php
+++ b/core/modules/node/tests/src/Functional/NodeQueryAlterTest.php
@@ -60,7 +60,7 @@ public function testNodeQueryAlterLowLevelWithAccess() {
       $query->addMetaData('account', $this->accessUser);
 
       $result = $query->execute()->fetchAll();
-      $this->assertEqual(count($result), 4, 'User with access can see correct nodes');
+      $this->assertEquals(count($result), 4, 'User with access can see correct nodes');
     }
     catch (\Exception $e) {
       $this->fail(t('Altered query is malformed'));
@@ -78,7 +78,7 @@ public function testNodeQueryAlterWithRevisions() {
         ->allRevisions()
         ->execute();
 
-      $this->assertEqual(count($result), 4, 'User with access can see correct nodes');
+      $this->assertEquals(count($result), 4, 'User with access can see correct nodes');
     }
     catch (\Exception $e) {
       $this->fail('Altered query is malformed');
@@ -101,7 +101,7 @@ public function testNodeQueryAlterLowLevelNoAccess() {
       $query->addMetaData('account', $this->noAccessUser);
 
       $result = $query->execute()->fetchAll();
-      $this->assertEqual(count($result), 0, 'User with no access cannot see nodes');
+      $this->assertEquals(count($result), 0, 'User with no access cannot see nodes');
     }
     catch (\Exception $e) {
       $this->fail(t('Altered query is malformed'));
@@ -124,7 +124,7 @@ public function testNodeQueryAlterLowLevelEditAccess() {
       $query->addMetaData('account', $this->accessUser);
 
       $result = $query->execute()->fetchAll();
-      $this->assertEqual(count($result), 0, 'User with view-only access cannot edit nodes');
+      $this->assertEquals(count($result), 0, 'User with view-only access cannot edit nodes');
     }
     catch (\Exception $e) {
       $this->fail($e->getMessage());
@@ -164,7 +164,7 @@ public function testNodeQueryAlterOverride() {
       $query->addMetaData('account', $this->noAccessUser);
 
       $result = $query->execute()->fetchAll();
-      $this->assertEqual(count($result), 0, 'User view privileges are not overridden');
+      $this->assertEquals(count($result), 0, 'User view privileges are not overridden');
     }
     catch (\Exception $e) {
       $this->fail(t('Altered query is malformed'));
@@ -186,7 +186,7 @@ public function testNodeQueryAlterOverride() {
       $query->addMetaData('account', $this->noAccessUser);
 
       $result = $query->execute()->fetchAll();
-      $this->assertEqual(count($result), 4, 'User view privileges are overridden');
+      $this->assertEquals(count($result), 4, 'User view privileges are overridden');
     }
     catch (\Exception $e) {
       $this->fail(t('Altered query is malformed'));
diff --git a/core/modules/node/tests/src/Functional/NodeRevisionsUiTest.php b/core/modules/node/tests/src/Functional/NodeRevisionsUiTest.php
index a437e4aba8..92c3fdb12d 100644
--- a/core/modules/node/tests/src/Functional/NodeRevisionsUiTest.php
+++ b/core/modules/node/tests/src/Functional/NodeRevisionsUiTest.php
@@ -60,7 +60,7 @@ public function testNodeFormSaveWithoutRevision() {
     // Load the node again and check the revision is the same as before.
     $node_storage->resetCache([$node->id()]);
     $node_revision = $node_storage->load($node->id(), TRUE);
-    $this->assertEqual($node_revision->getRevisionId(), $node->getRevisionId(), "After an existing node is saved with 'Create new revision' unchecked, a new revision is not created.");
+    $this->assertEquals($node_revision->getRevisionId(), $node->getRevisionId(), "After an existing node is saved with 'Create new revision' unchecked, a new revision is not created.");
 
     // Verify the checkbox is checked on the node edit form.
     $this->drupalGet('node/' . $node->id() . '/edit');
diff --git a/core/modules/node/tests/src/Functional/NodeSaveTest.php b/core/modules/node/tests/src/Functional/NodeSaveTest.php
index 6c508aee68..4d1d1316a0 100644
--- a/core/modules/node/tests/src/Functional/NodeSaveTest.php
+++ b/core/modules/node/tests/src/Functional/NodeSaveTest.php
@@ -62,7 +62,7 @@ public function testImport() {
     $node = Node::create($node);
     $node->enforceIsNew();
 
-    $this->assertEqual($node->getOwnerId(), $this->webUser->id());
+    $this->assertEquals($node->getOwnerId(), $this->webUser->id());
 
     $node->save();
     // Test the import.
@@ -86,23 +86,23 @@ public function testTimestamps() {
 
     Node::create($edit)->save();
     $node = $this->drupalGetNodeByTitle($edit['title']);
-    $this->assertEqual($node->getCreatedTime(), REQUEST_TIME, 'Creating a node sets default "created" timestamp.');
-    $this->assertEqual($node->getChangedTime(), REQUEST_TIME, 'Creating a node sets default "changed" timestamp.');
+    $this->assertEquals($node->getCreatedTime(), REQUEST_TIME, 'Creating a node sets default "created" timestamp.');
+    $this->assertEquals($node->getChangedTime(), REQUEST_TIME, 'Creating a node sets default "changed" timestamp.');
 
     // Store the timestamps.
     $created = $node->getCreatedTime();
 
     $node->save();
     $node = $this->drupalGetNodeByTitle($edit['title'], TRUE);
-    $this->assertEqual($node->getCreatedTime(), $created, 'Updating a node preserves "created" timestamp.');
+    $this->assertEquals($node->getCreatedTime(), $created, 'Updating a node preserves "created" timestamp.');
 
     // Programmatically set the timestamps using hook_ENTITY_TYPE_presave().
     $node->title = 'testing_node_presave';
 
     $node->save();
     $node = $this->drupalGetNodeByTitle('testing_node_presave', TRUE);
-    $this->assertEqual($node->getCreatedTime(), 280299600, 'Saving a node uses "created" timestamp set in presave hook.');
-    $this->assertEqual($node->getChangedTime(), 979534800, 'Saving a node uses "changed" timestamp set in presave hook.');
+    $this->assertEquals($node->getCreatedTime(), 280299600, 'Saving a node uses "created" timestamp set in presave hook.');
+    $this->assertEquals($node->getChangedTime(), 979534800, 'Saving a node uses "changed" timestamp set in presave hook.');
 
     // Programmatically set the timestamps on the node.
     $edit = [
@@ -117,8 +117,8 @@ public function testTimestamps() {
 
     Node::create($edit)->save();
     $node = $this->drupalGetNodeByTitle($edit['title']);
-    $this->assertEqual($node->getCreatedTime(), 280299600, 'Creating a node programmatically uses programmatically set "created" timestamp.');
-    $this->assertEqual($node->getChangedTime(), 979534800, 'Creating a node programmatically uses programmatically set "changed" timestamp.');
+    $this->assertEquals($node->getCreatedTime(), 280299600, 'Creating a node programmatically uses programmatically set "created" timestamp.');
+    $this->assertEquals($node->getChangedTime(), 979534800, 'Creating a node programmatically uses programmatically set "changed" timestamp.');
 
     // Update the timestamps.
     $node->setCreatedTime(979534800);
@@ -126,11 +126,11 @@ public function testTimestamps() {
 
     $node->save();
     $node = $this->drupalGetNodeByTitle($edit['title'], TRUE);
-    $this->assertEqual($node->getCreatedTime(), 979534800, 'Updating a node uses user-set "created" timestamp.');
+    $this->assertEquals($node->getCreatedTime(), 979534800, 'Updating a node uses user-set "created" timestamp.');
     // Allowing setting changed timestamps is required, see
     // Drupal\content_translation\ContentTranslationMetadataWrapper::setChangedTime($timestamp)
     // for example.
-    $this->assertEqual($node->getChangedTime(), 280299600, 'Updating a node uses user-set "changed" timestamp.');
+    $this->assertEquals($node->getChangedTime(), 280299600, 'Updating a node uses user-set "changed" timestamp.');
   }
 
   /**
@@ -150,7 +150,7 @@ public function testDeterminingChanges() {
 
     // Update the node without applying changes.
     $node->save();
-    $this->assertEqual($node->label(), 'test_changes', 'No changes have been determined.');
+    $this->assertEquals($node->label(), 'test_changes', 'No changes have been determined.');
 
     // Apply changes.
     $node->title = 'updated';
@@ -158,11 +158,11 @@ public function testDeterminingChanges() {
 
     // The hook implementations node_test_node_presave() and
     // node_test_node_update() determine changes and change the title.
-    $this->assertEqual($node->label(), 'updated_presave_update', 'Changes have been determined.');
+    $this->assertEquals($node->label(), 'updated_presave_update', 'Changes have been determined.');
 
     // Test the static node load cache to be cleared.
     $node = Node::load($node->id());
-    $this->assertEqual($node->label(), 'updated_presave', 'Static cache has been cleared.');
+    $this->assertEquals($node->label(), 'updated_presave', 'Static cache has been cleared.');
   }
 
   /**
@@ -178,7 +178,7 @@ public function testNodeSaveOnInsert() {
     // node_test_node_insert() triggers a save on insert if the title equals
     // 'new'.
     $node = $this->drupalCreateNode(['title' => 'new']);
-    $this->assertEqual($node->getTitle(), 'Node ' . $node->id(), 'Node saved on node insert.');
+    $this->assertEquals($node->getTitle(), 'Node ' . $node->id(), 'Node saved on node insert.');
   }
 
 }
diff --git a/core/modules/node/tests/src/Functional/NodeTemplateSuggestionsTest.php b/core/modules/node/tests/src/Functional/NodeTemplateSuggestionsTest.php
index dcadf934de..42d34de1cf 100644
--- a/core/modules/node/tests/src/Functional/NodeTemplateSuggestionsTest.php
+++ b/core/modules/node/tests/src/Functional/NodeTemplateSuggestionsTest.php
@@ -23,7 +23,7 @@ public function testNodeThemeHookSuggestions() {
     $variables['elements'] = $build;
     $suggestions = \Drupal::moduleHandler()->invokeAll('theme_suggestions_node', [$variables]);
 
-    $this->assertEqual($suggestions, ['node__full', 'node__page', 'node__page__full', 'node__' . $node->id(), 'node__' . $node->id() . '__full'], 'Found expected node suggestions.');
+    $this->assertEquals($suggestions, ['node__full', 'node__page', 'node__page__full', 'node__' . $node->id(), 'node__' . $node->id() . '__full'], 'Found expected node suggestions.');
 
     // Change the view mode.
     $view_mode = 'node.my_custom_view_mode';
@@ -32,7 +32,7 @@ public function testNodeThemeHookSuggestions() {
     $variables['elements'] = $build;
     $suggestions = \Drupal::moduleHandler()->invokeAll('theme_suggestions_node', [$variables]);
 
-    $this->assertEqual($suggestions, ['node__node_my_custom_view_mode', 'node__page', 'node__page__node_my_custom_view_mode', 'node__' . $node->id(), 'node__' . $node->id() . '__node_my_custom_view_mode'], 'Found expected node suggestions.');
+    $this->assertEquals($suggestions, ['node__node_my_custom_view_mode', 'node__page', 'node__page__node_my_custom_view_mode', 'node__' . $node->id(), 'node__' . $node->id() . '__node_my_custom_view_mode'], 'Found expected node suggestions.');
   }
 
 }
diff --git a/core/modules/node/tests/src/Functional/NodeTestBase.php b/core/modules/node/tests/src/Functional/NodeTestBase.php
index 2ef0d73c50..1d63fc786b 100644
--- a/core/modules/node/tests/src/Functional/NodeTestBase.php
+++ b/core/modules/node/tests/src/Functional/NodeTestBase.php
@@ -58,7 +58,7 @@ protected function setUp() {
    */
   public function assertNodeAccess(array $ops, NodeInterface $node, AccountInterface $account) {
     foreach ($ops as $op => $result) {
-      $this->assertEqual($result, $this->accessHandler->access($node, $op, $account), $this->nodeAccessAssertMessage($op, $result, $node->language()->getId()));
+      $this->assertEquals($result, $this->accessHandler->access($node, $op, $account), $this->nodeAccessAssertMessage($op, $result, $node->language()->getId()));
     }
   }
 
@@ -76,7 +76,7 @@ public function assertNodeAccess(array $ops, NodeInterface $node, AccountInterfa
    *   to check. If NULL, the untranslated (fallback) access is checked.
    */
   public function assertNodeCreateAccess($bundle, $result, AccountInterface $account, $langcode = NULL) {
-    $this->assertEqual($result, $this->accessHandler->createAccess($bundle, $account, [
+    $this->assertEquals($result, $this->accessHandler->createAccess($bundle, $account, [
       'langcode' => $langcode,
     ]), $this->nodeAccessAssertMessage('create', $result, $langcode));
   }
diff --git a/core/modules/node/tests/src/Functional/NodeTitleTest.php b/core/modules/node/tests/src/Functional/NodeTitleTest.php
index 8c94f795ad..e690be7c9e 100644
--- a/core/modules/node/tests/src/Functional/NodeTitleTest.php
+++ b/core/modules/node/tests/src/Functional/NodeTitleTest.php
@@ -56,15 +56,15 @@ public function testNodeTitle() {
     // Test <title> tag.
     $this->drupalGet('node/' . $node->id());
     $xpath = '//title';
-    $this->assertEqual($this->xpath($xpath)[0]->getText(), $node->label() . ' | Drupal', 'Page title is equal to node title.', 'Node');
+    $this->assertEquals($this->xpath($xpath)[0]->getText(), $node->label() . ' | Drupal', 'Page title is equal to node title.', 'Node');
 
     // Test breadcrumb in comment preview.
     $this->drupalGet('comment/reply/node/' . $node->id() . '/comment');
     $xpath = '//nav[@class="breadcrumb"]/ol/li[last()]/a';
-    $this->assertEqual($this->xpath($xpath)[0]->getText(), $node->label(), 'Node breadcrumb is equal to node title.', 'Node');
+    $this->assertEquals($this->xpath($xpath)[0]->getText(), $node->label(), 'Node breadcrumb is equal to node title.', 'Node');
 
     // Test node title in comment preview.
-    $this->assertEqual($this->xpath('//article[contains(concat(" ", normalize-space(@class), " "), :node-class)]/h2/a/span', [':node-class' => ' node--type-' . $node->bundle() . ' '])[0]->getText(), $node->label(), 'Node preview title is equal to node title.', 'Node');
+    $this->assertEquals($this->xpath('//article[contains(concat(" ", normalize-space(@class), " "), :node-class)]/h2/a/span', [':node-class' => ' node--type-' . $node->bundle() . ' '])[0]->getText(), $node->label(), 'Node preview title is equal to node title.', 'Node');
 
     // Test node title is clickable on teaser list (/node).
     $this->drupalGet('node');
@@ -80,7 +80,7 @@ public function testNodeTitle() {
     $this->assertTitle(0 . ' | Drupal', 'Page title is equal to 0.', 'Node');
     // Test that 0 appears in the template <h1>.
     $xpath = '//h1';
-    $this->assertEqual(current($this->xpath($xpath)), 0, 'Node title is displayed as 0.', 'Node');
+    $this->assertEquals(current($this->xpath($xpath)), 0, 'Node title is displayed as 0.', 'Node');
 
     // Test edge case where node title contains special characters.
     $edge_case_title = 'article\'s "title".';
diff --git a/core/modules/node/tests/src/Functional/NodeTranslationUITest.php b/core/modules/node/tests/src/Functional/NodeTranslationUITest.php
index fa0ad13b3c..56add5d9a4 100644
--- a/core/modules/node/tests/src/Functional/NodeTranslationUITest.php
+++ b/core/modules/node/tests/src/Functional/NodeTranslationUITest.php
@@ -170,7 +170,7 @@ protected function doTestPublishedStatus() {
         // status first.
         $status = !$index;
         $translation = $entity->getTranslation($langcode);
-        $this->assertEqual($status, $this->manager->getTranslationMetadata($translation)->isPublished(), 'The translation has been correctly unpublished.');
+        $this->assertEquals($status, $this->manager->getTranslationMetadata($translation)->isPublished(), 'The translation has been correctly unpublished.');
       }
     }
   }
@@ -212,10 +212,10 @@ protected function doTestAuthoringInfo() {
     foreach ($this->langcodes as $langcode) {
       $translation = $entity->getTranslation($langcode);
       $metadata = $this->manager->getTranslationMetadata($translation);
-      $this->assertEqual($metadata->getAuthor()->id(), $values[$langcode]['uid'], 'Translation author correctly stored.');
-      $this->assertEqual($metadata->getCreatedTime(), $values[$langcode]['created'], 'Translation date correctly stored.');
-      $this->assertEqual($translation->isSticky(), $values[$langcode]['sticky'], 'Sticky of Translation correctly stored.');
-      $this->assertEqual($translation->isPromoted(), $values[$langcode]['promote'], 'Promoted of Translation correctly stored.');
+      $this->assertEquals($metadata->getAuthor()->id(), $values[$langcode]['uid'], 'Translation author correctly stored.');
+      $this->assertEquals($metadata->getCreatedTime(), $values[$langcode]['created'], 'Translation date correctly stored.');
+      $this->assertEquals($translation->isSticky(), $values[$langcode]['sticky'], 'Sticky of Translation correctly stored.');
+      $this->assertEquals($translation->isPromoted(), $values[$langcode]['promote'], 'Promoted of Translation correctly stored.');
     }
   }
 
@@ -261,7 +261,7 @@ public function testDisabledBundle() {
 
     // Make sure that nothing was inserted into the {content_translation} table.
     $rows = db_query('SELECT nid, count(nid) AS count FROM {node_field_data} WHERE type <> :type GROUP BY nid HAVING count(nid) >= 2', [':type' => $this->bundle])->fetchAll();
-    $this->assertEqual(0, count($rows));
+    $this->assertEquals(0, count($rows));
 
     // Ensure the translation tab is not accessible.
     $this->drupalGet('node/' . $node->id() . '/translations');
@@ -421,7 +421,7 @@ protected function doUninstallTest() {
     $language_count = count(\Drupal::configFactory()->listAll('language.content_settings.'));
     \Drupal::service('module_installer')->uninstall(['content_translation']);
     $this->rebuildContainer();
-    $this->assertEqual($language_count, count(\Drupal::configFactory()->listAll('language.content_settings.')), 'Languages have been fixed rather than deleted during content_translation uninstall.');
+    $this->assertEquals($language_count, count(\Drupal::configFactory()->listAll('language.content_settings.')), 'Languages have been fixed rather than deleted during content_translation uninstall.');
   }
 
   /**
diff --git a/core/modules/node/tests/src/Functional/NodeViewTest.php b/core/modules/node/tests/src/Functional/NodeViewTest.php
index b0eaa47f66..32e000f26d 100644
--- a/core/modules/node/tests/src/Functional/NodeViewTest.php
+++ b/core/modules/node/tests/src/Functional/NodeViewTest.php
@@ -21,7 +21,7 @@ public function testHtmlHeadLinks() {
     $this->drupalGet($node->urlInfo());
 
     $result = $this->xpath('//link[@rel = "canonical"]');
-    $this->assertEqual($result[0]->getAttribute('href'), $node->url());
+    $this->assertEquals($result[0]->getAttribute('href'), $node->url());
 
     // Link relations are checked for access for anonymous users.
     $result = $this->xpath('//link[@rel = "version-history"]');
@@ -34,14 +34,14 @@ public function testHtmlHeadLinks() {
     $this->drupalGet($node->urlInfo());
 
     $result = $this->xpath('//link[@rel = "canonical"]');
-    $this->assertEqual($result[0]->getAttribute('href'), $node->url());
+    $this->assertEquals($result[0]->getAttribute('href'), $node->url());
 
     // Link relations are present regardless of access for authenticated users.
     $result = $this->xpath('//link[@rel = "version-history"]');
-    $this->assertEqual($result[0]->getAttribute('href'), $node->url('version-history'));
+    $this->assertEquals($result[0]->getAttribute('href'), $node->url('version-history'));
 
     $result = $this->xpath('//link[@rel = "edit-form"]');
-    $this->assertEqual($result[0]->getAttribute('href'), $node->url('edit-form'));
+    $this->assertEquals($result[0]->getAttribute('href'), $node->url('edit-form'));
 
     // Give anonymous users access to edit the node. Do this through the UI to
     // ensure caches are handled properly.
@@ -56,13 +56,13 @@ public function testHtmlHeadLinks() {
     // version-history link.
     $this->drupalGet($node->urlInfo());
     $result = $this->xpath('//link[@rel = "canonical"]');
-    $this->assertEqual($result[0]->getAttribute('href'), $node->url());
+    $this->assertEquals($result[0]->getAttribute('href'), $node->url());
 
     $result = $this->xpath('//link[@rel = "version-history"]');
     $this->assertFalse($result, 'Version history not present for anonymous users without access.');
 
     $result = $this->xpath('//link[@rel = "edit-form"]');
-    $this->assertEqual($result[0]->getAttribute('href'), $node->url('edit-form'));
+    $this->assertEquals($result[0]->getAttribute('href'), $node->url('edit-form'));
   }
 
   /**
@@ -80,7 +80,7 @@ public function testLinkHeader() {
     $this->drupalGet($node->urlInfo());
 
     $links = $this->drupalGetHeaders()['Link'];
-    $this->assertEqual($links, $expected);
+    $this->assertEquals($links, $expected);
   }
 
   /**
@@ -92,7 +92,7 @@ public function testMultiByteUtf8() {
     $node = $this->drupalCreateNode(['title' => $title]);
     $this->drupalGet($node->urlInfo());
     $result = $this->xpath('//span[contains(@class, "field--name-title")]');
-    $this->assertEqual($result[0]->getText(), $title, 'The passed title was returned.');
+    $this->assertEquals($result[0]->getText(), $title, 'The passed title was returned.');
   }
 
 }
diff --git a/core/modules/node/tests/src/Functional/Update/NodeUpdateTest.php b/core/modules/node/tests/src/Functional/Update/NodeUpdateTest.php
index 223676b31e..8ee3ebcdf1 100644
--- a/core/modules/node/tests/src/Functional/Update/NodeUpdateTest.php
+++ b/core/modules/node/tests/src/Functional/Update/NodeUpdateTest.php
@@ -36,7 +36,7 @@ public function testPublishedEntityKey() {
 
     // Check that the entity key exists and it has the correct value.
     $entity_type = \Drupal::entityDefinitionUpdateManager()->getEntityType('node');
-    $this->assertEqual('status', $entity_type->getKey('published'));
+    $this->assertEquals('status', $entity_type->getKey('published'));
   }
 
   /**
@@ -59,8 +59,8 @@ public function testStatusCheckbox() {
      */
     foreach ($form_displays as $id => $form_display) {
       $component = $form_display->getComponent('status');
-      $this->assertEqual('boolean_checkbox', $component['type']);
-      $this->assertEqual(['display_label' => TRUE], $component['settings']);
+      $this->assertEquals('boolean_checkbox', $component['type']);
+      $this->assertEquals(['display_label' => TRUE], $component['settings']);
     }
   }
 
diff --git a/core/modules/node/tests/src/Functional/Views/BulkFormAccessTest.php b/core/modules/node/tests/src/Functional/Views/BulkFormAccessTest.php
index 194b9b06ce..20b51edc2b 100644
--- a/core/modules/node/tests/src/Functional/Views/BulkFormAccessTest.php
+++ b/core/modules/node/tests/src/Functional/Views/BulkFormAccessTest.php
@@ -80,7 +80,7 @@ public function testNodeEditAccess() {
     $this->assertTrue($node->isPublished(), 'Node is initially published.');
 
     // Ensure that the node can not be edited.
-    $this->assertEqual(FALSE, $this->accessHandler->access($node, 'update', $account), 'The node may not be edited.');
+    $this->assertEquals(FALSE, $this->accessHandler->access($node, 'update', $account), 'The node may not be edited.');
 
     // Test editing the node using the bulk form.
     $edit = [
@@ -107,8 +107,8 @@ public function testNodeEditAccess() {
     $this->assertTrue($node->isPublished(), 'Node is initially published.');
 
     // Ensure that the private node can not be edited.
-    $this->assertEqual(FALSE, $node->access('update', $account), 'The node may not be edited.');
-    $this->assertEqual(TRUE, $node->status->access('edit', $account), 'The node status can be edited.');
+    $this->assertEquals(FALSE, $node->access('update', $account), 'The node may not be edited.');
+    $this->assertEquals(TRUE, $node->status->access('edit', $account), 'The node status can be edited.');
 
     // Test editing the node using the bulk form.
     $edit = [
@@ -154,9 +154,9 @@ public function testNodeDeleteAccess() {
     $this->drupalLogin($account);
 
     // Ensure that the private node can not be deleted.
-    $this->assertEqual(FALSE, $this->accessHandler->access($private_node, 'delete', $account), 'The private node may not be deleted.');
+    $this->assertEquals(FALSE, $this->accessHandler->access($private_node, 'delete', $account), 'The private node may not be deleted.');
     // Ensure that the public node may be deleted.
-    $this->assertEqual(TRUE, $this->accessHandler->access($own_node, 'delete', $account), 'The own node may be deleted.');
+    $this->assertEquals(TRUE, $this->accessHandler->access($own_node, 'delete', $account), 'The own node may be deleted.');
 
     // Try to delete the node using the bulk form.
     $edit = [
diff --git a/core/modules/node/tests/src/Functional/Views/BulkFormTest.php b/core/modules/node/tests/src/Functional/Views/BulkFormTest.php
index 319890b6fb..234cf7d732 100644
--- a/core/modules/node/tests/src/Functional/Views/BulkFormTest.php
+++ b/core/modules/node/tests/src/Functional/Views/BulkFormTest.php
@@ -83,7 +83,7 @@ protected function setUp($import_test_views = TRUE) {
     // Check that all created translations are selected by the test view.
     $view = Views::getView('test_node_bulk_form');
     $view->execute();
-    $this->assertEqual(count($view->result), 10, 'All created translations are selected.');
+    $this->assertEquals(count($view->result), 10, 'All created translations are selected.');
 
     // Check the operations are accessible to the logged in user.
     $this->drupalLogin($this->drupalCreateUser(['administer nodes', 'access content overview', 'bypass node access']));
diff --git a/core/modules/node/tests/src/Functional/Views/FilterNodeAccessTest.php b/core/modules/node/tests/src/Functional/Views/FilterNodeAccessTest.php
index 7eb7097d9d..a4088f78d4 100644
--- a/core/modules/node/tests/src/Functional/Views/FilterNodeAccessTest.php
+++ b/core/modules/node/tests/src/Functional/Views/FilterNodeAccessTest.php
@@ -67,7 +67,7 @@ protected function setUp($import_test_views = TRUE) {
         ];
 
         $node = $this->drupalCreateNode($settings);
-        $this->assertEqual($is_private, (int) $node->private->value, 'The private status of the node was properly set in the node_access_test table.');
+        $this->assertEquals($is_private, (int) $node->private->value, 'The private status of the node was properly set in the node_access_test table.');
       }
     }
   }
diff --git a/core/modules/node/tests/src/Functional/Views/FrontPageTest.php b/core/modules/node/tests/src/Functional/Views/FrontPageTest.php
index 37a6b91f3f..ce3aff8c2c 100644
--- a/core/modules/node/tests/src/Functional/Views/FrontPageTest.php
+++ b/core/modules/node/tests/src/Functional/Views/FrontPageTest.php
@@ -77,7 +77,7 @@ public function testFrontPage() {
     $this->executeView($view);
     $view->preview();
 
-    $this->assertEqual($view->getTitle(), format_string('Welcome to @site_name', ['@site_name' => $site_name]), 'The welcome title is used for the empty view.');
+    $this->assertEquals($view->getTitle(), format_string('Welcome to @site_name', ['@site_name' => $site_name]), 'The welcome title is used for the empty view.');
     $view->destroy();
 
     // Create some nodes on the frontpage view. Add more than 10 nodes in order
diff --git a/core/modules/node/tests/src/Functional/Views/NodeFieldFilterTest.php b/core/modules/node/tests/src/Functional/Views/NodeFieldFilterTest.php
index c2ee2f2763..5c3ecda89a 100644
--- a/core/modules/node/tests/src/Functional/Views/NodeFieldFilterTest.php
+++ b/core/modules/node/tests/src/Functional/Views/NodeFieldFilterTest.php
@@ -105,7 +105,7 @@ protected function assertPageCounts($path, $counts, $message) {
     // page, and they are the same. So the title/body string should appear on
     // the page twice as many times as the input count.
     foreach ($counts as $langcode => $count) {
-      $this->assertEqual(substr_count($text, $this->nodeTitles[$langcode]), 2 * $count, 'Translation ' . $langcode . ' has count ' . $count . ' with ' . $message);
+      $this->assertEquals(substr_count($text, $this->nodeTitles[$langcode]), 2 * $count, 'Translation ' . $langcode . ' has count ' . $count . ' with ' . $message);
     }
   }
 
diff --git a/core/modules/node/tests/src/Functional/Views/NodeIntegrationTest.php b/core/modules/node/tests/src/Functional/Views/NodeIntegrationTest.php
index 0f855d728b..0e16065b5e 100644
--- a/core/modules/node/tests/src/Functional/Views/NodeIntegrationTest.php
+++ b/core/modules/node/tests/src/Functional/Views/NodeIntegrationTest.php
@@ -61,7 +61,7 @@ protected function assertNids(array $expected_nids = []) {
     foreach ($result as $element) {
       $nids[] = (int) $element->getText();
     }
-    $this->assertEqual($nids, $expected_nids);
+    $this->assertEquals($nids, $expected_nids);
   }
 
 }
diff --git a/core/modules/node/tests/src/Functional/Views/NodeRevisionWizardTest.php b/core/modules/node/tests/src/Functional/Views/NodeRevisionWizardTest.php
index 4cbecf314e..5b2c9c9ad4 100644
--- a/core/modules/node/tests/src/Functional/Views/NodeRevisionWizardTest.php
+++ b/core/modules/node/tests/src/Functional/Views/NodeRevisionWizardTest.php
@@ -48,11 +48,11 @@ public function testViewAdd() {
     $view = Views::getView($view['id']);
     $view->initHandlers();
 
-    $this->assertEqual($view->getBaseTables(), ['node_field_revision' => TRUE, '#global' => TRUE]);
+    $this->assertEquals($view->getBaseTables(), ['node_field_revision' => TRUE, '#global' => TRUE]);
 
     // Check for the default filters.
-    $this->assertEqual($view->filter['status']->table, 'node_field_revision');
-    $this->assertEqual($view->filter['status']->field, 'status');
+    $this->assertEquals($view->filter['status']->table, 'node_field_revision');
+    $this->assertEquals($view->filter['status']->field, 'status');
     $this->assertTrue($view->filter['status']->value);
 
     $this->executeView($view);
diff --git a/core/modules/node/tests/src/Functional/Views/PathPluginTest.php b/core/modules/node/tests/src/Functional/Views/PathPluginTest.php
index d8d088d978..22e97b299f 100644
--- a/core/modules/node/tests/src/Functional/Views/PathPluginTest.php
+++ b/core/modules/node/tests/src/Functional/Views/PathPluginTest.php
@@ -68,7 +68,7 @@ public function testPathPlugin() {
     // The configured deprecated node path plugin should be converted to the
     // entity link plugin.
     $field = $view->getHandler('page_1', 'field', 'path');
-    $this->assertEqual('entity_link', $field['plugin_id']);
+    $this->assertEquals('entity_link', $field['plugin_id']);
 
     $view->initDisplay();
     $view->setDisplay('page_1');
diff --git a/core/modules/node/tests/src/Kernel/Config/NodeImportChangeTest.php b/core/modules/node/tests/src/Kernel/Config/NodeImportChangeTest.php
index e1b17f2c1c..9105836215 100644
--- a/core/modules/node/tests/src/Kernel/Config/NodeImportChangeTest.php
+++ b/core/modules/node/tests/src/Kernel/Config/NodeImportChangeTest.php
@@ -53,7 +53,7 @@ public function testImportChange() {
 
     // Check that the updated config was correctly imported.
     $node_type = NodeType::load($node_type_id);
-    $this->assertEqual($node_type->label(), $new_label, 'Node type name has been updated.');
+    $this->assertEquals($node_type->label(), $new_label, 'Node type name has been updated.');
   }
 
 }
diff --git a/core/modules/node/tests/src/Kernel/Migrate/d7/MigrateNodeSettingsTest.php b/core/modules/node/tests/src/Kernel/Migrate/d7/MigrateNodeSettingsTest.php
index dcae81b8c0..93402bce38 100644
--- a/core/modules/node/tests/src/Kernel/Migrate/d7/MigrateNodeSettingsTest.php
+++ b/core/modules/node/tests/src/Kernel/Migrate/d7/MigrateNodeSettingsTest.php
@@ -34,7 +34,7 @@ protected function setUp() {
    */
   public function testAggregatorSettings() {
     $config = $this->config('node.settings');
-    $this->assertEqual(1, $config->get('use_admin_theme'));
+    $this->assertEquals(1, $config->get('use_admin_theme'));
   }
 
 }
diff --git a/core/modules/node/tests/src/Kernel/NodeConditionTest.php b/core/modules/node/tests/src/Kernel/NodeConditionTest.php
index a30867cb8b..7cc20bd385 100644
--- a/core/modules/node/tests/src/Kernel/NodeConditionTest.php
+++ b/core/modules/node/tests/src/Kernel/NodeConditionTest.php
@@ -49,19 +49,19 @@ public function testConditions() {
       ->setContextValue('node', $page);
     $this->assertFalse($condition->execute(), 'Page type nodes fail node type checks for articles.');
     // Check for the proper summary.
-    $this->assertEqual('The node bundle is article', $condition->summary());
+    $this->assertEquals('The node bundle is article', $condition->summary());
 
     // Set the node type check to page.
     $condition->setConfig('bundles', ['page' => 'page']);
     $this->assertTrue($condition->execute(), 'Page type nodes pass node type checks for pages');
     // Check for the proper summary.
-    $this->assertEqual('The node bundle is page', $condition->summary());
+    $this->assertEquals('The node bundle is page', $condition->summary());
 
     // Set the node type check to page or article.
     $condition->setConfig('bundles', ['page' => 'page', 'article' => 'article']);
     $this->assertTrue($condition->execute(), 'Page type nodes pass node type checks for pages or articles');
     // Check for the proper summary.
-    $this->assertEqual('The node bundle is page or article', $condition->summary());
+    $this->assertEquals('The node bundle is page or article', $condition->summary());
 
     // Set the context to the article node.
     $condition->setContextValue('node', $article);
@@ -73,7 +73,7 @@ public function testConditions() {
 
     // Check a greater than 2 bundles summary scenario.
     $condition->setConfig('bundles', ['page' => 'page', 'article' => 'article', 'test' => 'test']);
-    $this->assertEqual('The node bundle is page, article or test', $condition->summary());
+    $this->assertEquals('The node bundle is page, article or test', $condition->summary());
 
     // Test Constructor injection.
     $condition = $manager->createInstance('node_type', ['bundles' => ['article' => 'article'], 'context' => ['node' => $article]]);
diff --git a/core/modules/node/tests/src/Kernel/NodeFieldOverridesTest.php b/core/modules/node/tests/src/Kernel/NodeFieldOverridesTest.php
index 7c7bc03348..03cf387e28 100644
--- a/core/modules/node/tests/src/Kernel/NodeFieldOverridesTest.php
+++ b/core/modules/node/tests/src/Kernel/NodeFieldOverridesTest.php
@@ -53,12 +53,12 @@ public function testFieldOverrides() {
     $uid_field = \Drupal::entityManager()->getBaseFieldDefinitions('node')['uid'];
     $config = $uid_field->getConfig('ponies');
     $config->save();
-    $this->assertEqual($config->get('default_value_callback'), 'Drupal\node\Entity\Node::getCurrentUserId');
+    $this->assertEquals($config->get('default_value_callback'), 'Drupal\node\Entity\Node::getCurrentUserId');
     /** @var \Drupal\node\NodeInterface $node */
     $node = Node::create(['type' => 'ponies']);
     $owner = $node->getOwner();
     $this->assertTrue($owner instanceof UserInterface);
-    $this->assertEqual($owner->id(), $this->user->id());
+    $this->assertEquals($owner->id(), $this->user->id());
   }
 
 }
diff --git a/core/modules/node/tests/src/Kernel/NodeListBuilderTest.php b/core/modules/node/tests/src/Kernel/NodeListBuilderTest.php
index 0a0f145dd9..d1262375a4 100644
--- a/core/modules/node/tests/src/Kernel/NodeListBuilderTest.php
+++ b/core/modules/node/tests/src/Kernel/NodeListBuilderTest.php
@@ -34,7 +34,7 @@ public function testCacheContexts() {
     $build = $list_builder->render();
     $this->container->get('renderer')->renderRoot($build);
 
-    $this->assertEqual(['languages:' . LanguageInterface::TYPE_INTERFACE, 'theme', 'url.query_args.pagers:0', 'user.node_grants:view', 'user.permissions'], $build['#cache']['contexts']);
+    $this->assertEquals(['languages:' . LanguageInterface::TYPE_INTERFACE, 'theme', 'url.query_args.pagers:0', 'user.node_grants:view', 'user.permissions'], $build['#cache']['contexts']);
   }
 
 }
diff --git a/core/modules/node/tests/src/Kernel/NodeOwnerTest.php b/core/modules/node/tests/src/Kernel/NodeOwnerTest.php
index c12f3115c1..8b6c457fef 100644
--- a/core/modules/node/tests/src/Kernel/NodeOwnerTest.php
+++ b/core/modules/node/tests/src/Kernel/NodeOwnerTest.php
@@ -55,7 +55,7 @@ public function testOwner() {
     ]);
     $english->save();
 
-    $this->assertEqual($user->id(), $english->getOwnerId());
+    $this->assertEquals($user->id(), $english->getOwnerId());
 
     $german = $english->addTranslation('de');
     $german->title = $this->randomString();
@@ -70,9 +70,9 @@ public function testOwner() {
     // Entity::save() saves all translations!
     $italian->save();
 
-    $this->assertEqual(0, $english->getOwnerId());
-    $this->assertEqual(0, $german->getOwnerId());
-    $this->assertEqual(0, $italian->getOwnerId());
+    $this->assertEquals(0, $english->getOwnerId());
+    $this->assertEquals(0, $german->getOwnerId());
+    $this->assertEquals(0, $italian->getOwnerId());
   }
 
 }
diff --git a/core/modules/node/tests/src/Kernel/NodeTokenReplaceTest.php b/core/modules/node/tests/src/Kernel/NodeTokenReplaceTest.php
index dd39b6d26d..022682adb8 100644
--- a/core/modules/node/tests/src/Kernel/NodeTokenReplaceTest.php
+++ b/core/modules/node/tests/src/Kernel/NodeTokenReplaceTest.php
@@ -102,8 +102,8 @@ public function testNodeTokenReplacement() {
     foreach ($tests as $input => $expected) {
       $bubbleable_metadata = new BubbleableMetadata();
       $output = $this->tokenService->replace($input, ['node' => $node], ['langcode' => $this->interfaceLanguage->getId()], $bubbleable_metadata);
-      $this->assertEqual($output, $expected, format_string('Node token %token replaced.', ['%token' => $input]));
-      $this->assertEqual($bubbleable_metadata, $metadata_tests[$input]);
+      $this->assertEquals($output, $expected, format_string('Node token %token replaced.', ['%token' => $input]));
+      $this->assertEquals($bubbleable_metadata, $metadata_tests[$input]);
     }
 
     // Repeat for a node without a summary.
@@ -124,7 +124,7 @@ public function testNodeTokenReplacement() {
 
     foreach ($tests as $input => $expected) {
       $output = $this->tokenService->replace($input, ['node' => $node], ['language' => $this->interfaceLanguage]);
-      $this->assertEqual($output, $expected, new FormattableMarkup('Node token %token replaced for node without a summary.', ['%token' => $input]));
+      $this->assertEquals($output, $expected, new FormattableMarkup('Node token %token replaced for node without a summary.', ['%token' => $input]));
     }
   }
 
diff --git a/core/modules/node/tests/src/Kernel/NodeValidationTest.php b/core/modules/node/tests/src/Kernel/NodeValidationTest.php
index e111faeaef..c141983a70 100644
--- a/core/modules/node/tests/src/Kernel/NodeValidationTest.php
+++ b/core/modules/node/tests/src/Kernel/NodeValidationTest.php
@@ -38,24 +38,24 @@ public function testValidation() {
     $this->createUser();
     $node = Node::create(['type' => 'page', 'title' => 'test', 'uid' => 1]);
     $violations = $node->validate();
-    $this->assertEqual(count($violations), 0, 'No violations when validating a default node.');
+    $this->assertEquals(count($violations), 0, 'No violations when validating a default node.');
 
     $node->set('title', $this->randomString(256));
     $violations = $node->validate();
-    $this->assertEqual(count($violations), 1, 'Violation found when title is too long.');
-    $this->assertEqual($violations[0]->getPropertyPath(), 'title.0.value');
-    $this->assertEqual($violations[0]->getMessage(), '<em class="placeholder">Title</em>: may not be longer than 255 characters.');
+    $this->assertEquals(count($violations), 1, 'Violation found when title is too long.');
+    $this->assertEquals($violations[0]->getPropertyPath(), 'title.0.value');
+    $this->assertEquals($violations[0]->getMessage(), '<em class="placeholder">Title</em>: may not be longer than 255 characters.');
 
     $node->set('title', NULL);
     $violations = $node->validate();
-    $this->assertEqual(count($violations), 1, 'Violation found when title is not set.');
-    $this->assertEqual($violations[0]->getPropertyPath(), 'title');
-    $this->assertEqual($violations[0]->getMessage(), 'This value should not be null.');
+    $this->assertEquals(count($violations), 1, 'Violation found when title is not set.');
+    $this->assertEquals($violations[0]->getPropertyPath(), 'title');
+    $this->assertEquals($violations[0]->getMessage(), 'This value should not be null.');
 
     $node->set('title', '');
     $violations = $node->validate();
-    $this->assertEqual(count($violations), 1, 'Violation found when title is set to an empty string.');
-    $this->assertEqual($violations[0]->getPropertyPath(), 'title');
+    $this->assertEquals(count($violations), 1, 'Violation found when title is set to an empty string.');
+    $this->assertEquals($violations[0]->getPropertyPath(), 'title');
 
     // Make the title valid again.
     $node->set('title', $this->randomString());
@@ -64,9 +64,9 @@ public function testValidation() {
     // Set the changed date to something in the far past.
     $node->set('changed', 433918800);
     $violations = $node->validate();
-    $this->assertEqual(count($violations), 1, 'Violation found when changed date is before the last changed date.');
-    $this->assertEqual($violations[0]->getPropertyPath(), '');
-    $this->assertEqual($violations[0]->getMessage(), 'The content has either been modified by another user, or you have already submitted modifications. As a result, your changes cannot be saved.');
+    $this->assertEquals(count($violations), 1, 'Violation found when changed date is before the last changed date.');
+    $this->assertEquals($violations[0]->getPropertyPath(), '');
+    $this->assertEquals($violations[0]->getMessage(), 'The content has either been modified by another user, or you have already submitted modifications. As a result, your changes cannot be saved.');
   }
 
 }
diff --git a/core/modules/node/tests/src/Kernel/Views/NidArgumentTest.php b/core/modules/node/tests/src/Kernel/Views/NidArgumentTest.php
index 78ec67b19c..7fe10de04d 100644
--- a/core/modules/node/tests/src/Kernel/Views/NidArgumentTest.php
+++ b/core/modules/node/tests/src/Kernel/Views/NidArgumentTest.php
@@ -59,22 +59,22 @@ public function testNidArgument() {
     $node2->save();
 
     $view->preview();
-    $this->assertEqual(count($view->result), 2, 'Found the expected number of results.');
+    $this->assertEquals(count($view->result), 2, 'Found the expected number of results.');
 
     // Set an the second node id as an argument.
     $view->destroy();
     $view->preview('default', [$node2->id()]);
     // Verify that the title is overridden.
-    $this->assertEqual($view->getTitle(), $node2->getTitle());
+    $this->assertEquals($view->getTitle(), $node2->getTitle());
     // Verify that the argument filtering works.
-    $this->assertEqual(count($view->result), 1, 'Found the expected number of results.');
-    $this->assertEqual($node2->id(), (string) $view->style_plugin->getField(0, 'nid'), 'Found the correct nid.');
+    $this->assertEquals(count($view->result), 1, 'Found the expected number of results.');
+    $this->assertEquals($node2->id(), (string) $view->style_plugin->getField(0, 'nid'), 'Found the correct nid.');
 
     // Verify that setting a non-existing id as argument results in no nodes
     // being shown.
     $view->destroy();
     $view->preview('default', [22]);
-    $this->assertEqual(count($view->result), 0, 'Found the expected number of results.');
+    $this->assertEquals(count($view->result), 0, 'Found the expected number of results.');
   }
 
 }
diff --git a/core/modules/node/tests/src/Traits/ContentTypeCreationTrait.php b/core/modules/node/tests/src/Traits/ContentTypeCreationTrait.php
index e633dad353..7827b26d56 100644
--- a/core/modules/node/tests/src/Traits/ContentTypeCreationTrait.php
+++ b/core/modules/node/tests/src/Traits/ContentTypeCreationTrait.php
@@ -45,7 +45,7 @@ protected function createContentType(array $values = []) {
       $this->assertSame($status, SAVED_NEW, (new FormattableMarkup('Created content type %type.', ['%type' => $type->id()]))->__toString());
     }
     else {
-      $this->assertEqual($status, SAVED_NEW, (new FormattableMarkup('Created content type %type.', ['%type' => $type->id()]))->__toString());
+      $this->assertEquals($status, SAVED_NEW, (new FormattableMarkup('Created content type %type.', ['%type' => $type->id()]))->__toString());
     }
 
     return $type;
diff --git a/core/modules/options/tests/src/Functional/OptionsDynamicValuesApiTest.php b/core/modules/options/tests/src/Functional/OptionsDynamicValuesApiTest.php
index a96fd7a04b..733230d025 100644
--- a/core/modules/options/tests/src/Functional/OptionsDynamicValuesApiTest.php
+++ b/core/modules/options/tests/src/Functional/OptionsDynamicValuesApiTest.php
@@ -17,7 +17,7 @@ class OptionsDynamicValuesApiTest extends OptionsDynamicValuesTestBase {
   public function testOptionsAllowedValues() {
     // Test allowed values without passed $items.
     $values = options_allowed_values($this->fieldStorage);
-    $this->assertEqual([], $values);
+    $this->assertEquals([], $values);
 
     $values = options_allowed_values($this->fieldStorage, $this->entity);
 
@@ -28,7 +28,7 @@ public function testOptionsAllowedValues() {
       $this->entity->bundle(),
     ];
     $expected_values = array_combine($expected_values, $expected_values);
-    $this->assertEqual($expected_values, $values);
+    $this->assertEquals($expected_values, $values);
   }
 
 }
diff --git a/core/modules/options/tests/src/Functional/OptionsDynamicValuesValidationTest.php b/core/modules/options/tests/src/Functional/OptionsDynamicValuesValidationTest.php
index 9205011ed8..cdc40cee66 100644
--- a/core/modules/options/tests/src/Functional/OptionsDynamicValuesValidationTest.php
+++ b/core/modules/options/tests/src/Functional/OptionsDynamicValuesValidationTest.php
@@ -16,14 +16,14 @@ public function testDynamicAllowedValues() {
     foreach ($this->test as $key => $value) {
       $this->entity->test_options->value = $value;
       $violations = $this->entity->test_options->validate();
-      $this->assertEqual(count($violations), 0, "$key is a valid value");
+      $this->assertEquals(count($violations), 0, "$key is a valid value");
     }
 
     // Now verify that validation does not pass against anything else.
     foreach ($this->test as $key => $value) {
       $this->entity->test_options->value = is_numeric($value) ? (100 - $value) : ('X' . $value);
       $violations = $this->entity->test_options->validate();
-      $this->assertEqual(count($violations), 1, "$key is not a valid value");
+      $this->assertEquals(count($violations), 1, "$key is not a valid value");
     }
   }
 
diff --git a/core/modules/options/tests/src/Functional/OptionsFieldUITest.php b/core/modules/options/tests/src/Functional/OptionsFieldUITest.php
index ec5874b2e0..6a35624205 100644
--- a/core/modules/options/tests/src/Functional/OptionsFieldUITest.php
+++ b/core/modules/options/tests/src/Functional/OptionsFieldUITest.php
@@ -348,7 +348,7 @@ public function testNodeDisplay() {
       }
 
       $elements = $this->xpath('//div[text()="' . $output . '"]');
-      $this->assertEqual(count($elements), 1, 'Correct options found.');
+      $this->assertEquals(count($elements), 1, 'Correct options found.');
     }
   }
 
diff --git a/core/modules/options/tests/src/Functional/OptionsSelectDynamicValuesTest.php b/core/modules/options/tests/src/Functional/OptionsSelectDynamicValuesTest.php
index b661c0d536..b5a7ac0c93 100644
--- a/core/modules/options/tests/src/Functional/OptionsSelectDynamicValuesTest.php
+++ b/core/modules/options/tests/src/Functional/OptionsSelectDynamicValuesTest.php
@@ -22,7 +22,7 @@ public function testSelectListDynamic() {
     // Display form.
     $this->drupalGet('entity_test_rev/manage/' . $this->entity->id() . '/edit');
     $options = $this->xpath('//select[@id="edit-test-options"]/option');
-    $this->assertEqual(count($options), count($this->test) + 1);
+    $this->assertEquals(count($options), count($this->test) + 1);
     foreach ($options as $option) {
       $value = (string) $option['value'];
       if ($value != '_none') {
diff --git a/core/modules/options/tests/src/Kernel/OptionsFormattersTest.php b/core/modules/options/tests/src/Kernel/OptionsFormattersTest.php
index 93607f6f9d..80b602c62a 100644
--- a/core/modules/options/tests/src/Kernel/OptionsFormattersTest.php
+++ b/core/modules/options/tests/src/Kernel/OptionsFormattersTest.php
@@ -30,12 +30,12 @@ public function testFormatter() {
     $items = $entity->get($this->fieldName);
 
     $build = $items->view();
-    $this->assertEqual($build['#formatter'], 'list_default', 'Ensure to fall back to the default formatter.');
-    $this->assertEqual($build[0]['#markup'], 'One');
+    $this->assertEquals($build['#formatter'], 'list_default', 'Ensure to fall back to the default formatter.');
+    $this->assertEquals($build[0]['#markup'], 'One');
 
     $build = $items->view(['type' => 'list_key']);
-    $this->assertEqual($build['#formatter'], 'list_key', 'The chosen formatter is used.');
-    $this->assertEqual((string) $build[0]['#markup'], 1);
+    $this->assertEquals($build['#formatter'], 'list_key', 'The chosen formatter is used.');
+    $this->assertEquals((string) $build[0]['#markup'], 1);
   }
 
 }
diff --git a/core/modules/options/tests/src/Kernel/Views/FileViewsDataTest.php b/core/modules/options/tests/src/Kernel/Views/FileViewsDataTest.php
index c5f2902d05..fae0f6cdf7 100644
--- a/core/modules/options/tests/src/Kernel/Views/FileViewsDataTest.php
+++ b/core/modules/options/tests/src/Kernel/Views/FileViewsDataTest.php
@@ -42,21 +42,21 @@ public function testRelationshipViewsData() {
     // Check the generated views data.
     $views_data = Views::viewsData()->get('entity_test__field_base_file');
     $relationship = $views_data['field_base_file_target_id']['relationship'];
-    $this->assertEqual($relationship['id'], 'standard');
-    $this->assertEqual($relationship['base'], 'file_managed');
-    $this->assertEqual($relationship['base field'], 'fid');
-    $this->assertEqual($relationship['entity type'], 'file');
+    $this->assertEquals($relationship['id'], 'standard');
+    $this->assertEquals($relationship['base'], 'file_managed');
+    $this->assertEquals($relationship['base field'], 'fid');
+    $this->assertEquals($relationship['entity type'], 'file');
     // Check the backwards reference.
     $views_data = Views::viewsData()->get('file_managed');
     $relationship = $views_data['reverse_field_base_file_entity_test']['relationship'];
-    $this->assertEqual($relationship['id'], 'entity_reverse');
-    $this->assertEqual($relationship['base'], 'entity_test');
-    $this->assertEqual($relationship['base field'], 'id');
-    $this->assertEqual($relationship['field table'], 'entity_test__field_base_file');
-    $this->assertEqual($relationship['field field'], 'field_base_file_target_id');
-    $this->assertEqual($relationship['field_name'], 'field_base_file');
-    $this->assertEqual($relationship['entity_type'], 'entity_test');
-    $this->assertEqual($relationship['join_extra'][0], ['field' => 'deleted', 'value' => 0, 'numeric' => TRUE]);
+    $this->assertEquals($relationship['id'], 'entity_reverse');
+    $this->assertEquals($relationship['base'], 'entity_test');
+    $this->assertEquals($relationship['base field'], 'id');
+    $this->assertEquals($relationship['field table'], 'entity_test__field_base_file');
+    $this->assertEquals($relationship['field field'], 'field_base_file_target_id');
+    $this->assertEquals($relationship['field_name'], 'field_base_file');
+    $this->assertEquals($relationship['entity_type'], 'entity_test');
+    $this->assertEquals($relationship['join_extra'][0], ['field' => 'deleted', 'value' => 0, 'numeric' => TRUE]);
 
     // Create file field to entity_test_mul.
     FieldStorageConfig::create([
@@ -72,21 +72,21 @@ public function testRelationshipViewsData() {
     // Check the generated views data.
     $views_data = Views::viewsData()->get('entity_test_mul__field_data_file');
     $relationship = $views_data['field_data_file_target_id']['relationship'];
-    $this->assertEqual($relationship['id'], 'standard');
-    $this->assertEqual($relationship['base'], 'file_managed');
-    $this->assertEqual($relationship['base field'], 'fid');
-    $this->assertEqual($relationship['entity type'], 'file');
+    $this->assertEquals($relationship['id'], 'standard');
+    $this->assertEquals($relationship['base'], 'file_managed');
+    $this->assertEquals($relationship['base field'], 'fid');
+    $this->assertEquals($relationship['entity type'], 'file');
     // Check the backwards reference.
     $views_data = Views::viewsData()->get('file_managed');
     $relationship = $views_data['reverse_field_data_file_entity_test_mul']['relationship'];
-    $this->assertEqual($relationship['id'], 'entity_reverse');
-    $this->assertEqual($relationship['base'], 'entity_test_mul_property_data');
-    $this->assertEqual($relationship['base field'], 'id');
-    $this->assertEqual($relationship['field table'], 'entity_test_mul__field_data_file');
-    $this->assertEqual($relationship['field field'], 'field_data_file_target_id');
-    $this->assertEqual($relationship['field_name'], 'field_data_file');
-    $this->assertEqual($relationship['entity_type'], 'entity_test_mul');
-    $this->assertEqual($relationship['join_extra'][0], ['field' => 'deleted', 'value' => 0, 'numeric' => TRUE]);
+    $this->assertEquals($relationship['id'], 'entity_reverse');
+    $this->assertEquals($relationship['base'], 'entity_test_mul_property_data');
+    $this->assertEquals($relationship['base field'], 'id');
+    $this->assertEquals($relationship['field table'], 'entity_test_mul__field_data_file');
+    $this->assertEquals($relationship['field field'], 'field_data_file_target_id');
+    $this->assertEquals($relationship['field_name'], 'field_data_file');
+    $this->assertEquals($relationship['entity_type'], 'entity_test_mul');
+    $this->assertEquals($relationship['join_extra'][0], ['field' => 'deleted', 'value' => 0, 'numeric' => TRUE]);
   }
 
 }
diff --git a/core/modules/options/tests/src/Kernel/Views/ViewsDataTest.php b/core/modules/options/tests/src/Kernel/Views/ViewsDataTest.php
index d0235986c4..0d495d4d7b 100644
--- a/core/modules/options/tests/src/Kernel/Views/ViewsDataTest.php
+++ b/core/modules/options/tests/src/Kernel/Views/ViewsDataTest.php
@@ -58,8 +58,8 @@ public function testOptionsFieldViewsData() {
 
     // Check that the options module has properly overridden default views data.
     $test_options_field = $field_data['test_options_value'];
-    $this->assertEqual($test_options_field['argument']['id'], 'string_list_field', 'Argument handler is properly set for fields with allowed value callbacks.');
-    $this->assertEqual($test_options_field['filter']['id'], 'list_field', 'Filter handler is properly set for fields with allowed value callbacks.');
+    $this->assertEquals($test_options_field['argument']['id'], 'string_list_field', 'Argument handler is properly set for fields with allowed value callbacks.');
+    $this->assertEquals($test_options_field['filter']['id'], 'list_field', 'Filter handler is properly set for fields with allowed value callbacks.');
   }
 
 }
diff --git a/core/modules/page_cache/tests/src/Functional/PageCacheTest.php b/core/modules/page_cache/tests/src/Functional/PageCacheTest.php
index bf4951d9b0..7a3deefd16 100644
--- a/core/modules/page_cache/tests/src/Functional/PageCacheTest.php
+++ b/core/modules/page_cache/tests/src/Functional/PageCacheTest.php
@@ -55,11 +55,11 @@ public function testPageCacheTags() {
     $path = 'system-test/cache_tags_page';
     $tags = ['system_test_cache_tags_page'];
     $this->drupalGet($path);
-    $this->assertEqual($this->drupalGetHeader('X-Drupal-Cache'), 'MISS');
+    $this->assertEquals($this->drupalGetHeader('X-Drupal-Cache'), 'MISS');
 
     // Verify a cache hit, but also the presence of the correct cache tags.
     $this->drupalGet($path);
-    $this->assertEqual($this->drupalGetHeader('X-Drupal-Cache'), 'HIT');
+    $this->assertEquals($this->drupalGetHeader('X-Drupal-Cache'), 'HIT');
     $cid_parts = [\Drupal::url('system_test.cache_tags_page', [], ['absolute' => TRUE]), 'html'];
     $cid = implode(':', $cid_parts);
     $cache_entry = \Drupal::cache('page')->get($cid);
@@ -75,7 +75,7 @@ public function testPageCacheTags() {
 
     Cache::invalidateTags($tags);
     $this->drupalGet($path);
-    $this->assertEqual($this->drupalGetHeader('X-Drupal-Cache'), 'MISS');
+    $this->assertEquals($this->drupalGetHeader('X-Drupal-Cache'), 'MISS');
   }
 
   /**
@@ -90,11 +90,11 @@ public function testPageCacheTagsIndependentFromCacheabilityHeaders() {
     $path = 'system-test/cache_tags_page';
     $tags = ['system_test_cache_tags_page'];
     $this->drupalGet($path);
-    $this->assertEqual($this->drupalGetHeader('X-Drupal-Cache'), 'MISS');
+    $this->assertEquals($this->drupalGetHeader('X-Drupal-Cache'), 'MISS');
 
     // Verify a cache hit, but also the presence of the correct cache tags.
     $this->drupalGet($path);
-    $this->assertEqual($this->drupalGetHeader('X-Drupal-Cache'), 'HIT');
+    $this->assertEquals($this->drupalGetHeader('X-Drupal-Cache'), 'HIT');
     $cid_parts = [\Drupal::url('system_test.cache_tags_page', [], ['absolute' => TRUE]), 'html'];
     $cid = implode(':', $cid_parts);
     $cache_entry = \Drupal::cache('page')->get($cid);
@@ -110,7 +110,7 @@ public function testPageCacheTagsIndependentFromCacheabilityHeaders() {
 
     Cache::invalidateTags($tags);
     $this->drupalGet($path);
-    $this->assertEqual($this->drupalGetHeader('X-Drupal-Cache'), 'MISS');
+    $this->assertEquals($this->drupalGetHeader('X-Drupal-Cache'), 'MISS');
   }
 
   /**
@@ -126,15 +126,15 @@ public function testQueryParameterFormatRequests() {
     $accept_header_cache_url_with_json = Url::fromRoute('system_test.page_cache_accept_header', ['_format' => 'json']);
 
     $this->drupalGet($accept_header_cache_url);
-    $this->assertEqual($this->drupalGetHeader('X-Drupal-Cache'), 'MISS', 'HTML page was not yet cached.');
+    $this->assertEquals($this->drupalGetHeader('X-Drupal-Cache'), 'MISS', 'HTML page was not yet cached.');
     $this->drupalGet($accept_header_cache_url);
-    $this->assertEqual($this->drupalGetHeader('X-Drupal-Cache'), 'HIT', 'HTML page was cached.');
+    $this->assertEquals($this->drupalGetHeader('X-Drupal-Cache'), 'HIT', 'HTML page was cached.');
     $this->assertRaw('<p>oh hai this is html.</p>', 'The correct HTML response was returned.');
 
     $this->drupalGet($accept_header_cache_url_with_json);
-    $this->assertEqual($this->drupalGetHeader('X-Drupal-Cache'), 'MISS', 'Json response was not yet cached.');
+    $this->assertEquals($this->drupalGetHeader('X-Drupal-Cache'), 'MISS', 'Json response was not yet cached.');
     $this->drupalGet($accept_header_cache_url_with_json);
-    $this->assertEqual($this->drupalGetHeader('X-Drupal-Cache'), 'HIT', 'Json response was cached.');
+    $this->assertEquals($this->drupalGetHeader('X-Drupal-Cache'), 'HIT', 'Json response was cached.');
     $this->assertRaw('{"content":"oh hai this is json"}', 'The correct Json response was returned.');
 
     // Enable REST support for nodes and hal+json.
@@ -145,37 +145,37 @@ public function testQueryParameterFormatRequests() {
     $node_url_with_hal_json_format = $node->urlInfo('canonical')->setRouteParameter('_format', 'hal_json');
 
     $this->drupalGet($node_uri);
-    $this->assertEqual($this->drupalGetHeader('X-Drupal-Cache'), 'MISS');
-    $this->assertEqual($this->drupalGetHeader('Content-Type'), 'text/html; charset=UTF-8');
+    $this->assertEquals($this->drupalGetHeader('X-Drupal-Cache'), 'MISS');
+    $this->assertEquals($this->drupalGetHeader('Content-Type'), 'text/html; charset=UTF-8');
     $this->drupalGet($node_uri);
-    $this->assertEqual($this->drupalGetHeader('X-Drupal-Cache'), 'HIT');
-    $this->assertEqual($this->drupalGetHeader('Content-Type'), 'text/html; charset=UTF-8');
+    $this->assertEquals($this->drupalGetHeader('X-Drupal-Cache'), 'HIT');
+    $this->assertEquals($this->drupalGetHeader('Content-Type'), 'text/html; charset=UTF-8');
 
     // Now request a HAL page, we expect that the first request is a cache miss
     // and it serves HTML.
     $this->drupalGet($node_url_with_hal_json_format);
-    $this->assertEqual($this->drupalGetHeader('X-Drupal-Cache'), 'MISS');
-    $this->assertEqual($this->drupalGetHeader('Content-Type'), 'application/hal+json');
+    $this->assertEquals($this->drupalGetHeader('X-Drupal-Cache'), 'MISS');
+    $this->assertEquals($this->drupalGetHeader('Content-Type'), 'application/hal+json');
     $this->drupalGet($node_url_with_hal_json_format);
-    $this->assertEqual($this->drupalGetHeader('X-Drupal-Cache'), 'HIT');
-    $this->assertEqual($this->drupalGetHeader('Content-Type'), 'application/hal+json');
+    $this->assertEquals($this->drupalGetHeader('X-Drupal-Cache'), 'HIT');
+    $this->assertEquals($this->drupalGetHeader('Content-Type'), 'application/hal+json');
 
     // Clear the page cache. After that request a HAL request, followed by an
     // ordinary HTML one.
     \Drupal::cache('page')->deleteAll();
     $this->drupalGet($node_url_with_hal_json_format);
-    $this->assertEqual($this->drupalGetHeader('X-Drupal-Cache'), 'MISS');
-    $this->assertEqual($this->drupalGetHeader('Content-Type'), 'application/hal+json');
+    $this->assertEquals($this->drupalGetHeader('X-Drupal-Cache'), 'MISS');
+    $this->assertEquals($this->drupalGetHeader('Content-Type'), 'application/hal+json');
     $this->drupalGet($node_url_with_hal_json_format);
-    $this->assertEqual($this->drupalGetHeader('X-Drupal-Cache'), 'HIT');
-    $this->assertEqual($this->drupalGetHeader('Content-Type'), 'application/hal+json');
+    $this->assertEquals($this->drupalGetHeader('X-Drupal-Cache'), 'HIT');
+    $this->assertEquals($this->drupalGetHeader('Content-Type'), 'application/hal+json');
 
     $this->drupalGet($node_uri);
-    $this->assertEqual($this->drupalGetHeader('X-Drupal-Cache'), 'MISS');
-    $this->assertEqual($this->drupalGetHeader('Content-Type'), 'text/html; charset=UTF-8');
+    $this->assertEquals($this->drupalGetHeader('X-Drupal-Cache'), 'MISS');
+    $this->assertEquals($this->drupalGetHeader('Content-Type'), 'text/html; charset=UTF-8');
     $this->drupalGet($node_uri);
-    $this->assertEqual($this->drupalGetHeader('X-Drupal-Cache'), 'HIT');
-    $this->assertEqual($this->drupalGetHeader('Content-Type'), 'text/html; charset=UTF-8');
+    $this->assertEquals($this->drupalGetHeader('X-Drupal-Cache'), 'HIT');
+    $this->assertEquals($this->drupalGetHeader('Content-Type'), 'text/html; charset=UTF-8');
   }
 
   /**
@@ -192,7 +192,7 @@ public function testConditionalRequests() {
     $this->assertNoPattern('#<html.*<html#');
 
     $this->drupalGet('');
-    $this->assertEqual($this->drupalGetHeader('X-Drupal-Cache'), 'HIT', 'Page was cached.');
+    $this->assertEquals($this->drupalGetHeader('X-Drupal-Cache'), 'HIT', 'Page was cached.');
     $etag = $this->drupalGetHeader('ETag');
     $last_modified = $this->drupalGetHeader('Last-Modified');
 
@@ -215,14 +215,14 @@ public function testConditionalRequests() {
     // Verify the page is not printed twice when the cache is warm.
     $this->assertNoPattern('#<html.*<html#');
     $this->assertResponse(200, 'Conditional request without If-None-Match returned 200 OK.');
-    $this->assertEqual($this->drupalGetHeader('X-Drupal-Cache'), 'HIT', 'Page was cached.');
+    $this->assertEquals($this->drupalGetHeader('X-Drupal-Cache'), 'HIT', 'Page was cached.');
 
     $this->drupalGet('', [], [
       'If-Modified-Since' => gmdate(DateTimePlus::RFC7231, strtotime($last_modified) + 1),
       'If-None-Match' => $etag,
     ]);
     $this->assertResponse(200, 'Conditional request with new a If-Modified-Since date newer than Last-Modified returned 200 OK.');
-    $this->assertEqual($this->drupalGetHeader('X-Drupal-Cache'), 'HIT', 'Page was cached.');
+    $this->assertEquals($this->drupalGetHeader('X-Drupal-Cache'), 'HIT', 'Page was cached.');
 
     $user = $this->drupalCreateUser();
     $this->drupalLogin($user);
@@ -241,28 +241,28 @@ public function testPageCache() {
 
     // Fill the cache.
     $this->drupalGet('system-test/set-header', ['query' => ['name' => 'Foo', 'value' => 'bar']]);
-    $this->assertEqual($this->drupalGetHeader('X-Drupal-Cache'), 'MISS', 'Page was not cached.');
-    $this->assertEqual(strtolower($this->drupalGetHeader('Vary')), 'cookie,accept-encoding', 'Vary header was sent.');
+    $this->assertEquals($this->drupalGetHeader('X-Drupal-Cache'), 'MISS', 'Page was not cached.');
+    $this->assertEquals(strtolower($this->drupalGetHeader('Vary')), 'cookie,accept-encoding', 'Vary header was sent.');
     // Symfony's Response logic determines a specific order for the subvalues
     // of the Cache-Control header, even if they are explicitly passed in to
     // the response header bag in a different order.
-    $this->assertEqual($this->drupalGetHeader('Cache-Control'), 'max-age=300, public', 'Cache-Control header was sent.');
-    $this->assertEqual($this->drupalGetHeader('Expires'), 'Sun, 19 Nov 1978 05:00:00 GMT', 'Expires header was sent.');
-    $this->assertEqual($this->drupalGetHeader('Foo'), 'bar', 'Custom header was sent.');
+    $this->assertEquals($this->drupalGetHeader('Cache-Control'), 'max-age=300, public', 'Cache-Control header was sent.');
+    $this->assertEquals($this->drupalGetHeader('Expires'), 'Sun, 19 Nov 1978 05:00:00 GMT', 'Expires header was sent.');
+    $this->assertEquals($this->drupalGetHeader('Foo'), 'bar', 'Custom header was sent.');
 
     // Check cache.
     $this->drupalGet('system-test/set-header', ['query' => ['name' => 'Foo', 'value' => 'bar']]);
-    $this->assertEqual($this->drupalGetHeader('X-Drupal-Cache'), 'HIT', 'Page was cached.');
-    $this->assertEqual(strtolower($this->drupalGetHeader('Vary')), 'cookie,accept-encoding', 'Vary: Cookie header was sent.');
-    $this->assertEqual($this->drupalGetHeader('Cache-Control'), 'max-age=300, public', 'Cache-Control header was sent.');
-    $this->assertEqual($this->drupalGetHeader('Expires'), 'Sun, 19 Nov 1978 05:00:00 GMT', 'Expires header was sent.');
-    $this->assertEqual($this->drupalGetHeader('Foo'), 'bar', 'Custom header was sent.');
+    $this->assertEquals($this->drupalGetHeader('X-Drupal-Cache'), 'HIT', 'Page was cached.');
+    $this->assertEquals(strtolower($this->drupalGetHeader('Vary')), 'cookie,accept-encoding', 'Vary: Cookie header was sent.');
+    $this->assertEquals($this->drupalGetHeader('Cache-Control'), 'max-age=300, public', 'Cache-Control header was sent.');
+    $this->assertEquals($this->drupalGetHeader('Expires'), 'Sun, 19 Nov 1978 05:00:00 GMT', 'Expires header was sent.');
+    $this->assertEquals($this->drupalGetHeader('Foo'), 'bar', 'Custom header was sent.');
 
     // Check replacing default headers.
     $this->drupalGet('system-test/set-header', ['query' => ['name' => 'Expires', 'value' => 'Fri, 19 Nov 2008 05:00:00 GMT']]);
-    $this->assertEqual($this->drupalGetHeader('Expires'), 'Fri, 19 Nov 2008 05:00:00 GMT', 'Default header was replaced.');
+    $this->assertEquals($this->drupalGetHeader('Expires'), 'Fri, 19 Nov 2008 05:00:00 GMT', 'Default header was replaced.');
     $this->drupalGet('system-test/set-header', ['query' => ['name' => 'Vary', 'value' => 'User-Agent']]);
-    $this->assertEqual(strtolower($this->drupalGetHeader('Vary')), 'user-agent,accept-encoding', 'Default header was replaced.');
+    $this->assertEquals(strtolower($this->drupalGetHeader('Vary')), 'user-agent,accept-encoding', 'Default header was replaced.');
 
     // Check that authenticated users bypass the cache.
     $user = $this->drupalCreateUser();
@@ -270,15 +270,15 @@ public function testPageCache() {
     $this->drupalGet('system-test/set-header', ['query' => ['name' => 'Foo', 'value' => 'bar']]);
     $this->assertFalse($this->drupalGetHeader('X-Drupal-Cache'), 'Caching was bypassed.');
     $this->assertTrue(strpos(strtolower($this->drupalGetHeader('Vary')), 'cookie') === FALSE, 'Vary: Cookie header was not sent.');
-    $this->assertEqual($this->drupalGetHeader('Cache-Control'), 'must-revalidate, no-cache, private', 'Cache-Control header was sent.');
-    $this->assertEqual($this->drupalGetHeader('Expires'), 'Sun, 19 Nov 1978 05:00:00 GMT', 'Expires header was sent.');
-    $this->assertEqual($this->drupalGetHeader('Foo'), 'bar', 'Custom header was sent.');
+    $this->assertEquals($this->drupalGetHeader('Cache-Control'), 'must-revalidate, no-cache, private', 'Cache-Control header was sent.');
+    $this->assertEquals($this->drupalGetHeader('Expires'), 'Sun, 19 Nov 1978 05:00:00 GMT', 'Expires header was sent.');
+    $this->assertEquals($this->drupalGetHeader('Foo'), 'bar', 'Custom header was sent.');
 
     // Until bubbling of max-age up to the response is supported, verify that
     // a custom #cache max-age set on an element does not affect page max-age.
     $this->drupalLogout();
     $this->drupalGet('system-test/cache_maxage_page');
-    $this->assertEqual($this->drupalGetHeader('Cache-Control'), 'max-age=300, public');
+    $this->assertEquals($this->drupalGetHeader('Cache-Control'), 'max-age=300, public');
   }
 
   /**
@@ -358,11 +358,11 @@ public function testPageCacheAnonymous403404() {
       // Anonymous user, without permissions.
       $this->drupalGet($content_url);
       $this->assertResponse($code);
-      $this->assertEqual($this->drupalGetHeader('X-Drupal-Cache'), 'MISS');
+      $this->assertEquals($this->drupalGetHeader('X-Drupal-Cache'), 'MISS');
       $this->assertCacheTag('4xx-response');
       $this->drupalGet($content_url);
       $this->assertResponse($code);
-      $this->assertEqual($this->drupalGetHeader('X-Drupal-Cache'), 'HIT');
+      $this->assertEquals($this->drupalGetHeader('X-Drupal-Cache'), 'HIT');
       $entity_values = [
         'name' => $this->randomMachineName(),
         'user_id' => 1,
@@ -378,15 +378,15 @@ public function testPageCacheAnonymous403404() {
       // Saving an entity clears 4xx cache tag.
       $this->drupalGet($content_url);
       $this->assertResponse($code);
-      $this->assertEqual($this->drupalGetHeader('X-Drupal-Cache'), 'MISS');
+      $this->assertEquals($this->drupalGetHeader('X-Drupal-Cache'), 'MISS');
       $this->drupalGet($content_url);
       $this->assertResponse($code);
-      $this->assertEqual($this->drupalGetHeader('X-Drupal-Cache'), 'HIT');
+      $this->assertEquals($this->drupalGetHeader('X-Drupal-Cache'), 'HIT');
       // Rebuilding the router should invalidate the 4xx cache tag.
       $this->container->get('router.builder')->rebuild();
       $this->drupalGet($content_url);
       $this->assertResponse($code);
-      $this->assertEqual($this->drupalGetHeader('X-Drupal-Cache'), 'MISS');
+      $this->assertEquals($this->drupalGetHeader('X-Drupal-Cache'), 'MISS');
 
       // Ensure the 'expire' field on the cache entry uses cache_ttl_4xx.
       $cache_item = \Drupal::service('cache.page')->get($this->getUrl() . ':html');
@@ -415,7 +415,7 @@ public function testPageCacheAnonymous403404() {
       $this->drupalGet($content_url);
       $this->drupalGet($content_url);
       $this->assertResponse($code);
-      $this->assertEqual($this->drupalGetHeader('X-Drupal-Cache'), 'MISS');
+      $this->assertEquals($this->drupalGetHeader('X-Drupal-Cache'), 'MISS');
     }
   }
 
@@ -435,15 +435,15 @@ public function testPageCacheWithoutVaryCookie() {
 
     // Fill the cache.
     $this->drupalGet('');
-    $this->assertEqual($this->drupalGetHeader('X-Drupal-Cache'), 'MISS', 'Page was not cached.');
+    $this->assertEquals($this->drupalGetHeader('X-Drupal-Cache'), 'MISS', 'Page was not cached.');
     $this->assertTrue(strpos($this->drupalGetHeader('Vary'), 'Cookie') === FALSE, 'Vary: Cookie header was not sent.');
-    $this->assertEqual($this->drupalGetHeader('Cache-Control'), 'max-age=300, public', 'Cache-Control header was sent.');
+    $this->assertEquals($this->drupalGetHeader('Cache-Control'), 'max-age=300, public', 'Cache-Control header was sent.');
 
     // Check cache.
     $this->drupalGet('');
-    $this->assertEqual($this->drupalGetHeader('X-Drupal-Cache'), 'HIT', 'Page was cached.');
+    $this->assertEquals($this->drupalGetHeader('X-Drupal-Cache'), 'HIT', 'Page was cached.');
     $this->assertTrue(strpos($this->drupalGetHeader('Vary'), 'Cookie') === FALSE, 'Vary: Cookie header was not sent.');
-    $this->assertEqual($this->drupalGetHeader('Cache-Control'), 'max-age=300, public', 'Cache-Control header was sent.');
+    $this->assertEquals($this->drupalGetHeader('Cache-Control'), 'max-age=300, public', 'Cache-Control header was sent.');
   }
 
   /**
@@ -489,32 +489,32 @@ public function testCacheableResponseResponses() {
     // GET a URL, which would be marked as a cache miss if it were cacheable.
     $this->drupalGet('/system-test/respond-reponse');
     $this->assertFalse($this->drupalGetHeader('X-Drupal-Cache'), 'Drupal page cache header not found.');
-    $this->assertEqual($this->drupalGetHeader('Cache-Control'), 'must-revalidate, no-cache, private', 'Cache-Control header was sent');
+    $this->assertEquals($this->drupalGetHeader('Cache-Control'), 'must-revalidate, no-cache, private', 'Cache-Control header was sent');
 
     // GET it again, verify it's still not cached.
     $this->drupalGet('/system-test/respond-reponse');
     $this->assertFalse($this->drupalGetHeader('X-Drupal-Cache'), 'Drupal page cache header not found.');
-    $this->assertEqual($this->drupalGetHeader('Cache-Control'), 'must-revalidate, no-cache, private', 'Cache-Control header was sent');
+    $this->assertEquals($this->drupalGetHeader('Cache-Control'), 'must-revalidate, no-cache, private', 'Cache-Control header was sent');
 
     // GET a URL, which would be marked as a cache miss if it were cacheable.
     $this->drupalGet('/system-test/respond-public-response');
     $this->assertFalse($this->drupalGetHeader('X-Drupal-Cache'), 'Drupal page cache header not found.');
-    $this->assertEqual($this->drupalGetHeader('Cache-Control'), 'max-age=60, public', 'Cache-Control header was sent');
+    $this->assertEquals($this->drupalGetHeader('Cache-Control'), 'max-age=60, public', 'Cache-Control header was sent');
 
     // GET it again, verify it's still not cached.
     $this->drupalGet('/system-test/respond-public-response');
     $this->assertFalse($this->drupalGetHeader('X-Drupal-Cache'), 'Drupal page cache header not found.');
-    $this->assertEqual($this->drupalGetHeader('Cache-Control'), 'max-age=60, public', 'Cache-Control header was sent');
+    $this->assertEquals($this->drupalGetHeader('Cache-Control'), 'max-age=60, public', 'Cache-Control header was sent');
 
     // GET a URL, which should be marked as a cache miss.
     $this->drupalGet('/system-test/respond-cacheable-reponse');
-    $this->assertEqual($this->drupalGetHeader('X-Drupal-Cache'), 'MISS', 'Page was not cached.');
-    $this->assertEqual($this->drupalGetHeader('Cache-Control'), 'max-age=300, public', 'Cache-Control header was sent.');
+    $this->assertEquals($this->drupalGetHeader('X-Drupal-Cache'), 'MISS', 'Page was not cached.');
+    $this->assertEquals($this->drupalGetHeader('Cache-Control'), 'max-age=300, public', 'Cache-Control header was sent.');
 
     // GET it again, it should now be a cache hit.
     $this->drupalGet('/system-test/respond-cacheable-reponse');
-    $this->assertEqual($this->drupalGetHeader('X-Drupal-Cache'), 'HIT', 'Page was cached.');
-    $this->assertEqual($this->drupalGetHeader('Cache-Control'), 'max-age=300, public', 'Cache-Control header was sent.');
+    $this->assertEquals($this->drupalGetHeader('X-Drupal-Cache'), 'HIT', 'Page was cached.');
+    $this->assertEquals($this->drupalGetHeader('Cache-Control'), 'max-age=300, public', 'Cache-Control header was sent.');
 
     // Uninstall page cache. This should flush all caches so the next call to a
     // previously cached page should be a miss now.
@@ -536,24 +536,24 @@ public function testHead() {
     // GET, then HEAD.
     $url_a = $this->buildUrl('system-test/set-header', ['query' => ['name' => 'Foo', 'value' => 'bar']]);
     $response_body = $this->drupalGet($url_a);
-    $this->assertEqual($this->drupalGetHeader('X-Drupal-Cache'), 'MISS', 'Page was not cached.');
-    $this->assertEqual($this->drupalGetHeader('Foo'), 'bar', 'Custom header was sent.');
-    $this->assertEqual('The following header was set: <em class="placeholder">Foo</em>: <em class="placeholder">bar</em>', $response_body);
+    $this->assertEquals($this->drupalGetHeader('X-Drupal-Cache'), 'MISS', 'Page was not cached.');
+    $this->assertEquals($this->drupalGetHeader('Foo'), 'bar', 'Custom header was sent.');
+    $this->assertEquals('The following header was set: <em class="placeholder">Foo</em>: <em class="placeholder">bar</em>', $response_body);
     $response = $client->request('HEAD', $url_a);
-    $this->assertEqual($response->getHeaderLine('X-Drupal-Cache'), 'HIT', 'Page was cached.');
-    $this->assertEqual($response->getHeaderLine('Foo'), 'bar', 'Custom header was sent.');
-    $this->assertEqual('', $response->getBody()->getContents());
+    $this->assertEquals($response->getHeaderLine('X-Drupal-Cache'), 'HIT', 'Page was cached.');
+    $this->assertEquals($response->getHeaderLine('Foo'), 'bar', 'Custom header was sent.');
+    $this->assertEquals('', $response->getBody()->getContents());
 
     // HEAD, then GET.
     $url_b = $this->buildUrl('system-test/set-header', ['query' => ['name' => 'Foo', 'value' => 'baz']]);
     $response = $client->request('HEAD', $url_b);
-    $this->assertEqual($response->getHeaderLine('X-Drupal-Cache'), 'MISS', 'Page was not cached.');
-    $this->assertEqual($response->getHeaderLine('Foo'), 'baz', 'Custom header was sent.');
-    $this->assertEqual('', $response->getBody()->getContents());
+    $this->assertEquals($response->getHeaderLine('X-Drupal-Cache'), 'MISS', 'Page was not cached.');
+    $this->assertEquals($response->getHeaderLine('Foo'), 'baz', 'Custom header was sent.');
+    $this->assertEquals('', $response->getBody()->getContents());
     $response_body = $this->drupalGet($url_b);
-    $this->assertEqual($this->drupalGetHeader('X-Drupal-Cache'), 'HIT', 'Page was cached.');
-    $this->assertEqual($this->drupalGetHeader('Foo'), 'baz', 'Custom header was sent.');
-    $this->assertEqual('The following header was set: <em class="placeholder">Foo</em>: <em class="placeholder">baz</em>', $response_body);
+    $this->assertEquals($this->drupalGetHeader('X-Drupal-Cache'), 'HIT', 'Page was cached.');
+    $this->assertEquals($this->drupalGetHeader('Foo'), 'baz', 'Custom header was sent.');
+    $this->assertEquals('The following header was set: <em class="placeholder">Foo</em>: <em class="placeholder">baz</em>', $response_body);
   }
 
   /**
diff --git a/core/modules/path/tests/src/Functional/PathLanguageTest.php b/core/modules/path/tests/src/Functional/PathLanguageTest.php
index 8e41edeaee..327cbfc9de 100644
--- a/core/modules/path/tests/src/Functional/PathLanguageTest.php
+++ b/core/modules/path/tests/src/Functional/PathLanguageTest.php
@@ -170,17 +170,17 @@ public function testAliasTranslation() {
     // it has the appropriate contents at this point.
     $this->container->get('path.alias_manager')->cacheClear();
     $french_node_path = $this->container->get('path.alias_manager')->getPathByAlias('/' . $french_alias, 'fr');
-    $this->assertEqual($french_node_path, '/node/' . $english_node_french_translation->id(), 'Normal path works.');
+    $this->assertEquals($french_node_path, '/node/' . $english_node_french_translation->id(), 'Normal path works.');
     // Second call should return the same path.
     $french_node_path = $this->container->get('path.alias_manager')->getPathByAlias('/' . $french_alias, 'fr');
-    $this->assertEqual($french_node_path, '/node/' . $english_node_french_translation->id(), 'Normal path is the same.');
+    $this->assertEquals($french_node_path, '/node/' . $english_node_french_translation->id(), 'Normal path is the same.');
 
     // Confirm that the alias works.
     $french_node_alias = $this->container->get('path.alias_manager')->getAliasByPath('/node/' . $english_node_french_translation->id(), 'fr');
-    $this->assertEqual($french_node_alias, '/' . $french_alias, 'Alias works.');
+    $this->assertEquals($french_node_alias, '/' . $french_alias, 'Alias works.');
     // Second call should return the same alias.
     $french_node_alias = $this->container->get('path.alias_manager')->getAliasByPath('/node/' . $english_node_french_translation->id(), 'fr');
-    $this->assertEqual($french_node_alias, '/' . $french_alias, 'Alias is the same.');
+    $this->assertEquals($french_node_alias, '/' . $french_alias, 'Alias is the same.');
 
     // Confirm that the alias is removed if the translation is deleted.
     $english_node->removeTranslation('fr');
diff --git a/core/modules/path/tests/src/Kernel/PathNoCanonicalLinkTest.php b/core/modules/path/tests/src/Kernel/PathNoCanonicalLinkTest.php
index 602e84f42f..ab2a3a7818 100644
--- a/core/modules/path/tests/src/Kernel/PathNoCanonicalLinkTest.php
+++ b/core/modules/path/tests/src/Kernel/PathNoCanonicalLinkTest.php
@@ -48,11 +48,11 @@ public function testNoCanonicalLinkTemplate() {
 
     $entity_type->addTranslation('de', ['name' => 'name german']);
     $entity_type->save();
-    $this->assertEqual(count($entity_type->getTranslationLanguages()), 2);
+    $this->assertEquals(count($entity_type->getTranslationLanguages()), 2);
 
     $entity_type->removeTranslation('de');
     $entity_type->save();
-    $this->assertEqual(count($entity_type->getTranslationLanguages()), 1);
+    $this->assertEquals(count($entity_type->getTranslationLanguages()), 1);
   }
 
 }
diff --git a/core/modules/quickedit/src/Tests/QuickEditLoadingTest.php b/core/modules/quickedit/src/Tests/QuickEditLoadingTest.php
index 9ca558a37b..44ec04e343 100644
--- a/core/modules/quickedit/src/Tests/QuickEditLoadingTest.php
+++ b/core/modules/quickedit/src/Tests/QuickEditLoadingTest.php
@@ -312,7 +312,7 @@ public function testUserWithPermission() {
       $ajax_commands = Json::decode($response);
       $this->assertIdentical(1, count($ajax_commands));
       $this->assertIdentical('quickeditEntitySaved', $ajax_commands[0]['command'], 'The first AJAX command is an quickeditEntitySaved command.');
-      $this->assertEqual($ajax_commands[0]['data'], ['entity_type' => 'node', 'entity_id' => 1], 'Updated entity type and ID returned');
+      $this->assertEquals($ajax_commands[0]['data'], ['entity_type' => 'node', 'entity_id' => 1], 'Updated entity type and ID returned');
 
       // Test that a revision was created with the correct log message.
       $vids = \Drupal::entityManager()->getStorage('node')->revisionIds(Node::load(1));
diff --git a/core/modules/quickedit/tests/src/Kernel/EditorSelectionTest.php b/core/modules/quickedit/tests/src/Kernel/EditorSelectionTest.php
index 08a8fe04ad..be7ed3e6a4 100644
--- a/core/modules/quickedit/tests/src/Kernel/EditorSelectionTest.php
+++ b/core/modules/quickedit/tests/src/Kernel/EditorSelectionTest.php
@@ -68,12 +68,12 @@ public function testText() {
     $entity->save();
 
     // With cardinality 1.
-    $this->assertEqual('plain_text', $this->getSelectedEditor($entity->id(), $field_name), "With cardinality 1, the 'plain_text' editor is selected.");
+    $this->assertEquals('plain_text', $this->getSelectedEditor($entity->id(), $field_name), "With cardinality 1, the 'plain_text' editor is selected.");
 
     // With cardinality >1
     $this->fields->field_text_field_storage->setCardinality(2);
     $this->fields->field_text_field_storage->save();
-    $this->assertEqual('form', $this->getSelectedEditor($entity->id(), $field_name), "With cardinality >1, the 'form' editor is selected.");
+    $this->assertEquals('form', $this->getSelectedEditor($entity->id(), $field_name), "With cardinality >1, the 'form' editor is selected.");
 
   }
 
@@ -108,17 +108,17 @@ public function testTextWysiwyg() {
     $entity->save();
 
     // Editor selection w/ cardinality 1, text format w/o associated text editor.
-    $this->assertEqual('form', $this->getSelectedEditor($entity->id(), $field_name), "With cardinality 1, and the filtered_html text format, the 'form' editor is selected.");
+    $this->assertEquals('form', $this->getSelectedEditor($entity->id(), $field_name), "With cardinality 1, and the filtered_html text format, the 'form' editor is selected.");
 
     // Editor selection w/ cardinality 1, text format w/ associated text editor.
     $entity->{$field_name}->format = 'full_html';
     $entity->save();
-    $this->assertEqual('wysiwyg', $this->getSelectedEditor($entity->id(), $field_name), "With cardinality 1, and the full_html text format, the 'wysiwyg' editor is selected.");
+    $this->assertEquals('wysiwyg', $this->getSelectedEditor($entity->id(), $field_name), "With cardinality 1, and the full_html text format, the 'wysiwyg' editor is selected.");
 
     // Editor selection with text field, cardinality >1.
     $this->fields->field_textarea_field_storage->setCardinality(2);
     $this->fields->field_textarea_field_storage->save();
-    $this->assertEqual('form', $this->getSelectedEditor($entity->id(), $field_name), "With cardinality >1, and both items using the full_html text format, the 'form' editor is selected.");
+    $this->assertEquals('form', $this->getSelectedEditor($entity->id(), $field_name), "With cardinality >1, and both items using the full_html text format, the 'form' editor is selected.");
   }
 
   /**
@@ -144,12 +144,12 @@ public function testNumber() {
     $entity->save();
 
     // Editor selection with cardinality 1.
-    $this->assertEqual('form', $this->getSelectedEditor($entity->id(), $field_name), "With cardinality 1, the 'form' editor is selected.");
+    $this->assertEquals('form', $this->getSelectedEditor($entity->id(), $field_name), "With cardinality 1, the 'form' editor is selected.");
 
     // Editor selection with cardinality >1.
     $this->fields->field_nr_field_storage->setCardinality(2);
     $this->fields->field_nr_field_storage->save();
-    $this->assertEqual('form', $this->getSelectedEditor($entity->id(), $field_name), "With cardinality >1, the 'form' editor is selected.");
+    $this->assertEquals('form', $this->getSelectedEditor($entity->id(), $field_name), "With cardinality >1, the 'form' editor is selected.");
   }
 
 }
diff --git a/core/modules/quickedit/tests/src/Kernel/MetadataGeneratorTest.php b/core/modules/quickedit/tests/src/Kernel/MetadataGeneratorTest.php
index 42c4103dca..e0185772ad 100644
--- a/core/modules/quickedit/tests/src/Kernel/MetadataGeneratorTest.php
+++ b/core/modules/quickedit/tests/src/Kernel/MetadataGeneratorTest.php
@@ -103,7 +103,7 @@ public function testSimpleEntityType() {
       'label' => 'Plain text field',
       'editor' => 'plain_text',
     ];
-    $this->assertEqual($expected_1, $metadata_1, 'The correct metadata is generated for the first field.');
+    $this->assertEquals($expected_1, $metadata_1, 'The correct metadata is generated for the first field.');
 
     // Verify metadata for field 2.
     $items_2 = $entity->get($field_2_name);
@@ -113,7 +113,7 @@ public function testSimpleEntityType() {
       'label' => 'Simple number field',
       'editor' => 'form',
     ];
-    $this->assertEqual($expected_2, $metadata_2, 'The correct metadata is generated for the second field.');
+    $this->assertEquals($expected_2, $metadata_2, 'The correct metadata is generated for the second field.');
   }
 
   /**
@@ -172,7 +172,7 @@ public function testEditorWithCustomMetadata() {
         'format' => 'full_html'
       ],
     ];
-    $this->assertEqual($expected, $metadata, 'The correct metadata (including custom metadata) is generated.');
+    $this->assertEquals($expected, $metadata, 'The correct metadata (including custom metadata) is generated.');
   }
 
 }
diff --git a/core/modules/rdf/tests/src/Functional/GetRdfNamespacesTest.php b/core/modules/rdf/tests/src/Functional/GetRdfNamespacesTest.php
index 5d31d3ac23..637359d0a6 100644
--- a/core/modules/rdf/tests/src/Functional/GetRdfNamespacesTest.php
+++ b/core/modules/rdf/tests/src/Functional/GetRdfNamespacesTest.php
@@ -25,9 +25,9 @@ public function testGetRdfNamespaces() {
     // Get all RDF namespaces.
     $ns = rdf_get_namespaces();
 
-    $this->assertEqual($ns['rdfs'], 'http://www.w3.org/2000/01/rdf-schema#', 'A prefix declared once is included.');
-    $this->assertEqual($ns['foaf'], 'http://xmlns.com/foaf/0.1/', 'The same prefix declared in several implementations of hook_rdf_namespaces() is valid as long as all the namespaces are the same.');
-    $this->assertEqual($ns['foaf1'], 'http://xmlns.com/foaf/0.1/', 'Two prefixes can be assigned the same namespace.');
+    $this->assertEquals($ns['rdfs'], 'http://www.w3.org/2000/01/rdf-schema#', 'A prefix declared once is included.');
+    $this->assertEquals($ns['foaf'], 'http://xmlns.com/foaf/0.1/', 'The same prefix declared in several implementations of hook_rdf_namespaces() is valid as long as all the namespaces are the same.');
+    $this->assertEquals($ns['foaf1'], 'http://xmlns.com/foaf/0.1/', 'Two prefixes can be assigned the same namespace.');
 
     // Enable rdf_conflicting_namespaces to ensure that an exception is thrown
     // when RDF namespaces are conflicting.
diff --git a/core/modules/rdf/tests/src/Functional/StandardProfileTest.php b/core/modules/rdf/tests/src/Functional/StandardProfileTest.php
index 8662b9daca..b4dcd578fb 100644
--- a/core/modules/rdf/tests/src/Functional/StandardProfileTest.php
+++ b/core/modules/rdf/tests/src/Functional/StandardProfileTest.php
@@ -208,7 +208,7 @@ protected function doFrontPageRdfaTests() {
     $graph = $this->getRdfGraph(Url::fromRoute('<front>'));
 
     // Ensure that both articles are listed.
-    $this->assertEqual(2, count($graph->allOfType('http://schema.org/Article')), 'Two articles found on front page.');
+    $this->assertEquals(2, count($graph->allOfType('http://schema.org/Article')), 'Two articles found on front page.');
 
     // Test interaction count.
     $expected_value = [
@@ -247,7 +247,7 @@ protected function doArticleRdfaTests() {
     $graph = $this->getRdfGraph($this->article->urlInfo());
 
     // Type.
-    $this->assertEqual($graph->type($this->articleUri), 'schema:Article', 'Article type was found (schema:Article).');
+    $this->assertEquals($graph->type($this->articleUri), 'schema:Article', 'Article type was found (schema:Article).');
 
     // Test the properties that are common between pages and articles.
     $this->assertRdfaCommonNodeProperties($graph, $this->article, "Article");
@@ -284,7 +284,7 @@ protected function doPageRdfaTests() {
     $graph = $this->getRdfGraph($this->page->urlInfo());
 
     // Type.
-    $this->assertEqual($graph->type($this->pageUri), 'schema:WebPage', 'Page type was found (schema:WebPage).');
+    $this->assertEquals($graph->type($this->pageUri), 'schema:WebPage', 'Page type was found (schema:WebPage).');
 
     // Test the properties that are common between pages and articles.
     $this->assertRdfaCommonNodeProperties($graph, $this->page, "Page");
@@ -300,7 +300,7 @@ protected function doUserRdfaTests() {
     $graph = $this->getRdfGraph($this->adminUser->urlInfo());
 
     // User type.
-    $this->assertEqual($graph->type($this->authorUri), 'schema:Person', "User type was found (schema:Person) on user page.");
+    $this->assertEquals($graph->type($this->authorUri), 'schema:Person', "User type was found (schema:Person) on user page.");
 
     // User name.
     $expected_value = [
@@ -320,7 +320,7 @@ protected function doTermRdfaTests() {
     $graph = $this->getRdfGraph($this->term->urlInfo());
 
     // Term type.
-    $this->assertEqual($graph->type($this->termUri), 'schema:Thing', "Term type was found (schema:Thing) on term page.");
+    $this->assertEquals($graph->type($this->termUri), 'schema:Thing', "Term type was found (schema:Thing) on term page.");
 
     // Term name.
     $expected_value = [
@@ -379,7 +379,7 @@ protected function assertRdfaCommonNodeProperties($graph, NodeInterface $node, $
     $this->assertTrue($graph->hasProperty($uri, 'http://schema.org/author', $expected_value), "$message_prefix author was found (schema:author) in teaser.");
 
     // Author type.
-    $this->assertEqual($graph->type($this->authorUri), 'schema:Person', "$message_prefix author type was found (schema:Person).");
+    $this->assertEquals($graph->type($this->authorUri), 'schema:Person', "$message_prefix author type was found (schema:Person).");
 
     // Author name.
     $expected_value = [
@@ -407,7 +407,7 @@ protected function assertRdfaArticleProperties($graph, $message_prefix) {
 
     // Tag type.
     // @todo Enable with https://www.drupal.org/node/2072791.
-    // $this->assertEqual($graph->type($this->termUri), 'schema:Thing', 'Tag type was found (schema:Thing).');
+    // $this->assertEquals($graph->type($this->termUri), 'schema:Thing', 'Tag type was found (schema:Thing).');
 
     // Tag name.
     $expected_value = [
@@ -434,7 +434,7 @@ protected function assertRdfaNodeCommentProperties($graph) {
     $this->assertTrue($graph->hasProperty($this->articleUri, 'http://schema.org/comment', $expected_value), 'Relationship between node and comment found (schema:comment).');
 
     // Comment type.
-    $this->assertEqual($graph->type($this->articleCommentUri), 'schema:Comment', 'Comment type was found (schema:Comment).');
+    $this->assertEquals($graph->type($this->articleCommentUri), 'schema:Comment', 'Comment type was found (schema:Comment).');
 
     // Comment title.
     $expected_value = [
@@ -472,7 +472,7 @@ protected function assertRdfaNodeCommentProperties($graph) {
     $this->assertTrue($graph->hasProperty($this->articleCommentUri, 'http://schema.org/author', $expected_value), 'Article comment author was found (schema:author).');
 
     // Comment author type.
-    $this->assertEqual($graph->type($this->commenterUri), 'schema:Person', 'Comment author type was found (schema:Person).');
+    $this->assertEquals($graph->type($this->commenterUri), 'schema:Person', 'Comment author type was found (schema:Person).');
 
     // Comment author name.
     $expected_value = [
diff --git a/core/modules/rdf/tests/src/Kernel/CrudTest.php b/core/modules/rdf/tests/src/Kernel/CrudTest.php
index f8292a38b7..fa4c3b5bb0 100644
--- a/core/modules/rdf/tests/src/Kernel/CrudTest.php
+++ b/core/modules/rdf/tests/src/Kernel/CrudTest.php
@@ -63,7 +63,7 @@ public function testBundleMapping() {
       ->save();
     $bundle_mapping = rdf_get_mapping($this->entityType, $this->bundle)
       ->getBundleMapping();
-    $this->assertEqual($types, $bundle_mapping['types'], 'Bundle mapping saved.');
+    $this->assertEquals($types, $bundle_mapping['types'], 'Bundle mapping saved.');
 
     // Test that the bundle mapping can be edited.
     $types = ['schema:BlogPosting'];
@@ -72,7 +72,7 @@ public function testBundleMapping() {
       ->save();
     $bundle_mapping = rdf_get_mapping($this->entityType, $this->bundle)
       ->getBundleMapping();
-    $this->assertEqual($types, $bundle_mapping['types'], 'Bundle mapping updated.');
+    $this->assertEquals($types, $bundle_mapping['types'], 'Bundle mapping updated.');
   }
 
   /**
@@ -92,7 +92,7 @@ public function testFieldMapping() {
       ->save();
     $field_mapping = rdf_get_mapping($this->entityType, $this->bundle)
       ->getFieldMapping($field_name);
-    $this->assertEqual($mapping, $field_mapping, 'Field mapping saved.');
+    $this->assertEquals($mapping, $field_mapping, 'Field mapping saved.');
 
     // Test that the field mapping can be edited.
     $mapping = [
@@ -105,7 +105,7 @@ public function testFieldMapping() {
       ->save();
     $field_mapping = rdf_get_mapping($this->entityType, $this->bundle)
       ->getFieldMapping($field_name);
-    $this->assertEqual($mapping, $field_mapping, 'Field mapping updated.');
+    $this->assertEquals($mapping, $field_mapping, 'Field mapping updated.');
   }
 
 }
diff --git a/core/modules/rdf/tests/src/Kernel/RdfaAttributesTest.php b/core/modules/rdf/tests/src/Kernel/RdfaAttributesTest.php
index 39f4831223..86f9e66602 100644
--- a/core/modules/rdf/tests/src/Kernel/RdfaAttributesTest.php
+++ b/core/modules/rdf/tests/src/Kernel/RdfaAttributesTest.php
@@ -130,7 +130,7 @@ protected function _testAttributes($expected_attributes, $field_mapping, $data =
     $attributes = rdf_rdfa_attributes($mapping, $data);
     ksort($expected_attributes);
     ksort($attributes);
-    $this->assertEqual($expected_attributes, $attributes);
+    $this->assertEquals($expected_attributes, $attributes);
   }
 
 }
diff --git a/core/modules/responsive_image/src/Tests/ResponsiveImageFieldDisplayTest.php b/core/modules/responsive_image/src/Tests/ResponsiveImageFieldDisplayTest.php
index b50d71be65..abd201719b 100644
--- a/core/modules/responsive_image/src/Tests/ResponsiveImageFieldDisplayTest.php
+++ b/core/modules/responsive_image/src/Tests/ResponsiveImageFieldDisplayTest.php
@@ -248,11 +248,11 @@ protected function doTestResponsiveImageFieldFormatters($scheme, $empty_styles =
     $this->removeWhiteSpace();
     $this->assertRaw($default_output, 'Image linked to file formatter displaying correctly on full node view.');
     // Verify that the image can be downloaded.
-    $this->assertEqual(file_get_contents($test_image->uri), $this->drupalGet(file_create_url($image_uri)), 'File was downloaded successfully.');
+    $this->assertEquals(file_get_contents($test_image->uri), $this->drupalGet(file_create_url($image_uri)), 'File was downloaded successfully.');
     if ($scheme == 'private') {
       // Only verify HTTP headers when using private scheme and the headers are
       // sent by Drupal.
-      $this->assertEqual($this->drupalGetHeader('Content-Type'), 'image/png', 'Content-Type header was sent.');
+      $this->assertEquals($this->drupalGetHeader('Content-Type'), 'image/png', 'Content-Type header was sent.');
       $this->assertTrue(strstr($this->drupalGetHeader('Cache-Control'), 'private') !== FALSE, 'Cache-Control header was sent.');
 
       // Log out and try to access the file.
diff --git a/core/modules/rest/src/Tests/RESTTestBase.php b/core/modules/rest/src/Tests/RESTTestBase.php
index 3f97e46901..cd6f172054 100644
--- a/core/modules/rest/src/Tests/RESTTestBase.php
+++ b/core/modules/rest/src/Tests/RESTTestBase.php
@@ -245,7 +245,7 @@ protected function assertResponse($code, $message = '', $group = 'Browser') {
     if (!isset($this->response)) {
       return parent::assertResponse($code, $message, $group);
     }
-    return $this->assertEqual($code, $this->response->getStatusCode(), $message ? $message : "HTTP response expected $code, actual {$this->response->getStatusCode()}", $group);
+    return $this->assertEquals($code, $this->response->getStatusCode(), $message ? $message : "HTTP response expected $code, actual {$this->response->getStatusCode()}", $group);
   }
 
   /**
diff --git a/core/modules/rest/tests/src/Functional/Update/EntityResourcePermissionsUpdateTest.php b/core/modules/rest/tests/src/Functional/Update/EntityResourcePermissionsUpdateTest.php
index 9add9c5d90..f8a85371fb 100644
--- a/core/modules/rest/tests/src/Functional/Update/EntityResourcePermissionsUpdateTest.php
+++ b/core/modules/rest/tests/src/Functional/Update/EntityResourcePermissionsUpdateTest.php
@@ -41,7 +41,7 @@ public function testBcEntityResourcePermissionSettingAdded() {
     // Make sure we have the expected values before the update.
     $rest_settings = $this->config('rest.settings');
     $this->assertFalse(array_key_exists('bc_entity_resource_permissions', $rest_settings->getRawData()));
-    $this->assertEqual([], array_filter($permission_handler->getPermissions(), $is_rest_resource_permission));
+    $this->assertEquals([], array_filter($permission_handler->getPermissions(), $is_rest_resource_permission));
 
     $this->runUpdates();
 
@@ -50,7 +50,7 @@ public function testBcEntityResourcePermissionSettingAdded() {
     $this->assertTrue(array_key_exists('bc_entity_resource_permissions', $rest_settings->getRawData()));
     $this->assertTrue($rest_settings->get('bc_entity_resource_permissions'));
     $rest_permissions = array_keys(array_filter($permission_handler->getPermissions(), $is_rest_resource_permission));
-    $this->assertEqual(['restful delete entity:node', 'restful get entity:node', 'restful patch entity:node', 'restful post entity:node'], $rest_permissions);
+    $this->assertEquals(['restful delete entity:node', 'restful get entity:node', 'restful patch entity:node', 'restful post entity:node'], $rest_permissions);
   }
 
 }
diff --git a/core/modules/rest/tests/src/Functional/Views/StyleSerializerTest.php b/core/modules/rest/tests/src/Functional/Views/StyleSerializerTest.php
index 6de1ec97ce..9f65ed1d4d 100644
--- a/core/modules/rest/tests/src/Functional/Views/StyleSerializerTest.php
+++ b/core/modules/rest/tests/src/Functional/Views/StyleSerializerTest.php
@@ -330,7 +330,7 @@ public function testRestRenderCaching() {
     $result2 = Json::decode($this->drupalGet('test/serialize/entity', ['query' => ['_format' => 'json']]));
     $this->addRequestWithFormat('json');
     $this->assertHeader('content-type', 'application/json');
-    $this->assertEqual($result2, $result1);
+    $this->assertEquals($result2, $result1);
     $this->assertCacheContexts($cache_contexts);
     $this->assertCacheTags($cache_tags);
     $this->assertTrue($render_cache->get($original));
@@ -602,7 +602,7 @@ public function testLivePreview() {
     $this->executeView($view);
     $build = $view->preview();
     $rendered_xml = $build['#plain_text'];
-    $this->assertEqual($rendered_xml, $expected, 'Ensure we preview xml when we change the request format.');
+    $this->assertEquals($rendered_xml, $expected, 'Ensure we preview xml when we change the request format.');
   }
 
   /**
@@ -627,8 +627,8 @@ public function testFieldapiField() {
     $node = $this->drupalCreateNode();
 
     $result = Json::decode($this->drupalGet('test/serialize/node-field', ['query' => ['_format' => 'json']]));
-    $this->assertEqual($result[0]['nid'], $node->id());
-    $this->assertEqual($result[0]['body'], $node->body->processed);
+    $this->assertEquals($result[0]['nid'], $node->id());
+    $this->assertEquals($result[0]['body'], $node->body->processed);
 
     // Make sure that serialized fields are not exposed to XSS.
     $node = $this->drupalCreateNode();
@@ -638,7 +638,7 @@ public function testFieldapiField() {
     ];
     $node->save();
     $result = Json::decode($this->drupalGet('test/serialize/node-field', ['query' => ['_format' => 'json']]));
-    $this->assertEqual($result[1]['nid'], $node->id());
+    $this->assertEquals($result[1]['nid'], $node->id());
     $this->assertTrue(strpos($this->getRawContent(), "<script") === FALSE, "No script tag is present in the raw page contents.");
 
     $this->drupalLogin($this->adminUser);
@@ -684,8 +684,8 @@ public function testFieldapiField() {
     $this->executeView($view);
 
     $result = Json::decode($this->drupalGet('test/serialize/node-field', ['query' => ['_format' => 'json']]));
-    $this->assertEqual(count($result[2]['body']), $node->body->count(), 'Expected count of values');
-    $this->assertEqual($result[2]['body'], array_map(function ($item) {
+    $this->assertEquals(count($result[2]['body']), $node->body->count(), 'Expected count of values');
+    $this->assertEquals($result[2]['body'], array_map(function ($item) {
       return $item['value'];
     }, $node->body->getValue()), 'Expected raw body values found.');
   }
@@ -738,7 +738,7 @@ public function testGroupRows() {
     // Check if the field_group_rows field is grouped.
     $expected = [];
     $expected[] = [$field_name => implode(', ', $grouped_field_values)];
-    $this->assertEqual($serializer->serialize($expected, 'json'), (string) $renderer->renderRoot($build));
+    $this->assertEquals($serializer->serialize($expected, 'json'), (string) $renderer->renderRoot($build));
     // Set the group rows setting to false.
     $view = Views::getView('test_serializer_node_display_field');
     $view->setDisplay('rest_export_1');
@@ -750,7 +750,7 @@ public function testGroupRows() {
     foreach ($grouped_field_values as $grouped_field_value) {
       $expected[] = [$field_name => $grouped_field_value];
     }
-    $this->assertEqual($serializer->serialize($expected, 'json'), (string) $renderer->renderRoot($build));
+    $this->assertEquals($serializer->serialize($expected, 'json'), (string) $renderer->renderRoot($build));
   }
 
   /**
@@ -784,7 +784,7 @@ public function testRestViewExposedFilter() {
       ],
     ];
 
-    $this->assertEqual($result, $expected, 'Querying a view with no exposed filter returns all nodes.');
+    $this->assertEquals($result, $expected, 'Querying a view with no exposed filter returns all nodes.');
 
     // Test that title starts with 'Node 11' query finds 2 of the 3 nodes.
     $result = Json::decode($this->drupalGet('test/serialize/node-exposed-filter', ['query' => ['_format' => 'json', 'title' => 'Node 11']]));
@@ -809,7 +809,7 @@ public function testRestViewExposedFilter() {
       'url',
     ];
 
-    $this->assertEqual($result, $expected, 'Querying a view with a starts with exposed filter on the title returns nodes whose title starts with value provided.');
+    $this->assertEquals($result, $expected, 'Querying a view with a starts with exposed filter on the title returns nodes whose title starts with value provided.');
     $this->assertCacheContexts($cache_contexts);
   }
 
diff --git a/core/modules/search/src/Tests/SearchBlockTest.php b/core/modules/search/src/Tests/SearchBlockTest.php
index 21afda7f05..bd33f0984d 100644
--- a/core/modules/search/src/Tests/SearchBlockTest.php
+++ b/core/modules/search/src/Tests/SearchBlockTest.php
@@ -70,7 +70,7 @@ public function testSearchFormBlock() {
     /** @var $search_page_repository \Drupal\search\SearchPageRepositoryInterface */
     $search_page_repository = \Drupal::service('search.search_page_repository');
     $entity_id = $search_page_repository->getDefaultSearchPage();
-    $this->assertEqual(
+    $this->assertEquals(
       $this->getUrl(),
       \Drupal::url('search.view_' . $entity_id, [], ['query' => ['keys' => $terms['keys']], 'absolute' => TRUE]),
       'Submitted to correct URL.'
@@ -84,7 +84,7 @@ public function testSearchFormBlock() {
 
     // Confirm that the user is redirected to the search page, when form is
     // submitted empty.
-    $this->assertEqual(
+    $this->assertEquals(
       $this->getUrl(),
       \Drupal::url('search.view_' . $entity_id, [], ['query' => ['keys' => ''], 'absolute' => TRUE]),
       'Redirected to correct URL.'
diff --git a/core/modules/search/src/Tests/SearchConfigSettingsFormTest.php b/core/modules/search/src/Tests/SearchConfigSettingsFormTest.php
index b081b857d0..9a92a9ae73 100644
--- a/core/modules/search/src/Tests/SearchConfigSettingsFormTest.php
+++ b/core/modules/search/src/Tests/SearchConfigSettingsFormTest.php
@@ -177,7 +177,7 @@ public function testSearchModuleDisabling() {
       $this->submitGetForm('node', $terms, t('Search'));
       $current = $this->getURL();
       $expected = \Drupal::url('search.view_' . $entity->id(), [], ['query' => ['keys' => $info['keys']], 'absolute' => TRUE]);
-      $this->assertEqual($current, $expected, 'Block redirected to right search page');
+      $this->assertEquals($current, $expected, 'Block redirected to right search page');
 
       // Try an invalid search path, which should 404.
       $this->drupalGet('search/not_a_plugin_path');
diff --git a/core/modules/search/src/Tests/SearchEmbedFormTest.php b/core/modules/search/src/Tests/SearchEmbedFormTest.php
index 5f3fbea32b..73048d828e 100644
--- a/core/modules/search/src/Tests/SearchEmbedFormTest.php
+++ b/core/modules/search/src/Tests/SearchEmbedFormTest.php
@@ -57,7 +57,7 @@ public function testEmbeddedForm() {
       t('Send away'));
     $this->assertText(t('Test form was submitted'), 'Form message appears');
     $count = \Drupal::state()->get('search_embedded_form.submit_count');
-    $this->assertEqual($this->submitCount + 1, $count, 'Form submission count is correct');
+    $this->assertEquals($this->submitCount + 1, $count, 'Form submission count is correct');
     $this->submitCount = $count;
 
     // Now verify that we can see and submit the form from the search results.
@@ -68,7 +68,7 @@ public function testEmbeddedForm() {
       t('Send away'));
     $this->assertText(t('Test form was submitted'), 'Form message appears');
     $count = \Drupal::state()->get('search_embedded_form.submit_count');
-    $this->assertEqual($this->submitCount + 1, $count, 'Form submission count is correct');
+    $this->assertEquals($this->submitCount + 1, $count, 'Form submission count is correct');
     $this->submitCount = $count;
 
     // Now verify that if we submit the search form, it doesn't count as
@@ -78,7 +78,7 @@ public function testEmbeddedForm() {
       t('Search'));
     $this->assertNoText(t('Test form was submitted'), 'Form message does not appear');
     $count = \Drupal::state()->get('search_embedded_form.submit_count');
-    $this->assertEqual($this->submitCount, $count, 'Form submission count is correct');
+    $this->assertEquals($this->submitCount, $count, 'Form submission count is correct');
     $this->submitCount = $count;
   }
 
diff --git a/core/modules/search/src/Tests/SearchPageTextTest.php b/core/modules/search/src/Tests/SearchPageTextTest.php
index 95d097d207..2e763845bf 100644
--- a/core/modules/search/src/Tests/SearchPageTextTest.php
+++ b/core/modules/search/src/Tests/SearchPageTextTest.php
@@ -91,7 +91,7 @@ public function testSearchText() {
     $edit['keys'] = $search_terms;
     $this->drupalPostForm('search/node', $edit, t('Search'));
     $actual_title = (string) current($this->xpath('//title'));
-    $this->assertEqual($actual_title, Html::decodeEntities(t($title_source, ['@keywords' => Unicode::truncate($search_terms, 60, TRUE, TRUE)])), 'Search page title is correct');
+    $this->assertEquals($actual_title, Html::decodeEntities(t($title_source, ['@keywords' => Unicode::truncate($search_terms, 60, TRUE, TRUE)])), 'Search page title is correct');
 
     $edit['keys'] = $this->searchingUser->getUsername();
     $this->drupalPostForm('search/user', $edit, t('Search'));
diff --git a/core/modules/search/src/Tests/SearchRankingTest.php b/core/modules/search/src/Tests/SearchRankingTest.php
index 55da9acbeb..2e90e7e492 100644
--- a/core/modules/search/src/Tests/SearchRankingTest.php
+++ b/core/modules/search/src/Tests/SearchRankingTest.php
@@ -131,7 +131,7 @@ public function testRankings() {
       // Do the search and assert the results.
       $this->nodeSearch->getPlugin()->setSearch('rocks', [], []);
       $set = $this->nodeSearch->getPlugin()->execute();
-      $this->assertEqual($set[0]['node']->id(), $nodes[$node_rank][1]->id(), 'Search ranking "' . $node_rank . '" order.');
+      $this->assertEquals($set[0]['node']->id(), $nodes[$node_rank][1]->id(), 'Search ranking "' . $node_rank . '" order.');
 
       // Clear this ranking for the next test.
       $edit['rankings[' . $node_rank . '][value]'] = 0;
@@ -166,8 +166,8 @@ public function testRankings() {
     // first, then the promoted node, then all the rest.
     $this->nodeSearch->getPlugin()->setSearch('rocks', [], []);
     $set = $this->nodeSearch->getPlugin()->execute();
-    $this->assertEqual($set[0]['node']->id(), $nodes['sticky'][1]->id(), 'Search ranking for sticky first worked.');
-    $this->assertEqual($set[1]['node']->id(), $nodes['promote'][1]->id(), 'Search ranking for promoted second worked.');
+    $this->assertEquals($set[0]['node']->id(), $nodes['sticky'][1]->id(), 'Search ranking for sticky first worked.');
+    $this->assertEquals($set[1]['node']->id(), $nodes['promote'][1]->id(), 'Search ranking for promoted second worked.');
 
     // Try with recent, then comments. This is a test for issues
     // https://www.drupal.org/node/771596 and
@@ -191,8 +191,8 @@ public function testRankings() {
     // first, then the commented node, then all the rest.
     $this->nodeSearch->getPlugin()->setSearch('rocks', [], []);
     $set = $this->nodeSearch->getPlugin()->execute();
-    $this->assertEqual($set[0]['node']->id(), $nodes['recent'][1]->id(), 'Search ranking for recent first worked.');
-    $this->assertEqual($set[1]['node']->id(), $nodes['comments'][1]->id(), 'Search ranking for comments second worked.');
+    $this->assertEquals($set[0]['node']->id(), $nodes['recent'][1]->id(), 'Search ranking for recent first worked.');
+    $this->assertEquals($set[1]['node']->id(), $nodes['comments'][1]->id(), 'Search ranking for comments second worked.');
 
   }
 
@@ -244,10 +244,10 @@ public function testHTMLRankings() {
     foreach ($sorted_tags as $tag_rank => $tag) {
       // Assert the results.
       if ($tag == 'notag') {
-        $this->assertEqual($set[$tag_rank]['node']->id(), $nodes[$tag]->id(), 'Search tag ranking for plain text order.');
+        $this->assertEquals($set[$tag_rank]['node']->id(), $nodes[$tag]->id(), 'Search tag ranking for plain text order.');
       }
       else {
-        $this->assertEqual($set[$tag_rank]['node']->id(), $nodes[$tag]->id(), 'Search tag ranking for "&lt;' . $sorted_tags[$tag_rank] . '&gt;" order.');
+        $this->assertEquals($set[$tag_rank]['node']->id(), $nodes[$tag]->id(), 'Search tag ranking for "&lt;' . $sorted_tags[$tag_rank] . '&gt;" order.');
       }
     }
 
@@ -269,7 +269,7 @@ public function testHTMLRankings() {
       $set = array_slice($set, -2, 1);
 
       // Assert the results.
-      $this->assertEqual($set[0]['node']->id(), $node->id(), 'Search tag ranking for "&lt;' . $tag . '&gt;" order.');
+      $this->assertEquals($set[0]['node']->id(), $node->id(), 'Search tag ranking for "&lt;' . $tag . '&gt;" order.');
 
       // Delete node so it doesn't show up in subsequent search results.
       $node->delete();
diff --git a/core/modules/search/tests/src/Functional/SearchMultilingualEntityTest.php b/core/modules/search/tests/src/Functional/SearchMultilingualEntityTest.php
index 9b3a6ddc85..14a5e988a0 100644
--- a/core/modules/search/tests/src/Functional/SearchMultilingualEntityTest.php
+++ b/core/modules/search/tests/src/Functional/SearchMultilingualEntityTest.php
@@ -128,7 +128,7 @@ public function testMultilingualSearch() {
     // Now index the rest of the nodes.
     // Make sure index throttle is high enough, via the UI.
     $this->drupalPostForm('admin/config/search/pages', ['cron_limit' => 20], t('Save configuration'));
-    $this->assertEqual(20, $this->config('search.settings')->get('index.cron_limit', 100), 'Config setting was saved correctly');
+    $this->assertEquals(20, $this->config('search.settings')->get('index.cron_limit', 100), 'Config setting was saved correctly');
     // Get a new search plugin, to make sure it has this setting.
     $this->plugin = $this->container->get('plugin.manager.search')->createInstance('node_search');
 
@@ -150,7 +150,7 @@ public function testMultilingualSearch() {
     // This should find two results for the second and third node.
     $this->plugin->setSearch('English OR Hungarian', [], []);
     $search_result = $this->plugin->execute();
-    $this->assertEqual(count($search_result), 2, 'Found two results.');
+    $this->assertEquals(count($search_result), 2, 'Found two results.');
     // Nodes are saved directly after each other and have the same created time
     // so testing for the order is not possible.
     $results = [$search_result[0]['title'], $search_result[1]['title']];
@@ -161,24 +161,24 @@ public function testMultilingualSearch() {
     $this->plugin->setSearch('English OR Hungarian', ['f' => ['language:hu']], []);
     $search_result = $this->plugin->execute();
 
-    $this->assertEqual(count($search_result), 1, 'The search found only one result');
-    $this->assertEqual($search_result[0]['title'], 'Third node this is the Hungarian title', 'The search finds the correct Hungarian title.');
+    $this->assertEquals(count($search_result), 1, 'The search found only one result');
+    $this->assertEquals($search_result[0]['title'], 'Third node this is the Hungarian title', 'The search finds the correct Hungarian title.');
 
     // Test for search with common key word across multiple languages.
     $this->plugin->setSearch('node', [], []);
     $search_result = $this->plugin->execute();
 
-    $this->assertEqual(count($search_result), 6, 'The search found total six results');
+    $this->assertEquals(count($search_result), 6, 'The search found total six results');
 
     // Test with language filters and common key word.
     $this->plugin->setSearch('node', ['f' => ['language:hu']], []);
     $search_result = $this->plugin->execute();
 
-    $this->assertEqual(count($search_result), 2, 'The search found 2 results');
+    $this->assertEquals(count($search_result), 2, 'The search found 2 results');
 
     // Test to check for the language of result items.
     foreach ($search_result as $result) {
-      $this->assertEqual($result['langcode'], 'hu', 'The search found the correct Hungarian result');
+      $this->assertEquals($result['langcode'], 'hu', 'The search found the correct Hungarian result');
     }
 
     // Mark one of the nodes for reindexing, using the API function, and
@@ -214,7 +214,7 @@ public function testMultilingualSearch() {
       ->condition('sid', $this->searchableNodes[1]->id())
       ->execute()
       ->fetchField();
-    $this->assertEqual($result, $old, 'Reindex time was not updated if node was already marked');
+    $this->assertEquals($result, $old, 'Reindex time was not updated if node was already marked');
 
     // Add a bogus entry to the search index table using a different search
     // type. This will not appear in the index status, because it is not
@@ -261,8 +261,8 @@ public function testMultilingualSearch() {
   protected function assertIndexCounts($remaining, $total, $message) {
     // Check status via plugin method call.
     $status = $this->plugin->indexStatus();
-    $this->assertEqual($status['remaining'], $remaining, 'Remaining items ' . $message . ' is ' . $remaining);
-    $this->assertEqual($status['total'], $total, 'Total items ' . $message . ' is ' . $total);
+    $this->assertEquals($status['remaining'], $remaining, 'Remaining items ' . $message . ' is ' . $remaining);
+    $this->assertEquals($status['total'], $total, 'Total items ' . $message . ' is ' . $total);
 
     // Check text in progress section of Search settings page. Note that this
     // test avoids using
@@ -302,7 +302,7 @@ protected function assertDatabaseCounts($count_node, $count_foo, $message) {
       ->groupBy('sid')
       ->execute()
       ->fetchCol();
-    $this->assertEqual($count_node, count($results), 'Node count was ' . $count_node . ' for ' . $message);
+    $this->assertEquals($count_node, count($results), 'Node count was ' . $count_node . ' for ' . $message);
 
     // Count number of "foo" records.
     $results = db_select('search_dataset', 'i')
@@ -310,7 +310,7 @@ protected function assertDatabaseCounts($count_node, $count_foo, $message) {
       ->condition('type', 'foo')
       ->execute()
       ->fetchCol();
-    $this->assertEqual($count_foo, count($results), 'Foo count was ' . $count_foo . ' for ' . $message);
+    $this->assertEquals($count_foo, count($results), 'Foo count was ' . $count_foo . ' for ' . $message);
 
   }
 
diff --git a/core/modules/search/tests/src/Functional/SearchSimplifyTest.php b/core/modules/search/tests/src/Functional/SearchSimplifyTest.php
index c306119912..15462c18d5 100644
--- a/core/modules/search/tests/src/Functional/SearchSimplifyTest.php
+++ b/core/modules/search/tests/src/Functional/SearchSimplifyTest.php
@@ -75,7 +75,7 @@ public function testSearchSimplifyPunctuation() {
 
     foreach ($cases as $case) {
       $out = trim(search_simplify($case[0]));
-      $this->assertEqual($out, $case[1], $case[2]);
+      $this->assertEquals($out, $case[1], $case[2]);
     }
   }
 
diff --git a/core/modules/search/tests/src/Functional/SearchTokenizerTest.php b/core/modules/search/tests/src/Functional/SearchTokenizerTest.php
index 218ec185b1..f0dfa9a556 100644
--- a/core/modules/search/tests/src/Functional/SearchTokenizerTest.php
+++ b/core/modules/search/tests/src/Functional/SearchTokenizerTest.php
@@ -98,7 +98,7 @@ public function testTokenizer() {
     $expected = Unicode::strtolower(implode(' ', $chars));
 
     // Verify that the output matches what we expect.
-    $this->assertEqual($out, $expected, 'CJK tokenizer worked on all supplied CJK characters');
+    $this->assertEquals($out, $expected, 'CJK tokenizer worked on all supplied CJK characters');
   }
 
   /**
@@ -119,7 +119,7 @@ public function testNoTokenizer() {
     $letters = 'abcdefghijklmnopqrstuvwxyz';
     $out = trim(search_simplify($letters));
 
-    $this->assertEqual($letters, $out, 'Letters are not CJK tokenized');
+    $this->assertEquals($letters, $out, 'Letters are not CJK tokenized');
   }
 
   /**
diff --git a/core/modules/search/tests/src/Kernel/SearchExcerptTest.php b/core/modules/search/tests/src/Kernel/SearchExcerptTest.php
index e10075d09a..8210399b28 100644
--- a/core/modules/search/tests/src/Kernel/SearchExcerptTest.php
+++ b/core/modules/search/tests/src/Kernel/SearchExcerptTest.php
@@ -32,23 +32,23 @@ public function testSearchExcerpt() {
     $text = 'The <strong>quick</strong> <a href="#">brown</a> fox &amp; jumps <h2>over</h2> the lazy dog';
     $expected = 'The quick brown fox &amp; jumps over the lazy dog';
     $result = $this->doSearchExcerpt('nothing', $text);
-    $this->assertEqual(preg_replace('| +|', ' ', $result), $expected, 'Entire string, stripped of HTML tags, is returned when keyword is not found in short string');
+    $this->assertEquals(preg_replace('| +|', ' ', $result), $expected, 'Entire string, stripped of HTML tags, is returned when keyword is not found in short string');
 
     $result = $this->doSearchExcerpt('fox', $text);
-    $this->assertEqual($result, 'The quick brown <strong>fox</strong> &amp; jumps over the lazy dog', 'Found keyword is highlighted');
+    $this->assertEquals($result, 'The quick brown <strong>fox</strong> &amp; jumps over the lazy dog', 'Found keyword is highlighted');
 
     $expected = '<strong>The</strong> quick brown fox &amp; jumps over <strong>the</strong> lazy dog';
     $result = $this->doSearchExcerpt('The', $text);
-    $this->assertEqual(preg_replace('| +|', ' ', $result), $expected, 'Keyword is highlighted at beginning of short string');
+    $this->assertEquals(preg_replace('| +|', ' ', $result), $expected, 'Keyword is highlighted at beginning of short string');
 
     $expected = 'The quick brown fox &amp; jumps over the lazy <strong>dog</strong>';
     $result = $this->doSearchExcerpt('dog', $text);
-    $this->assertEqual(preg_replace('| +|', ' ', $result), $expected, 'Keyword is highlighted at end of short string');
+    $this->assertEquals(preg_replace('| +|', ' ', $result), $expected, 'Keyword is highlighted at end of short string');
 
     $longtext = str_repeat(str_replace('brown', 'silver', $text) . ' ', 10) . $text . str_repeat(' ' . str_replace('brown', 'pink', $text), 10);
     $result = $this->doSearchExcerpt('brown', $longtext);
     $expected = '… silver fox &amp; jumps over the lazy dog The quick <strong>brown</strong> fox &amp; jumps over the lazy dog The quick …';
-    $this->assertEqual($result, $expected, 'Snippet around keyword in long text is correctly capped');
+    $this->assertEquals($result, $expected, 'Snippet around keyword in long text is correctly capped');
 
     $longtext = str_repeat($text . ' ', 10);
     $result = $this->doSearchExcerpt('nothing', $longtext);
diff --git a/core/modules/search/tests/src/Kernel/SearchMatchTest.php b/core/modules/search/tests/src/Kernel/SearchMatchTest.php
index 7037646bc8..efac00161e 100644
--- a/core/modules/search/tests/src/Kernel/SearchMatchTest.php
+++ b/core/modules/search/tests/src/Kernel/SearchMatchTest.php
@@ -228,7 +228,7 @@ public function _testQueryMatching($query, $set, $results) {
     // Compare $results and $found.
     sort($found);
     sort($results);
-    $this->assertEqual($found, $results, "Query matching '$query'");
+    $this->assertEquals($found, $results, "Query matching '$query'");
   }
 
   /**
@@ -246,10 +246,10 @@ public function _testQueryScores($query, $set, $results) {
     // Check order.
     $sorted = $scores;
     sort($sorted);
-    $this->assertEqual($scores, array_reverse($sorted), "Query order '$query'");
+    $this->assertEquals($scores, array_reverse($sorted), "Query order '$query'");
 
     // Check range.
-    $this->assertEqual(!count($scores) || (min($scores) > 0.0 && max($scores) <= 1.0001), TRUE, "Query scoring '$query'");
+    $this->assertEquals(!count($scores) || (min($scores) > 0.0 && max($scores) <= 1.0001), TRUE, "Query scoring '$query'");
   }
 
 }
diff --git a/core/modules/serialization/tests/src/Kernel/EntityResolverTest.php b/core/modules/serialization/tests/src/Kernel/EntityResolverTest.php
index 38af46e994..a013b843f1 100644
--- a/core/modules/serialization/tests/src/Kernel/EntityResolverTest.php
+++ b/core/modules/serialization/tests/src/Kernel/EntityResolverTest.php
@@ -92,7 +92,7 @@ public function testUuidEntityResolver() {
 
     $denormalized = $this->container->get('serializer')->denormalize($data, 'Drupal\entity_test\Entity\EntityTestMulRev', $this->format);
     $field_value = $denormalized->get('field_test_entity_reference')->getValue();
-    $this->assertEqual($field_value[0]['target_id'], 1, 'Entity reference resolved using UUID.');
+    $this->assertEquals($field_value[0]['target_id'], 1, 'Entity reference resolved using UUID.');
   }
 
 }
diff --git a/core/modules/serialization/tests/src/Kernel/EntitySerializationTest.php b/core/modules/serialization/tests/src/Kernel/EntitySerializationTest.php
index 5b71b93b7a..9844152bbb 100644
--- a/core/modules/serialization/tests/src/Kernel/EntitySerializationTest.php
+++ b/core/modules/serialization/tests/src/Kernel/EntitySerializationTest.php
@@ -143,7 +143,7 @@ public function testNormalize() {
     foreach (array_keys($expected) as $fieldName) {
       $this->assertSame($expected[$fieldName], $normalized[$fieldName], "Normalization produces expected array for $fieldName.");
     }
-    $this->assertEqual(array_diff_key($normalized, $expected), [], 'No unexpected data is added to the normalized array.');
+    $this->assertEquals(array_diff_key($normalized, $expected), [], 'No unexpected data is added to the normalized array.');
   }
 
   /**
diff --git a/core/modules/shortcut/tests/src/Functional/ShortcutLinksTest.php b/core/modules/shortcut/tests/src/Functional/ShortcutLinksTest.php
index 77e88959b9..2e2481e1f4 100644
--- a/core/modules/shortcut/tests/src/Functional/ShortcutLinksTest.php
+++ b/core/modules/shortcut/tests/src/Functional/ShortcutLinksTest.php
@@ -98,8 +98,8 @@ public function testShortcutLinkAdd() {
       // Test the node routes with parameters.
       $entity->save();
       $loaded = Shortcut::load($entity->id());
-      $this->assertEqual($entity->link->uri, $loaded->link->uri);
-      $this->assertEqual($entity->link->options, $loaded->link->options);
+      $this->assertEquals($entity->link->uri, $loaded->link->uri);
+      $this->assertEquals($entity->link->options, $loaded->link->options);
     }
 
     // Log in as non admin user, to check that access is checked when creating
@@ -376,15 +376,15 @@ public function testShortcutLinkOrder() {
     $this->drupalLogin($this->drupalCreateUser(['access toolbar', 'access shortcuts', 'access content overview', 'administer content types']));
     $this->drupalGet(Url::fromRoute('<front>'));
     $shortcuts = $this->cssSelect('#toolbar-item-shortcuts-tray .toolbar-menu a');
-    $this->assertEqual($shortcuts[0]->getText(), 'Add content');
-    $this->assertEqual($shortcuts[1]->getText(), 'All content');
+    $this->assertEquals($shortcuts[0]->getText(), 'Add content');
+    $this->assertEquals($shortcuts[1]->getText(), 'All content');
     foreach ($this->set->getShortcuts() as $shortcut) {
       $shortcut->setWeight($shortcut->getWeight() * -1)->save();
     }
     $this->drupalGet(Url::fromRoute('<front>'));
     $shortcuts = $this->cssSelect('#toolbar-item-shortcuts-tray .toolbar-menu a');
-    $this->assertEqual($shortcuts[0]->getText(), 'All content');
-    $this->assertEqual($shortcuts[1]->getText(), 'Add content');
+    $this->assertEquals($shortcuts[0]->getText(), 'All content');
+    $this->assertEquals($shortcuts[1]->getText(), 'Add content');
   }
 
   /**
diff --git a/core/modules/shortcut/tests/src/Functional/ShortcutSetsTest.php b/core/modules/shortcut/tests/src/Functional/ShortcutSetsTest.php
index b897df752d..792a409c79 100644
--- a/core/modules/shortcut/tests/src/Functional/ShortcutSetsTest.php
+++ b/core/modules/shortcut/tests/src/Functional/ShortcutSetsTest.php
@@ -63,12 +63,12 @@ public function testShortcutSetEdit() {
 
     // Test the table header.
     $elements = $this->xpath('//div[@class="layout-content"]//table/thead/tr/th');
-    $this->assertEqual(count($elements), 3, 'Correct number of table header cells found.');
+    $this->assertEquals(count($elements), 3, 'Correct number of table header cells found.');
 
     // Test the contents of each th cell.
     $expected_items = [t('Name'), t('Weight'), t('Operations')];
     foreach ($elements as $key => $element) {
-      $this->assertEqual($element->getText(), $expected_items[$key]);
+      $this->assertEquals($element->getText(), $expected_items[$key]);
     }
 
     // Look for test shortcuts in the table.
@@ -134,7 +134,7 @@ public function testShortcutSetSwitchCreate() {
     $this->drupalPostForm('user/' . $this->adminUser->id() . '/shortcuts', $edit, t('Change set'));
     $current_set = shortcut_current_displayed_set($this->adminUser);
     $this->assertNotEqual($current_set->id(), $this->set->id(), 'A shortcut set can be switched to at the same time as it is created.');
-    $this->assertEqual($current_set->label(), $edit['label'], 'The new set is correctly assigned to the user.');
+    $this->assertEquals($current_set->label(), $edit['label'], 'The new set is correctly assigned to the user.');
   }
 
   /**
@@ -145,7 +145,7 @@ public function testShortcutSetSwitchNoSetName() {
     $this->drupalPostForm('user/' . $this->adminUser->id() . '/shortcuts', $edit, t('Change set'));
     $this->assertText(t('The new set label is required.'));
     $current_set = shortcut_current_displayed_set($this->adminUser);
-    $this->assertEqual($current_set->id(), $this->set->id(), 'Attempting to switch to a new shortcut set without providing a set name does not succeed.');
+    $this->assertEquals($current_set->id(), $this->set->id(), 'Attempting to switch to a new shortcut set without providing a set name does not succeed.');
     $this->assertFieldByXPath("//input[@name='label' and contains(concat(' ', normalize-space(@class), ' '), ' error ')]", NULL, 'The new set label field has the error class');
   }
 
diff --git a/core/modules/simpletest/src/AssertContentTrait.php b/core/modules/simpletest/src/AssertContentTrait.php
index 3c33e5879f..37ff052dd2 100644
--- a/core/modules/simpletest/src/AssertContentTrait.php
+++ b/core/modules/simpletest/src/AssertContentTrait.php
@@ -809,7 +809,7 @@ protected function assertTitle($title, $message = '', $group = 'Other') {
           '@expected' => var_export($title, TRUE),
         ]);
       }
-      return $this->assertEqual($actual, $title, $message, $group);
+      return $this->assertEquals($actual, $title, $message, $group);
     }
     return $this->fail('No title element found on the page.');
   }
diff --git a/core/modules/simpletest/src/InstallerTestBase.php b/core/modules/simpletest/src/InstallerTestBase.php
index 96d98e05aa..913b6d10c9 100644
--- a/core/modules/simpletest/src/InstallerTestBase.php
+++ b/core/modules/simpletest/src/InstallerTestBase.php
@@ -274,7 +274,7 @@ protected function continueOnExpectedWarnings($expected_warnings = []) {
     foreach ($warning_elements as $warning) {
       $warnings[] = trim((string) $warning);
     }
-    $this->assertEqual($expected_warnings, $warnings);
+    $this->assertEquals($expected_warnings, $warnings);
     $this->clickLink('continue anyway');
   }
 
diff --git a/core/modules/simpletest/src/Tests/BrowserTest.php b/core/modules/simpletest/src/Tests/BrowserTest.php
index fdfaff851d..944ffe81c9 100644
--- a/core/modules/simpletest/src/Tests/BrowserTest.php
+++ b/core/modules/simpletest/src/Tests/BrowserTest.php
@@ -42,17 +42,17 @@ public function testGetAbsoluteUrl() {
 
     $this->drupalGet($url);
     $absolute = \Drupal::url('user.login', [], ['absolute' => TRUE]);
-    $this->assertEqual($absolute, $this->url, 'Passed and requested URL are equal.');
-    $this->assertEqual($this->url, $this->getAbsoluteUrl($this->url), 'Requested and returned absolute URL are equal.');
+    $this->assertEquals($absolute, $this->url, 'Passed and requested URL are equal.');
+    $this->assertEquals($this->url, $this->getAbsoluteUrl($this->url), 'Requested and returned absolute URL are equal.');
 
     $this->drupalPostForm(NULL, [], t('Log in'));
-    $this->assertEqual($absolute, $this->url, 'Passed and requested URL are equal.');
-    $this->assertEqual($this->url, $this->getAbsoluteUrl($this->url), 'Requested and returned absolute URL are equal.');
+    $this->assertEquals($absolute, $this->url, 'Passed and requested URL are equal.');
+    $this->assertEquals($this->url, $this->getAbsoluteUrl($this->url), 'Requested and returned absolute URL are equal.');
 
     $this->clickLink('Create new account');
     $absolute = \Drupal::url('user.register', [], ['absolute' => TRUE]);
-    $this->assertEqual($absolute, $this->url, 'Passed and requested URL are equal.');
-    $this->assertEqual($this->url, $this->getAbsoluteUrl($this->url), 'Requested and returned absolute URL are equal.');
+    $this->assertEquals($absolute, $this->url, 'Passed and requested URL are equal.');
+    $this->assertEquals($this->url, $this->getAbsoluteUrl($this->url), 'Requested and returned absolute URL are equal.');
   }
 
   /**
@@ -73,16 +73,16 @@ public function testXPathEscaping() {
 
     // Matches the first link.
     $urls = $this->xpath('//a[text()=:text]', [':text' => 'A "weird" link, just to bother the dumb "XPath 1.0"']);
-    $this->assertEqual($urls[0]['href'], 'link1', 'Match with quotes.');
+    $this->assertEquals($urls[0]['href'], 'link1', 'Match with quotes.');
 
     $urls = $this->xpath('//a[text()=:text]', [':text' => 'A second "even more weird" link, in memory of George O\'Malley']);
-    $this->assertEqual($urls[0]['href'], 'link2', 'Match with mixed single and double quotes.');
+    $this->assertEquals($urls[0]['href'], 'link2', 'Match with mixed single and double quotes.');
 
     $urls = $this->xpath('//a[text()=:text]', [':text' => 'A $third$ link, so weird it\'s worth $1 million']);
-    $this->assertEqual($urls[0]['href'], 'link3', 'Match with a regular expression back reference symbol (dollar sign).');
+    $this->assertEquals($urls[0]['href'], 'link3', 'Match with a regular expression back reference symbol (dollar sign).');
 
     $urls = $this->xpath('//a[text()=:text]', [':text' => 'A fourth link, containing alternative \\1 regex backreferences \\2']);
-    $this->assertEqual($urls[0]['href'], 'link4', 'Match with another regular expression back reference symbol (double backslash).');
+    $this->assertEquals($urls[0]['href'], 'link4', 'Match with another regular expression back reference symbol (double backslash).');
   }
 
   /**
@@ -93,7 +93,7 @@ public function testCookies() {
     $user = $this->drupalCreateUser();
     $edit = ['name' => $user->getUsername(), 'pass' => $user->pass_raw];
     $this->drupalPostForm('<front>', $edit, t('Log in'));
-    $this->assertEqual(count($this->cookies), 1, 'A cookie is set when the user logs in.');
+    $this->assertEquals(count($this->cookies), 1, 'A cookie is set when the user logs in.');
 
     // Check that the name and value of the cookie match the request data.
     $cookie_header = $this->drupalGetHeader('set-cookie', TRUE);
@@ -105,7 +105,7 @@ public function testCookies() {
     $value = $matches[2];
 
     $this->assertTrue(array_key_exists($name, $this->cookies), 'The cookie name is correct.');
-    $this->assertEqual($value, $this->cookies[$name]['value'], 'The cookie value is correct.');
+    $this->assertEquals($value, $this->cookies[$name]['value'], 'The cookie value is correct.');
 
     // Set a flag indicating that a cookie has been set in this test.
     // @see testCookieDoesNotBleed()
@@ -121,7 +121,7 @@ public function testCookieDoesNotBleed() {
     // In order for this test to be effective it should always run after the
     // testCookies() test.
     $this->assertTrue(static::$cookieSet, 'Tests have been executed in the expected order.');
-    $this->assertEqual(count($this->cookies), 0, 'No cookies are present at the start of a new test.');
+    $this->assertEquals(count($this->cookies), 0, 'No cookies are present at the start of a new test.');
   }
 
 }
diff --git a/core/modules/simpletest/src/Tests/KernelTestBaseTest.php b/core/modules/simpletest/src/Tests/KernelTestBaseTest.php
index 1e9e75da0b..f114fdc0c2 100644
--- a/core/modules/simpletest/src/Tests/KernelTestBaseTest.php
+++ b/core/modules/simpletest/src/Tests/KernelTestBaseTest.php
@@ -71,8 +71,8 @@ public function testSetUp() {
     // nor SQLite make changes that are testable.
     $database = $this->container->get('database');
     if ($database->driver() == 'pgsql') {
-      $this->assertEqual('on', $database->query("SHOW standard_conforming_strings")->fetchField());
-      $this->assertEqual('escape', $database->query("SHOW bytea_output")->fetchField());
+      $this->assertEquals('on', $database->query("SHOW standard_conforming_strings")->fetchField());
+      $this->assertEquals('escape', $database->query("SHOW bytea_output")->fetchField());
     }
   }
 
@@ -243,27 +243,27 @@ public function testEnableModulesFixedList() {
     $entity_manager = \Drupal::entityManager();
 
     // entity_test is loaded via $modules; its entity type should exist.
-    $this->assertEqual($this->container->get('module_handler')->moduleExists('entity_test'), TRUE);
+    $this->assertEquals($this->container->get('module_handler')->moduleExists('entity_test'), TRUE);
     $this->assertTrue(TRUE == $entity_manager->getDefinition('entity_test'));
 
     // Load some additional modules; entity_test should still exist.
     $this->enableModules(['field', 'text', 'entity_test']);
-    $this->assertEqual($this->container->get('module_handler')->moduleExists('entity_test'), TRUE);
+    $this->assertEquals($this->container->get('module_handler')->moduleExists('entity_test'), TRUE);
     $this->assertTrue(TRUE == $entity_manager->getDefinition('entity_test'));
 
     // Install some other modules; entity_test should still exist.
     $this->container->get('module_installer')->install(['user', 'field', 'field_test'], FALSE);
-    $this->assertEqual($this->container->get('module_handler')->moduleExists('entity_test'), TRUE);
+    $this->assertEquals($this->container->get('module_handler')->moduleExists('entity_test'), TRUE);
     $this->assertTrue(TRUE == $entity_manager->getDefinition('entity_test'));
 
     // Uninstall one of those modules; entity_test should still exist.
     $this->container->get('module_installer')->uninstall(['field_test']);
-    $this->assertEqual($this->container->get('module_handler')->moduleExists('entity_test'), TRUE);
+    $this->assertEquals($this->container->get('module_handler')->moduleExists('entity_test'), TRUE);
     $this->assertTrue(TRUE == $entity_manager->getDefinition('entity_test'));
 
     // Set the weight of a module; entity_test should still exist.
     module_set_weight('field', -1);
-    $this->assertEqual($this->container->get('module_handler')->moduleExists('entity_test'), TRUE);
+    $this->assertEquals($this->container->get('module_handler')->moduleExists('entity_test'), TRUE);
     $this->assertTrue(TRUE == $entity_manager->getDefinition('entity_test'));
 
     // Reactivate the previously uninstalled module.
@@ -313,13 +313,13 @@ public function testEnableModulesTheme() {
    */
   public function testNoThemeByDefault() {
     $themes = $this->config('core.extension')->get('theme');
-    $this->assertEqual($themes, []);
+    $this->assertEquals($themes, []);
 
     $extensions = $this->container->get('config.storage')->read('core.extension');
-    $this->assertEqual($extensions['theme'], []);
+    $this->assertEquals($extensions['theme'], []);
 
     $active_theme = $this->container->get('theme.manager')->getActiveTheme();
-    $this->assertEqual($active_theme->getName(), 'core');
+    $this->assertEquals($active_theme->getName(), 'core');
   }
 
   /**
diff --git a/core/modules/simpletest/src/Tests/SimpleTestBrowserTest.php b/core/modules/simpletest/src/Tests/SimpleTestBrowserTest.php
index bb9da9411a..864fd4a3b1 100644
--- a/core/modules/simpletest/src/Tests/SimpleTestBrowserTest.php
+++ b/core/modules/simpletest/src/Tests/SimpleTestBrowserTest.php
@@ -44,16 +44,16 @@ public function testInternalBrowser() {
     // Check that current user service updated.
     $this->assertNotEqual($old_user_id, $this->container->get('current_user')->id(), 'Current user service updated.');
     $headers = $this->drupalGetHeaders(TRUE);
-    $this->assertEqual(count($headers), 2, 'There was one intermediate request.');
+    $this->assertEquals(count($headers), 2, 'There was one intermediate request.');
     $this->assertTrue(strpos($headers[0][':status'], '303') !== FALSE, 'Intermediate response code was 303.');
     $this->assertFalse(empty($headers[0]['location']), 'Intermediate request contained a Location header.');
-    $this->assertEqual($this->getUrl(), $headers[0]['location'], 'HTTP redirect was followed');
+    $this->assertEquals($this->getUrl(), $headers[0]['location'], 'HTTP redirect was followed');
     $this->assertFalse($this->drupalGetHeader('Location'), 'Headers from intermediate request were reset.');
     $this->assertResponse(200, 'Response code from intermediate request was reset.');
 
     $this->drupalLogout();
     // Check that current user service updated to anonymous user.
-    $this->assertEqual(0, $this->container->get('current_user')->id(), 'Current user service updated.');
+    $this->assertEquals(0, $this->container->get('current_user')->id(), 'Current user service updated.');
 
     // Test the maximum redirection option.
     $this->maximumRedirects = 1;
@@ -65,7 +65,7 @@ public function testInternalBrowser() {
       'query' => ['destination' => 'user/logout'],
     ]);
     $headers = $this->drupalGetHeaders(TRUE);
-    $this->assertEqual(count($headers), 2, 'Simpletest stopped following redirects after the first one.');
+    $this->assertEquals(count($headers), 2, 'Simpletest stopped following redirects after the first one.');
 
     // Remove the Simpletest private key file so we can test the protection
     // against requests that forge a valid testing user agent to gain access
diff --git a/core/modules/simpletest/src/Tests/SimpleTestTest.php b/core/modules/simpletest/src/Tests/SimpleTestTest.php
index 42759c255a..31b293a1f4 100644
--- a/core/modules/simpletest/src/Tests/SimpleTestTest.php
+++ b/core/modules/simpletest/src/Tests/SimpleTestTest.php
@@ -176,7 +176,7 @@ public function stubTest() {
         assert(FALSE, 'Lorem Ipsum');
       }
       catch (\AssertionError $e) {
-        $this->assertEqual($e->getMessage(), 'Lorem Ipsum', 'Runtime assertions Enabled and running.');
+        $this->assertEquals($e->getMessage(), 'Lorem Ipsum', 'Runtime assertions Enabled and running.');
       }
     }
     // This causes the second of the sixteen passes asserted in
@@ -265,7 +265,7 @@ public function confirmStubTestResults() {
 
     $this->assertAssertion("Debug: 'Foo'", 'Debug', 'Fail', 'SimpleTestTest.php', 'Drupal\simpletest\Tests\SimpleTestTest->stubTest()');
 
-    $this->assertEqual('16 passes, 3 fails, 2 exceptions, 3 debug messages', $this->childTestResults['summary']);
+    $this->assertEquals('16 passes, 3 fails, 2 exceptions, 3 debug messages', $this->childTestResults['summary']);
 
     $this->testIds[] = $test_id = $this->getTestIdFromResults();
     $this->assertTrue($test_id, 'Found test ID in results.');
diff --git a/core/modules/simpletest/src/Tests/TimeZoneTest.php b/core/modules/simpletest/src/Tests/TimeZoneTest.php
index 9a98c79020..a6240f5e53 100644
--- a/core/modules/simpletest/src/Tests/TimeZoneTest.php
+++ b/core/modules/simpletest/src/Tests/TimeZoneTest.php
@@ -30,8 +30,8 @@ protected function setUp() {
    */
   public function testAccountTimeZones() {
     $expected = 'Australia/Sydney';
-    $this->assertEqual($this->rootUser->getTimeZone(), $expected, 'Root user has correct time zone.');
-    $this->assertEqual($this->adminUser->getTimeZone(), $expected, 'Admin user has correct time zone.');
+    $this->assertEquals($this->rootUser->getTimeZone(), $expected, 'Root user has correct time zone.');
+    $this->assertEquals($this->adminUser->getTimeZone(), $expected, 'Admin user has correct time zone.');
   }
 
 }
diff --git a/core/modules/simpletest/src/Tests/UiPhpUnitOutputTest.php b/core/modules/simpletest/src/Tests/UiPhpUnitOutputTest.php
index e032cef941..7a2a4753a6 100644
--- a/core/modules/simpletest/src/Tests/UiPhpUnitOutputTest.php
+++ b/core/modules/simpletest/src/Tests/UiPhpUnitOutputTest.php
@@ -35,7 +35,7 @@ public function testOutput() {
 
     // Check that there are <br> tags for the HTML output by
     // SimpletestUiPrinter.
-    $this->assertEqual($output[19], 'HTML output was generated<br />');
+    $this->assertEquals($output[19], 'HTML output was generated<br />');
     // Check that URLs are printed as HTML links.
     $this->assertIdentical(strpos($output[20], '<a href="http'), 0);
   }
diff --git a/core/modules/simpletest/src/WebTestBase.php b/core/modules/simpletest/src/WebTestBase.php
index 4b6f421e55..1d5f74c098 100644
--- a/core/modules/simpletest/src/WebTestBase.php
+++ b/core/modules/simpletest/src/WebTestBase.php
@@ -1940,7 +1940,7 @@ protected function assertUrl($path, array $options = [], $message = '', $group =
     // difference, decode them for comparison purposes.
     $actual_url = urldecode($this->getUrl());
     $expected_url = urldecode($url);
-    return $this->assertEqual($actual_url, $expected_url, $message, $group);
+    return $this->assertEquals($actual_url, $expected_url, $message, $group);
   }
 
   /**
diff --git a/core/modules/simpletest/tests/src/Functional/MailCaptureTest.php b/core/modules/simpletest/tests/src/Functional/MailCaptureTest.php
index f610eaf429..c31811edd9 100644
--- a/core/modules/simpletest/tests/src/Functional/MailCaptureTest.php
+++ b/core/modules/simpletest/tests/src/Functional/MailCaptureTest.php
@@ -32,14 +32,14 @@ public function testMailSend() {
 
     // Before we send the email, drupalGetMails should return an empty array.
     $captured_emails = $this->drupalGetMails();
-    $this->assertEqual(count($captured_emails), 0, 'The captured emails queue is empty.', 'Email');
+    $this->assertEquals(count($captured_emails), 0, 'The captured emails queue is empty.', 'Email');
 
     // Send the email.
     \Drupal::service('plugin.manager.mail')->getInstance(['module' => 'simpletest', 'key' => 'drupal_mail_test'])->mail($message);
 
     // Ensure that there is one email in the captured emails array.
     $captured_emails = $this->drupalGetMails();
-    $this->assertEqual(count($captured_emails), 1, 'One email was captured.', 'Email');
+    $this->assertEquals(count($captured_emails), 1, 'One email was captured.', 'Email');
 
     // Assert that the email was sent by iterating over the message properties
     // and ensuring that they are captured intact.
@@ -61,22 +61,22 @@ public function testMailSend() {
 
     // There should now be 6 emails captured.
     $captured_emails = $this->drupalGetMails();
-    $this->assertEqual(count($captured_emails), 6, 'All emails were captured.', 'Email');
+    $this->assertEquals(count($captured_emails), 6, 'All emails were captured.', 'Email');
 
     // Test different ways of getting filtered emails via drupalGetMails().
     $captured_emails = $this->drupalGetMails(['id' => 'drupal_mail_test']);
-    $this->assertEqual(count($captured_emails), 1, 'Only one email is returned when filtering by id.', 'Email');
+    $this->assertEquals(count($captured_emails), 1, 'Only one email is returned when filtering by id.', 'Email');
     $captured_emails = $this->drupalGetMails(['id' => 'drupal_mail_test', 'subject' => $subject]);
-    $this->assertEqual(count($captured_emails), 1, 'Only one email is returned when filtering by id and subject.', 'Email');
+    $this->assertEquals(count($captured_emails), 1, 'Only one email is returned when filtering by id and subject.', 'Email');
     $captured_emails = $this->drupalGetMails(['id' => 'drupal_mail_test', 'subject' => $subject, 'from' => 'this_was_not_used@example.com']);
-    $this->assertEqual(count($captured_emails), 0, 'No emails are returned when querying with an unused from address.', 'Email');
+    $this->assertEquals(count($captured_emails), 0, 'No emails are returned when querying with an unused from address.', 'Email');
 
     // Send the last email again, so we can confirm that the
     // drupalGetMails-filter correctly returns all emails with a given
     // property/value.
     \Drupal::service('plugin.manager.mail')->getInstance(['module' => 'drupal_mail_test', 'key' => $index])->mail($message);
     $captured_emails = $this->drupalGetMails(['id' => 'drupal_mail_test_4']);
-    $this->assertEqual(count($captured_emails), 2, 'All emails with the same id are returned when filtering by id.', 'Email');
+    $this->assertEquals(count($captured_emails), 2, 'All emails with the same id are returned when filtering by id.', 'Email');
   }
 
 }
diff --git a/core/modules/statistics/tests/src/Functional/StatisticsAdminTest.php b/core/modules/statistics/tests/src/Functional/StatisticsAdminTest.php
index f4c22bd8a7..72978fd819 100644
--- a/core/modules/statistics/tests/src/Functional/StatisticsAdminTest.php
+++ b/core/modules/statistics/tests/src/Functional/StatisticsAdminTest.php
@@ -120,7 +120,7 @@ public function testDeleteNode() {
       ->condition('n.nid', $this->testNode->id())
       ->execute()
       ->fetchAssoc();
-    $this->assertEqual($result['nid'], $this->testNode->id(), 'Verifying that the node counter is incremented.');
+    $this->assertEquals($result['nid'], $this->testNode->id(), 'Verifying that the node counter is incremented.');
 
     $this->testNode->delete();
 
diff --git a/core/modules/statistics/tests/src/Functional/StatisticsTokenReplaceTest.php b/core/modules/statistics/tests/src/Functional/StatisticsTokenReplaceTest.php
index 8402d221af..929eb295a5 100644
--- a/core/modules/statistics/tests/src/Functional/StatisticsTokenReplaceTest.php
+++ b/core/modules/statistics/tests/src/Functional/StatisticsTokenReplaceTest.php
@@ -44,7 +44,7 @@ public function testStatisticsTokenReplacement() {
 
     foreach ($tests as $input => $expected) {
       $output = \Drupal::token()->replace($input, ['node' => $node], ['langcode' => $language_interface->getId()]);
-      $this->assertEqual($output, $expected, format_string('Statistics token %token replaced.', ['%token' => $input]));
+      $this->assertEquals($output, $expected, format_string('Statistics token %token replaced.', ['%token' => $input]));
     }
   }
 
diff --git a/core/modules/system/src/Tests/Ajax/AjaxFormCacheTest.php b/core/modules/system/src/Tests/Ajax/AjaxFormCacheTest.php
index 11a4044e07..2519717b1c 100644
--- a/core/modules/system/src/Tests/Ajax/AjaxFormCacheTest.php
+++ b/core/modules/system/src/Tests/Ajax/AjaxFormCacheTest.php
@@ -22,7 +22,7 @@ public function testFormCacheUsage() {
     $this->drupalLogin($this->rootUser);
 
     // Ensure that the cache is empty.
-    $this->assertEqual(0, count($key_value_expirable->getAll()));
+    $this->assertEquals(0, count($key_value_expirable->getAll()));
 
     // Visit an AJAX form that is not cached, 3 times.
     $uncached_form_url = Url::fromRoute('ajax_forms_test.commands_form');
@@ -31,7 +31,7 @@ public function testFormCacheUsage() {
     $this->drupalGet($uncached_form_url);
 
     // The number of cache entries should not have changed.
-    $this->assertEqual(0, count($key_value_expirable->getAll()));
+    $this->assertEquals(0, count($key_value_expirable->getAll()));
   }
 
   /**
diff --git a/core/modules/system/src/Tests/Ajax/DialogTest.php b/core/modules/system/src/Tests/Ajax/DialogTest.php
index 90c548b630..52259f08ee 100644
--- a/core/modules/system/src/Tests/Ajax/DialogTest.php
+++ b/core/modules/system/src/Tests/Ajax/DialogTest.php
@@ -96,9 +96,9 @@ public function testDialog() {
 
     // Emulate going to the JS version of the page and check the JSON response.
     $ajax_result = $this->drupalGetAjax('ajax-test/dialog-contents', ['query' => [MainContentViewSubscriber::WRAPPER_FORMAT => 'drupal_modal']]);
-    $this->assertEqual($modal_expected_response, $ajax_result[3], 'Modal dialog JSON response matches.');
+    $this->assertEquals($modal_expected_response, $ajax_result[3], 'Modal dialog JSON response matches.');
     // Test the HTML escaping of & character.
-    $this->assertEqual($ajax_result[3]['dialogOptions']['title'], 'AJAX Dialog & contents');
+    $this->assertEquals($ajax_result[3]['dialogOptions']['title'], 'AJAX Dialog & contents');
     $this->assertNotEqual($ajax_result[3]['dialogOptions']['title'], 'AJAX Dialog &amp; contents');
 
     // Check that requesting a "normal" dialog without JS goes to a page.
@@ -116,7 +116,7 @@ public function testDialog() {
         'dialogOptions[target]' => 'ajax-test-dialog-wrapper-1',
       ]
     ]);
-    $this->assertEqual($normal_expected_response, $ajax_result[3], 'Normal dialog JSON response matches.');
+    $this->assertEquals($normal_expected_response, $ajax_result[3], 'Normal dialog JSON response matches.');
 
     // Emulate going to the JS version of the page and check the JSON response.
     // This needs to use WebTestBase::drupalPostAjaxForm() so that the correct
@@ -132,12 +132,12 @@ public function testDialog() {
     $this->assert(strpos($ajax_result[3]['selector'], $no_target_expected_response['selector']) === 0, 'Selector starts with right string.');
     unset($ajax_result[3]['selector']);
     unset($no_target_expected_response['selector']);
-    $this->assertEqual($no_target_expected_response, $ajax_result[3], 'Normal dialog with no target JSON response matches.');
+    $this->assertEquals($no_target_expected_response, $ajax_result[3], 'Normal dialog with no target JSON response matches.');
 
     // Emulate closing the dialog via an AJAX request. There is no non-JS
     // version of this test.
     $ajax_result = $this->drupalGetAjax('ajax-test/dialog-close');
-    $this->assertEqual($close_expected_response, $ajax_result[0], 'Close dialog JSON response matches.');
+    $this->assertEquals($close_expected_response, $ajax_result[0], 'Close dialog JSON response matches.');
 
     // Test submitting via a POST request through the button for modals. This
     // approach more accurately reflects the real responses by Drupal because
@@ -154,13 +154,13 @@ public function testDialog() {
     $this->assertTrue($dialog_js_exists, 'Drupal dialog JS added to the page.');
 
     // Check that the response matches the expected value.
-    $this->assertEqual($modal_expected_response, $ajax_result[4], 'POST request modal dialog JSON response matches.');
+    $this->assertEquals($modal_expected_response, $ajax_result[4], 'POST request modal dialog JSON response matches.');
     // Test the HTML escaping of & character.
     $this->assertNotEqual($ajax_result[4]['dialogOptions']['title'], 'AJAX Dialog &amp; contents');
 
     // Abbreviated test for "normal" dialogs, testing only the difference.
     $ajax_result = $this->drupalPostAjaxForm('ajax-test/dialog', [], 'button2');
-    $this->assertEqual($normal_expected_response, $ajax_result[4], 'POST request normal dialog JSON response matches.');
+    $this->assertEquals($normal_expected_response, $ajax_result[4], 'POST request normal dialog JSON response matches.');
 
     // Check that requesting a form dialog without JS goes to a page.
     $this->drupalGet('ajax-test/dialog-form');
@@ -188,13 +188,13 @@ public function testDialog() {
         ],
       ],
     ];
-    $this->assertEqual($expected_ajax_settings, $ajax_result[0]['settings']['ajax']);
+    $this->assertEquals($expected_ajax_settings, $ajax_result[0]['settings']['ajax']);
     $this->setRawContent($ajax_result[3]['data']);
     // Remove the data, the form build id and token will never match.
     unset($ajax_result[3]['data']);
     $form = $this->xpath("//form[@id='ajax-test-form']");
     $this->assertTrue(!empty($form), 'Modal dialog JSON contains form.');
-    $this->assertEqual($form_expected_response, $ajax_result[3]);
+    $this->assertEquals($form_expected_response, $ajax_result[3]);
 
     // Check that requesting an entity form dialog without JS goes to a page.
     $this->drupalGet('admin/structure/contact/add');
@@ -210,7 +210,7 @@ public function testDialog() {
     unset($ajax_result[3]['data']);
     $form = $this->xpath("//form[@id='contact-form-add-form']");
     $this->assertTrue(!empty($form), 'Modal dialog JSON contains entity form.');
-    $this->assertEqual($entity_form_expected_response, $ajax_result[3]);
+    $this->assertEquals($entity_form_expected_response, $ajax_result[3]);
   }
 
 }
diff --git a/core/modules/system/src/Tests/Ajax/MultiFormTest.php b/core/modules/system/src/Tests/Ajax/MultiFormTest.php
index 96844ed051..3b1b698c80 100644
--- a/core/modules/system/src/Tests/Ajax/MultiFormTest.php
+++ b/core/modules/system/src/Tests/Ajax/MultiFormTest.php
@@ -69,9 +69,9 @@ public function testMultiForm() {
     $this->drupalGet('form-test/two-instances-of-same-form');
 
     $fields = $this->xpath($form_xpath . $field_xpath);
-    $this->assertEqual(count($fields), 2);
+    $this->assertEquals(count($fields), 2);
     foreach ($fields as $field) {
-      $this->assertEqual(count($field->xpath('.' . $field_items_xpath_suffix)), 1, 'Found the correct number of field items on the initial page.');
+      $this->assertEquals(count($field->xpath('.' . $field_items_xpath_suffix)), 1, 'Found the correct number of field items on the initial page.');
       $this->assertFieldsByValue($field->xpath('.' . $button_xpath_suffix), NULL, 'Found the "add more" button on the initial page.');
     }
 
@@ -88,7 +88,7 @@ public function testMultiForm() {
         $form = $this->xpath($form_xpath)[$offset];
         $field = $form->xpath('.' . $field_xpath);
 
-        $this->assertEqual(count($field[0]->xpath('.' . $field_items_xpath_suffix)), $i + 2, 'Found the correct number of field items after an AJAX submission.');
+        $this->assertEquals(count($field[0]->xpath('.' . $field_items_xpath_suffix)), $i + 2, 'Found the correct number of field items after an AJAX submission.');
         $this->assertFieldsByValue($field[0]->xpath('.' . $button_xpath_suffix), NULL, 'Found the "add more" button after an AJAX submission.');
         $this->assertNoDuplicateIds(t('Updated page contains unique IDs'), 'Other');
       }
diff --git a/core/modules/system/src/Tests/Cache/AssertPageCacheContextsAndTagsTrait.php b/core/modules/system/src/Tests/Cache/AssertPageCacheContextsAndTagsTrait.php
index b115a61ee2..c58c207d58 100644
--- a/core/modules/system/src/Tests/Cache/AssertPageCacheContextsAndTagsTrait.php
+++ b/core/modules/system/src/Tests/Cache/AssertPageCacheContextsAndTagsTrait.php
@@ -85,7 +85,7 @@ protected function assertPageCacheContextsAndTags(Url $url, array $expected_cont
 
     // Assert cache miss + expected cache contexts + tags.
     $this->drupalGet($absolute_url);
-    $this->assertEqual($this->drupalGetHeader('X-Drupal-Cache'), 'MISS');
+    $this->assertEquals($this->drupalGetHeader('X-Drupal-Cache'), 'MISS');
     $this->assertCacheTags($expected_tags);
     $this->assertCacheContexts($expected_contexts);
 
@@ -99,7 +99,7 @@ protected function assertPageCacheContextsAndTags(Url $url, array $expected_cont
     $cid = implode(':', $cid_parts);
     $cache_entry = \Drupal::cache('page')->get($cid);
     sort($cache_entry->tags);
-    $this->assertEqual($cache_entry->tags, $expected_tags);
+    $this->assertEquals($cache_entry->tags, $expected_tags);
     $this->debugCacheTags($cache_entry->tags, $expected_tags);
   }
 
diff --git a/core/modules/system/src/Tests/Cache/GenericCacheBackendUnitTestBase.php b/core/modules/system/src/Tests/Cache/GenericCacheBackendUnitTestBase.php
index c270f51c74..5cbf2d7816 100644
--- a/core/modules/system/src/Tests/Cache/GenericCacheBackendUnitTestBase.php
+++ b/core/modules/system/src/Tests/Cache/GenericCacheBackendUnitTestBase.php
@@ -142,7 +142,7 @@ public function testSetGet() {
     $this->assertTrue($cached->valid, 'Item is marked as valid.');
     // We need to round because microtime may be rounded up in the backend.
     $this->assertTrue($cached->created >= REQUEST_TIME && $cached->created <= round(microtime(TRUE), 3), 'Created time is correct.');
-    $this->assertEqual($cached->expire, Cache::PERMANENT, 'Expire time is correct.');
+    $this->assertEquals($cached->expire, Cache::PERMANENT, 'Expire time is correct.');
 
     $this->assertIdentical(FALSE, $backend->get('test2'), "Backend does not contain data for cache id test2.");
     $backend->set('test2', ['value' => 3], REQUEST_TIME + 3);
@@ -151,7 +151,7 @@ public function testSetGet() {
     $this->assertIdentical(['value' => 3], $cached->data);
     $this->assertTrue($cached->valid, 'Item is marked as valid.');
     $this->assertTrue($cached->created >= REQUEST_TIME && $cached->created <= round(microtime(TRUE), 3), 'Created time is correct.');
-    $this->assertEqual($cached->expire, REQUEST_TIME + 3, 'Expire time is correct.');
+    $this->assertEquals($cached->expire, REQUEST_TIME + 3, 'Expire time is correct.');
 
     $backend->set('test3', 'foobar', REQUEST_TIME - 3);
     $this->assertFalse($backend->get('test3'), 'Invalid item not returned.');
@@ -159,7 +159,7 @@ public function testSetGet() {
     $this->assert(is_object($cached), 'Backend returned an object for cache id test3.');
     $this->assertFalse($cached->valid, 'Item is marked as valid.');
     $this->assertTrue($cached->created >= REQUEST_TIME && $cached->created <= round(microtime(TRUE), 3), 'Created time is correct.');
-    $this->assertEqual($cached->expire, REQUEST_TIME - 3, 'Expire time is correct.');
+    $this->assertEquals($cached->expire, REQUEST_TIME - 3, 'Expire time is correct.');
 
     $this->assertIdentical(FALSE, $backend->get('test4'), "Backend does not contain data for cache id test4.");
     $with_eof = ['foo' => "\nEOF\ndata"];
@@ -169,7 +169,7 @@ public function testSetGet() {
     $this->assertIdentical($with_eof, $cached->data);
     $this->assertTrue($cached->valid, 'Item is marked as valid.');
     $this->assertTrue($cached->created >= REQUEST_TIME && $cached->created <= round(microtime(TRUE), 3), 'Created time is correct.');
-    $this->assertEqual($cached->expire, Cache::PERMANENT, 'Expire time is correct.');
+    $this->assertEquals($cached->expire, Cache::PERMANENT, 'Expire time is correct.');
 
     $this->assertIdentical(FALSE, $backend->get('test5'), "Backend does not contain data for cache id test5.");
     $with_eof_and_semicolon = ['foo' => "\nEOF;\ndata"];
@@ -179,7 +179,7 @@ public function testSetGet() {
     $this->assertIdentical($with_eof_and_semicolon, $cached->data);
     $this->assertTrue($cached->valid, 'Item is marked as valid.');
     $this->assertTrue($cached->created >= REQUEST_TIME && $cached->created <= round(microtime(TRUE), 3), 'Created time is correct.');
-    $this->assertEqual($cached->expire, Cache::PERMANENT, 'Expire time is correct.');
+    $this->assertEquals($cached->expire, Cache::PERMANENT, 'Expire time is correct.');
 
     $with_variable = ['foo' => '$bar'];
     $backend->set('test6', $with_variable);
@@ -198,7 +198,7 @@ public function testSetGet() {
     $data->this_should_not_be_in_the_cache = TRUE;
     $cached = $backend->get('test7');
     $this->assert(is_object($cached), "Backend returned an object for cache id test7.");
-    $this->assertEqual($expected_data, $cached->data);
+    $this->assertEquals($expected_data, $cached->data);
     $this->assertFalse(isset($cached->data->this_should_not_be_in_the_cache));
     // Add a property to the cache data. It should not appear when we fetch
     // the data from cache again.
@@ -209,11 +209,11 @@ public function testSetGet() {
     // Check with a long key.
     $cid = str_repeat('a', 300);
     $backend->set($cid, 'test');
-    $this->assertEqual('test', $backend->get($cid)->data);
+    $this->assertEquals('test', $backend->get($cid)->data);
 
     // Check that the cache key is case sensitive.
     $backend->set('TEST8', 'value');
-    $this->assertEqual('value', $backend->get('TEST8')->data);
+    $this->assertEquals('value', $backend->get('TEST8')->data);
     $this->assertFalse($backend->get('test8'));
 
     // Calling ::set() with invalid cache tags. This should fail an assertion.
@@ -321,7 +321,7 @@ public function testGetMultiple() {
     // Test return - ensure that objects has expected properties.
     $this->assertTrue($ret['test2']->valid, 'Item is marked as valid.');
     $this->assertTrue($ret['test2']->created >= REQUEST_TIME && $ret['test2']->created <= round(microtime(TRUE), 3), 'Created time is correct.');
-    $this->assertEqual($ret['test2']->expire, Cache::PERMANENT, 'Expire time is correct.');
+    $this->assertEquals($ret['test2']->expire, Cache::PERMANENT, 'Expire time is correct.');
     // Test return - ensure it does not contain nonexistent cache ids.
     $this->assertFalse(isset($ret['test19']), "Nonexistent cache id test19 is not set.");
     $this->assertFalse(isset($ret['test21']), "Nonexistent cache id test21 is not set.");
@@ -371,7 +371,7 @@ public function testGetMultiple() {
     // Test with a long $cid and non-numeric array key.
     $cids = ['key:key' => $long_cid];
     $return = $backend->getMultiple($cids);
-    $this->assertEqual(300, $return[$long_cid]->data);
+    $this->assertEquals(300, $return[$long_cid]->data);
     $this->assertTrue(empty($cids));
   }
 
@@ -396,21 +396,21 @@ public function testSetMultiple() {
     $cids = array_keys($items);
     $cached = $backend->getMultiple($cids);
 
-    $this->assertEqual($cached['cid_1']->data, $items['cid_1']['data'], 'Over-written cache item set correctly.');
+    $this->assertEquals($cached['cid_1']->data, $items['cid_1']['data'], 'Over-written cache item set correctly.');
     $this->assertTrue($cached['cid_1']->valid, 'Item is marked as valid.');
     $this->assertTrue($cached['cid_1']->created >= REQUEST_TIME && $cached['cid_1']->created <= round(microtime(TRUE), 3), 'Created time is correct.');
-    $this->assertEqual($cached['cid_1']->expire, CacheBackendInterface::CACHE_PERMANENT, 'Cache expiration defaults to permanent.');
+    $this->assertEquals($cached['cid_1']->expire, CacheBackendInterface::CACHE_PERMANENT, 'Cache expiration defaults to permanent.');
 
-    $this->assertEqual($cached['cid_2']->data, $items['cid_2']['data'], 'New cache item set correctly.');
-    $this->assertEqual($cached['cid_2']->expire, CacheBackendInterface::CACHE_PERMANENT, 'Cache expiration defaults to permanent.');
+    $this->assertEquals($cached['cid_2']->data, $items['cid_2']['data'], 'New cache item set correctly.');
+    $this->assertEquals($cached['cid_2']->expire, CacheBackendInterface::CACHE_PERMANENT, 'Cache expiration defaults to permanent.');
 
-    $this->assertEqual($cached['cid_3']->data, $items['cid_3']['data'], 'New cache item with serialized data set correctly.');
-    $this->assertEqual($cached['cid_3']->expire, CacheBackendInterface::CACHE_PERMANENT, 'Cache expiration defaults to permanent.');
+    $this->assertEquals($cached['cid_3']->data, $items['cid_3']['data'], 'New cache item with serialized data set correctly.');
+    $this->assertEquals($cached['cid_3']->expire, CacheBackendInterface::CACHE_PERMANENT, 'Cache expiration defaults to permanent.');
 
-    $this->assertEqual($cached['cid_4']->data, $items['cid_4']['data'], 'New cache item set correctly.');
-    $this->assertEqual($cached['cid_4']->expire, $future_expiration, 'Cache expiration has been correctly set.');
+    $this->assertEquals($cached['cid_4']->data, $items['cid_4']['data'], 'New cache item set correctly.');
+    $this->assertEquals($cached['cid_4']->expire, $future_expiration, 'Cache expiration has been correctly set.');
 
-    $this->assertEqual($cached['cid_5']->data, $items['cid_5']['data'], 'New cache item set correctly.');
+    $this->assertEquals($cached['cid_5']->data, $items['cid_5']['data'], 'New cache item set correctly.');
 
     // Calling ::setMultiple() with invalid cache tags. This should fail an
     // assertion.
@@ -510,18 +510,18 @@ public function testInvalidate() {
 
     $cids = $reference;
     $ret = $backend->getMultiple($cids);
-    $this->assertEqual(count($ret), 4, 'Four items returned.');
+    $this->assertEquals(count($ret), 4, 'Four items returned.');
 
     $backend->invalidate('test1');
     $backend->invalidateMultiple(['test2', 'test3']);
 
     $cids = $reference;
     $ret = $backend->getMultiple($cids);
-    $this->assertEqual(count($ret), 1, 'Only one item element returned.');
+    $this->assertEquals(count($ret), 1, 'Only one item element returned.');
 
     $cids = $reference;
     $ret = $backend->getMultiple($cids, TRUE);
-    $this->assertEqual(count($ret), 4, 'Four items returned.');
+    $this->assertEquals(count($ret), 4, 'Four items returned.');
 
     // Calling invalidateMultiple() with an empty array should not cause an
     // error.
diff --git a/core/modules/system/src/Tests/Cache/PageCacheTagsTestBase.php b/core/modules/system/src/Tests/Cache/PageCacheTagsTestBase.php
index 1e29e56278..3bdff36073 100644
--- a/core/modules/system/src/Tests/Cache/PageCacheTagsTestBase.php
+++ b/core/modules/system/src/Tests/Cache/PageCacheTagsTestBase.php
@@ -48,7 +48,7 @@ protected function setUp() {
   protected function verifyPageCache(Url $url, $hit_or_miss, $tags = FALSE) {
     $this->drupalGet($url);
     $message = SafeMarkup::format('Page cache @hit_or_miss for %path.', ['@hit_or_miss' => $hit_or_miss, '%path' => $url->toString()]);
-    $this->assertEqual($this->drupalGetHeader('X-Drupal-Cache'), $hit_or_miss, $message);
+    $this->assertEquals($this->drupalGetHeader('X-Drupal-Cache'), $hit_or_miss, $message);
 
     if ($hit_or_miss === 'HIT' && is_array($tags)) {
       $absolute_url = $url->setAbsolute()->toString();
diff --git a/core/modules/system/src/Tests/Common/AddFeedTest.php b/core/modules/system/src/Tests/Common/AddFeedTest.php
index 40ff215dfd..22528a725e 100644
--- a/core/modules/system/src/Tests/Common/AddFeedTest.php
+++ b/core/modules/system/src/Tests/Common/AddFeedTest.php
@@ -89,7 +89,7 @@ public function testFeedIconEscaping() {
       '#title' => '<>&"\'',
     ];
     $text = \Drupal::service('renderer')->renderRoot($variables);
-    $this->assertEqual(trim(strip_tags($text)), 'Subscribe to &lt;&gt;&amp;&quot;&#039;', 'feed_icon template escapes reserved HTML characters.');
+    $this->assertEquals(trim(strip_tags($text)), 'Subscribe to &lt;&gt;&amp;&quot;&#039;', 'feed_icon template escapes reserved HTML characters.');
   }
 
 }
diff --git a/core/modules/system/src/Tests/Common/AlterTest.php b/core/modules/system/src/Tests/Common/AlterTest.php
index 863bd54de4..3b5130b7dd 100644
--- a/core/modules/system/src/Tests/Common/AlterTest.php
+++ b/core/modules/system/src/Tests/Common/AlterTest.php
@@ -36,14 +36,14 @@ public function testDrupalAlter() {
     $array_expected = ['foo' => 'Drupal theme'];
     \Drupal::moduleHandler()->alter('drupal_alter', $array_copy);
     \Drupal::theme()->alter('drupal_alter', $array_copy);
-    $this->assertEqual($array_copy, $array_expected, 'Single array was altered.');
+    $this->assertEquals($array_copy, $array_expected, 'Single array was altered.');
 
     $entity_copy = clone $entity;
     $entity_expected = clone $entity;
     $entity_expected->foo = 'Drupal theme';
     \Drupal::moduleHandler()->alter('drupal_alter', $entity_copy);
     \Drupal::theme()->alter('drupal_alter', $entity_copy);
-    $this->assertEqual($entity_copy, $entity_expected, 'Single object was altered.');
+    $this->assertEquals($entity_copy, $entity_expected, 'Single object was altered.');
 
     // Verify alteration of multiple arguments.
     $array_copy = $array;
@@ -55,9 +55,9 @@ public function testDrupalAlter() {
     $array2_expected = ['foo' => 'Drupal theme'];
     \Drupal::moduleHandler()->alter('drupal_alter', $array_copy, $entity_copy, $array2_copy);
     \Drupal::theme()->alter('drupal_alter', $array_copy, $entity_copy, $array2_copy);
-    $this->assertEqual($array_copy, $array_expected, 'First argument to \Drupal::moduleHandler->alter() was altered.');
-    $this->assertEqual($entity_copy, $entity_expected, 'Second argument to \Drupal::moduleHandler->alter() was altered.');
-    $this->assertEqual($array2_copy, $array2_expected, 'Third argument to \Drupal::moduleHandler->alter() was altered.');
+    $this->assertEquals($array_copy, $array_expected, 'First argument to \Drupal::moduleHandler->alter() was altered.');
+    $this->assertEquals($entity_copy, $entity_expected, 'Second argument to \Drupal::moduleHandler->alter() was altered.');
+    $this->assertEquals($array2_copy, $array2_expected, 'Third argument to \Drupal::moduleHandler->alter() was altered.');
 
     // Verify alteration order when passing an array of types to \Drupal::moduleHandler->alter().
     // common_test_module_implements_alter() places 'block' implementation after
@@ -66,7 +66,7 @@ public function testDrupalAlter() {
     $array_expected = ['foo' => 'Drupal block theme'];
     \Drupal::moduleHandler()->alter(['drupal_alter', 'drupal_alter_foo'], $array_copy);
     \Drupal::theme()->alter(['drupal_alter', 'drupal_alter_foo'], $array_copy);
-    $this->assertEqual($array_copy, $array_expected, 'hook_TYPE_alter() implementations ran in correct order.');
+    $this->assertEquals($array_copy, $array_expected, 'hook_TYPE_alter() implementations ran in correct order.');
   }
 
 }
diff --git a/core/modules/system/src/Tests/Common/RenderWebTest.php b/core/modules/system/src/Tests/Common/RenderWebTest.php
index ed0e086402..5b74775267 100644
--- a/core/modules/system/src/Tests/Common/RenderWebTest.php
+++ b/core/modules/system/src/Tests/Common/RenderWebTest.php
@@ -34,7 +34,7 @@ public function testWrapperFormatCacheContext() {
     $this->drupalGet('common-test/type-link-active-class', ['query' => [MainContentViewSubscriber::WRAPPER_FORMAT => 'json']]);
     $this->assertIdentical('application/json', $this->drupalGetHeader('Content-Type'));
     $json = Json::decode($this->getRawContent());
-    $this->assertEqual(['content', 'title'], array_keys($json));
+    $this->assertEquals(['content', 'title'], array_keys($json));
     $this->assertIdentical('Test active link class', $json['title']);
     $this->assertCacheContext('url.query_args:' . MainContentViewSubscriber::WRAPPER_FORMAT);
   }
diff --git a/core/modules/system/src/Tests/Common/SimpleTestErrorCollectorTest.php b/core/modules/system/src/Tests/Common/SimpleTestErrorCollectorTest.php
index 9af773b86c..b1a20738f2 100644
--- a/core/modules/system/src/Tests/Common/SimpleTestErrorCollectorTest.php
+++ b/core/modules/system/src/Tests/Common/SimpleTestErrorCollectorTest.php
@@ -34,7 +34,7 @@ class SimpleTestErrorCollectorTest extends WebTestBase {
   public function testErrorCollect() {
     $this->collectedErrors = [];
     $this->drupalGet('error-test/generate-warnings-with-report');
-    $this->assertEqual(count($this->collectedErrors), 3, 'Three errors were collected');
+    $this->assertEquals(count($this->collectedErrors), 3, 'Three errors were collected');
 
     if (count($this->collectedErrors) == 3) {
       $this->assertError($this->collectedErrors[0], 'Notice', 'Drupal\error_test\Controller\ErrorTestController->generateWarnings()', 'ErrorTestController.php', 'Undefined variable: bananas');
@@ -83,11 +83,11 @@ protected function error($message = '', $group = 'Other', array $caller = NULL)
    * Asserts that a collected error matches what we are expecting.
    */
   public function assertError($error, $group, $function, $file, $message = NULL) {
-    $this->assertEqual($error['group'], $group, format_string("Group was %group", ['%group' => $group]));
-    $this->assertEqual($error['caller']['function'], $function, format_string("Function was %function", ['%function' => $function]));
-    $this->assertEqual(drupal_basename($error['caller']['file']), $file, format_string("File was %file", ['%file' => $file]));
+    $this->assertEquals($error['group'], $group, format_string("Group was %group", ['%group' => $group]));
+    $this->assertEquals($error['caller']['function'], $function, format_string("Function was %function", ['%function' => $function]));
+    $this->assertEquals(drupal_basename($error['caller']['file']), $file, format_string("File was %file", ['%file' => $file]));
     if (isset($message)) {
-      $this->assertEqual($error['message'], $message, format_string("Message was %message", ['%message' => $message]));
+      $this->assertEquals($error['message'], $message, format_string("Message was %message", ['%message' => $message]));
     }
   }
 
diff --git a/core/modules/system/src/Tests/Common/UrlTest.php b/core/modules/system/src/Tests/Common/UrlTest.php
index 1092e1a032..c7976e5aa6 100644
--- a/core/modules/system/src/Tests/Common/UrlTest.php
+++ b/core/modules/system/src/Tests/Common/UrlTest.php
@@ -63,8 +63,8 @@ public function testLinkBubbleableMetadata() {
       ];
       \Drupal::service('renderer')->renderRoot($link);
       $this->pass($title);
-      $this->assertEqual($expected_cacheability, $link['#cache']);
-      $this->assertEqual($expected_attachments, $link['#attached']);
+      $this->assertEquals($expected_cacheability, $link['#cache']);
+      $this->assertEquals($expected_attachments, $link['#attached']);
     }
   }
 
@@ -171,7 +171,7 @@ public function testLinkRenderArrayText() {
     $renderer->executeInRenderContext(new RenderContext(), function () use ($renderer, $l) {
       $renderable_text = ['#markup' => 'foo'];
       $l_renderable_text = \Drupal::l($renderable_text, Url::fromUri('https://www.drupal.org'));
-      $this->assertEqual($l_renderable_text, $l);
+      $this->assertEquals($l_renderable_text, $l);
     });
 
     // Test a themed link with plain text 'text'.
@@ -181,7 +181,7 @@ public function testLinkRenderArrayText() {
       '#url' => Url::fromUri('https://www.drupal.org'),
     ];
     $type_link_plain = $renderer->renderRoot($type_link_plain_array);
-    $this->assertEqual($type_link_plain, $l);
+    $this->assertEquals($type_link_plain, $l);
 
     // Build a themed link with renderable 'text'.
     $type_link_nested_array = [
@@ -190,7 +190,7 @@ public function testLinkRenderArrayText() {
       '#url' => Url::fromUri('https://www.drupal.org'),
     ];
     $type_link_nested = $renderer->renderRoot($type_link_nested_array);
-    $this->assertEqual($type_link_nested, $l);
+    $this->assertEquals($type_link_nested, $l);
   }
 
   /**
@@ -226,22 +226,22 @@ public function testDrupalGetQueryParameters() {
     // First-level exclusion.
     $result = $original;
     unset($result['b']);
-    $this->assertEqual(UrlHelper::filterQueryParameters($original, ['b']), $result, "'b' was removed.");
+    $this->assertEquals(UrlHelper::filterQueryParameters($original, ['b']), $result, "'b' was removed.");
 
     // Second-level exclusion.
     $result = $original;
     unset($result['b']['d']);
-    $this->assertEqual(UrlHelper::filterQueryParameters($original, ['b[d]']), $result, "'b[d]' was removed.");
+    $this->assertEquals(UrlHelper::filterQueryParameters($original, ['b[d]']), $result, "'b[d]' was removed.");
 
     // Third-level exclusion.
     $result = $original;
     unset($result['b']['e']['f']);
-    $this->assertEqual(UrlHelper::filterQueryParameters($original, ['b[e][f]']), $result, "'b[e][f]' was removed.");
+    $this->assertEquals(UrlHelper::filterQueryParameters($original, ['b[e][f]']), $result, "'b[e][f]' was removed.");
 
     // Multiple exclusions.
     $result = $original;
     unset($result['a'], $result['b']['e'], $result['c']);
-    $this->assertEqual(UrlHelper::filterQueryParameters($original, ['a', 'b[e]', 'c']), $result, "'a', 'b[e]', 'c' were removed.");
+    $this->assertEquals(UrlHelper::filterQueryParameters($original, ['a', 'b[e]', 'c']), $result, "'a', 'b[e]', 'c' were removed.");
   }
 
   /**
@@ -259,7 +259,7 @@ public function testDrupalParseUrl() {
             'query' => ['foo' => 'bar', 'bar' => 'baz', 'baz' => ''],
             'fragment' => 'foo',
           ];
-          $this->assertEqual(UrlHelper::parse($url), $expected, 'URL parsed correctly.');
+          $this->assertEquals(UrlHelper::parse($url), $expected, 'URL parsed correctly.');
         }
       }
     }
@@ -271,7 +271,7 @@ public function testDrupalParseUrl() {
       'query' => [],
       'fragment' => '',
     ];
-    $this->assertEqual(UrlHelper::parse($url), $result, 'Relative URL parsed correctly.');
+    $this->assertEquals(UrlHelper::parse($url), $result, 'Relative URL parsed correctly.');
 
     // Test that drupal can recognize an absolute URL. Used to prevent attack vectors.
     $url = 'https://www.drupal.org/foo/bar?foo=bar&bar=baz&baz#foo';
@@ -291,30 +291,30 @@ public function testExternalUrls() {
     // Verify external URL can contain a fragment.
     $url = $test_url . '#drupal';
     $result = Url::fromUri($url)->toString();
-    $this->assertEqual($url, $result, 'External URL with fragment works without a fragment in $options.');
+    $this->assertEquals($url, $result, 'External URL with fragment works without a fragment in $options.');
 
     // Verify fragment can be overridden in an external URL.
     $url = $test_url . '#drupal';
     $fragment = $this->randomMachineName(10);
     $result = Url::fromUri($url, ['fragment' => $fragment])->toString();
-    $this->assertEqual($test_url . '#' . $fragment, $result, 'External URL fragment is overridden with a custom fragment in $options.');
+    $this->assertEquals($test_url . '#' . $fragment, $result, 'External URL fragment is overridden with a custom fragment in $options.');
 
     // Verify external URL can contain a query string.
     $url = $test_url . '?drupal=awesome';
     $result = Url::fromUri($url)->toString();
-    $this->assertEqual($url, $result);
+    $this->assertEquals($url, $result);
 
     // Verify external URL can be extended with a query string.
     $url = $test_url;
     $query = [$this->randomMachineName(5) => $this->randomMachineName(5)];
     $result = Url::fromUri($url, ['query' => $query])->toString();
-    $this->assertEqual($url . '?' . http_build_query($query, '', '&'), $result, 'External URL can be extended with a query string in $options.');
+    $this->assertEquals($url . '?' . http_build_query($query, '', '&'), $result, 'External URL can be extended with a query string in $options.');
 
     // Verify query string can be extended in an external URL.
     $url = $test_url . '?drupal=awesome';
     $query = [$this->randomMachineName(5) => $this->randomMachineName(5)];
     $result = Url::fromUri($url, ['query' => $query])->toString();
-    $this->assertEqual($url . '&' . http_build_query($query, '', '&'), $result);
+    $this->assertEquals($url . '&' . http_build_query($query, '', '&'), $result);
   }
 
 }
diff --git a/core/modules/system/src/Tests/Entity/EntityCacheTagsTestBase.php b/core/modules/system/src/Tests/Entity/EntityCacheTagsTestBase.php
index d215df5ccd..0dfb1b31d0 100644
--- a/core/modules/system/src/Tests/Entity/EntityCacheTagsTestBase.php
+++ b/core/modules/system/src/Tests/Entity/EntityCacheTagsTestBase.php
@@ -431,7 +431,7 @@ public function testReferencedEntity() {
     $this->verifyPageCache($empty_entity_listing_url, 'HIT', $empty_entity_listing_cache_tags);
     // Verify the entity type's list cache contexts are present.
     $contexts_in_header = $this->drupalGetHeader('X-Drupal-Cache-Contexts');
-    $this->assertEqual(Cache::mergeContexts($page_cache_contexts, $this->getAdditionalCacheContextsForEntityListing()), empty($contexts_in_header) ? [] : explode(' ', $contexts_in_header));
+    $this->assertEquals(Cache::mergeContexts($page_cache_contexts, $this->getAdditionalCacheContextsForEntityListing()), empty($contexts_in_header) ? [] : explode(' ', $contexts_in_header));
 
     $this->pass("Test listing containing referenced entity.", 'Debug');
     // Prime the page cache for the listing containing the referenced entity.
@@ -440,7 +440,7 @@ public function testReferencedEntity() {
     $this->verifyPageCache($nonempty_entity_listing_url, 'HIT', $nonempty_entity_listing_cache_tags);
     // Verify the entity type's list cache contexts are present.
     $contexts_in_header = $this->drupalGetHeader('X-Drupal-Cache-Contexts');
-    $this->assertEqual(Cache::mergeContexts($page_cache_contexts, $this->getAdditionalCacheContextsForEntityListing()), empty($contexts_in_header) ? [] : explode(' ', $contexts_in_header));
+    $this->assertEquals(Cache::mergeContexts($page_cache_contexts, $this->getAdditionalCacheContextsForEntityListing()), empty($contexts_in_header) ? [] : explode(' ', $contexts_in_header));
 
     // Verify that after modifying the referenced entity, there is a cache miss
     // for every route except the one for the non-referencing entity.
diff --git a/core/modules/system/src/Tests/Entity/EntityFormTest.php b/core/modules/system/src/Tests/Entity/EntityFormTest.php
index 2ebc350617..3409629c8f 100644
--- a/core/modules/system/src/Tests/Entity/EntityFormTest.php
+++ b/core/modules/system/src/Tests/Entity/EntityFormTest.php
@@ -117,13 +117,13 @@ protected function doTestMultilingualFormCRUD($entity_type_id) {
     // translation module.
     $entity->addTranslation('ro', ['name' => $name1_ro])->save();
     $translated_entity = $this->loadEntityByName($entity_type_id, $name1)->getTranslation('ro');
-    $this->assertEqual($translated_entity->name->value, $name1_ro, format_string('%entity_type: The translation has been added.', ['%entity_type' => $entity_type_id]));
+    $this->assertEquals($translated_entity->name->value, $name1_ro, format_string('%entity_type: The translation has been added.', ['%entity_type' => $entity_type_id]));
 
     $edit['name[0][value]'] = $name2_ro;
     $this->drupalPostForm('ro/' . $entity_type_id . '/manage/' . $entity->id() . '/edit', $edit, t('Save'));
     $translated_entity = $this->loadEntityByName($entity_type_id, $name1)->getTranslation('ro');
     $this->assertTrue($translated_entity, format_string('%entity_type: Modified translation found in the database.', ['%entity_type' => $entity_type_id]));
-    $this->assertEqual($translated_entity->name->value, $name2_ro, format_string('%entity_type: The name of the translation has been modified.', ['%entity_type' => $entity_type_id]));
+    $this->assertEquals($translated_entity->name->value, $name2_ro, format_string('%entity_type: The name of the translation has been modified.', ['%entity_type' => $entity_type_id]));
 
     $this->drupalGet('ro/' . $entity_type_id . '/manage/' . $entity->id() . '/edit');
     $this->clickLink(t('Delete'));
@@ -162,7 +162,7 @@ public function testValidationHandlers() {
     // to be thrown.
     $state->set('entity_test.form.validate.test', 'button-level');
     $this->drupalPostForm('entity_test/add', [], 'Save');
-    $this->assertEqual($state->get('entity_test.form.save.exception'), 'Drupal\Core\Entity\EntityStorageException: Entity validation was skipped.', 'Button-level validation handlers behave correctly.');
+    $this->assertEquals($state->get('entity_test.form.save.exception'), 'Drupal\Core\Entity\EntityStorageException: Entity validation was skipped.', 'Button-level validation handlers behave correctly.');
   }
 
 }
diff --git a/core/modules/system/src/Tests/Form/ElementsTableSelectTest.php b/core/modules/system/src/Tests/Form/ElementsTableSelectTest.php
index d335518a9f..1e9db63671 100644
--- a/core/modules/system/src/Tests/Form/ElementsTableSelectTest.php
+++ b/core/modules/system/src/Tests/Form/ElementsTableSelectTest.php
@@ -87,18 +87,18 @@ public function testTableselectColSpan() {
 
     // There should be three labeled column headers and 1 for the input.
     $table_head = $this->xpath('//thead');
-    $this->assertEqual(count($table_head[0]->tr->th), 4, 'There are four column headers');
+    $this->assertEquals(count($table_head[0]->tr->th), 4, 'There are four column headers');
 
     $table_body = $this->xpath('//tbody');
     // The first two body rows should each have 5 table cells: One for the
     // radio, one cell in the first column, one cell in the second column,
     // and two cells in the third column which has colspan 2.
     for ($i = 0; $i <= 1; $i++) {
-      $this->assertEqual(count($table_body[0]->tr[$i]->td), 5, format_string('There are five cells in row @row.', ['@row' => $i]));
+      $this->assertEquals(count($table_body[0]->tr[$i]->td), 5, format_string('There are five cells in row @row.', ['@row' => $i]));
     }
     // The third row should have 3 cells, one for the radio, one spanning the
     // first and second column, and a third in column 3 (which has colspan 3).
-    $this->assertEqual(count($table_body[0]->tr[2]->td), 3, 'There are three cells in row 3.');
+    $this->assertEquals(count($table_body[0]->tr[2]->td), 3, 'There are three cells in row 3.');
   }
 
   /**
diff --git a/core/modules/system/src/Tests/Form/RebuildTest.php b/core/modules/system/src/Tests/Form/RebuildTest.php
index 2e138bdfb3..b9e9fa985c 100644
--- a/core/modules/system/src/Tests/Form/RebuildTest.php
+++ b/core/modules/system/src/Tests/Form/RebuildTest.php
@@ -110,10 +110,10 @@ public function testPreserveFormActionAfterAJAX() {
 
     // Ensure that the form's action is correct.
     $forms = $this->xpath('//form[contains(@class, "node-page-form")]');
-    $this->assertEqual(1, count($forms));
+    $this->assertEquals(1, count($forms));
     // Strip query params off the action before asserting.
     $url = parse_url($forms[0]['action'])['path'];
-    $this->assertEqual(Url::fromRoute('node.add', ['node_type' => 'page'])->toString(), $url);
+    $this->assertEquals(Url::fromRoute('node.add', ['node_type' => 'page'])->toString(), $url);
   }
 
 }
diff --git a/core/modules/system/src/Tests/Form/StorageTest.php b/core/modules/system/src/Tests/Form/StorageTest.php
index a1f7fee3df..346e7b45a8 100644
--- a/core/modules/system/src/Tests/Form/StorageTest.php
+++ b/core/modules/system/src/Tests/Form/StorageTest.php
@@ -135,7 +135,7 @@ public function testImmutableForm() {
     // Request the form with 'cache' query parameter to enable form caching.
     $this->drupalGet('form_test/form-storage', ['query' => ['cache' => 1, 'immutable' => 1]]);
     $buildIdFields = $this->xpath('//input[@name="form_build_id"]');
-    $this->assertEqual(count($buildIdFields), 1, 'One form build id field on the page');
+    $this->assertEquals(count($buildIdFields), 1, 'One form build id field on the page');
     $buildId = (string) $buildIdFields[0]['value'];
 
     // Trigger validation error by submitting an empty title.
@@ -147,7 +147,7 @@ public function testImmutableForm() {
 
     // Retrieve the new build-id.
     $buildIdFields = $this->xpath('//input[@name="form_build_id"]');
-    $this->assertEqual(count($buildIdFields), 1, 'One form build id field on the page');
+    $this->assertEquals(count($buildIdFields), 1, 'One form build id field on the page');
     $buildId = (string) $buildIdFields[0]['value'];
 
     // Trigger validation error by again submitting an empty title.
@@ -164,12 +164,12 @@ public function testImmutableForm() {
   public function testImmutableFormLegacyProtection() {
     $this->drupalGet('form_test/form-storage', ['query' => ['cache' => 1, 'immutable' => 1]]);
     $build_id_fields = $this->xpath('//input[@name="form_build_id"]');
-    $this->assertEqual(count($build_id_fields), 1, 'One form build id field on the page');
+    $this->assertEquals(count($build_id_fields), 1, 'One form build id field on the page');
     $build_id = (string) $build_id_fields[0]['value'];
 
     // Try to poison the form cache.
     $original = $this->drupalGetAjax('form-test/form-storage-legacy/' . $build_id);
-    $this->assertEqual($original['form']['#build_id_old'], $build_id, 'Original build_id was recorded');
+    $this->assertEquals($original['form']['#build_id_old'], $build_id, 'Original build_id was recorded');
     $this->assertNotEqual($original['form']['#build_id'], $build_id, 'New build_id was generated');
 
     // Assert that a watchdog message was logged by
@@ -179,7 +179,7 @@ public function testImmutableFormLegacyProtection() {
 
     // Ensure that the form state was not poisoned by the preceding call.
     $original = $this->drupalGetAjax('form-test/form-storage-legacy/' . $build_id);
-    $this->assertEqual($original['form']['#build_id_old'], $build_id, 'Original build_id was recorded');
+    $this->assertEquals($original['form']['#build_id_old'], $build_id, 'Original build_id was recorded');
     $this->assertNotEqual($original['form']['#build_id'], $build_id, 'New build_id was generated');
     $this->assert(empty($original['form']['#poisoned']), 'Original form structure was preserved');
     $this->assert(empty($original['form_state']['poisoned']), 'Original form state was preserved');
diff --git a/core/modules/system/src/Tests/Installer/DistributionProfileExistingSettingsTest.php b/core/modules/system/src/Tests/Installer/DistributionProfileExistingSettingsTest.php
index 48b9fcb753..9ddbf5e2ba 100644
--- a/core/modules/system/src/Tests/Installer/DistributionProfileExistingSettingsTest.php
+++ b/core/modules/system/src/Tests/Installer/DistributionProfileExistingSettingsTest.php
@@ -119,13 +119,13 @@ public function testInstalled() {
     $this->assertText($this->rootUser->getUsername());
 
     // Confirm that Drupal recognizes this distribution as the current profile.
-    $this->assertEqual(\Drupal::installProfile(), 'mydistro');
+    $this->assertEquals(\Drupal::installProfile(), 'mydistro');
     $this->assertNull(Settings::get('install_profile'), 'The install profile has not been written to settings.php.');
-    $this->assertEqual($this->config('core.extension')->get('profile'), 'mydistro', 'The install profile has been written to core.extension configuration.');
+    $this->assertEquals($this->config('core.extension')->get('profile'), 'mydistro', 'The install profile has been written to core.extension configuration.');
 
     $this->rebuildContainer();
     $this->pass('Container can be rebuilt even though distribution is not written to settings.php.');
-    $this->assertEqual(\Drupal::installProfile(), 'mydistro');
+    $this->assertEquals(\Drupal::installProfile(), 'mydistro');
   }
 
 }
diff --git a/core/modules/system/src/Tests/Installer/DistributionProfileTest.php b/core/modules/system/src/Tests/Installer/DistributionProfileTest.php
index 3d2c4c44ab..112fec0e90 100644
--- a/core/modules/system/src/Tests/Installer/DistributionProfileTest.php
+++ b/core/modules/system/src/Tests/Installer/DistributionProfileTest.php
@@ -73,9 +73,9 @@ public function testInstalled() {
     $this->assertText($this->rootUser->getUsername());
 
     // Confirm that Drupal recognizes this distribution as the current profile.
-    $this->assertEqual(\Drupal::installProfile(), 'mydistro');
-    $this->assertEqual(Settings::get('install_profile'), 'mydistro', 'The install profile has been written to settings.php.');
-    $this->assertEqual($this->config('core.extension')->get('profile'), 'mydistro', 'The install profile has been written to core.extension configuration.');
+    $this->assertEquals(\Drupal::installProfile(), 'mydistro');
+    $this->assertEquals(Settings::get('install_profile'), 'mydistro', 'The install profile has been written to settings.php.');
+    $this->assertEquals($this->config('core.extension')->get('profile'), 'mydistro', 'The install profile has been written to core.extension configuration.');
   }
 
 }
diff --git a/core/modules/system/src/Tests/Installer/DistributionProfileTranslationQueryTest.php b/core/modules/system/src/Tests/Installer/DistributionProfileTranslationQueryTest.php
index 85b1e44ec4..7702c4a4eb 100644
--- a/core/modules/system/src/Tests/Installer/DistributionProfileTranslationQueryTest.php
+++ b/core/modules/system/src/Tests/Installer/DistributionProfileTranslationQueryTest.php
@@ -88,12 +88,12 @@ protected function setUpSettings() {
     // The language should have been automatically detected, all following
     // screens should be translated already.
     $elements = $this->xpath('//input[@type="submit"]/@value');
-    $this->assertEqual((string) current($elements), 'Save and continue de');
+    $this->assertEquals((string) current($elements), 'Save and continue de');
     $this->translations['Save and continue'] = 'Save and continue de';
 
     // Check the language direction.
     $direction = (string) current($this->xpath('/html/@dir'));
-    $this->assertEqual($direction, 'ltr');
+    $this->assertEquals($direction, 'ltr');
 
     // Verify that the distribution name appears.
     $this->assertRaw($this->info['distribution']['name']);
diff --git a/core/modules/system/src/Tests/Installer/DistributionProfileTranslationTest.php b/core/modules/system/src/Tests/Installer/DistributionProfileTranslationTest.php
index a4c8091ecd..422647e905 100644
--- a/core/modules/system/src/Tests/Installer/DistributionProfileTranslationTest.php
+++ b/core/modules/system/src/Tests/Installer/DistributionProfileTranslationTest.php
@@ -83,12 +83,12 @@ protected function setUpSettings() {
     // The language should have been automatically detected, all following
     // screens should be translated already.
     $elements = $this->xpath('//input[@type="submit"]/@value');
-    $this->assertEqual((string) current($elements), 'Save and continue de');
+    $this->assertEquals((string) current($elements), 'Save and continue de');
     $this->translations['Save and continue'] = 'Save and continue de';
 
     // Check the language direction.
     $direction = (string) current($this->xpath('/html/@dir'));
-    $this->assertEqual($direction, 'ltr');
+    $this->assertEquals($direction, 'ltr');
 
     // Verify that the distribution name appears.
     $this->assertRaw($this->info['distribution']['name']);
diff --git a/core/modules/system/src/Tests/Installer/InstallerExistingConfigDirectoryTest.php b/core/modules/system/src/Tests/Installer/InstallerExistingConfigDirectoryTest.php
index b06b4caf6e..ded5b16c08 100644
--- a/core/modules/system/src/Tests/Installer/InstallerExistingConfigDirectoryTest.php
+++ b/core/modules/system/src/Tests/Installer/InstallerExistingConfigDirectoryTest.php
@@ -37,8 +37,8 @@ protected function setUp() {
   public function testInstaller() {
     $this->assertUrl('user/1');
     $this->assertResponse(200);
-    $this->assertEqual($this->expectedFilePerms, fileperms($this->siteDirectory . '/config_read_only'));
-    $this->assertEqual([], glob($this->siteDirectory . '/config_read_only/*'), 'The sync directory is empty after install because it is read-only.');
+    $this->assertEquals($this->expectedFilePerms, fileperms($this->siteDirectory . '/config_read_only'));
+    $this->assertEquals([], glob($this->siteDirectory . '/config_read_only/*'), 'The sync directory is empty after install because it is read-only.');
   }
 
 }
diff --git a/core/modules/system/src/Tests/Installer/InstallerExistingSettingsMismatchProfileTest.php b/core/modules/system/src/Tests/Installer/InstallerExistingSettingsMismatchProfileTest.php
index 0349fe5152..a3e566864f 100644
--- a/core/modules/system/src/Tests/Installer/InstallerExistingSettingsMismatchProfileTest.php
+++ b/core/modules/system/src/Tests/Installer/InstallerExistingSettingsMismatchProfileTest.php
@@ -94,8 +94,8 @@ protected function setUpSettings() {
   public function testInstaller() {
     $this->assertUrl('user/1');
     $this->assertResponse(200);
-    $this->assertEqual('testing', \Drupal::installProfile());
-    $this->assertEqual('testing', Settings::get('install_profile'), 'Profile was correctly changed to testing in Settings.php');
+    $this->assertEquals('testing', \Drupal::installProfile());
+    $this->assertEquals('testing', Settings::get('install_profile'), 'Profile was correctly changed to testing in Settings.php');
   }
 
 }
diff --git a/core/modules/system/src/Tests/Installer/InstallerExistingSettingsNoProfileTest.php b/core/modules/system/src/Tests/Installer/InstallerExistingSettingsNoProfileTest.php
index 3405cb598a..9738984f81 100644
--- a/core/modules/system/src/Tests/Installer/InstallerExistingSettingsNoProfileTest.php
+++ b/core/modules/system/src/Tests/Installer/InstallerExistingSettingsNoProfileTest.php
@@ -64,7 +64,7 @@ protected function setUpSettings() {
   public function testInstaller() {
     $this->assertUrl('user/1');
     $this->assertResponse(200);
-    $this->assertEqual('testing', \Drupal::installProfile());
+    $this->assertEquals('testing', \Drupal::installProfile());
   }
 
 }
diff --git a/core/modules/system/src/Tests/Installer/InstallerExistingSettingsTest.php b/core/modules/system/src/Tests/Installer/InstallerExistingSettingsTest.php
index 4f09b6b7c0..087b1184a6 100644
--- a/core/modules/system/src/Tests/Installer/InstallerExistingSettingsTest.php
+++ b/core/modules/system/src/Tests/Installer/InstallerExistingSettingsTest.php
@@ -75,8 +75,8 @@ protected function setUpSettings() {
   public function testInstaller() {
     $this->assertUrl('user/1');
     $this->assertResponse(200);
-    $this->assertEqual('testing', \Drupal::installProfile(), 'Profile was changed from minimal to testing during interactive install.');
-    $this->assertEqual('testing', Settings::get('install_profile'), 'Profile was correctly changed to testing in Settings.php');
+    $this->assertEquals('testing', \Drupal::installProfile(), 'Profile was changed from minimal to testing during interactive install.');
+    $this->assertEquals('testing', Settings::get('install_profile'), 'Profile was correctly changed to testing in Settings.php');
   }
 
 }
diff --git a/core/modules/system/src/Tests/Installer/InstallerLanguageDirectionTest.php b/core/modules/system/src/Tests/Installer/InstallerLanguageDirectionTest.php
index 5e2c15a82d..854a71a01d 100644
--- a/core/modules/system/src/Tests/Installer/InstallerLanguageDirectionTest.php
+++ b/core/modules/system/src/Tests/Installer/InstallerLanguageDirectionTest.php
@@ -30,12 +30,12 @@ protected function setUpLanguage() {
     // After selecting a different language than English, all following screens
     // should be translated already.
     $elements = $this->xpath('//input[@type="submit"]/@value');
-    $this->assertEqual((string) current($elements), 'Save and continue Arabic');
+    $this->assertEquals((string) current($elements), 'Save and continue Arabic');
     $this->translations['Save and continue'] = 'Save and continue Arabic';
 
     // Verify that language direction is right-to-left.
     $direction = (string) current($this->xpath('/html/@dir'));
-    $this->assertEqual($direction, 'rtl');
+    $this->assertEquals($direction, 'rtl');
   }
 
   /**
diff --git a/core/modules/system/src/Tests/Installer/InstallerTest.php b/core/modules/system/src/Tests/Installer/InstallerTest.php
index be51057ad8..18bf140461 100644
--- a/core/modules/system/src/Tests/Installer/InstallerTest.php
+++ b/core/modules/system/src/Tests/Installer/InstallerTest.php
@@ -28,7 +28,7 @@ public function testInstaller() {
 
     // Ensure that the timezone is correct for sites under test after installing
     // interactively.
-    $this->assertEqual($this->config('system.date')->get('timezone.default'), 'Australia/Sydney');
+    $this->assertEquals($this->config('system.date')->get('timezone.default'), 'Australia/Sydney');
   }
 
   /**
@@ -41,7 +41,7 @@ protected function setUpLanguage() {
     $this->assertRaw('<meta charset="utf-8" />');
 
     // Assert that the expected title is present.
-    $this->assertEqual('Choose language', $this->cssSelect('main h2')[0]);
+    $this->assertEquals('Choose language', $this->cssSelect('main h2')[0]);
 
     parent::setUpLanguage();
   }
@@ -51,9 +51,9 @@ protected function setUpLanguage() {
    */
   protected function setUpProfile() {
     // Assert that the expected title is present.
-    $this->assertEqual('Select an installation profile', $this->cssSelect('main h2')[0]);
+    $this->assertEquals('Select an installation profile', $this->cssSelect('main h2')[0]);
     $result = $this->xpath('//span[contains(@class, :class) and contains(text(), :text)]', [':class' => 'visually-hidden', ':text' => 'Select an installation profile']);
-    $this->assertEqual(count($result), 1, "Title/Label not displayed when '#title_display' => 'invisible' attribute is set");
+    $this->assertEquals(count($result), 1, "Title/Label not displayed when '#title_display' => 'invisible' attribute is set");
 
     parent::setUpProfile();
   }
@@ -63,7 +63,7 @@ protected function setUpProfile() {
    */
   protected function setUpSettings() {
     // Assert that the expected title is present.
-    $this->assertEqual('Database configuration', $this->cssSelect('main h2')[0]);
+    $this->assertEquals('Database configuration', $this->cssSelect('main h2')[0]);
 
     parent::setUpSettings();
   }
@@ -73,7 +73,7 @@ protected function setUpSettings() {
    */
   protected function setUpSite() {
     // Assert that the expected title is present.
-    $this->assertEqual('Configure site', $this->cssSelect('main h2')[0]);
+    $this->assertEquals('Configure site', $this->cssSelect('main h2')[0]);
 
     parent::setUpSite();
   }
diff --git a/core/modules/system/src/Tests/Installer/InstallerTranslationMultipleLanguageTest.php b/core/modules/system/src/Tests/Installer/InstallerTranslationMultipleLanguageTest.php
index dcde753d76..438030367b 100644
--- a/core/modules/system/src/Tests/Installer/InstallerTranslationMultipleLanguageTest.php
+++ b/core/modules/system/src/Tests/Installer/InstallerTranslationMultipleLanguageTest.php
@@ -72,7 +72,7 @@ protected function installParameters() {
    */
   public function testTranslationsLoaded() {
     // Ensure the title is correct.
-    $this->assertEqual('SITE_NAME_' . $this->langcode, \Drupal::config('system.site')->get('name'));
+    $this->assertEquals('SITE_NAME_' . $this->langcode, \Drupal::config('system.site')->get('name'));
 
     // Verify German and Spanish were configured.
     $this->drupalGet('admin/config/regional/language');
@@ -110,14 +110,14 @@ public function testTranslationsLoaded() {
     if ($this->langcode == 'de') {
       // Active configuration should be in German and no German override should
       // exist.
-      $this->assertEqual($config->get('anonymous'), 'Anonymous de');
-      $this->assertEqual($config->get('langcode'), 'de');
+      $this->assertEquals($config->get('anonymous'), 'Anonymous de');
+      $this->assertEquals($config->get('langcode'), 'de');
       $this->assertTrue($override_de->isNew());
 
       if ($this->profile == 'testing_multilingual_with_english') {
         // English is already added in this profile. Should make the override
         // available.
-        $this->assertEqual($override_en->get('anonymous'), 'Anonymous');
+        $this->assertEquals($override_en->get('anonymous'), 'Anonymous');
       }
       else {
         // English is not yet available.
@@ -127,7 +127,7 @@ public function testTranslationsLoaded() {
         $edit = ['predefined_langcode' => 'en'];
         $this->drupalPostForm('admin/config/regional/language/add', $edit, t('Add language'));
         $override_en = $language_manager->getLanguageConfigOverride('en', 'user.settings');
-        $this->assertEqual($override_en->get('anonymous'), 'Anonymous');
+        $this->assertEquals($override_en->get('anonymous'), 'Anonymous');
       }
 
       // Activate a module, to make sure that config is not overridden by module
@@ -143,16 +143,16 @@ public function testTranslationsLoaded() {
     }
     else {
       // Active configuration should be English.
-      $this->assertEqual($config->get('anonymous'), 'Anonymous');
-      $this->assertEqual($config->get('langcode'), 'en');
+      $this->assertEquals($config->get('anonymous'), 'Anonymous');
+      $this->assertEquals($config->get('langcode'), 'en');
       // There should not be an English override.
       $this->assertTrue($override_en->isNew());
       // German should be an override.
-      $this->assertEqual($override_de->get('anonymous'), 'Anonymous de');
+      $this->assertEquals($override_de->get('anonymous'), 'Anonymous de');
     }
 
     // Spanish is always an override (never used as installation language).
-    $this->assertEqual($override_es->get('anonymous'), 'Anonymous es');
+    $this->assertEquals($override_es->get('anonymous'), 'Anonymous es');
 
   }
 
diff --git a/core/modules/system/src/Tests/Installer/InstallerTranslationQueryTest.php b/core/modules/system/src/Tests/Installer/InstallerTranslationQueryTest.php
index 86c20f7c3f..e6cd95e92d 100644
--- a/core/modules/system/src/Tests/Installer/InstallerTranslationQueryTest.php
+++ b/core/modules/system/src/Tests/Installer/InstallerTranslationQueryTest.php
@@ -35,12 +35,12 @@ protected function visitInstaller() {
     // The language should have been automatically detected, all following
     // screens should be translated already.
     $elements = $this->xpath('//input[@type="submit"]/@value');
-    $this->assertEqual((string) current($elements), 'Save and continue de');
+    $this->assertEquals((string) current($elements), 'Save and continue de');
     $this->translations['Save and continue'] = 'Save and continue de';
 
     // Check the language direction.
     $direction = (string) current($this->xpath('/html/@dir'));
-    $this->assertEqual($direction, 'ltr');
+    $this->assertEquals($direction, 'ltr');
   }
 
   /**
diff --git a/core/modules/system/src/Tests/Installer/InstallerTranslationTest.php b/core/modules/system/src/Tests/Installer/InstallerTranslationTest.php
index 7a803e700b..73d86541d5 100644
--- a/core/modules/system/src/Tests/Installer/InstallerTranslationTest.php
+++ b/core/modules/system/src/Tests/Installer/InstallerTranslationTest.php
@@ -33,12 +33,12 @@ protected function setUpLanguage() {
     // After selecting a different language than English, all following screens
     // should be translated already.
     $elements = $this->xpath('//input[@type="submit"]/@value');
-    $this->assertEqual((string) current($elements), 'Save and continue de');
+    $this->assertEquals((string) current($elements), 'Save and continue de');
     $this->translations['Save and continue'] = 'Save and continue de';
 
     // Check the language direction.
     $direction = (string) current($this->xpath('/html/@dir'));
-    $this->assertEqual($direction, 'ltr');
+    $this->assertEquals($direction, 'ltr');
   }
 
   /**
@@ -77,11 +77,11 @@ public function testInstaller() {
     $this->rebuildContainer();
     /** @var \Drupal\user\Entity\User $account */
     $account = User::load(0);
-    $this->assertEqual($account->language()->getId(), 'en', 'Anonymous user is English.');
+    $this->assertEquals($account->language()->getId(), 'en', 'Anonymous user is English.');
     $account = User::load(1);
-    $this->assertEqual($account->language()->getId(), 'en', 'Administrator user is English.');
+    $this->assertEquals($account->language()->getId(), 'en', 'Administrator user is English.');
     $account = $this->drupalCreateUser();
-    $this->assertEqual($account->language()->getId(), 'de', 'New user is German.');
+    $this->assertEquals($account->language()->getId(), 'de', 'New user is German.');
 
     // Ensure that we can enable basic_auth on a non-english site.
     $this->drupalPostForm('admin/modules', ['modules[basic_auth][enable]' => TRUE], t('Install'));
@@ -112,8 +112,8 @@ public function testInstaller() {
     $config = \Drupal::config('user.settings');
     $override_de = $language_manager->getLanguageConfigOverride('de', 'user.settings');
     $override_en = $language_manager->getLanguageConfigOverride('en', 'user.settings');
-    $this->assertEqual($config->get('anonymous'), 'Anonymous de');
-    $this->assertEqual($config->get('langcode'), 'de');
+    $this->assertEquals($config->get('anonymous'), 'Anonymous de');
+    $this->assertEquals($config->get('langcode'), 'de');
     $this->assertTrue($override_de->isNew());
     $this->assertTrue($override_en->isNew());
 
@@ -122,7 +122,7 @@ public function testInstaller() {
     $this->drupalPostForm('admin/config/regional/language/add', $edit, t('Add language'));
     $override_en = $language_manager->getLanguageConfigOverride('en', 'user.settings');
     $this->assertFalse($override_en->isNew());
-    $this->assertEqual($override_en->get('anonymous'), 'Anonymous');
+    $this->assertEquals($override_en->get('anonymous'), 'Anonymous');
   }
 
   /**
diff --git a/core/modules/system/src/Tests/Installer/MultipleDistributionsProfileTest.php b/core/modules/system/src/Tests/Installer/MultipleDistributionsProfileTest.php
index 171a0afc31..3bdb7beb57 100644
--- a/core/modules/system/src/Tests/Installer/MultipleDistributionsProfileTest.php
+++ b/core/modules/system/src/Tests/Installer/MultipleDistributionsProfileTest.php
@@ -79,13 +79,13 @@ public function testInstalled() {
     $this->assertText($this->rootUser->getUsername());
 
     // Confirm that Drupal recognizes this distribution as the current profile.
-    $this->assertEqual(\Drupal::installProfile(), 'distribution_one');
-    $this->assertEqual(Settings::get('install_profile'), 'distribution_one', 'The install profile has been written to settings.php.');
-    $this->assertEqual($this->config('core.extension')->get('profile'), 'distribution_one', 'The install profile has been written to core.extension configuration.');
+    $this->assertEquals(\Drupal::installProfile(), 'distribution_one');
+    $this->assertEquals(Settings::get('install_profile'), 'distribution_one', 'The install profile has been written to settings.php.');
+    $this->assertEquals($this->config('core.extension')->get('profile'), 'distribution_one', 'The install profile has been written to core.extension configuration.');
 
     $this->rebuildContainer();
     $this->pass('Container can be rebuilt as distribution is written to configuration.');
-    $this->assertEqual(\Drupal::installProfile(), 'distribution_one');
+    $this->assertEquals(\Drupal::installProfile(), 'distribution_one');
   }
 
 }
diff --git a/core/modules/system/src/Tests/Installer/SingleVisibleProfileTest.php b/core/modules/system/src/Tests/Installer/SingleVisibleProfileTest.php
index 91af34a2d1..040ced9699 100644
--- a/core/modules/system/src/Tests/Installer/SingleVisibleProfileTest.php
+++ b/core/modules/system/src/Tests/Installer/SingleVisibleProfileTest.php
@@ -59,7 +59,7 @@ public function testInstalled() {
     // Confirm that we are logged-in after installation.
     $this->assertText($this->rootUser->getUsername());
     // Confirm that the minimal profile was installed.
-    $this->assertEqual(drupal_get_profile(), 'minimal');
+    $this->assertEquals(drupal_get_profile(), 'minimal');
   }
 
 }
diff --git a/core/modules/system/src/Tests/Module/InstallUninstallTest.php b/core/modules/system/src/Tests/Module/InstallUninstallTest.php
index e3c7af2db5..7621240baa 100644
--- a/core/modules/system/src/Tests/Module/InstallUninstallTest.php
+++ b/core/modules/system/src/Tests/Module/InstallUninstallTest.php
@@ -28,9 +28,9 @@ public function testInstallUninstall() {
     // Install and uninstall module_test to ensure hook_preinstall_module and
     // hook_preuninstall_module are fired as expected.
     $this->container->get('module_installer')->install(['module_test']);
-    $this->assertEqual($this->container->get('state')->get('system_test_preinstall_module'), 'module_test');
+    $this->assertEquals($this->container->get('state')->get('system_test_preinstall_module'), 'module_test');
     $this->container->get('module_installer')->uninstall(['module_test']);
-    $this->assertEqual($this->container->get('state')->get('system_test_preuninstall_module'), 'module_test');
+    $this->assertEquals($this->container->get('state')->get('system_test_preuninstall_module'), 'module_test');
     $this->resetAll();
 
     $all_modules = system_rebuild_module_data();
diff --git a/core/modules/system/src/Tests/Module/ModuleTestBase.php b/core/modules/system/src/Tests/Module/ModuleTestBase.php
index cc5a7ef270..08a405cf50 100644
--- a/core/modules/system/src/Tests/Module/ModuleTestBase.php
+++ b/core/modules/system/src/Tests/Module/ModuleTestBase.php
@@ -159,7 +159,7 @@ public function assertModules(array $modules, $enabled) {
       else {
         $message = 'Module "@module" is not enabled.';
       }
-      $this->assertEqual($this->container->get('module_handler')->moduleExists($module), $enabled, format_string($message, ['@module' => $module]));
+      $this->assertEquals($this->container->get('module_handler')->moduleExists($module), $enabled, format_string($message, ['@module' => $module]));
     }
   }
 
diff --git a/core/modules/system/src/Tests/Module/VersionTest.php b/core/modules/system/src/Tests/Module/VersionTest.php
index daad1a6679..10d2adafc1 100644
--- a/core/modules/system/src/Tests/Module/VersionTest.php
+++ b/core/modules/system/src/Tests/Module/VersionTest.php
@@ -49,7 +49,7 @@ public function testModuleVersions() {
     for ($i = 0; $i < $n; $i++) {
       $this->drupalGet('admin/modules');
       $checkbox = $this->xpath('//input[@id="edit-modules-module-test-enable"]');
-      $this->assertEqual(!empty($checkbox[0]['disabled']), $i % 2, $dependencies[$i]);
+      $this->assertEquals(!empty($checkbox[0]['disabled']), $i % 2, $dependencies[$i]);
     }
   }
 
diff --git a/core/modules/system/src/Tests/Page/DefaultMetatagsTest.php b/core/modules/system/src/Tests/Page/DefaultMetatagsTest.php
index e0228efad7..8c3e05a3ea 100644
--- a/core/modules/system/src/Tests/Page/DefaultMetatagsTest.php
+++ b/core/modules/system/src/Tests/Page/DefaultMetatagsTest.php
@@ -18,15 +18,15 @@ public function testMetaTag() {
     $this->drupalGet('');
     // Ensures that the charset metatag is on the page.
     $result = $this->xpath('//meta[@charset="utf-8"]');
-    $this->assertEqual(count($result), 1);
+    $this->assertEquals(count($result), 1);
 
     // Ensure that the charset one is the first metatag.
     $result = $this->xpath('//meta');
-    $this->assertEqual((string) $result[0]->attributes()->charset, 'utf-8');
+    $this->assertEquals((string) $result[0]->attributes()->charset, 'utf-8');
 
     // Ensure that the shortcut icon is on the page.
     $result = $this->xpath('//link[@rel = "shortcut icon"]');
-    $this->assertEqual(count($result), 1, 'The shortcut icon is present.');
+    $this->assertEquals(count($result), 1, 'The shortcut icon is present.');
   }
 
 }
diff --git a/core/modules/system/src/Tests/Pager/PagerTest.php b/core/modules/system/src/Tests/Pager/PagerTest.php
index 71413f283e..9da8ab1e06 100644
--- a/core/modules/system/src/Tests/Pager/PagerTest.php
+++ b/core/modules/system/src/Tests/Pager/PagerTest.php
@@ -168,7 +168,7 @@ public function testMultiplePagers() {
       foreach ([0, 1, 4] as $pager_element) {
         $active_page = $this->cssSelect("div.test-pager-{$pager_element} ul.pager__items li.is-active:contains('{$data['expected_page'][$pager_element]}')");
         $destination = str_replace('%2C', ',', $active_page[0]->a['href'][0]->__toString());
-        $this->assertEqual($destination, $data['expected_query']);
+        $this->assertEquals($destination, $data['expected_query']);
       }
     }
   }
@@ -184,7 +184,7 @@ public function testPagerEllipsis() {
     }
     $this->drupalGet('admin/reports/dblog');
     $elements = $this->cssSelect(".pager__item--ellipsis:contains('…')");
-    $this->assertEqual(count($elements), 0, 'No ellipsis has been set.');
+    $this->assertEquals(count($elements), 0, 'No ellipsis has been set.');
 
     // Insert an extra 50 log messages to get 10 pages.
     $logger = $this->container->get('logger.factory')->get('pager_test');
@@ -193,7 +193,7 @@ public function testPagerEllipsis() {
     }
     $this->drupalGet('admin/reports/dblog');
     $elements = $this->cssSelect(".pager__item--ellipsis:contains('…')");
-    $this->assertEqual(count($elements), 1, 'Found the ellipsis.');
+    $this->assertEquals(count($elements), 1, 'Found the ellipsis.');
   }
 
   /**
@@ -235,14 +235,14 @@ protected function assertPagerItems($current_page) {
         $this->assertTrue($element->a, 'Element for current page has link.');
         $destination = $element->a['href'][0]->__toString();
         // URL query string param is 0-indexed.
-        $this->assertEqual($destination, '?page=' . ($page - 1));
+        $this->assertEquals($destination, '?page=' . ($page - 1));
       }
       else {
         $this->assertNoClass($element, 'is-active', "Element for page $page has no .is-active class.");
         $this->assertClass($element, 'pager__item', "Element for page $page has .pager__item class.");
         $this->assertTrue($element->a, "Link to page $page found.");
         $destination = $element->a['href'][0]->__toString();
-        $this->assertEqual($destination, '?page=' . ($page - 1));
+        $this->assertEquals($destination, '?page=' . ($page - 1));
       }
       unset($elements[--$page]);
     }
@@ -255,7 +255,7 @@ protected function assertPagerItems($current_page) {
       $this->assertTrue($first->a, 'Link to first page found.');
       $this->assertNoClass($first->a, 'is-active', 'Link to first page is not active.');
       $destination = $first->a['href'][0]->__toString();
-      $this->assertEqual($destination, '?page=0');
+      $this->assertEquals($destination, '?page=0');
     }
     if (isset($previous)) {
       $this->assertClass($previous, 'pager__item--previous', 'Element for first page has .pager__item--previous class.');
@@ -263,7 +263,7 @@ protected function assertPagerItems($current_page) {
       $this->assertNoClass($previous->a, 'is-active', 'Link to previous page is not active.');
       $destination = $previous->a['href'][0]->__toString();
       // URL query string param is 0-indexed, $current_page is 1-indexed.
-      $this->assertEqual($destination, '?page=' . ($current_page - 2));
+      $this->assertEquals($destination, '?page=' . ($current_page - 2));
     }
     if (isset($next)) {
       $this->assertClass($next, 'pager__item--next', 'Element for next page has .pager__item--next class.');
@@ -271,7 +271,7 @@ protected function assertPagerItems($current_page) {
       $this->assertNoClass($next->a, 'is-active', 'Link to next page is not active.');
       $destination = $next->a['href'][0]->__toString();
       // URL query string param is 0-indexed, $current_page is 1-indexed.
-      $this->assertEqual($destination, '?page=' . $current_page);
+      $this->assertEquals($destination, '?page=' . $current_page);
     }
     if (isset($last)) {
       $this->assertClass($last, 'pager__item--last', 'Element for last page has .pager__item--last class.');
@@ -279,7 +279,7 @@ protected function assertPagerItems($current_page) {
       $this->assertNoClass($last->a, 'is-active', 'Link to last page is not active.');
       $destination = $last->a['href'][0]->__toString();
       // URL query string param is 0-indexed.
-      $this->assertEqual($destination, '?page=' . ($total_pages - 1));
+      $this->assertEquals($destination, '?page=' . ($total_pages - 1));
     }
   }
 
diff --git a/core/modules/system/src/Tests/Render/HtmlResponseAttachmentsTest.php b/core/modules/system/src/Tests/Render/HtmlResponseAttachmentsTest.php
index 6060fcc30c..171d6dbd20 100644
--- a/core/modules/system/src/Tests/Render/HtmlResponseAttachmentsTest.php
+++ b/core/modules/system/src/Tests/Render/HtmlResponseAttachmentsTest.php
@@ -61,7 +61,7 @@ public function testAttachments() {
       '</foo?bar=&lt;baz&gt;&amp;baz=false>; rel="alternate"',
       '</foo/bar>; hreflang="nl"; rel="alternate"',
     ];
-    $this->assertEqual($this->drupalGetHeader('link'), implode(',', $expected_link_headers));
+    $this->assertEquals($this->drupalGetHeader('link'), implode(',', $expected_link_headers));
   }
 
   /**
@@ -104,7 +104,7 @@ protected function assertTeapotHeaders() {
   protected function assertFeed() {
     // Discover the DOM element for the feed link.
     $test_meta = $this->xpath('//head/link[@href="test://url"]');
-    $this->assertEqual(1, count($test_meta), 'Link has URL.');
+    $this->assertEquals(1, count($test_meta), 'Link has URL.');
     // Reconcile the other attributes.
     $test_meta_attributes = [
       'href' => 'test://url',
@@ -118,7 +118,7 @@ protected function assertFeed() {
     }
     else {
       foreach ($test_meta->attributes() as $attribute => $value) {
-        $this->assertEqual($value, $test_meta_attributes[$attribute]);
+        $this->assertEquals($value, $test_meta_attributes[$attribute]);
       }
     }
   }
@@ -129,7 +129,7 @@ protected function assertFeed() {
   protected function assertHead() {
     // Discover the DOM element for the meta link.
     $test_meta = $this->xpath('//head/meta[@test-attribute="testvalue"]');
-    $this->assertEqual(1, count($test_meta), 'There\'s only one test attribute.');
+    $this->assertEquals(1, count($test_meta), 'There\'s only one test attribute.');
     // Grab the only DOM element.
     $test_meta = reset($test_meta);
     if (empty($test_meta)) {
@@ -137,7 +137,7 @@ protected function assertHead() {
     }
     else {
       $test_meta_attributes = $test_meta->attributes();
-      $this->assertEqual($test_meta_attributes['test-attribute'], 'testvalue');
+      $this->assertEquals($test_meta_attributes['test-attribute'], 'testvalue');
     }
   }
 
diff --git a/core/modules/system/src/Tests/Routing/RouterTest.php b/core/modules/system/src/Tests/Routing/RouterTest.php
index 83a9c55b39..df641db0da 100644
--- a/core/modules/system/src/Tests/Routing/RouterTest.php
+++ b/core/modules/system/src/Tests/Routing/RouterTest.php
@@ -35,17 +35,17 @@ public function testFinishResponseSubscriber() {
     $this->assertRaw('test1', 'The correct string was returned because the route was successful.');
     // Check expected headers from FinishResponseSubscriber.
     $headers = $this->drupalGetHeaders();
-    $this->assertEqual($headers['x-ua-compatible'], 'IE=edge');
-    $this->assertEqual($headers['content-language'], 'en');
-    $this->assertEqual($headers['x-content-type-options'], 'nosniff');
-    $this->assertEqual($headers['x-frame-options'], 'SAMEORIGIN');
+    $this->assertEquals($headers['x-ua-compatible'], 'IE=edge');
+    $this->assertEquals($headers['content-language'], 'en');
+    $this->assertEquals($headers['x-content-type-options'], 'nosniff');
+    $this->assertEquals($headers['x-frame-options'], 'SAMEORIGIN');
 
     $this->drupalGet('router_test/test2');
     $this->assertRaw('test2', 'The correct string was returned because the route was successful.');
     // Check expected headers from FinishResponseSubscriber.
     $headers = $this->drupalGetHeaders();
-    $this->assertEqual($headers['x-drupal-cache-contexts'], implode(' ', $expected_cache_contexts));
-    $this->assertEqual($headers['x-drupal-cache-tags'], 'config:user.role.anonymous http_response rendered');
+    $this->assertEquals($headers['x-drupal-cache-contexts'], implode(' ', $expected_cache_contexts));
+    $this->assertEquals($headers['x-drupal-cache-tags'], 'config:user.role.anonymous http_response rendered');
     // Confirm that the page wrapping is being added, so we're not getting a
     // raw body returned.
     $this->assertRaw('</html>', 'Page markup was found.');
@@ -58,13 +58,13 @@ public function testFinishResponseSubscriber() {
     // 1. controller result: render array, globally cacheable route access.
     $this->drupalGet('router_test/test18');
     $headers = $this->drupalGetHeaders();
-    $this->assertEqual($headers['x-drupal-cache-contexts'], implode(' ', Cache::mergeContexts($renderer_required_cache_contexts, ['url'])));
-    $this->assertEqual($headers['x-drupal-cache-tags'], 'config:user.role.anonymous foo http_response rendered');
+    $this->assertEquals($headers['x-drupal-cache-contexts'], implode(' ', Cache::mergeContexts($renderer_required_cache_contexts, ['url'])));
+    $this->assertEquals($headers['x-drupal-cache-tags'], 'config:user.role.anonymous foo http_response rendered');
     // 2. controller result: render array, per-role cacheable route access.
     $this->drupalGet('router_test/test19');
     $headers = $this->drupalGetHeaders();
-    $this->assertEqual($headers['x-drupal-cache-contexts'], implode(' ', Cache::mergeContexts($renderer_required_cache_contexts, ['url', 'user.roles'])));
-    $this->assertEqual($headers['x-drupal-cache-tags'], 'config:user.role.anonymous foo http_response rendered');
+    $this->assertEquals($headers['x-drupal-cache-contexts'], implode(' ', Cache::mergeContexts($renderer_required_cache_contexts, ['url', 'user.roles'])));
+    $this->assertEquals($headers['x-drupal-cache-tags'], 'config:user.role.anonymous foo http_response rendered');
     // 3. controller result: Response object, globally cacheable route access.
     $this->drupalGet('router_test/test1');
     $headers = $this->drupalGetHeaders();
@@ -78,13 +78,13 @@ public function testFinishResponseSubscriber() {
     // 5. controller result: CacheableResponse object, globally cacheable route access.
     $this->drupalGet('router_test/test21');
     $headers = $this->drupalGetHeaders();
-    $this->assertEqual($headers['x-drupal-cache-contexts'], '');
-    $this->assertEqual($headers['x-drupal-cache-tags'], 'http_response');
+    $this->assertEquals($headers['x-drupal-cache-contexts'], '');
+    $this->assertEquals($headers['x-drupal-cache-tags'], 'http_response');
     // 6. controller result: CacheableResponse object, per-role cacheable route access.
     $this->drupalGet('router_test/test22');
     $headers = $this->drupalGetHeaders();
-    $this->assertEqual($headers['x-drupal-cache-contexts'], 'user.roles');
-    $this->assertEqual($headers['x-drupal-cache-tags'], 'http_response');
+    $this->assertEquals($headers['x-drupal-cache-contexts'], 'user.roles');
+    $this->assertEquals($headers['x-drupal-cache-tags'], 'http_response');
 
     // Finally, verify that the X-Drupal-Cache-Contexts and X-Drupal-Cache-Tags
     // headers are not sent when their container parameter is set to FALSE.
@@ -264,11 +264,11 @@ public function testUserAccount() {
 
     $this->drupalGet('router_test/test12/' . $second_account->id());
     $this->assertText($account->getUsername() . ':' . $second_account->getUsername());
-    $this->assertEqual($account->id(), $this->loggedInUser->id(), 'Ensure that the user was not changed.');
+    $this->assertEquals($account->id(), $this->loggedInUser->id(), 'Ensure that the user was not changed.');
 
     $this->drupalGet('router_test/test13/' . $second_account->id());
     $this->assertText($account->getUsername() . ':' . $second_account->getUsername());
-    $this->assertEqual($account->id(), $this->loggedInUser->id(), 'Ensure that the user was not changed.');
+    $this->assertEquals($account->id(), $this->loggedInUser->id(), 'Ensure that the user was not changed.');
   }
 
   /**
@@ -279,7 +279,7 @@ public function testControllerResolutionAjax() {
     // The correct controller.
     $this->drupalGetAjax('/router_test/test10');
 
-    $this->assertEqual($this->drupalGetHeader('Content-Type'), 'application/json', 'Correct mime content type was returned');
+    $this->assertEquals($this->drupalGetHeader('Content-Type'), 'application/json', 'Correct mime content type was returned');
 
     $this->assertRaw('abcde', 'Correct body was found.');
   }
@@ -311,14 +311,14 @@ public function testLeadingSlashes() {
     $request = $this->container->get('request_stack')->getCurrentRequest();
     $url = $request->getUriForPath('//router_test/test1');
     $this->drupalGet($url);
-    $this->assertEqual(1, $this->redirectCount, $url . " redirected to " . $this->url);
+    $this->assertEquals(1, $this->redirectCount, $url . " redirected to " . $this->url);
     $this->assertUrl($request->getUriForPath('/router_test/test1'));
 
     // It should not matter how many leading slashes are used and query strings
     // should be preserved.
     $url = $request->getUriForPath('/////////////////////////////////////////////////router_test/test1') . '?qs=test';
     $this->drupalGet($url);
-    $this->assertEqual(1, $this->redirectCount, $url . " redirected to " . $this->url);
+    $this->assertEquals(1, $this->redirectCount, $url . " redirected to " . $this->url);
     $this->assertUrl($request->getUriForPath('/router_test/test1') . '?qs=test');
   }
 
diff --git a/core/modules/system/src/Tests/Session/SessionAuthenticationTest.php b/core/modules/system/src/Tests/Session/SessionAuthenticationTest.php
index ffdc08d192..958735477a 100644
--- a/core/modules/system/src/Tests/Session/SessionAuthenticationTest.php
+++ b/core/modules/system/src/Tests/Session/SessionAuthenticationTest.php
@@ -59,7 +59,7 @@ public function testSessionFromBasicAuthenticationDoesNotLeak() {
     $this->assertResponse(200, 'A route protected with basic authentication can be accessed by an authenticated user.');
 
     // Check that the correct user is logged in.
-    $this->assertEqual($this->user->id(), json_decode($this->getRawContent())->user, 'The correct user is authenticated on a route with basic authentication.');
+    $this->assertEquals($this->user->id(), json_decode($this->getRawContent())->user, 'The correct user is authenticated on a route with basic authentication.');
 
     // If we now try to access a page without basic authentication then we
     // should no longer be logged in.
@@ -99,10 +99,10 @@ public function testBasicAuthSession() {
    */
   protected function assertSessionData($response, $expected) {
     $response = json_decode($response, TRUE);
-    $this->assertEqual(['test_value' => $expected], $response['session'], 'The session data matches the expected value.');
+    $this->assertEquals(['test_value' => $expected], $response['session'], 'The session data matches the expected value.');
 
     // Check that we are logged in as the correct user.
-    $this->assertEqual($this->user->id(), $response['user'], 'The correct user is logged in.');
+    $this->assertEquals($this->user->id(), $response['user'], 'The correct user is logged in.');
   }
 
   /**
diff --git a/core/modules/system/src/Tests/Session/SessionTest.php b/core/modules/system/src/Tests/Session/SessionTest.php
index 1be9561b36..515baebdca 100644
--- a/core/modules/system/src/Tests/Session/SessionTest.php
+++ b/core/modules/system/src/Tests/Session/SessionTest.php
@@ -169,7 +169,7 @@ public function testEmptyAnonymousSession() {
     $this->assertSessionCookie(FALSE);
     // @todo Reinstate when REQUEST and RESPONSE events fire for cached pages.
     // $this->assertSessionEmpty(TRUE);
-    $this->assertEqual($this->drupalGetHeader('X-Drupal-Cache'), 'MISS', 'Page was not cached.');
+    $this->assertEquals($this->drupalGetHeader('X-Drupal-Cache'), 'MISS', 'Page was not cached.');
 
     // Start a new session by setting a message.
     $this->drupalGet('session-test/set-message');
@@ -191,7 +191,7 @@ public function testEmptyAnonymousSession() {
     // @todo Reinstate when REQUEST and RESPONSE events fire for cached pages.
     // $this->assertSessionEmpty(TRUE);
     $this->assertNoText(t('This is a dummy message.'), 'Message was not cached.');
-    $this->assertEqual($this->drupalGetHeader('X-Drupal-Cache'), 'HIT', 'Page was cached.');
+    $this->assertEquals($this->drupalGetHeader('X-Drupal-Cache'), 'HIT', 'Page was cached.');
     $this->assertFalse($this->drupalGetHeader('Set-Cookie'), 'New session was not started.');
 
     // Verify that no session is created if drupal_save_session(FALSE) is called.
@@ -224,22 +224,22 @@ public function testSessionWrite() {
     sleep(1);
     $this->drupalGet('session-test/set/foo');
     $times2 = db_query($sql, [':uid' => $user->id()])->fetchObject();
-    $this->assertEqual($times2->access, $times1->access, 'Users table was not updated.');
+    $this->assertEquals($times2->access, $times1->access, 'Users table was not updated.');
     $this->assertNotEqual($times2->timestamp, $times1->timestamp, 'Sessions table was updated.');
 
     // Write the same value again, i.e. do not modify the session.
     sleep(1);
     $this->drupalGet('session-test/set/foo');
     $times3 = db_query($sql, [':uid' => $user->id()])->fetchObject();
-    $this->assertEqual($times3->access, $times1->access, 'Users table was not updated.');
-    $this->assertEqual($times3->timestamp, $times2->timestamp, 'Sessions table was not updated.');
+    $this->assertEquals($times3->access, $times1->access, 'Users table was not updated.');
+    $this->assertEquals($times3->timestamp, $times2->timestamp, 'Sessions table was not updated.');
 
     // Do not change the session.
     sleep(1);
     $this->drupalGet('');
     $times4 = db_query($sql, [':uid' => $user->id()])->fetchObject();
-    $this->assertEqual($times4->access, $times3->access, 'Users table was not updated.');
-    $this->assertEqual($times4->timestamp, $times3->timestamp, 'Sessions table was not updated.');
+    $this->assertEquals($times4->access, $times3->access, 'Users table was not updated.');
+    $this->assertEquals($times4->timestamp, $times3->timestamp, 'Sessions table was not updated.');
 
     // Force updating of users and sessions table once per second.
     $this->settingsSet('session_write_interval', 0);
diff --git a/core/modules/system/src/Tests/Session/StackSessionHandlerIntegrationTest.php b/core/modules/system/src/Tests/Session/StackSessionHandlerIntegrationTest.php
index ac368685db..a609340819 100644
--- a/core/modules/system/src/Tests/Session/StackSessionHandlerIntegrationTest.php
+++ b/core/modules/system/src/Tests/Session/StackSessionHandlerIntegrationTest.php
@@ -41,7 +41,7 @@ public function testRequest() {
       ['END', NULL, 'close'],
       ['END', 'test_argument', 'close'],
     ];
-    $this->assertEqual($expect_trace, $actual_trace);
+    $this->assertEquals($expect_trace, $actual_trace);
   }
 
 }
diff --git a/core/modules/system/src/Tests/System/AccessDeniedTest.php b/core/modules/system/src/Tests/System/AccessDeniedTest.php
index ba1d599671..e1be8b8126 100644
--- a/core/modules/system/src/Tests/System/AccessDeniedTest.php
+++ b/core/modules/system/src/Tests/System/AccessDeniedTest.php
@@ -45,9 +45,9 @@ public function testAccessDenied() {
     // correct path information in drupalSettings.
     $this->drupalLogin($this->createUser([]));
     $this->drupalGet('admin', ['query' => ['foo' => 'bar']]);
-    $this->assertEqual($this->drupalSettings['path']['currentPath'], 'admin');
-    $this->assertEqual($this->drupalSettings['path']['currentPathIsAdmin'], TRUE);
-    $this->assertEqual($this->drupalSettings['path']['currentQuery'], ['foo' => 'bar']);
+    $this->assertEquals($this->drupalSettings['path']['currentPath'], 'admin');
+    $this->assertEquals($this->drupalSettings['path']['currentPathIsAdmin'], TRUE);
+    $this->assertEquals($this->drupalSettings['path']['currentQuery'], ['foo' => 'bar']);
 
     $this->drupalLogin($this->adminUser);
 
diff --git a/core/modules/system/src/Tests/System/AdminTest.php b/core/modules/system/src/Tests/System/AdminTest.php
index 7921e1c4cf..56c6b7e875 100644
--- a/core/modules/system/src/Tests/System/AdminTest.php
+++ b/core/modules/system/src/Tests/System/AdminTest.php
@@ -161,9 +161,9 @@ public function testCompactMode() {
     $this->drupalGet('admin/compact/off');
     $this->assertResponse(200, 'A valid page is returned after turning off compact mode.');
     $this->assertUrl($frontpage_url, [], 'The user is redirected to the front page after turning off compact mode.');
-    $this->assertEqual($this->cookies['Drupal.visitor.admin_compact_mode']['value'], 'deleted', 'Compact mode turns off.');
+    $this->assertEquals($this->cookies['Drupal.visitor.admin_compact_mode']['value'], 'deleted', 'Compact mode turns off.');
     $this->drupalGet('admin/compact/off');
-    $this->assertEqual($this->cookies['Drupal.visitor.admin_compact_mode']['value'], 'deleted', 'Compact mode remains off after a repeat call.');
+    $this->assertEquals($this->cookies['Drupal.visitor.admin_compact_mode']['value'], 'deleted', 'Compact mode remains off after a repeat call.');
     $this->drupalGet('');
     $this->assertTrue($this->cookies['Drupal.visitor.admin_compact_mode']['value'], 'Compact mode persists on new requests.');
   }
diff --git a/core/modules/system/src/Tests/System/CronRunTest.php b/core/modules/system/src/Tests/System/CronRunTest.php
index ec4e649bf7..747f73f24e 100644
--- a/core/modules/system/src/Tests/System/CronRunTest.php
+++ b/core/modules/system/src/Tests/System/CronRunTest.php
@@ -90,7 +90,7 @@ public function testCronExceptions() {
     // The common_test_cron_helper module sets the 'common_test_cron' variable.
     $this->cronRun();
     $result = \Drupal::state()->get('common_test.cron');
-    $this->assertEqual($result, 'success', 'Cron correctly handles exceptions thrown during hook_cron() invocations.');
+    $this->assertEquals($result, 'success', 'Cron correctly handles exceptions thrown during hook_cron() invocations.');
   }
 
   /**
@@ -113,7 +113,7 @@ public function testCronUI() {
     $this->assertUrl('admin/config/system/cron');
 
     // Check that cron does not run when saving the configuration form.
-    $this->assertEqual($cron_last, \Drupal::state()->get('system.cron_last'), 'Cron does not run when saving the configuration form.');
+    $this->assertEquals($cron_last, \Drupal::state()->get('system.cron_last'), 'Cron does not run when saving the configuration form.');
 
     // Check that cron runs when triggered manually.
     $this->drupalPostForm(NULL, [], 'Run cron');
diff --git a/core/modules/system/src/Tests/System/HtaccessTest.php b/core/modules/system/src/Tests/System/HtaccessTest.php
index fab7a37a34..37505c879c 100644
--- a/core/modules/system/src/Tests/System/HtaccessTest.php
+++ b/core/modules/system/src/Tests/System/HtaccessTest.php
@@ -148,7 +148,7 @@ public function testSvgzContentEncoding() {
     $this->drupalGet('core/modules/system/tests/logo.svgz');
     $this->assertResponse(200);
     $header = $this->drupalGetHeader('Content-Encoding');
-    $this->assertEqual($header, 'gzip');
+    $this->assertEquals($header, 'gzip');
   }
 
 }
diff --git a/core/modules/system/src/Tests/System/PageTitleTest.php b/core/modules/system/src/Tests/System/PageTitleTest.php
index 44e33cb6e4..918090f301 100644
--- a/core/modules/system/src/Tests/System/PageTitleTest.php
+++ b/core/modules/system/src/Tests/System/PageTitleTest.php
@@ -103,14 +103,14 @@ public function testRoutingTitle() {
 
     $this->assertTitle('Foo | Drupal');
     $result = $this->xpath('//h1[@class="page-title"]');
-    $this->assertEqual('Foo', (string) $result[0]);
+    $this->assertEquals('Foo', (string) $result[0]);
 
     // Test forms
     $this->drupalGet('form-test/object-builder');
 
     $this->assertTitle('Test dynamic title | Drupal');
     $result = $this->xpath('//h1[@class="page-title"]');
-    $this->assertEqual('Test dynamic title', (string) $result[0]);
+    $this->assertEquals('Test dynamic title', (string) $result[0]);
 
     // Set some custom translated strings.
     $this->addCustomTranslations('en', [
@@ -123,14 +123,14 @@ public function testRoutingTitle() {
 
     $this->assertTitle('Static title translated | Drupal');
     $result = $this->xpath('//h1[@class="page-title"]');
-    $this->assertEqual('Static title translated', (string) $result[0]);
+    $this->assertEquals('Static title translated', (string) $result[0]);
 
     // Test the dynamic '_title_callback' route option.
     $this->drupalGet('test-page-dynamic-title');
 
     $this->assertTitle('Dynamic title | Drupal');
     $result = $this->xpath('//h1[@class="page-title"]');
-    $this->assertEqual('Dynamic title', (string) $result[0]);
+    $this->assertEquals('Dynamic title', (string) $result[0]);
 
     // Ensure that titles are cacheable and are escaped normally if the
     // controller does not escape them.
diff --git a/core/modules/system/src/Tests/System/ShutdownFunctionsTest.php b/core/modules/system/src/Tests/System/ShutdownFunctionsTest.php
index 50fae0362f..537cc3e0b3 100644
--- a/core/modules/system/src/Tests/System/ShutdownFunctionsTest.php
+++ b/core/modules/system/src/Tests/System/ShutdownFunctionsTest.php
@@ -42,8 +42,8 @@ public function testShutdownFunctions() {
       // We need to wait to ensure that the shutdown functions have fired.
       sleep(1);
     }
-    $this->assertEqual(\Drupal::state()->get('_system_test_first_shutdown_function'), [$arg1, $arg2]);
-    $this->assertEqual(\Drupal::state()->get('_system_test_second_shutdown_function'), [$arg1, $arg2]);
+    $this->assertEquals(\Drupal::state()->get('_system_test_first_shutdown_function'), [$arg1, $arg2]);
+    $this->assertEquals(\Drupal::state()->get('_system_test_second_shutdown_function'), [$arg1, $arg2]);
 
     if (!$server_using_fastcgi) {
       // Make sure exceptions displayed through
diff --git a/core/modules/system/src/Tests/System/SiteMaintenanceTest.php b/core/modules/system/src/Tests/System/SiteMaintenanceTest.php
index e269a6c73e..c539b0ec02 100644
--- a/core/modules/system/src/Tests/System/SiteMaintenanceTest.php
+++ b/core/modules/system/src/Tests/System/SiteMaintenanceTest.php
@@ -71,13 +71,13 @@ public function testSiteMaintenance() {
     // Logout and verify that offline message is displayed.
     $this->drupalLogout();
     $this->drupalGet('');
-    $this->assertEqual('Site under maintenance', $this->cssSelect('main h1')[0]);
+    $this->assertEquals('Site under maintenance', $this->cssSelect('main h1')[0]);
     $this->assertText($offline_message);
     $this->drupalGet('node');
-    $this->assertEqual('Site under maintenance', $this->cssSelect('main h1')[0]);
+    $this->assertEquals('Site under maintenance', $this->cssSelect('main h1')[0]);
     $this->assertText($offline_message);
     $this->drupalGet('user/register');
-    $this->assertEqual('Site under maintenance', $this->cssSelect('main h1')[0]);
+    $this->assertEquals('Site under maintenance', $this->cssSelect('main h1')[0]);
     $this->assertText($offline_message);
 
     // Verify that user is able to log in.
@@ -110,7 +110,7 @@ public function testSiteMaintenance() {
     // Logout and verify that custom site offline message is displayed.
     $this->drupalLogout();
     $this->drupalGet('');
-    $this->assertEqual('Site under maintenance', $this->cssSelect('main h1')[0]);
+    $this->assertEquals('Site under maintenance', $this->cssSelect('main h1')[0]);
     $this->assertRaw($offline_message, 'Found the site offline message.');
 
     // Verify that custom site offline message is not displayed on user/password.
@@ -137,7 +137,7 @@ public function testSiteMaintenance() {
     // Logout and verify that offline message is displayed in Bartik.
     $this->drupalLogout();
     $this->drupalGet('');
-    $this->assertEqual('Site under maintenance', $this->cssSelect('main h1')[0]);
+    $this->assertEquals('Site under maintenance', $this->cssSelect('main h1')[0]);
   }
 
   /**
diff --git a/core/modules/system/src/Tests/System/SystemConfigFormTestBase.php b/core/modules/system/src/Tests/System/SystemConfigFormTestBase.php
index a14fd3107e..39e4f65d9b 100644
--- a/core/modules/system/src/Tests/System/SystemConfigFormTestBase.php
+++ b/core/modules/system/src/Tests/System/SystemConfigFormTestBase.php
@@ -60,7 +60,7 @@ public function testConfigForm() {
     $this->assertTrue($valid_form, format_string('Input values: %values<br/>Validation handler errors: %errors', $args));
 
     foreach ($this->values as $data) {
-      $this->assertEqual($data['#value'], $this->config($data['#config_name'])->get($data['#config_key']));
+      $this->assertEquals($data['#value'], $this->config($data['#config_name'])->get($data['#config_key']));
     }
   }
 
diff --git a/core/modules/system/src/Tests/System/ThemeTest.php b/core/modules/system/src/Tests/System/ThemeTest.php
index a02680e8f7..36299a3cf1 100644
--- a/core/modules/system/src/Tests/System/ThemeTest.php
+++ b/core/modules/system/src/Tests/System/ThemeTest.php
@@ -117,9 +117,9 @@ public function testThemeSettings() {
         $explicit_file = 'public://' . $input;
         $local_file = PublicStream::basePath() . '/' . $input;
       }
-      $this->assertEqual((string) $elements[0], $implicit_public_file);
-      $this->assertEqual((string) $elements[1], $explicit_file);
-      $this->assertEqual((string) $elements[2], $local_file);
+      $this->assertEquals((string) $elements[0], $implicit_public_file);
+      $this->assertEquals((string) $elements[1], $explicit_file);
+      $this->assertEquals((string) $elements[2], $local_file);
 
       // Verify the actual 'src' attribute of the logo being output in a site
       // branding block.
@@ -129,7 +129,7 @@ public function testThemeSettings() {
           ':rel' => 'home',
         ]
       );
-      $this->assertEqual((string) $elements[0]['src'], $expected['src']);
+      $this->assertEquals((string) $elements[0]['src'], $expected['src']);
     }
     $unsupported_paths = [
       // Stream wrapper URI to non-existing file.
@@ -181,7 +181,7 @@ public function testThemeSettings() {
         ':rel' => 'home',
       ]
     );
-    $this->assertEqual($elements[0]['src'], file_url_transform_relative(file_create_url($uploaded_filename)));
+    $this->assertEquals($elements[0]['src'], file_url_transform_relative(file_create_url($uploaded_filename)));
 
     $this->container->get('theme_handler')->install(['bartik']);
 
@@ -311,7 +311,7 @@ public function testSwitchDefaultTheme() {
     $theme_handler->install(['bartik']);
     $this->drupalGet('admin/appearance');
     $this->clickLink(t('Set as default'));
-    $this->assertEqual($this->config('system.theme')->get('default'), 'bartik');
+    $this->assertEquals($this->config('system.theme')->get('default'), 'bartik');
 
     // Test the default theme on the secondary links (blocks admin page).
     $this->drupalGet('admin/structure/block');
@@ -416,7 +416,7 @@ public function testInstallAndSetAsDefault() {
     // Test the confirmation message.
     $this->assertText('Bartik is now the default theme.');
     // Make sure Bartik is now set as the default theme in config.
-    $this->assertEqual($this->config('system.theme')->get('default'), 'bartik');
+    $this->assertEquals($this->config('system.theme')->get('default'), 'bartik');
 
     // This checks for a regression. See https://www.drupal.org/node/2498691.
     $this->assertNoText('The bartik theme was not found.');
diff --git a/core/modules/system/src/Tests/Theme/FunctionsTest.php b/core/modules/system/src/Tests/Theme/FunctionsTest.php
index 825834859a..1942e672e1 100644
--- a/core/modules/system/src/Tests/Theme/FunctionsTest.php
+++ b/core/modules/system/src/Tests/Theme/FunctionsTest.php
@@ -468,12 +468,12 @@ public function testDrupalPreRenderLinks() {
     $html = \Drupal::service('renderer')->renderRoot($render_array);
     $dom = new \DOMDocument();
     $dom->loadHTML($html);
-    $this->assertEqual($dom->getElementsByTagName('ul')->length, 1, 'One "ul" tag found in the rendered HTML.');
+    $this->assertEquals($dom->getElementsByTagName('ul')->length, 1, 'One "ul" tag found in the rendered HTML.');
     $list_elements = $dom->getElementsByTagName('li');
-    $this->assertEqual($list_elements->length, 3, 'Three "li" tags found in the rendered HTML.');
-    $this->assertEqual($list_elements->item(0)->nodeValue, 'Parent link original', 'First expected link found.');
-    $this->assertEqual($list_elements->item(1)->nodeValue, 'First child link', 'Second expected link found.');
-    $this->assertEqual($list_elements->item(2)->nodeValue, 'Second child link', 'Third expected link found.');
+    $this->assertEquals($list_elements->length, 3, 'Three "li" tags found in the rendered HTML.');
+    $this->assertEquals($list_elements->item(0)->nodeValue, 'Parent link original', 'First expected link found.');
+    $this->assertEquals($list_elements->item(1)->nodeValue, 'First child link', 'Second expected link found.');
+    $this->assertEquals($list_elements->item(2)->nodeValue, 'Second child link', 'Third expected link found.');
     $this->assertIdentical(strpos($html, 'Parent link copy'), FALSE, '"Parent link copy" link not found.');
     $this->assertIdentical(strpos($html, 'Third child link'), FALSE, '"Third child link" link not found.');
 
@@ -486,19 +486,19 @@ public function testDrupalPreRenderLinks() {
     // First check the child HTML.
     $dom = new \DOMDocument();
     $dom->loadHTML($child_html);
-    $this->assertEqual($dom->getElementsByTagName('ul')->length, 1, 'One "ul" tag found in the rendered child HTML.');
+    $this->assertEquals($dom->getElementsByTagName('ul')->length, 1, 'One "ul" tag found in the rendered child HTML.');
     $list_elements = $dom->getElementsByTagName('li');
-    $this->assertEqual($list_elements->length, 2, 'Two "li" tags found in the rendered child HTML.');
-    $this->assertEqual($list_elements->item(0)->nodeValue, 'Parent link copy', 'First expected link found.');
-    $this->assertEqual($list_elements->item(1)->nodeValue, 'First child link', 'Second expected link found.');
+    $this->assertEquals($list_elements->length, 2, 'Two "li" tags found in the rendered child HTML.');
+    $this->assertEquals($list_elements->item(0)->nodeValue, 'Parent link copy', 'First expected link found.');
+    $this->assertEquals($list_elements->item(1)->nodeValue, 'First child link', 'Second expected link found.');
     // Then check the parent HTML.
     $dom = new \DOMDocument();
     $dom->loadHTML($parent_html);
-    $this->assertEqual($dom->getElementsByTagName('ul')->length, 1, 'One "ul" tag found in the rendered parent HTML.');
+    $this->assertEquals($dom->getElementsByTagName('ul')->length, 1, 'One "ul" tag found in the rendered parent HTML.');
     $list_elements = $dom->getElementsByTagName('li');
-    $this->assertEqual($list_elements->length, 2, 'Two "li" tags found in the rendered parent HTML.');
-    $this->assertEqual($list_elements->item(0)->nodeValue, 'Parent link original', 'First expected link found.');
-    $this->assertEqual($list_elements->item(1)->nodeValue, 'Second child link', 'Second expected link found.');
+    $this->assertEquals($list_elements->length, 2, 'Two "li" tags found in the rendered parent HTML.');
+    $this->assertEquals($list_elements->item(0)->nodeValue, 'Parent link original', 'First expected link found.');
+    $this->assertEquals($list_elements->item(1)->nodeValue, 'Second child link', 'Second expected link found.');
     $this->assertIdentical(strpos($parent_html, 'First child link'), FALSE, '"First child link" link not found.');
     $this->assertIdentical(strpos($parent_html, 'Third child link'), FALSE, '"Third child link" link not found.');
   }
diff --git a/core/modules/system/src/Tests/Theme/ThemeTest.php b/core/modules/system/src/Tests/Theme/ThemeTest.php
index 64f330e942..f15f370de3 100644
--- a/core/modules/system/src/Tests/Theme/ThemeTest.php
+++ b/core/modules/system/src/Tests/Theme/ThemeTest.php
@@ -85,22 +85,22 @@ public function testThemeSuggestions() {
     $this->config('system.site')->set('page.front', '/nobody-home')->save();
     $args = ['node', '1', 'edit'];
     $suggestions = theme_get_suggestions($args, 'page');
-    $this->assertEqual($suggestions, ['page__node', 'page__node__%', 'page__node__1', 'page__node__edit'], 'Found expected node edit page suggestions');
+    $this->assertEquals($suggestions, ['page__node', 'page__node__%', 'page__node__1', 'page__node__edit'], 'Found expected node edit page suggestions');
     // Check attack vectors.
     $args = ['node', '\\1'];
     $suggestions = theme_get_suggestions($args, 'page');
-    $this->assertEqual($suggestions, ['page__node', 'page__node__%', 'page__node__1'], 'Removed invalid \\ from suggestions');
+    $this->assertEquals($suggestions, ['page__node', 'page__node__%', 'page__node__1'], 'Removed invalid \\ from suggestions');
     $args = ['node', '1/'];
     $suggestions = theme_get_suggestions($args, 'page');
-    $this->assertEqual($suggestions, ['page__node', 'page__node__%', 'page__node__1'], 'Removed invalid / from suggestions');
+    $this->assertEquals($suggestions, ['page__node', 'page__node__%', 'page__node__1'], 'Removed invalid / from suggestions');
     $args = ['node', "1\0"];
     $suggestions = theme_get_suggestions($args, 'page');
-    $this->assertEqual($suggestions, ['page__node', 'page__node__%', 'page__node__1'], 'Removed invalid \\0 from suggestions');
+    $this->assertEquals($suggestions, ['page__node', 'page__node__%', 'page__node__1'], 'Removed invalid \\0 from suggestions');
     // Define path with hyphens to be used to generate suggestions.
     $args = ['node', '1', 'hyphen-path'];
     $result = ['page__node', 'page__node__%', 'page__node__1', 'page__node__hyphen_path'];
     $suggestions = theme_get_suggestions($args, 'page');
-    $this->assertEqual($suggestions, $result, 'Found expected page suggestions for paths containing hyphens.');
+    $this->assertEquals($suggestions, $result, 'Found expected page suggestions for paths containing hyphens.');
   }
 
   /**
@@ -261,7 +261,7 @@ public function testClassLoading() {
   public function testFindThemeTemplates() {
     $registry = $this->container->get('theme.registry')->get();
     $templates = drupal_find_theme_templates($registry, '.html.twig', drupal_get_path('theme', 'test_theme'));
-    $this->assertEqual($templates['node__1']['template'], 'node--1', 'Template node--1.tpl.twig was found in test_theme.');
+    $this->assertEquals($templates['node__1']['template'], 'node--1', 'Template node--1.tpl.twig was found in test_theme.');
   }
 
   /**
@@ -287,7 +287,7 @@ public function testRegionClass() {
     $this->drupalPlaceBlock('system_main_block');
     $this->drupalGet('');
     $elements = $this->cssSelect(".region-sidebar-first.new_class");
-    $this->assertEqual(count($elements), 1, 'New class found.');
+    $this->assertEquals(count($elements), 1, 'New class found.');
   }
 
   /**
@@ -312,7 +312,7 @@ public function testSuggestionPreprocessForDefaults() {
         'Flamingo',
       ];
       foreach ($expected_values as $key => $value) {
-        $this->assertEqual((string) $value, $items[$key]);
+        $this->assertEquals((string) $value, $items[$key]);
       }
     }
   }
diff --git a/core/modules/system/src/Tests/Theme/TwigTransTest.php b/core/modules/system/src/Tests/Theme/TwigTransTest.php
index b73cdaf0c2..130ff249d8 100644
--- a/core/modules/system/src/Tests/Theme/TwigTransTest.php
+++ b/core/modules/system/src/Tests/Theme/TwigTransTest.php
@@ -68,7 +68,7 @@ protected function setUp() {
     $this->rebuildContainer();
 
     // Check that lolspeak is the default language for the site.
-    $this->assertEqual(\Drupal::languageManager()->getDefaultLanguage()->getId(), 'xx', 'Lolspeak is the default language');
+    $this->assertEquals(\Drupal::languageManager()->getDefaultLanguage()->getId(), 'xx', 'Lolspeak is the default language');
   }
 
   /**
diff --git a/core/modules/system/tests/src/Functional/Ajax/OffCanvasDialogTest.php b/core/modules/system/tests/src/Functional/Ajax/OffCanvasDialogTest.php
index 222ebc45d7..438ddd0aa0 100644
--- a/core/modules/system/tests/src/Functional/Ajax/OffCanvasDialogTest.php
+++ b/core/modules/system/tests/src/Functional/Ajax/OffCanvasDialogTest.php
@@ -56,7 +56,7 @@ public function testDialog() {
     // Emulate going to the JS version of the page and check the JSON response.
     $ajax_result = $this->drupalGet('ajax-test/dialog-contents', ['query' => [MainContentViewSubscriber::WRAPPER_FORMAT => 'drupal_dialog.off_canvas']]);
     $ajax_result = Json::decode($ajax_result);
-    $this->assertEqual($off_canvas_expected_response, $ajax_result[3], 'off-canvas dialog JSON response matches.');
+    $this->assertEquals($off_canvas_expected_response, $ajax_result[3], 'off-canvas dialog JSON response matches.');
   }
 
 }
diff --git a/core/modules/system/tests/src/Functional/Batch/PageTest.php b/core/modules/system/tests/src/Functional/Batch/PageTest.php
index b1e46a2ea5..32b811179f 100644
--- a/core/modules/system/tests/src/Functional/Batch/PageTest.php
+++ b/core/modules/system/tests/src/Functional/Batch/PageTest.php
@@ -40,7 +40,7 @@ public function testBatchProgressPageTheme() {
     $this->drupalGet('admin/batch-test/test-theme');
     // The stack should contain the name of the theme used on the progress
     // page.
-    $this->assertEqual(batch_test_stack(), ['seven'], 'A progressive batch correctly uses the theme of the page that started the batch.');
+    $this->assertEquals(batch_test_stack(), ['seven'], 'A progressive batch correctly uses the theme of the page that started the batch.');
   }
 
   /**
@@ -60,7 +60,7 @@ public function testBatchProgressPageTitle() {
     $this->drupalGet('batch-test/test-title');
 
     // The stack should contain the title shown on the progress page.
-    $this->assertEqual(batch_test_stack(), ['Batch Test'], 'The batch title is shown on the batch page.');
+    $this->assertEquals(batch_test_stack(), ['Batch Test'], 'The batch title is shown on the batch page.');
     $this->assertText('Redirection successful.', 'Redirection after batch execution is correct.');
   }
 
diff --git a/core/modules/system/tests/src/Functional/Batch/ProcessingTest.php b/core/modules/system/tests/src/Functional/Batch/ProcessingTest.php
index 2d7c7ae01c..18c12ed1ca 100644
--- a/core/modules/system/tests/src/Functional/Batch/ProcessingTest.php
+++ b/core/modules/system/tests/src/Functional/Batch/ProcessingTest.php
@@ -26,7 +26,7 @@ public function testBatchNoForm() {
     // Displaying the page triggers batch 1.
     $this->drupalGet('batch-test/no-form');
     $this->assertBatchMessages($this->_resultMessages('batch_1'), 'Batch for step 2 performed successfully.');
-    $this->assertEqual(batch_test_stack(), $this->_resultStack('batch_1'), 'Execution order was correct.');
+    $this->assertEquals(batch_test_stack(), $this->_resultStack('batch_1'), 'Execution order was correct.');
     $this->assertText('Redirection successful.', 'Redirection after batch execution is correct.');
   }
 
@@ -37,7 +37,7 @@ public function testBatchRedirectFinishedCallback() {
     // Displaying the page triggers batch 1.
     $this->drupalGet('batch-test/finish-redirect');
     $this->assertBatchMessages($this->_resultMessages('batch_1'), 'Batch for step 2 performed successfully.');
-    $this->assertEqual(batch_test_stack(), $this->_resultStack('batch_1'), 'Execution order was correct.');
+    $this->assertEquals(batch_test_stack(), $this->_resultStack('batch_1'), 'Execution order was correct.');
     $this->assertText('Test page text.', 'Custom redirection after batch execution displays the correct page.');
     $this->assertUrl(Url::fromRoute('test_page_test.test_page'));
   }
@@ -58,7 +58,7 @@ public function testBatchForm() {
     $this->drupalPostForm('batch-test', $edit, 'Submit');
     $this->assertNoEscaped('<', 'No escaped markup is present.');
     $this->assertBatchMessages($this->_resultMessages('batch_1'), 'Batch with simple operations performed successfully.');
-    $this->assertEqual(batch_test_stack(), $this->_resultStack('batch_1'), 'Execution order was correct.');
+    $this->assertEquals(batch_test_stack(), $this->_resultStack('batch_1'), 'Execution order was correct.');
     $this->assertText('Redirection successful.', 'Redirection after batch execution is correct.');
 
     // Batch 2: one multistep operation.
@@ -66,7 +66,7 @@ public function testBatchForm() {
     $this->drupalPostForm('batch-test', $edit, 'Submit');
     $this->assertNoEscaped('<', 'No escaped markup is present.');
     $this->assertBatchMessages($this->_resultMessages('batch_2'), 'Batch with multistep operation performed successfully.');
-    $this->assertEqual(batch_test_stack(), $this->_resultStack('batch_2'), 'Execution order was correct.');
+    $this->assertEquals(batch_test_stack(), $this->_resultStack('batch_2'), 'Execution order was correct.');
     $this->assertText('Redirection successful.', 'Redirection after batch execution is correct.');
 
     // Batch 3: simple + multistep combined.
@@ -74,7 +74,7 @@ public function testBatchForm() {
     $this->drupalPostForm('batch-test', $edit, 'Submit');
     $this->assertNoEscaped('<', 'No escaped markup is present.');
     $this->assertBatchMessages($this->_resultMessages('batch_3'), 'Batch with simple and multistep operations performed successfully.');
-    $this->assertEqual(batch_test_stack(), $this->_resultStack('batch_3'), 'Execution order was correct.');
+    $this->assertEquals(batch_test_stack(), $this->_resultStack('batch_3'), 'Execution order was correct.');
     $this->assertText('Redirection successful.', 'Redirection after batch execution is correct.');
 
     // Batch 4: nested batch.
@@ -82,7 +82,7 @@ public function testBatchForm() {
     $this->drupalPostForm('batch-test', $edit, 'Submit');
     $this->assertNoEscaped('<', 'No escaped markup is present.');
     $this->assertBatchMessages($this->_resultMessages('batch_4'), 'Nested batch performed successfully.');
-    $this->assertEqual(batch_test_stack(), $this->_resultStack('batch_4'), 'Execution order was correct.');
+    $this->assertEquals(batch_test_stack(), $this->_resultStack('batch_4'), 'Execution order was correct.');
     $this->assertText('Redirection successful.', 'Redirection after batch execution is correct.');
   }
 
@@ -97,14 +97,14 @@ public function testBatchFormMultistep() {
     // First step triggers batch 1.
     $this->drupalPostForm(NULL, [], 'Submit');
     $this->assertBatchMessages($this->_resultMessages('batch_1'), 'Batch for step 1 performed successfully.');
-    $this->assertEqual(batch_test_stack(), $this->_resultStack('batch_1'), 'Execution order was correct.');
+    $this->assertEquals(batch_test_stack(), $this->_resultStack('batch_1'), 'Execution order was correct.');
     $this->assertText('step 2', 'Form is displayed in step 2.');
     $this->assertNoEscaped('<', 'No escaped markup is present.');
 
     // Second step triggers batch 2.
     $this->drupalPostForm(NULL, [], 'Submit');
     $this->assertBatchMessages($this->_resultMessages('batch_2'), 'Batch for step 2 performed successfully.');
-    $this->assertEqual(batch_test_stack(), $this->_resultStack('batch_2'), 'Execution order was correct.');
+    $this->assertEquals(batch_test_stack(), $this->_resultStack('batch_2'), 'Execution order was correct.');
     $this->assertText('Redirection successful.', 'Redirection after batch execution is correct.');
     $this->assertNoEscaped('<', 'No escaped markup is present.');
 
@@ -129,7 +129,7 @@ public function testBatchFormMultipleBatches() {
     $this->assertBatchMessages($this->_resultMessages('chained'), 'Batches defined in separate submit handlers performed successfully.');
     // The stack contains execution order of batch callbacks and submit
     // handlers and logging of corresponding $form_state->getValues().
-    $this->assertEqual(batch_test_stack(), $this->_resultStack('chained', $value), 'Execution order was correct, and $form_state is correctly persisted.');
+    $this->assertEquals(batch_test_stack(), $this->_resultStack('chained', $value), 'Execution order was correct, and $form_state is correctly persisted.');
     $this->assertText('Redirection successful.', 'Redirection after batch execution is correct.');
   }
 
@@ -147,7 +147,7 @@ public function testBatchFormProgrammatic() {
     $this->assertBatchMessages($this->_resultMessages('chained'), 'Batches defined in separate submit handlers performed successfully.');
     // The stack contains execution order of batch callbacks and submit
     // handlers and logging of corresponding $form_state->getValues().
-    $this->assertEqual(batch_test_stack(), $this->_resultStack('chained', $value), 'Execution order was correct, and $form_state is correctly persisted.');
+    $this->assertEquals(batch_test_stack(), $this->_resultStack('chained', $value), 'Execution order was correct, and $form_state is correctly persisted.');
     $this->assertText('Got out of a programmatic batched form.', 'Page execution continues normally.');
   }
 
@@ -159,7 +159,7 @@ public function testDrupalFormSubmitInBatch() {
     // form.
     $value = rand(0, 255);
     $this->drupalGet('batch-test/nested-programmatic/' . $value);
-    $this->assertEqual(batch_test_stack(), ['mock form submitted with value = ' . $value], '\Drupal::formBuilder()->submitForm() ran successfully within a batch operation.');
+    $this->assertEquals(batch_test_stack(), ['mock form submitted with value = ' . $value], '\Drupal::formBuilder()->submitForm() ran successfully within a batch operation.');
   }
 
   /**
@@ -171,7 +171,7 @@ public function testBatchLargePercentage() {
     // Displaying the page triggers batch 5.
     $this->drupalGet('batch-test/large-percentage');
     $this->assertBatchMessages($this->_resultMessages('batch_5'), 'Batch for step 2 performed successfully.');
-    $this->assertEqual(batch_test_stack(), $this->_resultStack('batch_5'), 'Execution order was correct.');
+    $this->assertEquals(batch_test_stack(), $this->_resultStack('batch_5'), 'Execution order was correct.');
     $this->assertText('Redirection successful.', 'Redirection after batch execution is correct.');
   }
 
diff --git a/core/modules/system/tests/src/Functional/Cache/AssertPageCacheContextsAndTagsTrait.php b/core/modules/system/tests/src/Functional/Cache/AssertPageCacheContextsAndTagsTrait.php
index e0450d1660..cab1681f9c 100644
--- a/core/modules/system/tests/src/Functional/Cache/AssertPageCacheContextsAndTagsTrait.php
+++ b/core/modules/system/tests/src/Functional/Cache/AssertPageCacheContextsAndTagsTrait.php
@@ -79,7 +79,7 @@ protected function assertPageCacheContextsAndTags(Url $url, array $expected_cont
 
     // Assert cache miss + expected cache contexts + tags.
     $this->drupalGet($absolute_url);
-    $this->assertEqual($this->drupalGetHeader('X-Drupal-Cache'), 'MISS');
+    $this->assertEquals($this->drupalGetHeader('X-Drupal-Cache'), 'MISS');
     $this->assertCacheTags($expected_tags);
     $this->assertCacheContexts($expected_contexts);
 
@@ -93,7 +93,7 @@ protected function assertPageCacheContextsAndTags(Url $url, array $expected_cont
     $cid = implode(':', $cid_parts);
     $cache_entry = \Drupal::cache('page')->get($cid);
     sort($cache_entry->tags);
-    $this->assertEqual($cache_entry->tags, $expected_tags);
+    $this->assertEquals($cache_entry->tags, $expected_tags);
     $this->debugCacheTags($cache_entry->tags, $expected_tags);
   }
 
diff --git a/core/modules/system/tests/src/Functional/Cache/PageCacheTagsTestBase.php b/core/modules/system/tests/src/Functional/Cache/PageCacheTagsTestBase.php
index 69afeb745d..655ebd3456 100644
--- a/core/modules/system/tests/src/Functional/Cache/PageCacheTagsTestBase.php
+++ b/core/modules/system/tests/src/Functional/Cache/PageCacheTagsTestBase.php
@@ -45,7 +45,7 @@ protected function setUp() {
   protected function verifyPageCache(Url $url, $hit_or_miss, $tags = FALSE) {
     $this->drupalGet($url);
     $message = SafeMarkup::format('Page cache @hit_or_miss for %path.', ['@hit_or_miss' => $hit_or_miss, '%path' => $url->toString()]);
-    $this->assertEqual($this->drupalGetHeader('X-Drupal-Cache'), $hit_or_miss, $message);
+    $this->assertEquals($this->drupalGetHeader('X-Drupal-Cache'), $hit_or_miss, $message);
 
     if ($hit_or_miss === 'HIT' && is_array($tags)) {
       $absolute_url = $url->setAbsolute()->toString();
diff --git a/core/modules/system/tests/src/Functional/Cache/SessionExistsCacheContextTest.php b/core/modules/system/tests/src/Functional/Cache/SessionExistsCacheContextTest.php
index 78fb983a61..5b876534a9 100644
--- a/core/modules/system/tests/src/Functional/Cache/SessionExistsCacheContextTest.php
+++ b/core/modules/system/tests/src/Functional/Cache/SessionExistsCacheContextTest.php
@@ -59,7 +59,7 @@ public function testCacheContext() {
    * Asserts whether a session cookie is present on the client or not.
    */
   public function assertSessionCookieOnClient($expected_present) {
-    $this->assertEqual($expected_present, (bool) $this->getSession()->getCookie($this->getSessionName()), 'Session cookie exists.');
+    $this->assertEquals($expected_present, (bool) $this->getSession()->getCookie($this->getSessionName()), 'Session cookie exists.');
   }
 
 }
diff --git a/core/modules/system/tests/src/Functional/Database/SelectPagerDefaultTest.php b/core/modules/system/tests/src/Functional/Database/SelectPagerDefaultTest.php
index 63e7e31637..1660ed299b 100644
--- a/core/modules/system/tests/src/Functional/Database/SelectPagerDefaultTest.php
+++ b/core/modules/system/tests/src/Functional/Database/SelectPagerDefaultTest.php
@@ -98,7 +98,7 @@ public function testInnerPagerQuery() {
     $ages = $outer_query
       ->execute()
       ->fetchCol();
-    $this->assertEqual($ages, [25, 26, 27, 28], 'Inner pager query returned the correct ages.');
+    $this->assertEquals($ages, [25, 26, 27, 28], 'Inner pager query returned the correct ages.');
   }
 
   /**
@@ -119,7 +119,7 @@ public function testHavingPagerQuery() {
     $ages = $query
       ->execute()
       ->fetchCol();
-    $this->assertEqual($ages, ['George', 'Ringo'], 'Pager query with having expression returned the correct ages.');
+    $this->assertEquals($ages, ['George', 'Ringo'], 'Pager query with having expression returned the correct ages.');
   }
 
   /**
@@ -141,7 +141,7 @@ public function testElementNumbers() {
       ->limit(1)
       ->execute()
       ->fetchField();
-    $this->assertEqual($name, 'Paul', 'Pager query #1 with a specified element ID returned the correct results.');
+    $this->assertEquals($name, 'Paul', 'Pager query #1 with a specified element ID returned the correct results.');
 
     // Setting an element smaller than the previous one
     // should not overwrite the pager $maxElement with a smaller value.
@@ -153,7 +153,7 @@ public function testElementNumbers() {
       ->limit(1)
       ->execute()
       ->fetchField();
-    $this->assertEqual($name, 'George', 'Pager query #2 with a specified element ID returned the correct results.');
+    $this->assertEquals($name, 'George', 'Pager query #2 with a specified element ID returned the correct results.');
 
     $name = db_select('test', 't')
       ->extend('Drupal\Core\Database\Query\PagerSelectExtender')
@@ -162,7 +162,7 @@ public function testElementNumbers() {
       ->limit(1)
       ->execute()
       ->fetchField();
-    $this->assertEqual($name, 'John', 'Pager query #3 with a generated element ID returned the correct results.');
+    $this->assertEquals($name, 'John', 'Pager query #3 with a generated element ID returned the correct results.');
 
   }
 
diff --git a/core/modules/system/tests/src/Functional/Database/SelectTableSortDefaultTest.php b/core/modules/system/tests/src/Functional/Database/SelectTableSortDefaultTest.php
index 2904d31fa6..80a05adaf9 100644
--- a/core/modules/system/tests/src/Functional/Database/SelectTableSortDefaultTest.php
+++ b/core/modules/system/tests/src/Functional/Database/SelectTableSortDefaultTest.php
@@ -32,8 +32,8 @@ public function testTableSortQuery() {
       $first = array_shift($data->tasks);
       $last = array_pop($data->tasks);
 
-      $this->assertEqual($first->task, $sort['first'], 'Items appear in the correct order.');
-      $this->assertEqual($last->task, $sort['last'], 'Items appear in the correct order.');
+      $this->assertEquals($first->task, $sort['first'], 'Items appear in the correct order.');
+      $this->assertEquals($last->task, $sort['last'], 'Items appear in the correct order.');
     }
   }
 
@@ -60,8 +60,8 @@ public function testTableSortQueryFirst() {
       $first = array_shift($data->tasks);
       $last = array_pop($data->tasks);
 
-      $this->assertEqual($first->task, $sort['first'], format_string('Items appear in the correct order sorting by @field @sort.', ['@field' => $sort['field'], '@sort' => $sort['sort']]));
-      $this->assertEqual($last->task, $sort['last'], format_string('Items appear in the correct order sorting by @field @sort.', ['@field' => $sort['field'], '@sort' => $sort['sort']]));
+      $this->assertEquals($first->task, $sort['first'], format_string('Items appear in the correct order sorting by @field @sort.', ['@field' => $sort['field'], '@sort' => $sort['sort']]));
+      $this->assertEquals($last->task, $sort['last'], format_string('Items appear in the correct order sorting by @field @sort.', ['@field' => $sort['field'], '@sort' => $sort['sort']]));
     }
   }
 
diff --git a/core/modules/system/tests/src/Functional/Database/TemporaryQueryTest.php b/core/modules/system/tests/src/Functional/Database/TemporaryQueryTest.php
index 5226585790..005cfc935d 100644
--- a/core/modules/system/tests/src/Functional/Database/TemporaryQueryTest.php
+++ b/core/modules/system/tests/src/Functional/Database/TemporaryQueryTest.php
@@ -28,7 +28,7 @@ public function testTemporaryQuery() {
     $this->drupalGet('database_test/db_query_temporary');
     $data = json_decode($this->getSession()->getPage()->getContent());
     if ($data) {
-      $this->assertEqual($this->countTableRows('test'), $data->row_count, 'The temporary table contains the correct amount of rows.');
+      $this->assertEquals($this->countTableRows('test'), $data->row_count, 'The temporary table contains the correct amount of rows.');
       $this->assertFalse(db_table_exists($data->table_name), 'The temporary table is, indeed, temporary.');
     }
     else {
@@ -39,8 +39,8 @@ public function testTemporaryQuery() {
     $table_name_test = db_query_temporary('SELECT name FROM {test}', []);
     $table_name_task = db_query_temporary('SELECT pid FROM {test_task}', []);
 
-    $this->assertEqual($this->countTableRows($table_name_test), $this->countTableRows('test'), 'A temporary table was created successfully in this request.');
-    $this->assertEqual($this->countTableRows($table_name_task), $this->countTableRows('test_task'), 'A second temporary table was created successfully in this request.');
+    $this->assertEquals($this->countTableRows($table_name_test), $this->countTableRows('test'), 'A temporary table was created successfully in this request.');
+    $this->assertEquals($this->countTableRows($table_name_task), $this->countTableRows('test_task'), 'A second temporary table was created successfully in this request.');
 
     // Check that leading whitespace and comments do not cause problems
     // in the modified query.
@@ -49,7 +49,7 @@ public function testTemporaryQuery() {
       SELECT name FROM {test}
     ";
     $table_name_test = db_query_temporary($sql, []);
-    $this->assertEqual($this->countTableRows($table_name_test), $this->countTableRows('test'), 'Leading white space and comments do not interfere with temporary table creation.');
+    $this->assertEquals($this->countTableRows($table_name_test), $this->countTableRows('test'), 'Leading white space and comments do not interfere with temporary table creation.');
   }
 
 }
diff --git a/core/modules/system/tests/src/Functional/Datetime/DrupalDateTimeTest.php b/core/modules/system/tests/src/Functional/Datetime/DrupalDateTimeTest.php
index d2114fdf8e..6a9acbf399 100644
--- a/core/modules/system/tests/src/Functional/Datetime/DrupalDateTimeTest.php
+++ b/core/modules/system/tests/src/Functional/Datetime/DrupalDateTimeTest.php
@@ -37,7 +37,7 @@ public function testSystemTimezone() {
     ];
     // Query the AJAX Timezone Callback with a long-format date.
     $response = $this->drupalGet('system/timezone/BST/3600/1', $options);
-    $this->assertEqual($response, '"Europe\/London"', 'Timezone AJAX callback successfully identifies and responds to a long-format date.');
+    $this->assertEquals($response, '"Europe\/London"', 'Timezone AJAX callback successfully identifies and responds to a long-format date.');
   }
 
   /**
@@ -106,14 +106,14 @@ public function testTimezoneFormat() {
     $date = DrupalDateTime::createFromTimestamp(87654321, 'UTC');
 
     // Verify that the date format method displays the default time zone.
-    $this->assertEqual($date->format('Y/m/d H:i:s e'), '1972/10/11 12:25:21 UTC', 'Date has default UTC time zone and correct date/time.');
+    $this->assertEquals($date->format('Y/m/d H:i:s e'), '1972/10/11 12:25:21 UTC', 'Date has default UTC time zone and correct date/time.');
 
     // Verify that the format method can override the time zone.
-    $this->assertEqual($date->format('Y/m/d H:i:s e', ['timezone' => 'America/New_York']), '1972/10/11 08:25:21 America/New_York', 'Date displayed overidden time zone and correct date/time');
+    $this->assertEquals($date->format('Y/m/d H:i:s e', ['timezone' => 'America/New_York']), '1972/10/11 08:25:21 America/New_York', 'Date displayed overidden time zone and correct date/time');
 
     // Verify that the date format method still displays the default time zone
     // for the date object.
-    $this->assertEqual($date->format('Y/m/d H:i:s e'), '1972/10/11 12:25:21 UTC', 'Date still has default UTC time zone and correct date/time');
+    $this->assertEquals($date->format('Y/m/d H:i:s e'), '1972/10/11 12:25:21 UTC', 'Date still has default UTC time zone and correct date/time');
   }
 
 }
diff --git a/core/modules/system/tests/src/Functional/Entity/EntityAddUITest.php b/core/modules/system/tests/src/Functional/Entity/EntityAddUITest.php
index a16614f146..47b6805e3e 100644
--- a/core/modules/system/tests/src/Functional/Entity/EntityAddUITest.php
+++ b/core/modules/system/tests/src/Functional/Entity/EntityAddUITest.php
@@ -72,7 +72,7 @@ public function testAddPageWithBundleEntities() {
 
     $this->drupalPostForm(NULL, ['name[0][value]' => 'test name'], t('Save'));
     $entity = EntityTestWithBundle::load(1);
-    $this->assertEqual('test name', $entity->label());
+    $this->assertEquals('test name', $entity->label());
 
     // Create a new user that only has bundle specific permissions.
     $user = $this->drupalCreateUser([
@@ -144,7 +144,7 @@ public function testAddPageWithoutBundleEntities() {
 
     $this->drupalPostForm(NULL, ['name[0][value]' => 'test name'], t('Save'));
     $entity = EntityTestMul::load(1);
-    $this->assertEqual('test name', $entity->label());
+    $this->assertEquals('test name', $entity->label());
   }
 
 }
diff --git a/core/modules/system/tests/src/Functional/Entity/EntityCacheTagsTestBase.php b/core/modules/system/tests/src/Functional/Entity/EntityCacheTagsTestBase.php
index aa9452a4ba..b529df3dec 100644
--- a/core/modules/system/tests/src/Functional/Entity/EntityCacheTagsTestBase.php
+++ b/core/modules/system/tests/src/Functional/Entity/EntityCacheTagsTestBase.php
@@ -428,7 +428,7 @@ public function testReferencedEntity() {
     $this->verifyPageCache($empty_entity_listing_url, 'HIT', $empty_entity_listing_cache_tags);
     // Verify the entity type's list cache contexts are present.
     $contexts_in_header = $this->drupalGetHeader('X-Drupal-Cache-Contexts');
-    $this->assertEqual(Cache::mergeContexts($page_cache_contexts, $this->getAdditionalCacheContextsForEntityListing()), empty($contexts_in_header) ? [] : explode(' ', $contexts_in_header));
+    $this->assertEquals(Cache::mergeContexts($page_cache_contexts, $this->getAdditionalCacheContextsForEntityListing()), empty($contexts_in_header) ? [] : explode(' ', $contexts_in_header));
 
     $this->pass("Test listing containing referenced entity.", 'Debug');
     // Prime the page cache for the listing containing the referenced entity.
@@ -437,7 +437,7 @@ public function testReferencedEntity() {
     $this->verifyPageCache($nonempty_entity_listing_url, 'HIT', $nonempty_entity_listing_cache_tags);
     // Verify the entity type's list cache contexts are present.
     $contexts_in_header = $this->drupalGetHeader('X-Drupal-Cache-Contexts');
-    $this->assertEqual(Cache::mergeContexts($page_cache_contexts, $this->getAdditionalCacheContextsForEntityListing()), empty($contexts_in_header) ? [] : explode(' ', $contexts_in_header));
+    $this->assertEquals(Cache::mergeContexts($page_cache_contexts, $this->getAdditionalCacheContextsForEntityListing()), empty($contexts_in_header) ? [] : explode(' ', $contexts_in_header));
 
     // Verify that after modifying the referenced entity, there is a cache miss
     // for every route except the one for the non-referencing entity.
diff --git a/core/modules/system/tests/src/Functional/Entity/EntityListBuilderTest.php b/core/modules/system/tests/src/Functional/Entity/EntityListBuilderTest.php
index 94225f4e97..8f4db36337 100644
--- a/core/modules/system/tests/src/Functional/Entity/EntityListBuilderTest.php
+++ b/core/modules/system/tests/src/Functional/Entity/EntityListBuilderTest.php
@@ -63,7 +63,7 @@ public function testCacheContexts() {
     $build = $list_builder->render();
     $this->container->get('renderer')->renderRoot($build);
 
-    $this->assertEqual(['entity_test_view_grants', 'languages:' . LanguageInterface::TYPE_INTERFACE, 'theme', 'url.query_args.pagers:0', 'user.permissions'], $build['#cache']['contexts']);
+    $this->assertEquals(['entity_test_view_grants', 'languages:' . LanguageInterface::TYPE_INTERFACE, 'theme', 'url.query_args.pagers:0', 'user.permissions'], $build['#cache']['contexts']);
   }
 
   /**
diff --git a/core/modules/system/tests/src/Functional/Entity/EntityReferenceSelection/EntityReferenceSelectionAccessTest.php b/core/modules/system/tests/src/Functional/Entity/EntityReferenceSelection/EntityReferenceSelectionAccessTest.php
index 3772f3a97b..ef25a5d4de 100644
--- a/core/modules/system/tests/src/Functional/Entity/EntityReferenceSelection/EntityReferenceSelectionAccessTest.php
+++ b/core/modules/system/tests/src/Functional/Entity/EntityReferenceSelection/EntityReferenceSelectionAccessTest.php
@@ -51,7 +51,7 @@ protected function assertReferenceable(array $selection_options, $tests, $handle
     foreach ($tests as $test) {
       foreach ($test['arguments'] as $arguments) {
         $result = call_user_func_array([$handler, 'getReferenceableEntities'], $arguments);
-        $this->assertEqual($result, $test['result'], format_string('Valid result set returned by @handler.', ['@handler' => $handler_name]));
+        $this->assertEquals($result, $test['result'], format_string('Valid result set returned by @handler.', ['@handler' => $handler_name]));
 
         $result = call_user_func_array([$handler, 'countReferenceableEntities'], $arguments);
         if (!empty($test['result'])) {
@@ -62,7 +62,7 @@ protected function assertReferenceable(array $selection_options, $tests, $handle
           $count = 0;
         }
 
-        $this->assertEqual($result, $count, format_string('Valid count returned by @handler.', ['@handler' => $handler_name]));
+        $this->assertEquals($result, $count, format_string('Valid count returned by @handler.', ['@handler' => $handler_name]));
       }
     }
   }
diff --git a/core/modules/system/tests/src/Functional/Entity/EntityRevisionsTest.php b/core/modules/system/tests/src/Functional/Entity/EntityRevisionsTest.php
index 8b544c4abd..933f8b16b8 100644
--- a/core/modules/system/tests/src/Functional/Entity/EntityRevisionsTest.php
+++ b/core/modules/system/tests/src/Functional/Entity/EntityRevisionsTest.php
@@ -150,22 +150,22 @@ protected function runRevisionsTests($entity_type) {
       $entity_revision = $revisions[$revision_ids[$i]];
 
       // Check if properties and fields contain the revision specific content.
-      $this->assertEqual($entity_revision->revision_id->value, $revision_ids[$i], format_string('%entity_type: Revision ID matches.', ['%entity_type' => $entity_type]));
-      $this->assertEqual($entity_revision->name->value, $values['en'][$i]['name'], format_string('%entity_type: Name matches.', ['%entity_type' => $entity_type]));
-      $this->assertEqual($entity_revision->translatable_test_field[0]->value, $values['en'][$i]['translatable_test_field'][0], format_string('%entity_type: Text matches.', ['%entity_type' => $entity_type]));
-      $this->assertEqual($entity_revision->translatable_test_field[1]->value, $values['en'][$i]['translatable_test_field'][1], format_string('%entity_type: Text matches.', ['%entity_type' => $entity_type]));
+      $this->assertEquals($entity_revision->revision_id->value, $revision_ids[$i], format_string('%entity_type: Revision ID matches.', ['%entity_type' => $entity_type]));
+      $this->assertEquals($entity_revision->name->value, $values['en'][$i]['name'], format_string('%entity_type: Name matches.', ['%entity_type' => $entity_type]));
+      $this->assertEquals($entity_revision->translatable_test_field[0]->value, $values['en'][$i]['translatable_test_field'][0], format_string('%entity_type: Text matches.', ['%entity_type' => $entity_type]));
+      $this->assertEquals($entity_revision->translatable_test_field[1]->value, $values['en'][$i]['translatable_test_field'][1], format_string('%entity_type: Text matches.', ['%entity_type' => $entity_type]));
 
       // Check the translated values.
       if ($entity->getEntityType()->isTranslatable()) {
         $revision_translation = $entity_revision->getTranslation('de');
-        $this->assertEqual($revision_translation->name->value, $values['de'][$i]['name'], format_string('%entity_type: Name matches.', ['%entity_type' => $entity_type]));
-        $this->assertEqual($revision_translation->translatable_test_field[0]->value, $values['de'][$i]['translatable_test_field'][0], format_string('%entity_type: Text matches.', ['%entity_type' => $entity_type]));
-        $this->assertEqual($revision_translation->translatable_test_field[1]->value, $values['de'][$i]['translatable_test_field'][1], format_string('%entity_type: Text matches.', ['%entity_type' => $entity_type]));
+        $this->assertEquals($revision_translation->name->value, $values['de'][$i]['name'], format_string('%entity_type: Name matches.', ['%entity_type' => $entity_type]));
+        $this->assertEquals($revision_translation->translatable_test_field[0]->value, $values['de'][$i]['translatable_test_field'][0], format_string('%entity_type: Text matches.', ['%entity_type' => $entity_type]));
+        $this->assertEquals($revision_translation->translatable_test_field[1]->value, $values['de'][$i]['translatable_test_field'][1], format_string('%entity_type: Text matches.', ['%entity_type' => $entity_type]));
       }
 
       // Check non-revisioned values are loaded.
       $this->assertTrue(isset($entity_revision->created->value), format_string('%entity_type: Non-revisioned field is loaded.', ['%entity_type' => $entity_type]));
-      $this->assertEqual($entity_revision->created->value, $values['en'][2]['created'], format_string('%entity_type: Non-revisioned field value is the same between revisions.', ['%entity_type' => $entity_type]));
+      $this->assertEquals($entity_revision->created->value, $values['en'][2]['created'], format_string('%entity_type: Non-revisioned field value is the same between revisions.', ['%entity_type' => $entity_type]));
     }
 
     // Confirm the correct revision text appears in the edit form.
diff --git a/core/modules/system/tests/src/Functional/Entity/Update/LangcodeToAsciiUpdateTest.php b/core/modules/system/tests/src/Functional/Entity/Update/LangcodeToAsciiUpdateTest.php
index d1a3cabb06..cb59b0fb1b 100644
--- a/core/modules/system/tests/src/Functional/Entity/Update/LangcodeToAsciiUpdateTest.php
+++ b/core/modules/system/tests/src/Functional/Entity/Update/LangcodeToAsciiUpdateTest.php
@@ -39,7 +39,7 @@ public function testLangcodeColumnCollation() {
     ];
     foreach ($tables as $table => $columns) {
       foreach ($columns as $column) {
-        $this->assertEqual('utf8mb4_general_ci', $this->getColumnCollation($table, $column), 'Found correct starting collation for ' . $table . '.' . $column);
+        $this->assertEquals('utf8mb4_general_ci', $this->getColumnCollation($table, $column), 'Found correct starting collation for ' . $table . '.' . $column);
       }
     }
 
@@ -48,7 +48,7 @@ public function testLangcodeColumnCollation() {
 
     foreach ($tables as $table => $columns) {
       foreach ($columns as $column) {
-        $this->assertEqual('ascii_general_ci', $this->getColumnCollation($table, $column), 'Found correct updated collation for ' . $table . '.' . $column);
+        $this->assertEquals('ascii_general_ci', $this->getColumnCollation($table, $column), 'Found correct updated collation for ' . $table . '.' . $column);
       }
     }
   }
diff --git a/core/modules/system/tests/src/Functional/Entity/Update/MoveRevisionMetadataFieldsUpdateTest.php b/core/modules/system/tests/src/Functional/Entity/Update/MoveRevisionMetadataFieldsUpdateTest.php
index 8634b16d6e..d67cdb25d1 100644
--- a/core/modules/system/tests/src/Functional/Entity/Update/MoveRevisionMetadataFieldsUpdateTest.php
+++ b/core/modules/system/tests/src/Functional/Entity/Update/MoveRevisionMetadataFieldsUpdateTest.php
@@ -55,15 +55,15 @@ public function testSystemUpdate8400() {
       // and that the moved fields are accessible.
       /** @var \Drupal\Core\Entity\RevisionLogInterface $entity_rev_first */
       $entity_rev_first = $storage->loadRevision(1);
-      $this->assertEqual($entity_rev_first->getRevisionUserId(), '1');
-      $this->assertEqual($entity_rev_first->getRevisionLogMessage(), 'first revision');
-      $this->assertEqual($entity_rev_first->getRevisionCreationTime(), '1476268517');
+      $this->assertEquals($entity_rev_first->getRevisionUserId(), '1');
+      $this->assertEquals($entity_rev_first->getRevisionLogMessage(), 'first revision');
+      $this->assertEquals($entity_rev_first->getRevisionCreationTime(), '1476268517');
 
       /** @var \Drupal\Core\Entity\RevisionLogInterface $entity_rev_second */
       $entity_rev_second = $storage->loadRevision(2);
-      $this->assertEqual($entity_rev_second->getRevisionUserId(), '1');
-      $this->assertEqual($entity_rev_second->getRevisionLogMessage(), 'second revision');
-      $this->assertEqual($entity_rev_second->getRevisionCreationTime(), '1476268518');
+      $this->assertEquals($entity_rev_second->getRevisionUserId(), '1');
+      $this->assertEquals($entity_rev_second->getRevisionLogMessage(), 'second revision');
+      $this->assertEquals($entity_rev_second->getRevisionCreationTime(), '1476268518');
 
       // Test that the views using revision metadata fields are updated
       // properly.
@@ -72,7 +72,7 @@ public function testSystemUpdate8400() {
       foreach ($displays as $display => $display_data) {
         foreach ($display_data['display_options']['fields'] as $property_data) {
           if (in_array($property_data['field'], $revision_metadata_field_names)) {
-            $this->assertEqual($property_data['table'], $entity_type->getRevisionTable());
+            $this->assertEquals($property_data['table'], $entity_type->getRevisionTable());
           }
         }
       }
diff --git a/core/modules/system/tests/src/Functional/Entity/Update/SqlContentEntityStorageSchemaConverterTest.php b/core/modules/system/tests/src/Functional/Entity/Update/SqlContentEntityStorageSchemaConverterTest.php
index 625ee190ed..504febd14f 100644
--- a/core/modules/system/tests/src/Functional/Entity/Update/SqlContentEntityStorageSchemaConverterTest.php
+++ b/core/modules/system/tests/src/Functional/Entity/Update/SqlContentEntityStorageSchemaConverterTest.php
@@ -97,62 +97,62 @@ public function testMakeRevisionable() {
 
     /** @var \Drupal\Core\Entity\Sql\SqlEntityStorageInterface $storage */
     $storage = \Drupal::entityTypeManager()->getStorage('entity_test_update');
-    $this->assertEqual(count($storage->loadMultiple()), 102, 'All test entities were found.');
+    $this->assertEquals(count($storage->loadMultiple()), 102, 'All test entities were found.');
 
     // Check that each field value was copied correctly to the revision tables.
     for ($i = 1; $i <= 102; $i++) {
       /** @var \Drupal\Core\Entity\ContentEntityInterface $revision */
       $revision = $storage->loadRevision($i);
 
-      $this->assertEqual($i, $revision->id());
-      $this->assertEqual($i, $revision->getRevisionId());
+      $this->assertEquals($i, $revision->id());
+      $this->assertEquals($i, $revision->getRevisionId());
 
       // Check that the correct initial value was provided for the
       // 'revision_translation_affected' field.
       $this->assertTrue($revision->revision_translation_affected->value);
 
-      $this->assertEqual($i . ' - test single property', $revision->test_single_property->value);
+      $this->assertEquals($i . ' - test single property', $revision->test_single_property->value);
 
-      $this->assertEqual($i . ' - test multiple properties - value1', $revision->test_multiple_properties->value1);
-      $this->assertEqual($i . ' - test multiple properties - value2', $revision->test_multiple_properties->value2);
+      $this->assertEquals($i . ' - test multiple properties - value1', $revision->test_multiple_properties->value1);
+      $this->assertEquals($i . ' - test multiple properties - value2', $revision->test_multiple_properties->value2);
 
-      $this->assertEqual($i . ' - test single property multiple values 0', $revision->test_single_property_multiple_values->value);
-      $this->assertEqual($i . ' - test single property multiple values 1', $revision->test_single_property_multiple_values[1]->value);
+      $this->assertEquals($i . ' - test single property multiple values 0', $revision->test_single_property_multiple_values->value);
+      $this->assertEquals($i . ' - test single property multiple values 1', $revision->test_single_property_multiple_values[1]->value);
 
-      $this->assertEqual($i . ' - test multiple properties multiple values - value1 0', $revision->test_multiple_properties_multiple_values[0]->value1);
-      $this->assertEqual($i . ' - test multiple properties multiple values - value2 0', $revision->test_multiple_properties_multiple_values[0]->value2);
-      $this->assertEqual($i . ' - test multiple properties multiple values - value1 1', $revision->test_multiple_properties_multiple_values[1]->value1);
-      $this->assertEqual($i . ' - test multiple properties multiple values - value2 1', $revision->test_multiple_properties_multiple_values[1]->value2);
+      $this->assertEquals($i . ' - test multiple properties multiple values - value1 0', $revision->test_multiple_properties_multiple_values[0]->value1);
+      $this->assertEquals($i . ' - test multiple properties multiple values - value2 0', $revision->test_multiple_properties_multiple_values[0]->value2);
+      $this->assertEquals($i . ' - test multiple properties multiple values - value1 1', $revision->test_multiple_properties_multiple_values[1]->value1);
+      $this->assertEquals($i . ' - test multiple properties multiple values - value2 1', $revision->test_multiple_properties_multiple_values[1]->value2);
 
-      $this->assertEqual($i . ' - field test configurable field - value1 0', $revision->field_test_configurable_field[0]->value1);
-      $this->assertEqual($i . ' - field test configurable field - value2 0', $revision->field_test_configurable_field[0]->value2);
-      $this->assertEqual($i . ' - field test configurable field - value1 1', $revision->field_test_configurable_field[1]->value1);
-      $this->assertEqual($i . ' - field test configurable field - value2 1', $revision->field_test_configurable_field[1]->value2);
+      $this->assertEquals($i . ' - field test configurable field - value1 0', $revision->field_test_configurable_field[0]->value1);
+      $this->assertEquals($i . ' - field test configurable field - value2 0', $revision->field_test_configurable_field[0]->value2);
+      $this->assertEquals($i . ' - field test configurable field - value1 1', $revision->field_test_configurable_field[1]->value1);
+      $this->assertEquals($i . ' - field test configurable field - value2 1', $revision->field_test_configurable_field[1]->value2);
 
-      $this->assertEqual($i . ' - test entity base field info', $revision->test_entity_base_field_info->value);
+      $this->assertEquals($i . ' - test entity base field info', $revision->test_entity_base_field_info->value);
 
       // Do the same checks for translated field values.
       $translation = $revision->getTranslation('ro');
 
-      $this->assertEqual($i . ' - test single property - ro', $translation->test_single_property->value);
+      $this->assertEquals($i . ' - test single property - ro', $translation->test_single_property->value);
 
-      $this->assertEqual($i . ' - test multiple properties - value1 - ro', $translation->test_multiple_properties->value1);
-      $this->assertEqual($i . ' - test multiple properties - value2 - ro', $translation->test_multiple_properties->value2);
+      $this->assertEquals($i . ' - test multiple properties - value1 - ro', $translation->test_multiple_properties->value1);
+      $this->assertEquals($i . ' - test multiple properties - value2 - ro', $translation->test_multiple_properties->value2);
 
-      $this->assertEqual($i . ' - test single property multiple values 0 - ro', $translation->test_single_property_multiple_values[0]->value);
-      $this->assertEqual($i . ' - test single property multiple values 1 - ro', $translation->test_single_property_multiple_values[1]->value);
+      $this->assertEquals($i . ' - test single property multiple values 0 - ro', $translation->test_single_property_multiple_values[0]->value);
+      $this->assertEquals($i . ' - test single property multiple values 1 - ro', $translation->test_single_property_multiple_values[1]->value);
 
-      $this->assertEqual($i . ' - test multiple properties multiple values - value1 0 - ro', $translation->test_multiple_properties_multiple_values[0]->value1);
-      $this->assertEqual($i . ' - test multiple properties multiple values - value2 0 - ro', $translation->test_multiple_properties_multiple_values[0]->value2);
-      $this->assertEqual($i . ' - test multiple properties multiple values - value1 1 - ro', $translation->test_multiple_properties_multiple_values[1]->value1);
-      $this->assertEqual($i . ' - test multiple properties multiple values - value2 1 - ro', $translation->test_multiple_properties_multiple_values[1]->value2);
+      $this->assertEquals($i . ' - test multiple properties multiple values - value1 0 - ro', $translation->test_multiple_properties_multiple_values[0]->value1);
+      $this->assertEquals($i . ' - test multiple properties multiple values - value2 0 - ro', $translation->test_multiple_properties_multiple_values[0]->value2);
+      $this->assertEquals($i . ' - test multiple properties multiple values - value1 1 - ro', $translation->test_multiple_properties_multiple_values[1]->value1);
+      $this->assertEquals($i . ' - test multiple properties multiple values - value2 1 - ro', $translation->test_multiple_properties_multiple_values[1]->value2);
 
-      $this->assertEqual($i . ' - field test configurable field - value1 0 - ro', $translation->field_test_configurable_field[0]->value1);
-      $this->assertEqual($i . ' - field test configurable field - value2 0 - ro', $translation->field_test_configurable_field[0]->value2);
-      $this->assertEqual($i . ' - field test configurable field - value1 1 - ro', $translation->field_test_configurable_field[1]->value1);
-      $this->assertEqual($i . ' - field test configurable field - value2 1 - ro', $translation->field_test_configurable_field[1]->value2);
+      $this->assertEquals($i . ' - field test configurable field - value1 0 - ro', $translation->field_test_configurable_field[0]->value1);
+      $this->assertEquals($i . ' - field test configurable field - value2 0 - ro', $translation->field_test_configurable_field[0]->value2);
+      $this->assertEquals($i . ' - field test configurable field - value1 1 - ro', $translation->field_test_configurable_field[1]->value1);
+      $this->assertEquals($i . ' - field test configurable field - value2 1 - ro', $translation->field_test_configurable_field[1]->value2);
 
-      $this->assertEqual($i . ' - test entity base field info - ro', $translation->test_entity_base_field_info->value);
+      $this->assertEquals($i . ' - test entity base field info - ro', $translation->test_entity_base_field_info->value);
     }
 
     // Check that temporary tables have been removed at the end of the process.
@@ -208,19 +208,19 @@ public function testMakeRevisionableErrorHandling() {
     // looking at the 'langcode' field, which is updated automatically.
     $new_storage_definitions = $this->lastInstalledSchemaRepository->getLastInstalledFieldStorageDefinitions('entity_test_update');
     $langcode_key = $original_entity_type->getKey('langcode');
-    $this->assertEqual($original_storage_definitions[$langcode_key]->isRevisionable(), $new_storage_definitions[$langcode_key]->isRevisionable(), "The 'langcode' field is kept unchanged.");
+    $this->assertEquals($original_storage_definitions[$langcode_key]->isRevisionable(), $new_storage_definitions[$langcode_key]->isRevisionable(), "The 'langcode' field is kept unchanged.");
 
     /** @var \Drupal\Core\Entity\Sql\SqlEntityStorageInterface $storage */
     $storage = \Drupal::entityTypeManager()->getStorage('entity_test_update');
 
     // Check that installed storage schema did not change.
     $new_entity_schema_data = $this->installedStorageSchema->get('entity_test_update.entity_schema_data', []);
-    $this->assertEqual($original_entity_schema_data, $new_entity_schema_data);
+    $this->assertEquals($original_entity_schema_data, $new_entity_schema_data);
 
     foreach ($new_storage_definitions as $storage_definition) {
       $new_field_schema_data[$storage_definition->getName()] = $this->installedStorageSchema->get('entity_test_update.field_schema_data.' . $storage_definition->getName(), []);
     }
-    $this->assertEqual($original_field_schema_data, $new_field_schema_data);
+    $this->assertEquals($original_field_schema_data, $new_field_schema_data);
 
     // Check that temporary tables have been removed.
     $schema = \Drupal::database()->schema();
@@ -236,7 +236,7 @@ public function testMakeRevisionableErrorHandling() {
       ->countQuery()
       ->execute()
       ->fetchField();
-    $this->assertEqual($base_table_count, 102);
+    $this->assertEquals($base_table_count, 102);
 
     $data_table_count = \Drupal::database()->select('entity_test_update_data')
       ->countQuery()
@@ -244,7 +244,7 @@ public function testMakeRevisionableErrorHandling() {
       ->fetchField();
     // There are two records for each entity, one for English and one for
     // Romanian.
-    $this->assertEqual($data_table_count, 204);
+    $this->assertEquals($data_table_count, 204);
 
     $base_table_row = \Drupal::database()->select('entity_test_update')
       ->fields('entity_test_update')
@@ -252,7 +252,7 @@ public function testMakeRevisionableErrorHandling() {
       ->condition('langcode', 'en', '=')
       ->execute()
       ->fetchAllAssoc('id');
-    $this->assertEqual('843e9ac7-3351-4cc1-a202-2dbffffae21c', $base_table_row[1]->uuid);
+    $this->assertEquals('843e9ac7-3351-4cc1-a202-2dbffffae21c', $base_table_row[1]->uuid);
 
     $data_table_row = \Drupal::database()->select('entity_test_update_data')
       ->fields('entity_test_update_data')
@@ -260,10 +260,10 @@ public function testMakeRevisionableErrorHandling() {
       ->condition('langcode', 'en', '=')
       ->execute()
       ->fetchAllAssoc('id');
-    $this->assertEqual('1 - test single property', $data_table_row[1]->test_single_property);
-    $this->assertEqual('1 - test multiple properties - value1', $data_table_row[1]->test_multiple_properties__value1);
-    $this->assertEqual('1 - test multiple properties - value2', $data_table_row[1]->test_multiple_properties__value2);
-    $this->assertEqual('1 - test entity base field info', $data_table_row[1]->test_entity_base_field_info);
+    $this->assertEquals('1 - test single property', $data_table_row[1]->test_single_property);
+    $this->assertEquals('1 - test multiple properties - value1', $data_table_row[1]->test_multiple_properties__value1);
+    $this->assertEquals('1 - test multiple properties - value2', $data_table_row[1]->test_multiple_properties__value2);
+    $this->assertEquals('1 - test entity base field info', $data_table_row[1]->test_entity_base_field_info);
   }
 
 }
diff --git a/core/modules/system/tests/src/Functional/Entity/Update/UpdateApiEntityDefinitionUpdateTest.php b/core/modules/system/tests/src/Functional/Entity/Update/UpdateApiEntityDefinitionUpdateTest.php
index f3285ae5d5..36e368da73 100644
--- a/core/modules/system/tests/src/Functional/Entity/Update/UpdateApiEntityDefinitionUpdateTest.php
+++ b/core/modules/system/tests/src/Functional/Entity/Update/UpdateApiEntityDefinitionUpdateTest.php
@@ -59,8 +59,8 @@ public function testSingleUpdates() {
 
     // Check that only a single value is stored for 'user_id'.
     $entity = $this->reloadEntity($entity);
-    $this->assertEqual(count($entity->user_id), 1);
-    $this->assertEqual($entity->user_id->target_id, $user_ids[0]);
+    $this->assertEquals(count($entity->user_id), 1);
+    $this->assertEquals($entity->user_id->target_id, $user_ids[0]);
 
     // Make 'user_id' multiple by applying updates.
     $this->enableUpdates('entity_test', 'entity_definition_updates', 8001);
@@ -71,16 +71,16 @@ public function testSingleUpdates() {
 
     // Check that data was correctly migrated.
     $entity = $this->reloadEntity($entity);
-    $this->assertEqual(count($entity->user_id), 1);
-    $this->assertEqual($entity->user_id->target_id, $user_ids[0]);
+    $this->assertEquals(count($entity->user_id), 1);
+    $this->assertEquals($entity->user_id->target_id, $user_ids[0]);
 
     // Store multiple data and check it is correctly stored.
     $entity->user_id = $user_ids;
     $entity->save();
     $entity = $this->reloadEntity($entity);
-    $this->assertEqual(count($entity->user_id), 2);
-    $this->assertEqual($entity->user_id[0]->target_id, $user_ids[0]);
-    $this->assertEqual($entity->user_id[1]->target_id, $user_ids[1]);
+    $this->assertEquals(count($entity->user_id), 2);
+    $this->assertEquals($entity->user_id[0]->target_id, $user_ids[0]);
+    $this->assertEquals($entity->user_id[1]->target_id, $user_ids[1]);
 
     // Make 'user_id' single again by applying updates.
     $this->enableUpdates('entity_test', 'entity_definition_updates', 8002);
@@ -88,15 +88,15 @@ public function testSingleUpdates() {
 
     // Check that data was correctly migrated/dropped.
     $entity = $this->reloadEntity($entity);
-    $this->assertEqual(count($entity->user_id), 1);
-    $this->assertEqual($entity->user_id->target_id, $user_ids[0]);
+    $this->assertEquals(count($entity->user_id), 1);
+    $this->assertEquals($entity->user_id->target_id, $user_ids[0]);
 
     // Check that only a single value is stored for 'user_id' again.
     $entity->user_id = $user_ids;
     $entity->save();
     $entity = $this->reloadEntity($entity);
-    $this->assertEqual(count($entity->user_id), 1);
-    $this->assertEqual($entity->user_id[0]->target_id, $user_ids[0]);
+    $this->assertEquals(count($entity->user_id), 1);
+    $this->assertEquals($entity->user_id[0]->target_id, $user_ids[0]);
   }
 
   /**
@@ -110,8 +110,8 @@ public function testMultipleUpdates() {
 
     // Check that only a single value is stored for 'user_id'.
     $entity = $this->reloadEntity($entity);
-    $this->assertEqual(count($entity->user_id), 1);
-    $this->assertEqual($entity->user_id->target_id, $user_ids[0]);
+    $this->assertEquals(count($entity->user_id), 1);
+    $this->assertEquals($entity->user_id->target_id, $user_ids[0]);
 
     // Make 'user_id' multiple and then single again by applying updates.
     $this->enableUpdates('entity_test', 'entity_definition_updates', 8002);
@@ -119,15 +119,15 @@ public function testMultipleUpdates() {
 
     // Check that data was correctly migrated back and forth.
     $entity = $this->reloadEntity($entity);
-    $this->assertEqual(count($entity->user_id), 1);
-    $this->assertEqual($entity->user_id->target_id, $user_ids[0]);
+    $this->assertEquals(count($entity->user_id), 1);
+    $this->assertEquals($entity->user_id->target_id, $user_ids[0]);
 
     // Check that only a single value is stored for 'user_id' again.
     $entity->user_id = $user_ids;
     $entity->save();
     $entity = $this->reloadEntity($entity);
-    $this->assertEqual(count($entity->user_id), 1);
-    $this->assertEqual($entity->user_id[0]->target_id, $user_ids[0]);
+    $this->assertEquals(count($entity->user_id), 1);
+    $this->assertEquals($entity->user_id[0]->target_id, $user_ids[0]);
   }
 
   /**
diff --git a/core/modules/system/tests/src/Functional/Form/ElementTest.php b/core/modules/system/tests/src/Functional/Form/ElementTest.php
index 57da8daf27..f88c54d54f 100644
--- a/core/modules/system/tests/src/Functional/Form/ElementTest.php
+++ b/core/modules/system/tests/src/Functional/Form/ElementTest.php
@@ -152,9 +152,9 @@ public function testButtonClasses() {
     // "button--foo" would contain "button". Instead, check
     // " button ". Make sure it matches in the beginning and the end too
     // by adding a space before and after.
-    $this->assertEqual(2, count($this->xpath('//*[contains(concat(" ", @class, " "), " button ")]')));
-    $this->assertEqual(1, count($this->xpath('//*[contains(concat(" ", @class, " "), " button--foo ")]')));
-    $this->assertEqual(1, count($this->xpath('//*[contains(concat(" ", @class, " "), " button--danger ")]')));
+    $this->assertEquals(2, count($this->xpath('//*[contains(concat(" ", @class, " "), " button ")]')));
+    $this->assertEquals(1, count($this->xpath('//*[contains(concat(" ", @class, " "), " button--foo ")]')));
+    $this->assertEquals(1, count($this->xpath('//*[contains(concat(" ", @class, " "), " button--danger ")]')));
   }
 
   /**
@@ -198,9 +198,9 @@ public function testFormAutocomplete() {
     $this->drupalGet('form-test/autocomplete');
 
     $result = $this->xpath('//input[@id="edit-autocomplete-1" and contains(@data-autocomplete-path, "form-test/autocomplete-1")]');
-    $this->assertEqual(count($result), 0, 'Ensure that the user does not have access to the autocompletion');
+    $this->assertEquals(count($result), 0, 'Ensure that the user does not have access to the autocompletion');
     $result = $this->xpath('//input[@id="edit-autocomplete-2" and contains(@data-autocomplete-path, "form-test/autocomplete-2/value")]');
-    $this->assertEqual(count($result), 0, 'Ensure that the user does not have access to the autocompletion');
+    $this->assertEquals(count($result), 0, 'Ensure that the user does not have access to the autocompletion');
 
     $user = $this->drupalCreateUser(['access autocomplete test']);
     $this->drupalLogin($user);
@@ -210,9 +210,9 @@ public function testFormAutocomplete() {
     $this->assertRaw('core/misc/autocomplete.js');
 
     $result = $this->xpath('//input[@id="edit-autocomplete-1" and contains(@data-autocomplete-path, "form-test/autocomplete-1")]');
-    $this->assertEqual(count($result), 1, 'Ensure that the user does have access to the autocompletion');
+    $this->assertEquals(count($result), 1, 'Ensure that the user does have access to the autocompletion');
     $result = $this->xpath('//input[@id="edit-autocomplete-2" and contains(@data-autocomplete-path, "form-test/autocomplete-2/value")]');
-    $this->assertEqual(count($result), 1, 'Ensure that the user does have access to the autocompletion');
+    $this->assertEquals(count($result), 1, 'Ensure that the user does have access to the autocompletion');
   }
 
   /**
diff --git a/core/modules/system/tests/src/Functional/Form/ElementsLabelsTest.php b/core/modules/system/tests/src/Functional/Form/ElementsLabelsTest.php
index 6747ed63fb..0171f9cfc3 100644
--- a/core/modules/system/tests/src/Functional/Form/ElementsLabelsTest.php
+++ b/core/modules/system/tests/src/Functional/Form/ElementsLabelsTest.php
@@ -85,9 +85,9 @@ public function testFormLabels() {
 
     // Check title attribute for radios and checkboxes.
     $elements = $this->xpath('//div[@id="edit-form-checkboxes-title-attribute"]');
-    $this->assertEqual($elements[0]->getAttribute('title'), 'Checkboxes test' . ' (' . t('Required') . ')', 'Title attribute found.');
+    $this->assertEquals($elements[0]->getAttribute('title'), 'Checkboxes test' . ' (' . t('Required') . ')', 'Title attribute found.');
     $elements = $this->xpath('//div[@id="edit-form-radios-title-attribute"]');
-    $this->assertEqual($elements[0]->getAttribute('title'), 'Radios test' . ' (' . t('Required') . ')', 'Title attribute found.');
+    $this->assertEquals($elements[0]->getAttribute('title'), 'Radios test' . ' (' . t('Required') . ')', 'Title attribute found.');
 
     $elements = $this->xpath('//fieldset[@id="edit-form-checkboxes-title-invisible--wrapper"]/legend/span[contains(@class, "visually-hidden")]');
     $this->assertTrue(!empty($elements), "Title/Label not displayed when 'visually-hidden' attribute is set in checkboxes.");
diff --git a/core/modules/system/tests/src/Functional/Form/EmailTest.php b/core/modules/system/tests/src/Functional/Form/EmailTest.php
index 2fe6ebe907..c15085ee49 100644
--- a/core/modules/system/tests/src/Functional/Form/EmailTest.php
+++ b/core/modules/system/tests/src/Functional/Form/EmailTest.php
@@ -35,15 +35,15 @@ public function testFormEmail() {
     $this->drupalPostForm('form-test/email', $edit, 'Submit');
     $values = Json::decode($this->getSession()->getPage()->getContent());
     $this->assertIdentical($values['email'], '');
-    $this->assertEqual($values['email_required'], 'foo.bar@example.com');
+    $this->assertEquals($values['email_required'], 'foo.bar@example.com');
 
     $edit = [];
     $edit['email'] = 'foo@example.com';
     $edit['email_required'] = 'example@drupal.org';
     $this->drupalPostForm('form-test/email', $edit, 'Submit');
     $values = Json::decode($this->getSession()->getPage()->getContent());
-    $this->assertEqual($values['email'], 'foo@example.com');
-    $this->assertEqual($values['email_required'], 'example@drupal.org');
+    $this->assertEquals($values['email'], 'foo@example.com');
+    $this->assertEquals($values['email_required'], 'example@drupal.org');
   }
 
 }
diff --git a/core/modules/system/tests/src/Functional/Form/FormStoragePageCacheTest.php b/core/modules/system/tests/src/Functional/Form/FormStoragePageCacheTest.php
index 474a35b55a..8074d6ed4b 100644
--- a/core/modules/system/tests/src/Functional/Form/FormStoragePageCacheTest.php
+++ b/core/modules/system/tests/src/Functional/Form/FormStoragePageCacheTest.php
@@ -32,7 +32,7 @@ protected function setUp() {
    */
   protected function getFormBuildId() {
     $build_id_fields = $this->xpath('//input[@name="form_build_id"]');
-    $this->assertEqual(count($build_id_fields), 1, 'One form build id field on the page');
+    $this->assertEquals(count($build_id_fields), 1, 'One form build id field on the page');
     return (string) $build_id_fields[0]->getAttribute('value');
   }
 
@@ -41,7 +41,7 @@ protected function getFormBuildId() {
    */
   public function testValidateFormStorageOnCachedPage() {
     $this->drupalGet('form-test/form-storage-page-cache');
-    $this->assertEqual($this->drupalGetHeader('X-Drupal-Cache'), 'MISS', 'Page was not cached.');
+    $this->assertEquals($this->drupalGetHeader('X-Drupal-Cache'), 'MISS', 'Page was not cached.');
     $this->assertText('No old build id', 'No old build id on the page');
     $build_id_initial = $this->getFormBuildId();
 
@@ -57,14 +57,14 @@ public function testValidateFormStorageOnCachedPage() {
     $this->drupalPostForm(NULL, $edit, 'Save');
     $this->assertText('No old build id', 'No old build id on the page');
     $build_id_second_validation = $this->getFormBuildId();
-    $this->assertEqual($build_id_first_validation, $build_id_second_validation, 'Build id remains the same when form validation fails subsequently');
+    $this->assertEquals($build_id_first_validation, $build_id_second_validation, 'Build id remains the same when form validation fails subsequently');
 
     // Repeat the test sequence but this time with a page loaded from the cache.
     $this->drupalGet('form-test/form-storage-page-cache');
-    $this->assertEqual($this->drupalGetHeader('X-Drupal-Cache'), 'HIT', 'Page was cached.');
+    $this->assertEquals($this->drupalGetHeader('X-Drupal-Cache'), 'HIT', 'Page was cached.');
     $this->assertText('No old build id', 'No old build id on the page');
     $build_id_from_cache_initial = $this->getFormBuildId();
-    $this->assertEqual($build_id_initial, $build_id_from_cache_initial, 'Build id is the same as on the first request');
+    $this->assertEquals($build_id_initial, $build_id_from_cache_initial, 'Build id is the same as on the first request');
 
     // Trigger validation error by submitting an empty title.
     $edit = ['title' => ''];
@@ -79,7 +79,7 @@ public function testValidateFormStorageOnCachedPage() {
     $this->drupalPostForm(NULL, $edit, 'Save');
     $this->assertText('No old build id', 'No old build id on the page');
     $build_id_from_cache_second_validation = $this->getFormBuildId();
-    $this->assertEqual($build_id_from_cache_first_validation, $build_id_from_cache_second_validation, 'Build id remains the same when form validation fails subsequently');
+    $this->assertEquals($build_id_from_cache_first_validation, $build_id_from_cache_second_validation, 'Build id remains the same when form validation fails subsequently');
   }
 
   /**
@@ -87,7 +87,7 @@ public function testValidateFormStorageOnCachedPage() {
    */
   public function testRebuildFormStorageOnCachedPage() {
     $this->drupalGet('form-test/form-storage-page-cache');
-    $this->assertEqual($this->drupalGetHeader('X-Drupal-Cache'), 'MISS', 'Page was not cached.');
+    $this->assertEquals($this->drupalGetHeader('X-Drupal-Cache'), 'MISS', 'Page was not cached.');
     $this->assertText('No old build id', 'No old build id on the page');
     $build_id_initial = $this->getFormBuildId();
 
diff --git a/core/modules/system/tests/src/Functional/Form/FormTest.php b/core/modules/system/tests/src/Functional/Form/FormTest.php
index 87c7632457..e64e04cc67 100644
--- a/core/modules/system/tests/src/Functional/Form/FormTest.php
+++ b/core/modules/system/tests/src/Functional/Form/FormTest.php
@@ -533,10 +533,10 @@ public function testNumber() {
   public function testRange() {
     $this->drupalPostForm('form-test/range', [], 'Submit');
     $values = json_decode($this->getSession()->getPage()->getContent());
-    $this->assertEqual($values->with_default_value, 18);
-    $this->assertEqual($values->float, 10.5);
-    $this->assertEqual($values->integer, 6);
-    $this->assertEqual($values->offset, 6.9);
+    $this->assertEquals($values->with_default_value, 18);
+    $this->assertEquals($values->float, 10.5);
+    $this->assertEquals($values->integer, 6);
+    $this->assertEquals($values->offset, 6.9);
 
     $this->drupalPostForm('form-test/range/invalid', [], 'Submit');
     $this->assertFieldByXPath('//input[@type="range" and contains(@class, "error")]', NULL, 'Range element has the error class.');
@@ -564,7 +564,7 @@ public function testColorValidation() {
       ];
       $this->drupalPostForm('form-test/color', $edit, 'Submit');
       $result = json_decode($this->getSession()->getPage()->getContent());
-      $this->assertEqual($result->color, $expected);
+      $this->assertEquals($result->color, $expected);
     }
 
     // Tests invalid values are rejected.
@@ -622,7 +622,7 @@ public function testDisabledElements() {
     // the disabled container.
     $actual_count = count($disabled_elements);
     $expected_count = 42;
-    $this->assertEqual($actual_count, $expected_count, SafeMarkup::format('Found @actual elements with disabled property (expected @expected).', [
+    $this->assertEquals($actual_count, $expected_count, SafeMarkup::format('Found @actual elements with disabled property (expected @expected).', [
       '@actual' => count($disabled_elements),
       '@expected' => $expected_count,
     ]));
diff --git a/core/modules/system/tests/src/Functional/Form/LanguageSelectElementTest.php b/core/modules/system/tests/src/Functional/Form/LanguageSelectElementTest.php
index 1bfa19f482..d3adf29544 100644
--- a/core/modules/system/tests/src/Functional/Form/LanguageSelectElementTest.php
+++ b/core/modules/system/tests/src/Functional/Form/LanguageSelectElementTest.php
@@ -84,11 +84,11 @@ public function testHiddenLanguageSelectElement() {
     $edit = [];
     $this->drupalPostForm(NULL, $edit, t('Submit'));
     $values = Json::decode($this->getRawContent());
-    $this->assertEqual($values['languages_all'], 'xx');
-    $this->assertEqual($values['languages_configurable'], 'en');
-    $this->assertEqual($values['languages_locked'], LanguageInterface::LANGCODE_NOT_SPECIFIED);
-    $this->assertEqual($values['languages_config_and_locked'], 'dummy_value');
-    $this->assertEqual($values['language_custom_options'], 'opt2');
+    $this->assertEquals($values['languages_all'], 'xx');
+    $this->assertEquals($values['languages_configurable'], 'en');
+    $this->assertEquals($values['languages_locked'], LanguageInterface::LANGCODE_NOT_SPECIFIED);
+    $this->assertEquals($values['languages_config_and_locked'], 'dummy_value');
+    $this->assertEquals($values['language_custom_options'], 'opt2');
   }
 
   /**
@@ -109,10 +109,10 @@ protected function _testLanguageSelectElementOptions($id, $options) {
     foreach ($elements[0]->findAll('css', 'option') as $option) {
       $count++;
       $option_title = current($options);
-      $this->assertEqual($option->getText(), $option_title);
+      $this->assertEquals($option->getText(), $option_title);
       next($options);
     }
-    $this->assertEqual($count, count($options), format_string('The number of languages and the number of options shown by the language element are the same: @languages languages, @number options', ['@languages' => count($options), '@number' => $count]));
+    $this->assertEquals($count, count($options), format_string('The number of languages and the number of options shown by the language element are the same: @languages languages, @number options', ['@languages' => count($options), '@number' => $count]));
   }
 
 }
diff --git a/core/modules/system/tests/src/Functional/Form/StateValuesCleanTest.php b/core/modules/system/tests/src/Functional/Form/StateValuesCleanTest.php
index 6266487244..f5936ce2ab 100644
--- a/core/modules/system/tests/src/Functional/Form/StateValuesCleanTest.php
+++ b/core/modules/system/tests/src/Functional/Form/StateValuesCleanTest.php
@@ -53,7 +53,7 @@ public function testFormStateValuesClean() {
     $this->assertTrue(isset($values['baz']['beer']), 'Nested form value still exists.');
 
     // Verify that actual form values equal resulting form values.
-    $this->assertEqual($values, $result, 'Expected form values equal actual form values.');
+    $this->assertEquals($values, $result, 'Expected form values equal actual form values.');
   }
 
 }
diff --git a/core/modules/system/tests/src/Functional/Form/UrlTest.php b/core/modules/system/tests/src/Functional/Form/UrlTest.php
index 82d227bbdf..52e600dcd5 100644
--- a/core/modules/system/tests/src/Functional/Form/UrlTest.php
+++ b/core/modules/system/tests/src/Functional/Form/UrlTest.php
@@ -38,15 +38,15 @@ public function testFormUrl() {
     $this->drupalPostForm('form-test/url', $edit, 'Submit');
     $values = Json::decode($this->getSession()->getPage()->getContent());
     $this->assertIdentical($values['url'], '');
-    $this->assertEqual($values['url_required'], 'http://example.com/');
+    $this->assertEquals($values['url_required'], 'http://example.com/');
 
     $edit = [];
     $edit['url'] = 'http://foo.bar.example.com/';
     $edit['url_required'] = 'https://www.drupal.org/node/1174630?page=0&foo=bar#new';
     $this->drupalPostForm('form-test/url', $edit, 'Submit');
     $values = Json::decode($this->getSession()->getPage()->getContent());
-    $this->assertEqual($values['url'], $edit['url']);
-    $this->assertEqual($values['url_required'], $edit['url_required']);
+    $this->assertEquals($values['url'], $edit['url']);
+    $this->assertEquals($values['url_required'], $edit['url_required']);
   }
 
 }
diff --git a/core/modules/system/tests/src/Functional/Mail/HtmlToTextTest.php b/core/modules/system/tests/src/Functional/Mail/HtmlToTextTest.php
index bdbfd749c9..6f42fa7dd7 100644
--- a/core/modules/system/tests/src/Functional/Mail/HtmlToTextTest.php
+++ b/core/modules/system/tests/src/Functional/Mail/HtmlToTextTest.php
@@ -52,7 +52,7 @@ protected function assertHtmlToText($html, $text, $message, $allowed_tags = NULL
     $tested_tags = implode(', ', array_unique($matches[1]));
     $message .= ' (' . $tested_tags . ')';
     $result = MailFormatHelper::htmlToText($html, $allowed_tags);
-    $pass = $this->assertEqual($result, $text, Html::escape($message));
+    $pass = $this->assertEquals($result, $text, Html::escape($message));
     $verbose = 'html = <pre>' . $this->stringToHtml($html)
       . '</pre><br />' . 'result = <pre>' . $this->stringToHtml($result)
       . '</pre><br />' . 'expected = <pre>' . $this->stringToHtml($text)
@@ -244,7 +244,7 @@ public function testDrupalHtmlToTextBlockTagToNewline() {
     $output_upper = Unicode::strtoupper($output);
     $upper_input = Unicode::strtoupper($input);
     $upper_output = MailFormatHelper::htmlToText($upper_input);
-    $pass = $this->assertEqual(
+    $pass = $this->assertEquals(
       $upper_output,
       $output_upper,
       'Tag recognition should be case-insensitive'
@@ -377,11 +377,11 @@ public function testRemoveTrailingWhitespace() {
   public function testUsenetSignature() {
     $text = "Hi there!\n-- \nHerp Derp";
     $mail_lines = explode("\n", MailFormatHelper::wrapMail($text));
-    $this->assertEqual("-- ", $mail_lines[1], 'Trailing whitespace not removed for dash-dash-space signatures.');
+    $this->assertEquals("-- ", $mail_lines[1], 'Trailing whitespace not removed for dash-dash-space signatures.');
 
     $text = "Hi there!\n--  \nHerp Derp";
     $mail_lines = explode("\n", MailFormatHelper::wrapMail($text));
-    $this->assertEqual("--", $mail_lines[1], 'Trailing whitespace removed for incorrect dash-dash-space signatures.');
+    $this->assertEquals("--", $mail_lines[1], 'Trailing whitespace removed for incorrect dash-dash-space signatures.');
   }
 
 }
diff --git a/core/modules/system/tests/src/Functional/Mail/MailTest.php b/core/modules/system/tests/src/Functional/Mail/MailTest.php
index 74549a3211..5dfdd3a2db 100644
--- a/core/modules/system/tests/src/Functional/Mail/MailTest.php
+++ b/core/modules/system/tests/src/Functional/Mail/MailTest.php
@@ -86,15 +86,15 @@ public function testFromAndReplyToHeader() {
     // and default sender email.
     $captured_emails = \Drupal::state()->get('system.test_mail_collector');
     $sent_message = end($captured_emails);
-    $this->assertEqual($from_email, $sent_message['headers']['From'], 'Message is sent from the site email account.');
-    $this->assertEqual($reply_email, $sent_message['headers']['Reply-to'], 'Message reply-to headers are set.');
+    $this->assertEquals($from_email, $sent_message['headers']['From'], 'Message is sent from the site email account.');
+    $this->assertEquals($reply_email, $sent_message['headers']['Reply-to'], 'Message reply-to headers are set.');
     $this->assertFalse(isset($sent_message['headers']['Errors-To']), 'Errors-to header must not be set, it is deprecated.');
 
     // Send an email and check that the From-header contains the site name.
     \Drupal::service('plugin.manager.mail')->mail('simpletest', 'from_test', 'from_test@example.com', $language);
     $captured_emails = \Drupal::state()->get('system.test_mail_collector');
     $sent_message = end($captured_emails);
-    $this->assertEqual($from_email, $sent_message['headers']['From'], 'Message is sent from the site email account.');
+    $this->assertEquals($from_email, $sent_message['headers']['From'], 'Message is sent from the site email account.');
     $this->assertFalse(isset($sent_message['headers']['Reply-to']), 'Message reply-to is not set if not specified.');
     $this->assertFalse(isset($sent_message['headers']['Errors-To']), 'Errors-to header must not be set, it is deprecated.');
   }
diff --git a/core/modules/system/tests/src/Functional/Menu/LocalActionTest.php b/core/modules/system/tests/src/Functional/Menu/LocalActionTest.php
index f7b9aafae4..7cfcfca490 100644
--- a/core/modules/system/tests/src/Functional/Menu/LocalActionTest.php
+++ b/core/modules/system/tests/src/Functional/Menu/LocalActionTest.php
@@ -80,7 +80,7 @@ protected function assertLocalAction(array $actions) {
       // This behaviour is a bug in libxml, see
       // https://bugs.php.net/bug.php?id=49437.
       $this->assertPattern('@<a [^>]*class="[^"]*button-action[^"]*"[^>]*>' . preg_quote($title, '@') . '</@');
-      $this->assertEqual($elements[$index]->getAttribute('href'), $url->toString());
+      $this->assertEquals($elements[$index]->getAttribute('href'), $url->toString());
       $index++;
     }
   }
diff --git a/core/modules/system/tests/src/Functional/Menu/LocalTasksTest.php b/core/modules/system/tests/src/Functional/Menu/LocalTasksTest.php
index 12a157d587..030a282d36 100644
--- a/core/modules/system/tests/src/Functional/Menu/LocalTasksTest.php
+++ b/core/modules/system/tests/src/Functional/Menu/LocalTasksTest.php
@@ -128,8 +128,8 @@ public function testPluginLocalTask() {
 
     // Ensure the view tab is active.
     $result = $this->xpath('//ul[contains(@class, "tabs")]//li[contains(@class, "active")]/a');
-    $this->assertEqual(1, count($result), 'There is just a single active tab.');
-    $this->assertEqual('View(active tab)', $result[0]->getText(), 'The view tab is active.');
+    $this->assertEquals(1, count($result), 'There is just a single active tab.');
+    $this->assertEquals('View(active tab)', $result[0]->getText(), 'The view tab is active.');
 
     // Verify that local tasks in the second level appear.
     $sub_tasks = [
@@ -143,16 +143,16 @@ public function testPluginLocalTask() {
     $this->assertLocalTasks($sub_tasks, 1);
 
     $result = $this->xpath('//ul[contains(@class, "tabs")]//li[contains(@class, "active")]/a');
-    $this->assertEqual(1, count($result), 'There is just a single active tab.');
-    $this->assertEqual('Settings(active tab)', $result[0]->getText(), 'The settings tab is active.');
+    $this->assertEquals(1, count($result), 'There is just a single active tab.');
+    $this->assertEquals('Settings(active tab)', $result[0]->getText(), 'The settings tab is active.');
 
     $this->drupalGet(Url::fromRoute('menu_test.local_task_test_tasks_settings_sub1'));
     $this->assertLocalTasks($sub_tasks, 1);
 
     $result = $this->xpath('//ul[contains(@class, "tabs")]//a[contains(@class, "active")]');
-    $this->assertEqual(2, count($result), 'There are tabs active on both levels.');
-    $this->assertEqual('Settings(active tab)', $result[0]->getText(), 'The settings tab is active.');
-    $this->assertEqual('Dynamic title for TestTasksSettingsSub1(active tab)', $result[1]->getText(), 'The sub1 tab is active.');
+    $this->assertEquals(2, count($result), 'There are tabs active on both levels.');
+    $this->assertEquals('Settings(active tab)', $result[0]->getText(), 'The settings tab is active.');
+    $this->assertEquals('Dynamic title for TestTasksSettingsSub1(active tab)', $result[1]->getText(), 'The sub1 tab is active.');
 
     $this->assertCacheTag('kittens:ragdoll');
     $this->assertCacheTag('kittens:dwarf-cat');
@@ -161,18 +161,18 @@ public function testPluginLocalTask() {
     $this->assertLocalTasks($sub_tasks, 1);
 
     $result = $this->xpath('//ul[contains(@class, "tabs")]//li[contains(@class, "active")]');
-    $this->assertEqual(2, count($result), 'There are tabs active on both levels.');
-    $this->assertEqual('Settings(active tab)', $result[0]->getText(), 'The settings tab is active.');
-    $this->assertEqual('Derive 1(active tab)', $result[1]->getText(), 'The derive1 tab is active.');
+    $this->assertEquals(2, count($result), 'There are tabs active on both levels.');
+    $this->assertEquals('Settings(active tab)', $result[0]->getText(), 'The settings tab is active.');
+    $this->assertEquals('Derive 1(active tab)', $result[1]->getText(), 'The derive1 tab is active.');
 
     // Ensures that the local tasks contains the proper 'provider key'
     $definitions = $this->container->get('plugin.manager.menu.local_task')->getDefinitions();
-    $this->assertEqual($definitions['menu_test.local_task_test_tasks_view']['provider'], 'menu_test');
-    $this->assertEqual($definitions['menu_test.local_task_test_tasks_edit']['provider'], 'menu_test');
-    $this->assertEqual($definitions['menu_test.local_task_test_tasks_settings']['provider'], 'menu_test');
-    $this->assertEqual($definitions['menu_test.local_task_test_tasks_settings_sub1']['provider'], 'menu_test');
-    $this->assertEqual($definitions['menu_test.local_task_test_tasks_settings_sub2']['provider'], 'menu_test');
-    $this->assertEqual($definitions['menu_test.local_task_test_tasks_settings_sub3']['provider'], 'menu_test');
+    $this->assertEquals($definitions['menu_test.local_task_test_tasks_view']['provider'], 'menu_test');
+    $this->assertEquals($definitions['menu_test.local_task_test_tasks_edit']['provider'], 'menu_test');
+    $this->assertEquals($definitions['menu_test.local_task_test_tasks_settings']['provider'], 'menu_test');
+    $this->assertEquals($definitions['menu_test.local_task_test_tasks_settings_sub1']['provider'], 'menu_test');
+    $this->assertEquals($definitions['menu_test.local_task_test_tasks_settings_sub2']['provider'], 'menu_test');
+    $this->assertEquals($definitions['menu_test.local_task_test_tasks_settings_sub3']['provider'], 'menu_test');
 
     // Test that we we correctly apply the active class to tabs where one of the
     // request attributes is upcast to an entity object.
@@ -189,8 +189,8 @@ public function testPluginLocalTask() {
     $this->assertLocalTasks($tasks, 0);
 
     $result = $this->xpath('//ul[contains(@class, "tabs")]//li[contains(@class, "active")]');
-    $this->assertEqual(1, count($result), 'There is one active tab.');
-    $this->assertEqual('upcasting sub1(active tab)', $result[0]->getText(), 'The "upcasting sub1" tab is active.');
+    $this->assertEquals(1, count($result), 'There is one active tab.');
+    $this->assertEquals('upcasting sub1(active tab)', $result[0]->getText(), 'The "upcasting sub1" tab is active.');
 
     $this->drupalGet(Url::fromRoute('menu_test.local_task_test_upcasting_sub2', ['entity_test' => '1']));
 
@@ -201,8 +201,8 @@ public function testPluginLocalTask() {
     $this->assertLocalTasks($tasks, 0);
 
     $result = $this->xpath('//ul[contains(@class, "tabs")]//li[contains(@class, "active")]');
-    $this->assertEqual(1, count($result), 'There is one active tab.');
-    $this->assertEqual('upcasting sub2(active tab)', $result[0]->getText(), 'The "upcasting sub2" tab is active.');
+    $this->assertEquals(1, count($result), 'There is one active tab.');
+    $this->assertEquals('upcasting sub2(active tab)', $result[0]->getText(), 'The "upcasting sub2" tab is active.');
   }
 
   /**
diff --git a/core/modules/system/tests/src/Functional/Menu/MenuRouterTest.php b/core/modules/system/tests/src/Functional/Menu/MenuRouterTest.php
index 7669e1875a..7a90cbbeaa 100644
--- a/core/modules/system/tests/src/Functional/Menu/MenuRouterTest.php
+++ b/core/modules/system/tests/src/Functional/Menu/MenuRouterTest.php
@@ -116,7 +116,7 @@ protected function doTestMenuName() {
     $menu_link_manager = \Drupal::service('plugin.manager.menu.link');
     $menu_links = $menu_link_manager->loadLinksByRoute('menu_test.menu_name_test');
     $menu_link = reset($menu_links);
-    $this->assertEqual($menu_link->getMenuName(), 'original', 'Menu name is "original".');
+    $this->assertEquals($menu_link->getMenuName(), 'original', 'Menu name is "original".');
 
     // Change the menu_name parameter in menu_test.module, then force a menu
     // rebuild.
@@ -125,7 +125,7 @@ protected function doTestMenuName() {
 
     $menu_links = $menu_link_manager->loadLinksByRoute('menu_test.menu_name_test');
     $menu_link = reset($menu_links);
-    $this->assertEqual($menu_link->getMenuName(), 'changed', 'Menu name was successfully changed after rebuild.');
+    $this->assertEquals($menu_link->getMenuName(), 'changed', 'Menu name was successfully changed after rebuild.');
   }
 
   /**
@@ -138,7 +138,7 @@ protected function doTestMenuLinksDiscoveredAlter() {
     $menu_link_manager = \Drupal::service('plugin.manager.menu.link');
     $menu_links = $menu_link_manager->loadLinksByRoute('menu_test.custom');
     $menu_link = reset($menu_links);
-    $this->assertEqual($menu_link->getPluginId(), 'menu_test.custom', 'Menu links added at hook_menu_links_discovered_alter() obtain the machine name from the $links key.');
+    $this->assertEquals($menu_link->getPluginId(), 'menu_test.custom', 'Menu links added at hook_menu_links_discovered_alter() obtain the machine name from the $links key.');
     // Make sure that rebuilding the menu tree does not produce duplicates of
     // links added by hook_menu_links_discovered_alter().
     \Drupal::service('router.builder')->rebuild();
@@ -158,8 +158,8 @@ protected function doTestMenuHierarchy() {
     $child_link = reset($menu_links);
     $menu_links = $menu_link_manager->loadLinksByRoute('menu_test.hierarchy_parent_child2');
     $unattached_child_link = reset($menu_links);
-    $this->assertEqual($child_link->getParent(), $parent_link->getPluginId(), 'The parent of a directly attached child is correct.');
-    $this->assertEqual($unattached_child_link->getParent(), $child_link->getPluginId(), 'The parent of a non-directly attached child is correct.');
+    $this->assertEquals($child_link->getParent(), $parent_link->getPluginId(), 'The parent of a directly attached child is correct.');
+    $this->assertEquals($unattached_child_link->getParent(), $child_link->getPluginId(), 'The parent of a non-directly attached child is correct.');
   }
 
   /**
diff --git a/core/modules/system/tests/src/Functional/Module/ModuleTestBase.php b/core/modules/system/tests/src/Functional/Module/ModuleTestBase.php
index abdbe03916..f0278a9246 100644
--- a/core/modules/system/tests/src/Functional/Module/ModuleTestBase.php
+++ b/core/modules/system/tests/src/Functional/Module/ModuleTestBase.php
@@ -156,7 +156,7 @@ public function assertModules(array $modules, $enabled) {
       else {
         $message = 'Module "@module" is not enabled.';
       }
-      $this->assertEqual($this->container->get('module_handler')->moduleExists($module), $enabled, format_string($message, ['@module' => $module]));
+      $this->assertEquals($this->container->get('module_handler')->moduleExists($module), $enabled, format_string($message, ['@module' => $module]));
     }
   }
 
diff --git a/core/modules/system/tests/src/Functional/Module/UninstallTest.php b/core/modules/system/tests/src/Functional/Module/UninstallTest.php
index 2b17b8fcf6..2908952956 100644
--- a/core/modules/system/tests/src/Functional/Module/UninstallTest.php
+++ b/core/modules/system/tests/src/Functional/Module/UninstallTest.php
@@ -103,7 +103,7 @@ public function testUninstallPage() {
     // cleared during the uninstall.
     \Drupal::cache()->set('uninstall_test', 'test_uninstall_page', Cache::PERMANENT);
     $cached = \Drupal::cache()->get('uninstall_test');
-    $this->assertEqual($cached->data, 'test_uninstall_page', SafeMarkup::format('Cache entry found: @bin', ['@bin' => $cached->data]));
+    $this->assertEquals($cached->data, 'test_uninstall_page', SafeMarkup::format('Cache entry found: @bin', ['@bin' => $cached->data]));
 
     $this->drupalPostForm(NULL, NULL, t('Uninstall'));
     $this->assertText(t('The selected modules have been uninstalled.'), 'Modules status has been updated.');
diff --git a/core/modules/system/tests/src/Functional/System/ResponseGeneratorTest.php b/core/modules/system/tests/src/Functional/System/ResponseGeneratorTest.php
index 592364636d..eb59df17eb 100644
--- a/core/modules/system/tests/src/Functional/System/ResponseGeneratorTest.php
+++ b/core/modules/system/tests/src/Functional/System/ResponseGeneratorTest.php
@@ -43,14 +43,14 @@ public function testGeneratorHeaderAdded() {
     // Check to see if the header is added when viewing a normal content page
     $this->drupalGet($node->urlInfo());
     $this->assertResponse(200);
-    $this->assertEqual('text/html; charset=UTF-8', $this->drupalGetHeader('Content-Type'));
-    $this->assertEqual($expectedGeneratorHeader, $this->drupalGetHeader('X-Generator'));
+    $this->assertEquals('text/html; charset=UTF-8', $this->drupalGetHeader('Content-Type'));
+    $this->assertEquals($expectedGeneratorHeader, $this->drupalGetHeader('X-Generator'));
 
     // Check to see if the header is also added for a non-successful response
     $this->drupalGet('llama');
     $this->assertResponse(404);
-    $this->assertEqual('text/html; charset=UTF-8', $this->drupalGetHeader('Content-Type'));
-    $this->assertEqual($expectedGeneratorHeader, $this->drupalGetHeader('X-Generator'));
+    $this->assertEquals('text/html; charset=UTF-8', $this->drupalGetHeader('Content-Type'));
+    $this->assertEquals($expectedGeneratorHeader, $this->drupalGetHeader('X-Generator'));
 
     // Enable cookie-based authentication for the entity:node REST resource.
     /** @var \Drupal\rest\RestResourceConfigInterface $resource_config */
@@ -63,8 +63,8 @@ public function testGeneratorHeaderAdded() {
     // Tests to see if this also works for a non-html request
     $this->drupalGet($node->toUrl()->setOption('query', ['_format' => 'hal_json']));
     $this->assertResponse(200);
-    $this->assertEqual('application/hal+json', $this->drupalGetHeader('Content-Type'));
-    $this->assertEqual($expectedGeneratorHeader, $this->drupalGetHeader('X-Generator'));
+    $this->assertEquals('application/hal+json', $this->drupalGetHeader('Content-Type'));
+    $this->assertEquals($expectedGeneratorHeader, $this->drupalGetHeader('X-Generator'));
 
   }
 
diff --git a/core/modules/system/tests/src/Functional/System/RetrieveFileTest.php b/core/modules/system/tests/src/Functional/System/RetrieveFileTest.php
index ef12a51ade..ca5f30ce85 100644
--- a/core/modules/system/tests/src/Functional/System/RetrieveFileTest.php
+++ b/core/modules/system/tests/src/Functional/System/RetrieveFileTest.php
@@ -29,17 +29,17 @@ public function testFileRetrieving() {
     // has to be encoded.
     $encoded_filename = rawurlencode($filename);
 
-    $this->assertEqual($retrieved_file, 'public://' . $encoded_filename, 'Sane path for downloaded file returned (public:// scheme).');
+    $this->assertEquals($retrieved_file, 'public://' . $encoded_filename, 'Sane path for downloaded file returned (public:// scheme).');
     $this->assertTrue(is_file($retrieved_file), 'Downloaded file does exist (public:// scheme).');
-    $this->assertEqual(filesize($retrieved_file), 7, 'File size of downloaded file is correct (public:// scheme).');
+    $this->assertEquals(filesize($retrieved_file), 7, 'File size of downloaded file is correct (public:// scheme).');
     file_unmanaged_delete($retrieved_file);
 
     // Test downloading file to a different location.
     drupal_mkdir($targetdir = 'temporary://' . $this->randomMachineName());
     $retrieved_file = system_retrieve_file($url, $targetdir);
-    $this->assertEqual($retrieved_file, "$targetdir/$encoded_filename", 'Sane path for downloaded file returned (temporary:// scheme).');
+    $this->assertEquals($retrieved_file, "$targetdir/$encoded_filename", 'Sane path for downloaded file returned (temporary:// scheme).');
     $this->assertTrue(is_file($retrieved_file), 'Downloaded file does exist (temporary:// scheme).');
-    $this->assertEqual(filesize($retrieved_file), 7, 'File size of downloaded file is correct (temporary:// scheme).');
+    $this->assertEquals(filesize($retrieved_file), 7, 'File size of downloaded file is correct (temporary:// scheme).');
     file_unmanaged_delete($retrieved_file);
 
     file_unmanaged_delete_recursive($sourcedir);
diff --git a/core/modules/system/tests/src/Functional/System/SitesDirectoryHardeningTest.php b/core/modules/system/tests/src/Functional/System/SitesDirectoryHardeningTest.php
index fbe97f4dab..0d7ea42a8a 100644
--- a/core/modules/system/tests/src/Functional/System/SitesDirectoryHardeningTest.php
+++ b/core/modules/system/tests/src/Functional/System/SitesDirectoryHardeningTest.php
@@ -54,8 +54,8 @@ public function testSitesDirectoryHardeningConfig() {
 
     // Manually trigger the requirements check.
     $requirements = $this->checkSystemRequirements();
-    $this->assertEqual(REQUIREMENT_WARNING, $requirements['configuration_files']['severity'], 'Warning severity is properly set.');
-    $this->assertEqual($this->t('Protection disabled'), (string) $requirements['configuration_files']['description']['#context']['configuration_error_list']['#items'][0], 'Description is properly set.');
+    $this->assertEquals(REQUIREMENT_WARNING, $requirements['configuration_files']['severity'], 'Warning severity is properly set.');
+    $this->assertEquals($this->t('Protection disabled'), (string) $requirements['configuration_files']['description']['#context']['configuration_error_list']['#items'][0], 'Description is properly set.');
 
     $this->assertTrue(is_writable($site_path), 'Site directory remains writable when automatically fixing permissions is disabled.');
     $this->assertTrue(is_writable($settings_file), 'settings.php remains writable when automatically fixing permissions is disabled.');
diff --git a/core/modules/system/tests/src/Functional/Theme/ThemeInfoTest.php b/core/modules/system/tests/src/Functional/Theme/ThemeInfoTest.php
index e372bb262a..a9aaaa6e01 100644
--- a/core/modules/system/tests/src/Functional/Theme/ThemeInfoTest.php
+++ b/core/modules/system/tests/src/Functional/Theme/ThemeInfoTest.php
@@ -89,14 +89,14 @@ public function testChanges() {
 
     $active_theme = $this->themeManager->getActiveTheme();
     // Make sure we are not testing the wrong theme.
-    $this->assertEqual('test_theme', $active_theme->getName());
-    $this->assertEqual(['classy/base', 'classy/messages', 'core/normalize', 'test_theme/global-styling'], $active_theme->getLibraries());
+    $this->assertEquals('test_theme', $active_theme->getName());
+    $this->assertEquals(['classy/base', 'classy/messages', 'core/normalize', 'test_theme/global-styling'], $active_theme->getLibraries());
 
     // @see theme_test_system_info_alter()
     $this->state->set('theme_test.modify_info_files', TRUE);
     drupal_flush_all_caches();
     $active_theme = $this->themeManager->getActiveTheme();
-    $this->assertEqual(['classy/base', 'classy/messages', 'core/normalize', 'test_theme/global-styling', 'core/backbone'], $active_theme->getLibraries());
+    $this->assertEquals(['classy/base', 'classy/messages', 'core/normalize', 'test_theme/global-styling', 'core/backbone'], $active_theme->getLibraries());
   }
 
 }
diff --git a/core/modules/system/tests/src/Functional/Theme/ThemeTokenTest.php b/core/modules/system/tests/src/Functional/Theme/ThemeTokenTest.php
index 1488c5b3e4..382c9dc571 100644
--- a/core/modules/system/tests/src/Functional/Theme/ThemeTokenTest.php
+++ b/core/modules/system/tests/src/Functional/Theme/ThemeTokenTest.php
@@ -49,7 +49,7 @@ public function testThemeToken() {
     $this->assertNotNull($settings['ajaxPageState']['theme_token']);
     // The CSRF token is a 43 length string.
     $this->assertTrue(is_string($settings['ajaxPageState']['theme_token']));
-    $this->assertEqual(strlen($settings['ajaxPageState']['theme_token']), 43);
+    $this->assertEquals(strlen($settings['ajaxPageState']['theme_token']), 43);
   }
 
 }
diff --git a/core/modules/system/tests/src/Functional/Theme/TwigExtensionTest.php b/core/modules/system/tests/src/Functional/Theme/TwigExtensionTest.php
index 5e3bc722e3..3be401a88b 100644
--- a/core/modules/system/tests/src/Functional/Theme/TwigExtensionTest.php
+++ b/core/modules/system/tests/src/Functional/Theme/TwigExtensionTest.php
@@ -29,7 +29,7 @@ protected function setUp() {
   public function testTwigExtensionLoaded() {
     $twigService = \Drupal::service('twig');
     $ext = $twigService->getExtension('twig_extension_test.test_extension');
-    $this->assertEqual(get_class($ext), 'Drupal\twig_extension_test\TwigExtension\TestExtension', 'TestExtension loaded successfully.');
+    $this->assertEquals(get_class($ext), 'Drupal\twig_extension_test\TwigExtension\TestExtension', 'TestExtension loaded successfully.');
   }
 
   /**
diff --git a/core/modules/system/tests/src/Functional/Theme/TwigLoaderTest.php b/core/modules/system/tests/src/Functional/Theme/TwigLoaderTest.php
index d2b0b5465d..aa25759755 100644
--- a/core/modules/system/tests/src/Functional/Theme/TwigLoaderTest.php
+++ b/core/modules/system/tests/src/Functional/Theme/TwigLoaderTest.php
@@ -25,10 +25,10 @@ public function testTwigLoaderAddition() {
     $environment = \Drupal::service('twig');
 
     $template = $environment->loadTemplate('kittens');
-    $this->assertEqual($template->render([]), 'kittens', 'Passing "kittens" to the custom Twig loader returns "kittens".');
+    $this->assertEquals($template->render([]), 'kittens', 'Passing "kittens" to the custom Twig loader returns "kittens".');
 
     $template = $environment->loadTemplate('meow');
-    $this->assertEqual($template->render([]), 'cats', 'Passing something other than "kittens" to the custom Twig loader returns "cats".');
+    $this->assertEquals($template->render([]), 'cats', 'Passing something other than "kittens" to the custom Twig loader returns "cats".');
   }
 
 }
diff --git a/core/modules/system/tests/src/Functional/Update/ConfigOverridesUpdateTest.php b/core/modules/system/tests/src/Functional/Update/ConfigOverridesUpdateTest.php
index bab7d49417..420c6eed64 100644
--- a/core/modules/system/tests/src/Functional/Update/ConfigOverridesUpdateTest.php
+++ b/core/modules/system/tests/src/Functional/Update/ConfigOverridesUpdateTest.php
@@ -31,13 +31,13 @@ public function testUpdatedSite() {
     /** @var \Drupal\Core\Config\Config $config_override */
     $language_config_override = \Drupal::service('language.config_factory_override');
     $config_override = $language_config_override->getOverride('es', 'views.view.content');
-    $this->assertEqual('Spanish ID', $config_override->get($key_to_be_removed)['label'], 'The spanish override for the missing field exists before updating.');
+    $this->assertEquals('Spanish ID', $config_override->get($key_to_be_removed)['label'], 'The spanish override for the missing field exists before updating.');
     // Since the above view will be fixed by other updates that fix views
     // configuration for example,
     // views_post_update_update_cacheability_metadata(), also test configuration
     // that has yet to be modified in an update path.
     $config_override = $language_config_override->getOverride('es', 'system.cron');
-    $this->assertEqual('Should be cleaned by system_update_8200', $config_override->get('bogus_key'), 'The spanish override in system.cron exists before updating.');
+    $this->assertEquals('Should be cleaned by system_update_8200', $config_override->get('bogus_key'), 'The spanish override in system.cron exists before updating.');
 
     $this->runUpdates();
 
diff --git a/core/modules/system/tests/src/Functional/Update/DependencyOrderingTest.php b/core/modules/system/tests/src/Functional/Update/DependencyOrderingTest.php
index 8cafaaddba..071514f521 100644
--- a/core/modules/system/tests/src/Functional/Update/DependencyOrderingTest.php
+++ b/core/modules/system/tests/src/Functional/Update/DependencyOrderingTest.php
@@ -36,7 +36,7 @@ public function testUpdateOrderingSingleModule() {
       'update_test_1_update_8003',
     ];
     $actual_updates = array_keys(update_resolve_dependencies($starting_updates));
-    $this->assertEqual($expected_updates, $actual_updates, 'Updates within a single module run in the correct order.');
+    $this->assertEquals($expected_updates, $actual_updates, 'Updates within a single module run in the correct order.');
   }
 
   /**
diff --git a/core/modules/system/tests/src/Functional/Update/EntityUpdateToRevisionableAndPublishableTest.php b/core/modules/system/tests/src/Functional/Update/EntityUpdateToRevisionableAndPublishableTest.php
index e72f9f1b55..1e335234cc 100644
--- a/core/modules/system/tests/src/Functional/Update/EntityUpdateToRevisionableAndPublishableTest.php
+++ b/core/modules/system/tests/src/Functional/Update/EntityUpdateToRevisionableAndPublishableTest.php
@@ -97,11 +97,11 @@ public function testConvertToRevisionableAndPublishable() {
     /** @var \Drupal\Core\Entity\EntityTypeInterface $entity_test_update */
     $entity_test_update = $this->lastInstalledSchemaRepository->getLastInstalledDefinition('entity_test_update');
     $this->assertTrue($entity_test_update->isRevisionable());
-    $this->assertEqual('status', $entity_test_update->getKey('published'));
+    $this->assertEquals('status', $entity_test_update->getKey('published'));
 
     /** @var \Drupal\Core\Entity\Sql\SqlEntityStorageInterface $storage */
     $storage = \Drupal::entityTypeManager()->getStorage('entity_test_update');
-    $this->assertEqual(count($storage->loadMultiple()), 102, 'All test entities were found.');
+    $this->assertEquals(count($storage->loadMultiple()), 102, 'All test entities were found.');
 
     // The conversion to revisionable is already tested by
     // \Drupal\system\Tests\Entity\Update\SqlContentEntityStorageSchemaConverterTest::testMakeRevisionable()
@@ -116,34 +116,34 @@ public function testConvertToRevisionableAndPublishable() {
     // should now be reflected in the entity's 'status' field.
     /** @var \Drupal\Core\Entity\ContentEntityInterface $revision */
     $revision = $storage->loadRevision(50);
-    $this->assertEqual(1, $revision->status->value);
+    $this->assertEquals(1, $revision->status->value);
 
     $translation = $revision->getTranslation('ro');
-    $this->assertEqual(1, $translation->status->value);
+    $this->assertEquals(1, $translation->status->value);
 
     // The test entity with ID 100 was created with Content Translation enabled
     // and it should have the same values as entity 50.
     $revision = $storage->loadRevision(100);
-    $this->assertEqual(1, $revision->status->value);
+    $this->assertEquals(1, $revision->status->value);
 
     $translation = $revision->getTranslation('ro');
-    $this->assertEqual(1, $translation->status->value);
+    $this->assertEquals(1, $translation->status->value);
 
     // The test entity 101 had 'content_translation_status' set to 0 for the
     // English (source) language.
     $revision = $storage->loadRevision(101);
-    $this->assertEqual(0, $revision->status->value);
+    $this->assertEquals(0, $revision->status->value);
 
     $translation = $revision->getTranslation('ro');
-    $this->assertEqual(1, $translation->status->value);
+    $this->assertEquals(1, $translation->status->value);
 
     // The test entity 102 had 'content_translation_status' set to 0 for the
     // Romanian language.
     $revision = $storage->loadRevision(102);
-    $this->assertEqual(1, $revision->status->value);
+    $this->assertEquals(1, $revision->status->value);
 
     $translation = $revision->getTranslation('ro');
-    $this->assertEqual(0, $translation->status->value);
+    $this->assertEquals(0, $translation->status->value);
   }
 
   /**
diff --git a/core/modules/system/tests/src/Functional/Update/FieldSchemaDataUninstallUpdateTest.php b/core/modules/system/tests/src/Functional/Update/FieldSchemaDataUninstallUpdateTest.php
index 782e3410f9..c6d5abbe58 100644
--- a/core/modules/system/tests/src/Functional/Update/FieldSchemaDataUninstallUpdateTest.php
+++ b/core/modules/system/tests/src/Functional/Update/FieldSchemaDataUninstallUpdateTest.php
@@ -55,7 +55,7 @@ protected function assertFieldSchemaData($found, $message) {
       ->execute()
       ->fetchAll();
 
-    return $this->assertEqual((bool) $items, $found, $message);
+    return $this->assertEquals((bool) $items, $found, $message);
   }
 
 }
diff --git a/core/modules/system/tests/src/Functional/Update/InstallProfileSystemInstall8300Test.php b/core/modules/system/tests/src/Functional/Update/InstallProfileSystemInstall8300Test.php
index 623f88047e..7b3f9fc5da 100644
--- a/core/modules/system/tests/src/Functional/Update/InstallProfileSystemInstall8300Test.php
+++ b/core/modules/system/tests/src/Functional/Update/InstallProfileSystemInstall8300Test.php
@@ -27,15 +27,15 @@ protected function setDatabaseDumpFiles() {
   public function testUpdate() {
     // Ensure the BC layers work and settings.php and configuration is in the
     // expected state before updating.
-    $this->assertEqual('standard', \Drupal::installProfile());
-    $this->assertEqual('standard', Settings::get('install_profile'), 'The install profile has not been written to settings.php.');
+    $this->assertEquals('standard', \Drupal::installProfile());
+    $this->assertEquals('standard', Settings::get('install_profile'), 'The install profile has not been written to settings.php.');
     $this->assertFalse($this->config('core.extension')->get('profile'), 'The install profile is not present in core.extension configuration.');
 
     $this->runUpdates();
     // Confirm that Drupal recognizes this distribution as the current profile.
-    $this->assertEqual('standard', \Drupal::installProfile());
-    $this->assertEqual('standard', Settings::get('install_profile'), 'The install profile has not been written to settings.php.');
-    $this->assertEqual('standard', $this->config('core.extension')->get('profile'), 'The install profile has been written to core.extension configuration.');
+    $this->assertEquals('standard', \Drupal::installProfile());
+    $this->assertEquals('standard', Settings::get('install_profile'), 'The install profile has not been written to settings.php.');
+    $this->assertEquals('standard', $this->config('core.extension')->get('profile'), 'The install profile has been written to core.extension configuration.');
   }
 
 }
diff --git a/core/modules/system/tests/src/Functional/Update/LocalActionsAndTasksConvertedIntoBlocksUpdateTest.php b/core/modules/system/tests/src/Functional/Update/LocalActionsAndTasksConvertedIntoBlocksUpdateTest.php
index a54bb6d1de..5def222f0f 100644
--- a/core/modules/system/tests/src/Functional/Update/LocalActionsAndTasksConvertedIntoBlocksUpdateTest.php
+++ b/core/modules/system/tests/src/Functional/Update/LocalActionsAndTasksConvertedIntoBlocksUpdateTest.php
@@ -64,7 +64,7 @@ public function testUpdateHookN() {
     // Ensures that blocks inside help region has been moved to content region.
     foreach ($help_blocks as $block) {
       $new_block = $block_storage->load($block->id());
-      $this->assertEqual($new_block->getRegion(), 'content');
+      $this->assertEquals($new_block->getRegion(), 'content');
     }
 
     // Local tasks are visible on the node page.
diff --git a/core/modules/system/tests/src/Functional/Update/RecalculatedDependencyTest.php b/core/modules/system/tests/src/Functional/Update/RecalculatedDependencyTest.php
index 6eb51a2a51..557f20075e 100644
--- a/core/modules/system/tests/src/Functional/Update/RecalculatedDependencyTest.php
+++ b/core/modules/system/tests/src/Functional/Update/RecalculatedDependencyTest.php
@@ -26,8 +26,8 @@ protected function setDatabaseDumpFiles() {
   public function testUpdate() {
     // Test the configuration pre update.
     $data = \Drupal::config('field.field.node.article.field_tags')->get();
-    $this->assertEqual(['entity_reference'], $data['dependencies']['module']);
-    $this->assertEqual([
+    $this->assertEquals(['entity_reference'], $data['dependencies']['module']);
+    $this->assertEquals([
       'field.storage.node.field_tags',
       'node.type.article',
     ], $data['dependencies']['config']);
@@ -36,7 +36,7 @@ public function testUpdate() {
     $this->assertFalse(isset($data['dependencies']['module']));
 
     $data = \Drupal::config('field.storage.node.field_image')->get();
-    $this->assertEqual(['node', 'image'], $data['dependencies']['module']);
+    $this->assertEquals(['node', 'image'], $data['dependencies']['module']);
 
     // Explicitly break an optional configuration dependencies to ensure it is
     // recalculated. Use active configuration storage directly so that no events
@@ -55,20 +55,20 @@ public function testUpdate() {
     // Test the configuration post update.
     $data = \Drupal::config('field.field.node.article.field_tags')->get();
     $this->assertFalse(isset($data['dependencies']['module']));
-    $this->assertEqual([
+    $this->assertEquals([
       'field.storage.node.field_tags',
       'node.type.article',
       'taxonomy.vocabulary.tags'
     ], $data['dependencies']['config']);
 
     $data = \Drupal::config('field.field.user.user.user_picture')->get();
-    $this->assertEqual(['image', 'user'], $data['dependencies']['module']);
+    $this->assertEquals(['image', 'user'], $data['dependencies']['module']);
 
     $data = \Drupal::config('field.storage.node.field_image')->get();
-    $this->assertEqual(['file', 'image', 'node'], $data['dependencies']['module']);
+    $this->assertEquals(['file', 'image', 'node'], $data['dependencies']['module']);
 
     $data = \Drupal::config('search.page.node_search')->get();
-    $this->assertEqual(['node'], $data['dependencies']['module']);
+    $this->assertEquals(['node'], $data['dependencies']['module']);
   }
 
 }
diff --git a/core/modules/system/tests/src/Functional/Update/UpdatePathRC1TestBaseFilledTest.php b/core/modules/system/tests/src/Functional/Update/UpdatePathRC1TestBaseFilledTest.php
index 7573fc4a92..f8dfb68904 100644
--- a/core/modules/system/tests/src/Functional/Update/UpdatePathRC1TestBaseFilledTest.php
+++ b/core/modules/system/tests/src/Functional/Update/UpdatePathRC1TestBaseFilledTest.php
@@ -44,9 +44,9 @@ public function testUpdatedSite() {
 
       // Make sure our English nodes still exist.
       $node = Node::load($id);
-      $this->assertEqual($node->language()->getId(), $langcode);
-      $this->assertEqual($node->getType(), $type);
-      $this->assertEqual($node->getTitle(), $title);
+      $this->assertEquals($node->language()->getId(), $langcode);
+      $this->assertEquals($node->getType(), $type);
+      $this->assertEquals($node->getTitle(), $title);
       // Assert that nodes are all published.
       $this->assertTrue($node->isPublished());
       $this->drupalGet('node/' . $id);
@@ -55,7 +55,7 @@ public function testUpdatedSite() {
 
     // Make sure the translated node still exists.
     $translation = Node::load(8)->getTranslation('es');
-    $this->assertEqual('Test title Spanish', $translation->getTitle());
+    $this->assertEquals('Test title Spanish', $translation->getTitle());
 
     // Make sure our alias still works.
     $this->drupalGet('test-article');
@@ -415,7 +415,7 @@ public function testUpdatedSite() {
     // dependencies.
     // @see system_post_update_fix_enforced_dependencies()
     $book_node_type = NodeType::load('book');
-    $this->assertEqual(['enforced' => ['module' => ['book']]], $book_node_type->get('dependencies'));
+    $this->assertEquals(['enforced' => ['module' => ['book']]], $book_node_type->get('dependencies'));
   }
 
   /**
diff --git a/core/modules/system/tests/src/Functional/Update/UpdatePathRC1TestBaseTest.php b/core/modules/system/tests/src/Functional/Update/UpdatePathRC1TestBaseTest.php
index 4077a07d2b..6f7a17ed4f 100644
--- a/core/modules/system/tests/src/Functional/Update/UpdatePathRC1TestBaseTest.php
+++ b/core/modules/system/tests/src/Functional/Update/UpdatePathRC1TestBaseTest.php
@@ -38,7 +38,7 @@ public function testDatabaseLoaded() {
       'system' => '8013',
     ];
     foreach ($hook_updates as $module => $schema) {
-      $this->assertEqual(drupal_get_installed_schema_version($module), $schema, new FormattableMarkup('Module @module schema is @schema', ['@module' => $module, '@schema' => $schema]));
+      $this->assertEquals(drupal_get_installed_schema_version($module), $schema, new FormattableMarkup('Module @module schema is @schema', ['@module' => $module, '@schema' => $schema]));
     }
 
     // Test post_update key value stores contains a list of the update functions
@@ -52,11 +52,11 @@ public function testDatabaseLoaded() {
       'views_post_update_update_cacheability_metadata',
     ];
     foreach ($expected_updates as $expected_update) {
-      $this->assertEqual($existing_updates[$expected_update], 1, new FormattableMarkup("@expected_update exists in 'existing_updates' key and only appears once.", ['@expected_update' => $expected_update]));
+      $this->assertEquals($existing_updates[$expected_update], 1, new FormattableMarkup("@expected_update exists in 'existing_updates' key and only appears once.", ['@expected_update' => $expected_update]));
     }
 
     $this->runUpdates();
-    $this->assertEqual(\Drupal::config('system.site')->get('name'), 'Site-Install');
+    $this->assertEquals(\Drupal::config('system.site')->get('name'), 'Site-Install');
     $this->drupalGet('<front>');
     $this->assertText('Site-Install');
     $extensions = \Drupal::service('config.storage')->read('core.extension');
diff --git a/core/modules/system/tests/src/Functional/Update/UpdatePathTestBaseFilledTest.php b/core/modules/system/tests/src/Functional/Update/UpdatePathTestBaseFilledTest.php
index 2ed58fbabc..58069b5a05 100644
--- a/core/modules/system/tests/src/Functional/Update/UpdatePathTestBaseFilledTest.php
+++ b/core/modules/system/tests/src/Functional/Update/UpdatePathTestBaseFilledTest.php
@@ -45,9 +45,9 @@ public function testUpdatedSite() {
 
       // Make sure our English nodes still exist.
       $node = Node::load($id);
-      $this->assertEqual($node->language()->getId(), $langcode);
-      $this->assertEqual($node->getType(), $type);
-      $this->assertEqual($node->getTitle(), $title);
+      $this->assertEquals($node->language()->getId(), $langcode);
+      $this->assertEquals($node->getType(), $type);
+      $this->assertEquals($node->getTitle(), $title);
       // Assert that nodes are all published.
       $this->assertTrue($node->isPublished());
       $this->drupalGet('node/' . $id);
@@ -56,7 +56,7 @@ public function testUpdatedSite() {
 
     // Make sure the translated node still exists.
     $translation = Node::load(8)->getTranslation('es');
-    $this->assertEqual('Test title Spanish', $translation->getTitle());
+    $this->assertEquals('Test title Spanish', $translation->getTitle());
 
     // Make sure our alias still works.
     $this->drupalGet('test-article');
@@ -416,7 +416,7 @@ public function testUpdatedSite() {
     // dependencies.
     // @see system_post_update_fix_enforced_dependencies()
     $book_node_type = NodeType::load('book');
-    $this->assertEqual(['enforced' => ['module' => ['book']]], $book_node_type->get('dependencies'));
+    $this->assertEquals(['enforced' => ['module' => ['book']]], $book_node_type->get('dependencies'));
   }
 
   /**
diff --git a/core/modules/system/tests/src/Functional/Update/UpdatePostUpdateFailingTest.php b/core/modules/system/tests/src/Functional/Update/UpdatePostUpdateFailingTest.php
index 03b5d7b0ec..2f0e3604c9 100644
--- a/core/modules/system/tests/src/Functional/Update/UpdatePostUpdateFailingTest.php
+++ b/core/modules/system/tests/src/Functional/Update/UpdatePostUpdateFailingTest.php
@@ -34,7 +34,7 @@ public function testPostUpdate() {
     $this->assertIdentical([], \Drupal::state()->get('post_update_test_execution', []));
 
     $key_value = \Drupal::keyValue('update__post_update');
-    $this->assertEqual([], $key_value->get('existing_updates', []));
+    $this->assertEquals([], $key_value->get('existing_updates', []));
   }
 
   /**
diff --git a/core/modules/system/tests/src/Functional/Update/UpdatePostUpdateTest.php b/core/modules/system/tests/src/Functional/Update/UpdatePostUpdateTest.php
index 1bba498d08..d0c70557cf 100644
--- a/core/modules/system/tests/src/Functional/Update/UpdatePostUpdateTest.php
+++ b/core/modules/system/tests/src/Functional/Update/UpdatePostUpdateTest.php
@@ -73,7 +73,7 @@ public function testPostUpdate() {
       'update_test_postupdate_post_update_test_batch',
     ];
     foreach ($expected_updates as $expected_update) {
-      $this->assertEqual($existing_updates[$expected_update], 1, new FormattableMarkup("@expected_update exists in 'existing_updates' key and only appears once.", ['@expected_update' => $expected_update]));
+      $this->assertEquals($existing_updates[$expected_update], 1, new FormattableMarkup("@expected_update exists in 'existing_updates' key and only appears once.", ['@expected_update' => $expected_update]));
     }
 
     $this->drupalGet('update.php/selection');
diff --git a/core/modules/system/tests/src/Functional/Update/UpdateSchemaTest.php b/core/modules/system/tests/src/Functional/Update/UpdateSchemaTest.php
index a42cbcb3c2..8fce665121 100644
--- a/core/modules/system/tests/src/Functional/Update/UpdateSchemaTest.php
+++ b/core/modules/system/tests/src/Functional/Update/UpdateSchemaTest.php
@@ -45,7 +45,7 @@ protected function setUp() {
    */
   public function testUpdateHooks() {
     // Verify that the 8000 schema is in place.
-    $this->assertEqual(drupal_get_installed_schema_version('update_test_schema'), 8000);
+    $this->assertEquals(drupal_get_installed_schema_version('update_test_schema'), 8000);
     $this->assertFalse(db_index_exists('update_test_schema_table', 'test'), 'Version 8000 of the update_test_schema module is installed.');
 
     // Increment the schema version.
@@ -60,7 +60,7 @@ public function testUpdateHooks() {
     $this->checkForMetaRefresh();
 
     // Ensure schema has changed.
-    $this->assertEqual(drupal_get_installed_schema_version('update_test_schema', TRUE), 8001);
+    $this->assertEquals(drupal_get_installed_schema_version('update_test_schema', TRUE), 8001);
     // Ensure the index was added for column a.
     $this->assertTrue(db_index_exists('update_test_schema_table', 'test'), 'Version 8001 of the update_test_schema module is installed.');
   }
diff --git a/core/modules/system/tests/src/Functional/Update/UpdateScriptTest.php b/core/modules/system/tests/src/Functional/Update/UpdateScriptTest.php
index 29d4d08e23..3faf66016b 100644
--- a/core/modules/system/tests/src/Functional/Update/UpdateScriptTest.php
+++ b/core/modules/system/tests/src/Functional/Update/UpdateScriptTest.php
@@ -155,7 +155,7 @@ public function testThemeSystem() {
     $this->drupalLogin($this->updateUser);
     $this->drupalGet($this->updateUrl, ['external' => TRUE]);
     $final_theme_data = $this->config('core.extension')->get('theme');
-    $this->assertEqual($original_theme_data, $final_theme_data, 'Visiting update.php does not alter the information about themes stored in the database.');
+    $this->assertEquals($original_theme_data, $final_theme_data, 'Visiting update.php does not alter the information about themes stored in the database.');
   }
 
   /**
@@ -192,16 +192,16 @@ public function testSuccessfulUpdateFunctionality() {
     $this->assertFalse($initial_maintenance_mode, 'Site is not in maintenance mode.');
     $this->runUpdates($initial_maintenance_mode);
     $final_maintenance_mode = $this->container->get('state')->get('system.maintenance_mode');
-    $this->assertEqual($final_maintenance_mode, $initial_maintenance_mode, 'Maintenance mode should not have changed after database updates.');
+    $this->assertEquals($final_maintenance_mode, $initial_maintenance_mode, 'Maintenance mode should not have changed after database updates.');
 
     // Reset the static cache to ensure we have the most current setting.
     $schema_version = drupal_get_installed_schema_version('update_script_test', TRUE);
-    $this->assertEqual($schema_version, 8001, 'update_script_test schema version is 8001 after updating.');
+    $this->assertEquals($schema_version, 8001, 'update_script_test schema version is 8001 after updating.');
 
     // Set the installed schema version to one less than the current update.
     drupal_set_installed_schema_version('update_script_test', $schema_version - 1);
     $schema_version = drupal_get_installed_schema_version('update_script_test', TRUE);
-    $this->assertEqual($schema_version, 8000, 'update_script_test schema version overridden to 8000.');
+    $this->assertEquals($schema_version, 8000, 'update_script_test schema version overridden to 8000.');
 
     // Click through update.php with 'access administration pages' and
     // 'access site reports' permissions.
@@ -231,7 +231,7 @@ public function testMaintenanceModeUpdateFunctionality() {
     $this->runUpdates($initial_maintenance_mode);
     $final_maintenance_mode = $this->container->get('state')
       ->get('system.maintenance_mode');
-    $this->assertEqual($final_maintenance_mode, $initial_maintenance_mode, 'Maintenance mode should not have changed after database updates.');
+    $this->assertEquals($final_maintenance_mode, $initial_maintenance_mode, 'Maintenance mode should not have changed after database updates.');
   }
 
   /**
@@ -255,12 +255,12 @@ public function testSuccessfulMultilingualUpdateFunctionality() {
 
     // Reset the static cache to ensure we have the most current setting.
     $schema_version = drupal_get_installed_schema_version('update_script_test', TRUE);
-    $this->assertEqual($schema_version, 8001, 'update_script_test schema version is 8001 after updating.');
+    $this->assertEquals($schema_version, 8001, 'update_script_test schema version is 8001 after updating.');
 
     // Set the installed schema version to one less than the current update.
     drupal_set_installed_schema_version('update_script_test', $schema_version - 1);
     $schema_version = drupal_get_installed_schema_version('update_script_test', TRUE);
-    $this->assertEqual($schema_version, 8000, 'update_script_test schema version overridden to 8000.');
+    $this->assertEquals($schema_version, 8000, 'update_script_test schema version overridden to 8000.');
 
     // Create admin user.
     $admin_user = $this->drupalCreateUser(['administer software updates', 'access administration pages', 'access site reports', 'access site in maintenance mode', 'administer site configuration']);
@@ -291,12 +291,12 @@ public function testSuccessfulMultilingualUpdateFunctionality() {
    */
   protected function runUpdates($maintenance_mode) {
     $schema_version = drupal_get_installed_schema_version('update_script_test');
-    $this->assertEqual($schema_version, 8001, 'update_script_test is initially installed with schema version 8001.');
+    $this->assertEquals($schema_version, 8001, 'update_script_test is initially installed with schema version 8001.');
 
     // Set the installed schema version to one less than the current update.
     drupal_set_installed_schema_version('update_script_test', $schema_version - 1);
     $schema_version = drupal_get_installed_schema_version('update_script_test', TRUE);
-    $this->assertEqual($schema_version, 8000, 'update_script_test schema version overridden to 8000.');
+    $this->assertEquals($schema_version, 8000, 'update_script_test schema version overridden to 8000.');
 
     // Click through update.php with 'administer software updates' permission.
     $this->drupalLogin($this->updateUser);
diff --git a/core/modules/system/tests/src/Functional/Update/UpdatesWith7xTest.php b/core/modules/system/tests/src/Functional/Update/UpdatesWith7xTest.php
index 2452264e37..6f78dd7f00 100644
--- a/core/modules/system/tests/src/Functional/Update/UpdatesWith7xTest.php
+++ b/core/modules/system/tests/src/Functional/Update/UpdatesWith7xTest.php
@@ -39,7 +39,7 @@ protected function setUp() {
   public function testWith7x() {
     // Ensure that the minimum schema version is 8000, despite 7200 update
     // hooks and a 7XXX hook_update_last_removed().
-    $this->assertEqual(drupal_get_installed_schema_version('update_test_with_7x'), 8000);
+    $this->assertEquals(drupal_get_installed_schema_version('update_test_with_7x'), 8000);
 
     // Try to manually set the schema version to 7110 and ensure that no
     // updates are allowed.
diff --git a/core/modules/system/tests/src/Kernel/Action/ActionTest.php b/core/modules/system/tests/src/Kernel/Action/ActionTest.php
index 6c381d7c80..96926f7709 100644
--- a/core/modules/system/tests/src/Kernel/Action/ActionTest.php
+++ b/core/modules/system/tests/src/Kernel/Action/ActionTest.php
@@ -61,14 +61,14 @@ public function testOperations() {
     $user_storage = $this->container->get('entity.manager')->getStorage('user');
     $account = $user_storage->create(['name' => $name, 'bundle' => 'user']);
     $loaded_accounts = $user_storage->loadMultiple();
-    $this->assertEqual(count($loaded_accounts), 0);
+    $this->assertEquals(count($loaded_accounts), 0);
 
     // Execute the 'save entity' action.
     $action->execute($account);
     $loaded_accounts = $user_storage->loadMultiple();
-    $this->assertEqual(count($loaded_accounts), 1);
+    $this->assertEquals(count($loaded_accounts), 1);
     $account = reset($loaded_accounts);
-    $this->assertEqual($name, $account->label());
+    $this->assertEquals($name, $account->label());
   }
 
   /**
diff --git a/core/modules/system/tests/src/Kernel/Common/PageRenderTest.php b/core/modules/system/tests/src/Kernel/Common/PageRenderTest.php
index fa16947344..9c18e6363c 100644
--- a/core/modules/system/tests/src/Kernel/Common/PageRenderTest.php
+++ b/core/modules/system/tests/src/Kernel/Common/PageRenderTest.php
@@ -47,8 +47,8 @@ public function assertPageRenderHookExceptions($module, $hook) {
     $html_renderer->invokePageAttachmentHooks($page);
 
     // Assert that hooks can set cache tags.
-    $this->assertEqual($page['#cache']['tags'], ['example']);
-    $this->assertEqual($page['#cache']['contexts'], ['user.permissions']);
+    $this->assertEquals($page['#cache']['tags'], ['example']);
+    $this->assertEquals($page['#cache']['contexts'], ['user.permissions']);
 
     // Assert an invalid hook implementation doesn't trigger an exception.
     \Drupal::state()->set($module . '.' . $hook . '.descendant_attached', TRUE);
@@ -60,7 +60,7 @@ public function assertPageRenderHookExceptions($module, $hook) {
     }
     catch (\LogicException $e) {
       $this->pass($assertion);
-      $this->assertEqual($e->getMessage(), 'Only #attached and #cache may be set in ' . $hook . '().');
+      $this->assertEquals($e->getMessage(), 'Only #attached and #cache may be set in ' . $hook . '().');
     }
     \Drupal::state()->set('bc_test.' . $hook . '.descendant_attached', FALSE);
 
@@ -74,7 +74,7 @@ public function assertPageRenderHookExceptions($module, $hook) {
     }
     catch (\LogicException $e) {
       $this->pass($assertion);
-      $this->assertEqual($e->getMessage(), 'Only #attached and #cache may be set in ' . $hook . '().');
+      $this->assertEquals($e->getMessage(), 'Only #attached and #cache may be set in ' . $hook . '().');
     }
     \Drupal::state()->set($module . '.' . $hook . '.render_array', FALSE);
   }
diff --git a/core/modules/system/tests/src/Kernel/Common/SystemListingTest.php b/core/modules/system/tests/src/Kernel/Common/SystemListingTest.php
index b0412b4336..a6949c03b3 100644
--- a/core/modules/system/tests/src/Kernel/Common/SystemListingTest.php
+++ b/core/modules/system/tests/src/Kernel/Common/SystemListingTest.php
@@ -44,7 +44,7 @@ public function testDirectoryPrecedence() {
     foreach ($expected_directories as $module => $directories) {
       $expected_directory = array_shift($directories);
       $expected_uri = "$expected_directory/$module/$module.info.yml";
-      $this->assertEqual($files[$module]->getPathname(), $expected_uri, format_string('Module @actual was found at @expected.', [
+      $this->assertEquals($files[$module]->getPathname(), $expected_uri, format_string('Module @actual was found at @expected.', [
         '@actual' => $files[$module]->getPathname(),
         '@expected' => $expected_uri,
       ]));
diff --git a/core/modules/system/tests/src/Kernel/Extension/ModuleHandlerTest.php b/core/modules/system/tests/src/Kernel/Extension/ModuleHandlerTest.php
index d7c2650353..b96e193af8 100644
--- a/core/modules/system/tests/src/Kernel/Extension/ModuleHandlerTest.php
+++ b/core/modules/system/tests/src/Kernel/Extension/ModuleHandlerTest.php
@@ -77,7 +77,7 @@ public function testModuleList() {
   protected function assertModuleList(array $expected_values, $condition) {
     $expected_values = array_values(array_unique($expected_values));
     $enabled_modules = array_keys($this->container->get('module_handler')->getModuleList());
-    $this->assertEqual($expected_values, $enabled_modules, format_string('@condition: extension handler returns correct results', ['@condition' => $condition]));
+    $this->assertEquals($expected_values, $enabled_modules, format_string('@condition: extension handler returns correct results', ['@condition' => $condition]));
   }
 
   /**
@@ -133,7 +133,7 @@ public function testDependencyResolution() {
 
     // Verify that the modules were enabled in the correct order.
     $module_order = \Drupal::state()->get('module_test.install_order') ?: [];
-    $this->assertEqual($module_order, ['help', 'config', 'color']);
+    $this->assertEquals($module_order, ['help', 'config', 'color']);
 
     // Uninstall all three modules explicitly, but in the incorrect order,
     // and make sure that ModuleInstaller::uninstall() uninstalled them in the
@@ -142,10 +142,10 @@ public function testDependencyResolution() {
     $this->assertTrue($result, 'ModuleInstaller::uninstall() returned TRUE.');
 
     foreach (['color', 'config', 'help'] as $module) {
-      $this->assertEqual(drupal_get_installed_schema_version($module), SCHEMA_UNINSTALLED, "$module module was uninstalled.");
+      $this->assertEquals(drupal_get_installed_schema_version($module), SCHEMA_UNINSTALLED, "$module module was uninstalled.");
     }
     $uninstalled_modules = \Drupal::state()->get('module_test.uninstall_order') ?: [];
-    $this->assertEqual($uninstalled_modules, ['color', 'config', 'help'], 'Modules were uninstalled in the correct order.');
+    $this->assertEquals($uninstalled_modules, ['color', 'config', 'help'], 'Modules were uninstalled in the correct order.');
 
     // Enable Color module again, which should enable both the Config module and
     // Help module. But, this time do it with Config module declaring a
@@ -193,7 +193,7 @@ public function testUninstallProfileDependency() {
     $result = $this->moduleInstaller()->uninstall([$dependency]);
     $this->assertTrue($result, 'ModuleInstaller::uninstall() returns TRUE.');
     $this->assertFalse($this->moduleHandler()->moduleExists($dependency));
-    $this->assertEqual(drupal_get_installed_schema_version($dependency), SCHEMA_UNINSTALLED, "$dependency module was uninstalled.");
+    $this->assertEquals(drupal_get_installed_schema_version($dependency), SCHEMA_UNINSTALLED, "$dependency module was uninstalled.");
 
     // Verify that the installation profile itself was not uninstalled.
     $uninstalled_modules = \Drupal::state()->get('module_test.uninstall_order') ?: [];
@@ -252,7 +252,7 @@ public function testUninstallContentDependency() {
 
     $result = $this->moduleInstaller()->uninstall(['help']);
     $this->assertTrue($result, 'ModuleInstaller::uninstall() returns TRUE.');
-    $this->assertEqual(drupal_get_installed_schema_version('entity_test'), SCHEMA_UNINSTALLED, "entity_test module was uninstalled.");
+    $this->assertEquals(drupal_get_installed_schema_version('entity_test'), SCHEMA_UNINSTALLED, "entity_test module was uninstalled.");
   }
 
   /**
diff --git a/core/modules/system/tests/src/Kernel/Form/ProgrammaticTest.php b/core/modules/system/tests/src/Kernel/Form/ProgrammaticTest.php
index 03d22afe57..fe6776af64 100644
--- a/core/modules/system/tests/src/Kernel/Form/ProgrammaticTest.php
+++ b/core/modules/system/tests/src/Kernel/Form/ProgrammaticTest.php
@@ -84,7 +84,7 @@ protected function doSubmitForm($values, $valid_input) {
       // Fetching the values that were set in the submission handler.
       $stored_values = $form_state->get('programmatic_form_submit');
       foreach ($values as $key => $value) {
-        $this->assertEqual($stored_values[$key], $value, format_string('Submission handler correctly executed: %stored_key is %stored_value', ['%stored_key' => $key, '%stored_value' => print_r($value, TRUE)]));
+        $this->assertEquals($stored_values[$key], $value, format_string('Submission handler correctly executed: %stored_key is %stored_value', ['%stored_key' => $key, '%stored_value' => print_r($value, TRUE)]));
       }
     }
   }
@@ -103,7 +103,7 @@ public function testProgrammaticAccessBypass() {
     // field is accessible and can be set.
     \Drupal::formBuilder()->submitForm('\Drupal\form_test\Form\FormTestProgrammaticForm', $form_state);
     $values = $form_state->get('programmatic_form_submit');
-    $this->assertEqual($values['field_restricted'], 'dummy value', 'The value for the restricted field is stored correctly.');
+    $this->assertEquals($values['field_restricted'], 'dummy value', 'The value for the restricted field is stored correctly.');
 
     // Programmatically submit the form with a value for the restricted field
     // with programmed_bypass_access_check set to FALSE. Since access
diff --git a/core/modules/system/tests/src/Kernel/System/CronQueueTest.php b/core/modules/system/tests/src/Kernel/System/CronQueueTest.php
index 649a2c7526..2f8c787728 100644
--- a/core/modules/system/tests/src/Kernel/System/CronQueueTest.php
+++ b/core/modules/system/tests/src/Kernel/System/CronQueueTest.php
@@ -60,10 +60,10 @@ public function testExceptions() {
     // Run cron; the worker for this queue should throw an exception and handle
     // it.
     $this->cron->run();
-    $this->assertEqual(\Drupal::state()->get('cron_queue_test_exception'), 1);
+    $this->assertEquals(\Drupal::state()->get('cron_queue_test_exception'), 1);
 
     // The item should be left in the queue.
-    $this->assertEqual($queue->numberOfItems(), 1, 'Failing item still in the queue after throwing an exception.');
+    $this->assertEquals($queue->numberOfItems(), 1, 'Failing item still in the queue after throwing an exception.');
 
     // Expire the queue item manually. system_cron() relies in REQUEST_TIME to
     // find queue items whose expire field needs to be reset to 0. This is a
@@ -75,8 +75,8 @@ public function testExceptions() {
       ->fields(['expire' => REQUEST_TIME - 1])
       ->execute();
     $this->cron->run();
-    $this->assertEqual(\Drupal::state()->get('cron_queue_test_exception'), 2);
-    $this->assertEqual($queue->numberOfItems(), 0, 'Item was processed and removed from the queue.');
+    $this->assertEquals(\Drupal::state()->get('cron_queue_test_exception'), 2);
+    $this->assertEquals($queue->numberOfItems(), 0, 'Item was processed and removed from the queue.');
 
     // Get the queue to test the specific SuspendQueueException.
     $queue = $this->container->get('queue')->get('cron_queue_test_broken_queue');
@@ -91,21 +91,21 @@ public function testExceptions() {
     $this->cron->run();
 
     // Only one item should have been processed.
-    $this->assertEqual($queue->numberOfItems(), 2, 'Failing queue stopped processing at the failing item.');
+    $this->assertEquals($queue->numberOfItems(), 2, 'Failing queue stopped processing at the failing item.');
 
     // Check the items remaining in the queue. The item that throws the
     // exception gets released by cron, so we can claim it again to check it.
     $item = $queue->claimItem();
-    $this->assertEqual($item->data, 'crash', 'Failing item remains in the queue.');
+    $this->assertEquals($item->data, 'crash', 'Failing item remains in the queue.');
     $item = $queue->claimItem();
-    $this->assertEqual($item->data, 'ignored', 'Item beyond the failing item remains in the queue.');
+    $this->assertEquals($item->data, 'ignored', 'Item beyond the failing item remains in the queue.');
 
     // Test the requeueing functionality.
     $queue = $this->container->get('queue')->get('cron_queue_test_requeue_exception');
     $queue->createItem([]);
     $this->cron->run();
 
-    $this->assertEqual(\Drupal::state()->get('cron_queue_test_requeue_exception'), 2);
+    $this->assertEquals(\Drupal::state()->get('cron_queue_test_requeue_exception'), 2);
     $this->assertFalse($queue->numberOfItems());
   }
 
diff --git a/core/modules/system/tests/src/Kernel/Token/TokenReplaceKernelTest.php b/core/modules/system/tests/src/Kernel/Token/TokenReplaceKernelTest.php
index 9e878f5112..bc168a27ca 100644
--- a/core/modules/system/tests/src/Kernel/Token/TokenReplaceKernelTest.php
+++ b/core/modules/system/tests/src/Kernel/Token/TokenReplaceKernelTest.php
@@ -51,7 +51,7 @@ public function testSystemTokenRecognition() {
     }
 
     // Test token replacement when the string contains no tokens.
-    $this->assertEqual($this->tokenService->replace('No tokens here.'), 'No tokens here.');
+    $this->assertEquals($this->tokenService->replace('No tokens here.'), 'No tokens here.');
   }
 
   /**
@@ -68,12 +68,12 @@ public function testClear() {
     // Replace with the clear parameter, only the valid token should remain.
     $target = Html::escape($this->config('system.site')->get('name'));
     $result = $this->tokenService->replace($source, [], ['langcode' => $this->interfaceLanguage->getId(), 'clear' => TRUE]);
-    $this->assertEqual($target, $result, 'Valid tokens replaced while invalid tokens ignored.');
+    $this->assertEquals($target, $result, 'Valid tokens replaced while invalid tokens ignored.');
 
     $target .= '[user:name]';
     $target .= '[bogus:token]';
     $result = $this->tokenService->replace($source, [], ['langcode' => $this->interfaceLanguage->getId()]);
-    $this->assertEqual($target, $result, 'Valid tokens replaced while invalid tokens ignored.');
+    $this->assertEquals($target, $result, 'Valid tokens replaced while invalid tokens ignored.');
   }
 
   /**
@@ -122,8 +122,8 @@ public function testSystemSiteTokenReplacement() {
     foreach ($tests as $input => $expected) {
       $bubbleable_metadata = new BubbleableMetadata();
       $output = $this->tokenService->replace($input, [], ['langcode' => $this->interfaceLanguage->getId()], $bubbleable_metadata);
-      $this->assertEqual($output, $expected, new FormattableMarkup('System site information token %token replaced.', ['%token' => $input]));
-      $this->assertEqual($bubbleable_metadata, $metadata_tests[$input]);
+      $this->assertEquals($output, $expected, new FormattableMarkup('System site information token %token replaced.', ['%token' => $input]));
+      $this->assertEquals($bubbleable_metadata, $metadata_tests[$input]);
     }
   }
 
@@ -149,7 +149,7 @@ public function testSystemDateTokenReplacement() {
 
     foreach ($tests as $input => $expected) {
       $output = $this->tokenService->replace($input, ['date' => $date], ['langcode' => $this->interfaceLanguage->getId()]);
-      $this->assertEqual($output, $expected, format_string('Date token %token replaced.', ['%token' => $input]));
+      $this->assertEquals($output, $expected, format_string('Date token %token replaced.', ['%token' => $input]));
     }
   }
 
diff --git a/core/modules/taxonomy/src/Tests/TaxonomyTermIndentationTest.php b/core/modules/taxonomy/src/Tests/TaxonomyTermIndentationTest.php
index 599b6fb2c7..4f30ec6699 100644
--- a/core/modules/taxonomy/src/Tests/TaxonomyTermIndentationTest.php
+++ b/core/modules/taxonomy/src/Tests/TaxonomyTermIndentationTest.php
@@ -55,7 +55,7 @@ public function testTermIndentation() {
 
     // Check explicitly that term 2's parent is term 1.
     $parents = $taxonomy_storage->loadParents($term2->id());
-    $this->assertEqual(key($parents), 1, 'Term 1 is the term 2\'s parent');
+    $this->assertEquals(key($parents), 1, 'Term 1 is the term 2\'s parent');
 
     // Move the second term back out to the root level.
     $edit = [
diff --git a/core/modules/taxonomy/src/Tests/TermAutocompleteTest.php b/core/modules/taxonomy/src/Tests/TermAutocompleteTest.php
index 7ff519df94..2ac816cc28 100644
--- a/core/modules/taxonomy/src/Tests/TermAutocompleteTest.php
+++ b/core/modules/taxonomy/src/Tests/TermAutocompleteTest.php
@@ -149,14 +149,14 @@ public function testAutocompleteCountResults() {
       $this->autocompleteUrl,
       ['query' => ['q' => 'aaa 10']]
     );
-    $this->assertEqual(1, count($data), 'Autocomplete returned 1 result');
+    $this->assertEquals(1, count($data), 'Autocomplete returned 1 result');
 
     // Test the correct number of matches when multiple are partial matches.
     $data = $this->drupalGetJSON(
       $this->autocompleteUrl,
       ['query' => ['q' => 'aaa 1']]
     );
-    $this->assertEqual(3, count($data), 'Autocomplete returned 3 results');
+    $this->assertEquals(3, count($data), 'Autocomplete returned 3 results');
 
     // Tests that only 10 results are returned, even if there are more than 10
     // matches.
@@ -164,7 +164,7 @@ public function testAutocompleteCountResults() {
       $this->autocompleteUrl,
       ['query' => ['q' => 'aaa']]
     );
-    $this->assertEqual(10, count($data), 'Autocomplete returned only 10 results (for over 10 matches)');
+    $this->assertEquals(10, count($data), 'Autocomplete returned only 10 results (for over 10 matches)');
   }
 
   /**
diff --git a/core/modules/taxonomy/src/Tests/TermTest.php b/core/modules/taxonomy/src/Tests/TermTest.php
index 42f92b1b4b..ba47854dd2 100644
--- a/core/modules/taxonomy/src/Tests/TermTest.php
+++ b/core/modules/taxonomy/src/Tests/TermTest.php
@@ -86,7 +86,7 @@ public function testTaxonomyTermHierarchy() {
 
     // Check that hierarchy is flat.
     $vocabulary = Vocabulary::load($this->vocabulary->id());
-    $this->assertEqual(0, $vocabulary->getHierarchy(), 'Vocabulary is flat.');
+    $this->assertEquals(0, $vocabulary->getHierarchy(), 'Vocabulary is flat.');
 
     // Edit $term2, setting $term1 as parent.
     $edit = [];
@@ -362,7 +362,7 @@ public function testTermInterface() {
     $value = $this->randomMachineName();
     $term->setDescription($value);
     $term->save();
-    $this->assertEqual($term->description->processed, "<p>$value</p>\n");
+    $this->assertEquals($term->description->processed, "<p>$value</p>\n");
 
     // Check that the term feed page is working.
     $this->drupalGet('taxonomy/term/' . $term->id() . '/feed');
@@ -416,9 +416,9 @@ public function testTermReorder() {
 
     $taxonomy_storage->resetCache();
     $terms = $taxonomy_storage->loadTree($this->vocabulary->id());
-    $this->assertEqual($terms[0]->tid, $term2->id(), 'Term 2 was moved above term 1.');
-    $this->assertEqual($terms[1]->parents, [$term2->id()], 'Term 3 was made a child of term 2.');
-    $this->assertEqual($terms[2]->tid, $term1->id(), 'Term 1 was moved below term 2.');
+    $this->assertEquals($terms[0]->tid, $term2->id(), 'Term 2 was moved above term 1.');
+    $this->assertEquals($terms[1]->parents, [$term2->id()], 'Term 3 was made a child of term 2.');
+    $this->assertEquals($terms[2]->tid, $term1->id(), 'Term 1 was moved below term 2.');
 
     $this->drupalPostForm('admin/structure/taxonomy/manage/' . $this->vocabulary->id() . '/overview', [], t('Reset to alphabetical'));
     // Submit confirmation form.
@@ -428,10 +428,10 @@ public function testTermReorder() {
 
     $taxonomy_storage->resetCache();
     $terms = $taxonomy_storage->loadTree($this->vocabulary->id(), 0, NULL, TRUE);
-    $this->assertEqual($terms[0]->id(), $term1->id(), 'Term 1 was moved to back above term 2.');
-    $this->assertEqual($terms[1]->id(), $term2->id(), 'Term 2 was moved to back below term 1.');
-    $this->assertEqual($terms[2]->id(), $term3->id(), 'Term 3 is still below term 2.');
-    $this->assertEqual($terms[2]->parents, [$term2->id()], 'Term 3 is still a child of term 2.');
+    $this->assertEquals($terms[0]->id(), $term1->id(), 'Term 1 was moved to back above term 2.');
+    $this->assertEquals($terms[1]->id(), $term2->id(), 'Term 2 was moved to back below term 1.');
+    $this->assertEquals($terms[2]->id(), $term3->id(), 'Term 3 is still below term 2.');
+    $this->assertEquals($terms[2]->parents, [$term2->id()], 'Term 3 is still a child of term 2.');
   }
 
   /**
@@ -454,13 +454,13 @@ public function testTermMultipleParentsInterface() {
     $terms = taxonomy_term_load_multiple_by_name($edit['name[0][value]']);
     $term = reset($terms);
     $this->assertNotNull($term, 'Term found in database.');
-    $this->assertEqual($edit['name[0][value]'], $term->getName(), 'Term name was successfully saved.');
-    $this->assertEqual($edit['description[0][value]'], $term->getDescription(), 'Term description was successfully saved.');
+    $this->assertEquals($edit['name[0][value]'], $term->getName(), 'Term name was successfully saved.');
+    $this->assertEquals($edit['description[0][value]'], $term->getDescription(), 'Term description was successfully saved.');
     // Check that the parent tid is still there. The other parent (<root>) is
     // not added by \Drupal\taxonomy\TermStorageInterface::loadParents().
     $parents = $this->container->get('entity.manager')->getStorage('taxonomy_term')->loadParents($term->id());
     $parent = reset($parents);
-    $this->assertEqual($edit['parent[]'][1], $parent->id(), 'Term parents were successfully saved.');
+    $this->assertEquals($edit['parent[]'][1], $parent->id(), 'Term parents were successfully saved.');
   }
 
   /**
@@ -503,11 +503,11 @@ public function testTaxonomyGetTermByName() {
 
     // Load multiple terms with the same name.
     $terms = taxonomy_term_load_multiple_by_name($term->getName());
-    $this->assertEqual(count($terms), 2, 'Two terms loaded with the same name.');
+    $this->assertEquals(count($terms), 2, 'Two terms loaded with the same name.');
 
     // Load single term when restricted to one vocabulary.
     $terms = taxonomy_term_load_multiple_by_name($term->getName(), $this->vocabulary->id());
-    $this->assertEqual(count($terms), 1, 'One term loaded when restricted by vocabulary.');
+    $this->assertEquals(count($terms), 1, 'One term loaded when restricted by vocabulary.');
     $this->assertTrue(isset($terms[$term->id()]), 'Term loaded using exact name and vocabulary machine name.');
 
     // Create a new term with another name.
@@ -520,7 +520,7 @@ public function testTaxonomyGetTermByName() {
 
     // Try to load terms filtering by a non-existing vocabulary.
     $terms = taxonomy_term_load_multiple_by_name($term2->getName(), 'non_existing_vocabulary');
-    $this->assertEqual(count($terms), 0, 'No terms loaded when restricted by a non-existing vocabulary.');
+    $this->assertEquals(count($terms), 0, 'No terms loaded when restricted by a non-existing vocabulary.');
   }
 
   /**
diff --git a/core/modules/taxonomy/tests/src/Functional/EfqTest.php b/core/modules/taxonomy/tests/src/Functional/EfqTest.php
index e78d9ec9b1..646533c188 100644
--- a/core/modules/taxonomy/tests/src/Functional/EfqTest.php
+++ b/core/modules/taxonomy/tests/src/Functional/EfqTest.php
@@ -33,7 +33,7 @@ public function testTaxonomyEfq() {
     }
     $result = \Drupal::entityQuery('taxonomy_term')->execute();
     sort($result);
-    $this->assertEqual(array_keys($terms), $result, 'Taxonomy terms were retrieved by entity query.');
+    $this->assertEquals(array_keys($terms), $result, 'Taxonomy terms were retrieved by entity query.');
     $tid = reset($result);
     $ids = (object) [
       'entity_type' => 'taxonomy_term',
@@ -41,7 +41,7 @@ public function testTaxonomyEfq() {
       'bundle' => $this->vocabulary->id(),
     ];
     $term = _field_create_entity_from_ids($ids);
-    $this->assertEqual($term->id(), $tid, 'Taxonomy term can be created based on the IDs.');
+    $this->assertEquals($term->id(), $tid, 'Taxonomy term can be created based on the IDs.');
 
     // Create a second vocabulary and five more terms.
     $vocabulary2 = $this->createVocabulary();
@@ -55,7 +55,7 @@ public function testTaxonomyEfq() {
       ->condition('vid', $vocabulary2->id())
       ->execute();
     sort($result);
-    $this->assertEqual(array_keys($terms2), $result, format_string('Taxonomy terms from the %name vocabulary were retrieved by entity query.', ['%name' => $vocabulary2->label()]));
+    $this->assertEquals(array_keys($terms2), $result, format_string('Taxonomy terms from the %name vocabulary were retrieved by entity query.', ['%name' => $vocabulary2->label()]));
     $tid = reset($result);
     $ids = (object) [
       'entity_type' => 'taxonomy_term',
@@ -63,7 +63,7 @@ public function testTaxonomyEfq() {
       'bundle' => $vocabulary2->id(),
     ];
     $term = _field_create_entity_from_ids($ids);
-    $this->assertEqual($term->id(), $tid, 'Taxonomy term can be created based on the IDs.');
+    $this->assertEquals($term->id(), $tid, 'Taxonomy term can be created based on the IDs.');
   }
 
 }
diff --git a/core/modules/taxonomy/tests/src/Functional/LegacyTest.php b/core/modules/taxonomy/tests/src/Functional/LegacyTest.php
index 667ed5542f..6b5a3fd8c9 100644
--- a/core/modules/taxonomy/tests/src/Functional/LegacyTest.php
+++ b/core/modules/taxonomy/tests/src/Functional/LegacyTest.php
@@ -63,7 +63,7 @@ public function testTaxonomyLegacyNode() {
     $this->drupalPostForm('node/add/article', $edit, t('Save'));
     // Checks that the node has been saved.
     $node = $this->drupalGetNodeByTitle($edit['title[0][value]']);
-    $this->assertEqual($node->getCreatedTime(), $date->getTimestamp(), 'Legacy node was saved with the right date.');
+    $this->assertEquals($node->getCreatedTime(), $date->getTimestamp(), 'Legacy node was saved with the right date.');
   }
 
 }
diff --git a/core/modules/taxonomy/tests/src/Functional/LoadMultipleTest.php b/core/modules/taxonomy/tests/src/Functional/LoadMultipleTest.php
index 186031cceb..a779a1f47b 100644
--- a/core/modules/taxonomy/tests/src/Functional/LoadMultipleTest.php
+++ b/core/modules/taxonomy/tests/src/Functional/LoadMultipleTest.php
@@ -33,12 +33,12 @@ public function testTaxonomyTermMultipleLoad() {
     // Load the terms from the vocabulary.
     $terms = entity_load_multiple_by_properties('taxonomy_term', ['vid' => $vocabulary->id()]);
     $count = count($terms);
-    $this->assertEqual($count, 5, format_string('Correct number of terms were loaded. @count terms.', ['@count' => $count]));
+    $this->assertEquals($count, 5, format_string('Correct number of terms were loaded. @count terms.', ['@count' => $count]));
 
     // Load the same terms again by tid.
     $terms2 = Term::loadMultiple(array_keys($terms));
-    $this->assertEqual($count, count($terms2), 'Five terms were loaded by tid.');
-    $this->assertEqual($terms, $terms2, 'Both arrays contain the same terms.');
+    $this->assertEquals($count, count($terms2), 'Five terms were loaded by tid.');
+    $this->assertEquals($terms, $terms2, 'Both arrays contain the same terms.');
 
     // Remove one term from the array, then delete it.
     $deleted = array_shift($terms2);
@@ -48,15 +48,15 @@ public function testTaxonomyTermMultipleLoad() {
 
     // Load terms from the vocabulary by vid.
     $terms3 = entity_load_multiple_by_properties('taxonomy_term', ['vid' => $vocabulary->id()]);
-    $this->assertEqual(count($terms3), 4, 'Correct number of terms were loaded.');
+    $this->assertEquals(count($terms3), 4, 'Correct number of terms were loaded.');
     $this->assertFalse(isset($terms3[$deleted->id()]));
 
     // Create a single term and load it by name.
     $term = $this->createTerm($vocabulary);
     $loaded_terms = entity_load_multiple_by_properties('taxonomy_term', ['name' => $term->getName()]);
-    $this->assertEqual(count($loaded_terms), 1, 'One term was loaded.');
+    $this->assertEquals(count($loaded_terms), 1, 'One term was loaded.');
     $loaded_term = reset($loaded_terms);
-    $this->assertEqual($term->id(), $loaded_term->id(), 'Term loaded by name successfully.');
+    $this->assertEquals($term->id(), $loaded_term->id(), 'Term loaded by name successfully.');
   }
 
 }
diff --git a/core/modules/taxonomy/tests/src/Functional/TaxonomyQueryAlterTest.php b/core/modules/taxonomy/tests/src/Functional/TaxonomyQueryAlterTest.php
index 85310e9aa9..20dbf7138c 100644
--- a/core/modules/taxonomy/tests/src/Functional/TaxonomyQueryAlterTest.php
+++ b/core/modules/taxonomy/tests/src/Functional/TaxonomyQueryAlterTest.php
@@ -39,22 +39,22 @@ public function testTaxonomyQueryAlter() {
 
     $this->setupQueryTagTestHooks();
     $loaded_term = $term_storage->load($terms[0]->id());
-    $this->assertEqual($loaded_term->id(), $terms[0]->id(), 'First term was loaded');
+    $this->assertEquals($loaded_term->id(), $terms[0]->id(), 'First term was loaded');
     $this->assertQueryTagTestResult(1, 0, 'TermStorage::load()');
 
     $this->setupQueryTagTestHooks();
     $loaded_terms = $term_storage->loadTree($vocabulary->id());
-    $this->assertEqual(count($loaded_terms), count($terms), 'All terms were loaded');
+    $this->assertEquals(count($loaded_terms), count($terms), 'All terms were loaded');
     $this->assertQueryTagTestResult(1, 1, 'TermStorage::loadTree()');
 
     $this->setupQueryTagTestHooks();
     $loaded_terms = $term_storage->loadParents($terms[2]->id());
-    $this->assertEqual(count($loaded_terms), 1, 'All parent terms were loaded');
+    $this->assertEquals(count($loaded_terms), 1, 'All parent terms were loaded');
     $this->assertQueryTagTestResult(2, 1, 'TermStorage::loadParents()');
 
     $this->setupQueryTagTestHooks();
     $loaded_terms = $term_storage->loadChildren($terms[1]->id());
-    $this->assertEqual(count($loaded_terms), 1, 'All child terms were loaded');
+    $this->assertEquals(count($loaded_terms), 1, 'All child terms were loaded');
     $this->assertQueryTagTestResult(2, 1, 'TermStorage::loadChildren()');
 
     $this->setupQueryTagTestHooks();
@@ -62,7 +62,7 @@ public function testTaxonomyQueryAlter() {
     $query->addField('t', 'tid');
     $query->addTag('taxonomy_term_access');
     $tids = $query->execute()->fetchCol();
-    $this->assertEqual(count($tids), count($terms), 'All term IDs were retrieved');
+    $this->assertEquals(count($tids), count($terms), 'All term IDs were retrieved');
     $this->assertQueryTagTestResult(1, 1, 'custom db_select() with taxonomy_term_access tag (preferred)');
 
     $this->setupQueryTagTestHooks();
@@ -70,21 +70,21 @@ public function testTaxonomyQueryAlter() {
     $query->addField('t', 'tid');
     $query->addTag('term_access');
     $tids = $query->execute()->fetchCol();
-    $this->assertEqual(count($tids), count($terms), 'All term IDs were retrieved');
+    $this->assertEquals(count($tids), count($terms), 'All term IDs were retrieved');
     $this->assertQueryTagTestResult(1, 1, 'custom db_select() with term_access tag (deprecated)');
 
     $this->setupQueryTagTestHooks();
     $query = \Drupal::entityQuery('taxonomy_term');
     $query->addTag('taxonomy_term_access');
     $result = $query->execute();
-    $this->assertEqual(count($result), count($terms), 'All term IDs were retrieved');
+    $this->assertEquals(count($result), count($terms), 'All term IDs were retrieved');
     $this->assertQueryTagTestResult(1, 1, 'custom EntityFieldQuery with taxonomy_term_access tag (preferred)');
 
     $this->setupQueryTagTestHooks();
     $query = \Drupal::entityQuery('taxonomy_term');
     $query->addTag('term_access');
     $result = $query->execute();
-    $this->assertEqual(count($result), count($terms), 'All term IDs were retrieved');
+    $this->assertEquals(count($result), count($terms), 'All term IDs were retrieved');
     $this->assertQueryTagTestResult(1, 1, 'custom EntityFieldQuery with term_access tag (deprecated)');
   }
 
diff --git a/core/modules/taxonomy/tests/src/Functional/TermIndexTest.php b/core/modules/taxonomy/tests/src/Functional/TermIndexTest.php
index d4fe8f225b..c320cb3861 100644
--- a/core/modules/taxonomy/tests/src/Functional/TermIndexTest.php
+++ b/core/modules/taxonomy/tests/src/Functional/TermIndexTest.php
@@ -107,7 +107,7 @@ public function testTaxonomyIndex() {
       ':nid' => $node->id(),
       ':tid' => $term_1->id(),
     ])->fetchField();
-    $this->assertEqual(1, $index_count, 'Term 1 is indexed once.');
+    $this->assertEquals(1, $index_count, 'Term 1 is indexed once.');
 
     // Update the article to change one term.
     $edit["{$this->fieldName1}[]"] = $term_2->id();
@@ -118,12 +118,12 @@ public function testTaxonomyIndex() {
       ':nid' => $node->id(),
       ':tid' => $term_1->id(),
     ])->fetchField();
-    $this->assertEqual(1, $index_count, 'Term 1 is indexed.');
+    $this->assertEquals(1, $index_count, 'Term 1 is indexed.');
     $index_count = db_query('SELECT COUNT(*) FROM {taxonomy_index} WHERE nid = :nid AND tid = :tid', [
       ':nid' => $node->id(),
       ':tid' => $term_2->id(),
     ])->fetchField();
-    $this->assertEqual(1, $index_count, 'Term 2 is indexed.');
+    $this->assertEquals(1, $index_count, 'Term 2 is indexed.');
 
     // Update the article to change another term.
     $edit["{$this->fieldName2}[]"] = $term_2->id();
@@ -134,12 +134,12 @@ public function testTaxonomyIndex() {
       ':nid' => $node->id(),
       ':tid' => $term_1->id(),
     ])->fetchField();
-    $this->assertEqual(0, $index_count, 'Term 1 is not indexed.');
+    $this->assertEquals(0, $index_count, 'Term 1 is not indexed.');
     $index_count = db_query('SELECT COUNT(*) FROM {taxonomy_index} WHERE nid = :nid AND tid = :tid', [
       ':nid' => $node->id(),
       ':tid' => $term_2->id(),
     ])->fetchField();
-    $this->assertEqual(1, $index_count, 'Term 2 is indexed once.');
+    $this->assertEquals(1, $index_count, 'Term 2 is indexed once.');
 
     // Redo the above tests without interface.
     $node_storage->resetCache([$node->id()]);
@@ -154,12 +154,12 @@ public function testTaxonomyIndex() {
       ':nid' => $node->id(),
       ':tid' => $term_1->id(),
     ])->fetchField();
-    $this->assertEqual(0, $index_count, 'Term 1 is not indexed.');
+    $this->assertEquals(0, $index_count, 'Term 1 is not indexed.');
     $index_count = db_query('SELECT COUNT(*) FROM {taxonomy_index} WHERE nid = :nid AND tid = :tid', [
       ':nid' => $node->id(),
       ':tid' => $term_2->id(),
     ])->fetchField();
-    $this->assertEqual(1, $index_count, 'Term 2 is indexed once.');
+    $this->assertEquals(1, $index_count, 'Term 2 is indexed once.');
 
     // Update the article to change one term.
     $node->{$this->fieldName1} = [['target_id' => $term_1->id()]];
@@ -170,12 +170,12 @@ public function testTaxonomyIndex() {
       ':nid' => $node->id(),
       ':tid' => $term_1->id(),
     ])->fetchField();
-    $this->assertEqual(1, $index_count, 'Term 1 is indexed.');
+    $this->assertEquals(1, $index_count, 'Term 1 is indexed.');
     $index_count = db_query('SELECT COUNT(*) FROM {taxonomy_index} WHERE nid = :nid AND tid = :tid', [
       ':nid' => $node->id(),
       ':tid' => $term_2->id(),
     ])->fetchField();
-    $this->assertEqual(1, $index_count, 'Term 2 is indexed.');
+    $this->assertEquals(1, $index_count, 'Term 2 is indexed.');
 
     // Update the article to change another term.
     $node->{$this->fieldName2} = [['target_id' => $term_1->id()]];
@@ -186,12 +186,12 @@ public function testTaxonomyIndex() {
       ':nid' => $node->id(),
       ':tid' => $term_1->id(),
     ])->fetchField();
-    $this->assertEqual(1, $index_count, 'Term 1 is indexed once.');
+    $this->assertEquals(1, $index_count, 'Term 1 is indexed once.');
     $index_count = db_query('SELECT COUNT(*) FROM {taxonomy_index} WHERE nid = :nid AND tid = :tid', [
       ':nid' => $node->id(),
       ':tid' => $term_2->id(),
     ])->fetchField();
-    $this->assertEqual(0, $index_count, 'Term 2 is not indexed.');
+    $this->assertEquals(0, $index_count, 'Term 2 is not indexed.');
   }
 
   /**
diff --git a/core/modules/taxonomy/tests/src/Functional/TermLanguageTest.php b/core/modules/taxonomy/tests/src/Functional/TermLanguageTest.php
index f60e77e534..dac65a0283 100644
--- a/core/modules/taxonomy/tests/src/Functional/TermLanguageTest.php
+++ b/core/modules/taxonomy/tests/src/Functional/TermLanguageTest.php
@@ -58,7 +58,7 @@ public function testTermLanguage() {
     $this->drupalPostForm(NULL, $edit, t('Save'));
     $terms = taxonomy_term_load_multiple_by_name($edit['name[0][value]']);
     $term = reset($terms);
-    $this->assertEqual($term->language()->getId(), $edit['langcode[0][value]'], 'The term contains the correct langcode.');
+    $this->assertEquals($term->language()->getId(), $edit['langcode[0][value]'], 'The term contains the correct langcode.');
 
     // Check if on the edit page the language is correct.
     $this->drupalGet('taxonomy/term/' . $term->id() . '/edit');
diff --git a/core/modules/taxonomy/tests/src/Functional/TokenReplaceTest.php b/core/modules/taxonomy/tests/src/Functional/TokenReplaceTest.php
index 958da3beba..4d2f85139f 100644
--- a/core/modules/taxonomy/tests/src/Functional/TokenReplaceTest.php
+++ b/core/modules/taxonomy/tests/src/Functional/TokenReplaceTest.php
@@ -103,8 +103,8 @@ public function testTaxonomyTokenReplacement() {
     foreach ($tests as $input => $expected) {
       $bubbleable_metadata = new BubbleableMetadata();
       $output = $token_service->replace($input, ['term' => $term1], ['langcode' => $language_interface->getId()], $bubbleable_metadata);
-      $this->assertEqual($output, $expected, format_string('Sanitized taxonomy term token %token replaced.', ['%token' => $input]));
-      $this->assertEqual($bubbleable_metadata, $metadata_tests[$input]);
+      $this->assertEquals($output, $expected, format_string('Sanitized taxonomy term token %token replaced.', ['%token' => $input]));
+      $this->assertEquals($bubbleable_metadata, $metadata_tests[$input]);
     }
 
     // Generate and test sanitized tokens for term2.
@@ -124,7 +124,7 @@ public function testTaxonomyTokenReplacement() {
 
     foreach ($tests as $input => $expected) {
       $output = $token_service->replace($input, ['term' => $term2], ['langcode' => $language_interface->getId()]);
-      $this->assertEqual($output, $expected, format_string('Sanitized taxonomy term token %token replaced.', ['%token' => $input]));
+      $this->assertEquals($output, $expected, format_string('Sanitized taxonomy term token %token replaced.', ['%token' => $input]));
     }
 
     // Generate and test sanitized tokens.
@@ -140,7 +140,7 @@ public function testTaxonomyTokenReplacement() {
 
     foreach ($tests as $input => $expected) {
       $output = $token_service->replace($input, ['vocabulary' => $this->vocabulary], ['langcode' => $language_interface->getId()]);
-      $this->assertEqual($output, $expected, format_string('Sanitized taxonomy vocabulary token %token replaced.', ['%token' => $input]));
+      $this->assertEquals($output, $expected, format_string('Sanitized taxonomy vocabulary token %token replaced.', ['%token' => $input]));
     }
   }
 
diff --git a/core/modules/taxonomy/tests/src/Functional/Views/ArgumentValidatorTermTest.php b/core/modules/taxonomy/tests/src/Functional/Views/ArgumentValidatorTermTest.php
index 8260565e36..9bd325204d 100644
--- a/core/modules/taxonomy/tests/src/Functional/Views/ArgumentValidatorTermTest.php
+++ b/core/modules/taxonomy/tests/src/Functional/Views/ArgumentValidatorTermTest.php
@@ -71,14 +71,14 @@ public function testArgumentValidatorTerm() {
     // Pass in a single valid term.
     foreach ($this->terms as $term) {
       $this->assertTrue($view->argument['tid']->setArgument($term->id()));
-      $this->assertEqual($view->argument['tid']->getTitle(), $term->label());
+      $this->assertEquals($view->argument['tid']->getTitle(), $term->label());
       $view->argument['tid']->validated_title = NULL;
       $view->argument['tid']->argument_validated = NULL;
     }
 
     // Pass in a invalid term.
     $this->assertFalse($view->argument['tid']->setArgument(rand(1000, 10000)));
-    $this->assertEqual('', $view->argument['tid']->getTitle());
+    $this->assertEquals('', $view->argument['tid']->getTitle());
     $view->argument['tid']->validated_title = NULL;
     $view->argument['tid']->argument_validated = NULL;
 
@@ -88,31 +88,31 @@ public function testArgumentValidatorTerm() {
 
     // Pass in a single term.
     $this->assertTrue($view->argument['tid']->setArgument($this->terms[0]->id()));
-    $this->assertEqual($view->argument['tid']->getTitle(), $this->terms[0]->label());
+    $this->assertEquals($view->argument['tid']->getTitle(), $this->terms[0]->label());
     $view->argument['tid']->validated_title = NULL;
     $view->argument['tid']->argument_validated = NULL;
 
     // Check for multiple valid terms separated by commas.
     $this->assertTrue($view->argument['tid']->setArgument(implode(',', $this->ids)));
-    $this->assertEqual($view->argument['tid']->getTitle(), implode(', ', $this->names));
+    $this->assertEquals($view->argument['tid']->getTitle(), implode(', ', $this->names));
     $view->argument['tid']->validated_title = NULL;
     $view->argument['tid']->argument_validated = NULL;
 
     // Check for multiple valid terms separated by plus signs.
     $this->assertTrue($view->argument['tid']->setArgument(implode('+', $this->ids)));
-    $this->assertEqual($view->argument['tid']->getTitle(), implode(' + ', $this->names));
+    $this->assertEquals($view->argument['tid']->getTitle(), implode(' + ', $this->names));
     $view->argument['tid']->validated_title = NULL;
     $view->argument['tid']->argument_validated = NULL;
 
     // Check for a single invalid term.
     $this->assertFalse($view->argument['tid']->setArgument(rand(1000, 10000)));
-    $this->assertEqual('', $view->argument['tid']->getTitle());
+    $this->assertEquals('', $view->argument['tid']->getTitle());
     $view->argument['tid']->validated_title = NULL;
     $view->argument['tid']->argument_validated = NULL;
 
     // Check for multiple invalid terms.
     $this->assertFalse($view->argument['tid']->setArgument(implode(',', [rand(1000, 10000), rand(1000, 10000)])));
-    $this->assertEqual('', $view->argument['tid']->getTitle());
+    $this->assertEquals('', $view->argument['tid']->getTitle());
     $view->argument['tid']->validated_title = NULL;
     $view->argument['tid']->argument_validated = NULL;
   }
diff --git a/core/modules/taxonomy/tests/src/Functional/Views/TaxonomyDefaultArgumentTest.php b/core/modules/taxonomy/tests/src/Functional/Views/TaxonomyDefaultArgumentTest.php
index 82646c03c0..16c81f7817 100644
--- a/core/modules/taxonomy/tests/src/Functional/Views/TaxonomyDefaultArgumentTest.php
+++ b/core/modules/taxonomy/tests/src/Functional/Views/TaxonomyDefaultArgumentTest.php
@@ -38,7 +38,7 @@ public function testNodePath() {
 
     $view->initHandlers();
     $expected = implode(',', [$this->term1->id(), $this->term2->id()]);
-    $this->assertEqual($expected, $view->argument['tid']->getDefaultArgument());
+    $this->assertEquals($expected, $view->argument['tid']->getDefaultArgument());
     $view->destroy();
   }
 
@@ -69,7 +69,7 @@ public function testNodePathWithViewSelection() {
 
     $view->initHandlers();
     $expected = implode(',', [$this->term1->id(), $this->term2->id()]);
-    $this->assertEqual($expected, $view->argument['tid']->getDefaultArgument());
+    $this->assertEquals($expected, $view->argument['tid']->getDefaultArgument());
   }
 
   public function testTermPath() {
@@ -85,7 +85,7 @@ public function testTermPath() {
     $view->initHandlers();
 
     $expected = $this->term1->id();
-    $this->assertEqual($expected, $view->argument['tid']->getDefaultArgument());
+    $this->assertEquals($expected, $view->argument['tid']->getDefaultArgument());
   }
 
   /**
diff --git a/core/modules/taxonomy/tests/src/Functional/Views/TaxonomyFieldAllTermsTest.php b/core/modules/taxonomy/tests/src/Functional/Views/TaxonomyFieldAllTermsTest.php
index ad1d67d6bc..4223188639 100644
--- a/core/modules/taxonomy/tests/src/Functional/Views/TaxonomyFieldAllTermsTest.php
+++ b/core/modules/taxonomy/tests/src/Functional/Views/TaxonomyFieldAllTermsTest.php
@@ -29,15 +29,15 @@ public function testViewsHandlerAllTermsField() {
     $this->drupalGet('taxonomy_all_terms_test');
 
     $actual = $this->xpath('//a[@href="' . $this->term1->url() . '"]');
-    $this->assertEqual(count($actual), 2, 'Correct number of taxonomy term1 links');
-    $this->assertEqual($actual[0]->getText(), $this->term1->label());
-    $this->assertEqual($actual[1]->getText(), $this->term1->label());
+    $this->assertEquals(count($actual), 2, 'Correct number of taxonomy term1 links');
+    $this->assertEquals($actual[0]->getText(), $this->term1->label());
+    $this->assertEquals($actual[1]->getText(), $this->term1->label());
     $this->assertEscaped($this->term1->label());
 
     $actual = $this->xpath('//a[@href="' . $this->term2->url() . '"]');
-    $this->assertEqual(count($actual), 2, 'Correct number of taxonomy term2 links');
-    $this->assertEqual($actual[0]->getText(), $this->term2->label());
-    $this->assertEqual($actual[1]->getText(), $this->term2->label());
+    $this->assertEquals(count($actual), 2, 'Correct number of taxonomy term2 links');
+    $this->assertEquals($actual[0]->getText(), $this->term2->label());
+    $this->assertEquals($actual[1]->getText(), $this->term2->label());
   }
 
   /**
diff --git a/core/modules/taxonomy/tests/src/Functional/Views/TaxonomyFieldFilterTest.php b/core/modules/taxonomy/tests/src/Functional/Views/TaxonomyFieldFilterTest.php
index 1b8bbcaa51..7e7696c84f 100644
--- a/core/modules/taxonomy/tests/src/Functional/Views/TaxonomyFieldFilterTest.php
+++ b/core/modules/taxonomy/tests/src/Functional/Views/TaxonomyFieldFilterTest.php
@@ -145,7 +145,7 @@ protected function assertPageCounts($path, $counts, $message) {
     // page, and they are the same. So the title/body string should appear on
     // the page twice as many times as the input count.
     foreach ($counts as $langcode => $count) {
-      $this->assertEqual(substr_count($text, $this->termNames[$langcode]), 2 * $count, 'Translation ' . $langcode . ' has count ' . $count . ' with ' . $message);
+      $this->assertEquals(substr_count($text, $this->termNames[$langcode]), 2 * $count, 'Translation ' . $langcode . ' has count ' . $count . ' with ' . $message);
     }
   }
 
diff --git a/core/modules/taxonomy/tests/src/Functional/Views/TaxonomyFieldTidTest.php b/core/modules/taxonomy/tests/src/Functional/Views/TaxonomyFieldTidTest.php
index 0a44d4cb2e..04b01800ee 100644
--- a/core/modules/taxonomy/tests/src/Functional/Views/TaxonomyFieldTidTest.php
+++ b/core/modules/taxonomy/tests/src/Functional/Views/TaxonomyFieldTidTest.php
@@ -31,7 +31,7 @@ public function testViewsHandlerTidField() {
     });
     $expected = \Drupal::l($this->term1->label(), $this->term1->urlInfo());
 
-    $this->assertEqual($expected, $actual);
+    $this->assertEquals($expected, $actual);
   }
 
 }
diff --git a/core/modules/taxonomy/tests/src/Functional/Views/TaxonomyIndexTidFilterTest.php b/core/modules/taxonomy/tests/src/Functional/Views/TaxonomyIndexTidFilterTest.php
index 6fd1eba865..5e1dd961ce 100644
--- a/core/modules/taxonomy/tests/src/Functional/Views/TaxonomyIndexTidFilterTest.php
+++ b/core/modules/taxonomy/tests/src/Functional/Views/TaxonomyIndexTidFilterTest.php
@@ -75,7 +75,7 @@ public function testConfigDependency() {
     ];
     sort($content_dependencies);
 
-    $this->assertEqual([
+    $this->assertEquals([
       'config' => [
         'taxonomy.vocabulary.tags',
       ],
@@ -89,7 +89,7 @@ public function testConfigDependency() {
 
     $this->terms[3]->delete();
 
-    $this->assertEqual([
+    $this->assertEquals([
       'config' => [
         'taxonomy.vocabulary.tags',
       ],
@@ -120,7 +120,7 @@ public function testPostUpdateFunction() {
     ];
     sort($content_dependencies);
 
-    $this->assertEqual([
+    $this->assertEquals([
       'config' => [
         'taxonomy.vocabulary.tags',
       ],
@@ -138,7 +138,7 @@ public function testPostUpdateFunction() {
     views_post_update_taxonomy_index_tid();
 
     $view = View::load('test_filter_taxonomy_index_tid__non_existing_dependency');
-    $this->assertEqual([
+    $this->assertEquals([
       'config' => [
         'taxonomy.vocabulary.tags',
       ],
diff --git a/core/modules/taxonomy/tests/src/Functional/Views/TaxonomyIndexTidUiTest.php b/core/modules/taxonomy/tests/src/Functional/Views/TaxonomyIndexTidUiTest.php
index 4de73705d9..357f7b0352 100644
--- a/core/modules/taxonomy/tests/src/Functional/Views/TaxonomyIndexTidUiTest.php
+++ b/core/modules/taxonomy/tests/src/Functional/Views/TaxonomyIndexTidUiTest.php
@@ -95,8 +95,8 @@ public function testFilterUI() {
         $prefix = $this->terms[$i][$j]->parent->target_id ? '-' : '';
         $tid = $option->getAttribute('value');
 
-        $this->assertEqual($prefix . $this->terms[$i][$j]->getName(), $option->getText());
-        $this->assertEqual($this->terms[$i][$j]->id(), $tid);
+        $this->assertEquals($prefix . $this->terms[$i][$j]->getName(), $option->getText());
+        $this->assertEquals($this->terms[$i][$j]->id(), $tid);
       }
     }
 
diff --git a/core/modules/taxonomy/tests/src/Functional/Views/TaxonomyRelationshipTest.php b/core/modules/taxonomy/tests/src/Functional/Views/TaxonomyRelationshipTest.php
index 03be3e15bb..4845df6f22 100644
--- a/core/modules/taxonomy/tests/src/Functional/Views/TaxonomyRelationshipTest.php
+++ b/core/modules/taxonomy/tests/src/Functional/Views/TaxonomyRelationshipTest.php
@@ -57,28 +57,28 @@ public function testTaxonomyRelationships() {
     // Check the generated views data of taxonomy_index.
     $views_data = Views::viewsData()->get('taxonomy_index');
     // Check the table join data.
-    $this->assertEqual($views_data['table']['join']['taxonomy_term_field_data']['left_field'], 'tid');
-    $this->assertEqual($views_data['table']['join']['taxonomy_term_field_data']['field'], 'tid');
-    $this->assertEqual($views_data['table']['join']['node_field_data']['left_field'], 'nid');
-    $this->assertEqual($views_data['table']['join']['node_field_data']['field'], 'nid');
-    $this->assertEqual($views_data['table']['join']['taxonomy_term_hierarchy']['left_field'], 'tid');
-    $this->assertEqual($views_data['table']['join']['taxonomy_term_hierarchy']['field'], 'tid');
+    $this->assertEquals($views_data['table']['join']['taxonomy_term_field_data']['left_field'], 'tid');
+    $this->assertEquals($views_data['table']['join']['taxonomy_term_field_data']['field'], 'tid');
+    $this->assertEquals($views_data['table']['join']['node_field_data']['left_field'], 'nid');
+    $this->assertEquals($views_data['table']['join']['node_field_data']['field'], 'nid');
+    $this->assertEquals($views_data['table']['join']['taxonomy_term_hierarchy']['left_field'], 'tid');
+    $this->assertEquals($views_data['table']['join']['taxonomy_term_hierarchy']['field'], 'tid');
 
     // Check the generated views data of taxonomy_term_hierarchy.
     $views_data = Views::viewsData()->get('taxonomy_term_hierarchy');
     // Check the table join data.
-    $this->assertEqual($views_data['table']['join']['taxonomy_term_hierarchy']['left_field'], 'tid');
-    $this->assertEqual($views_data['table']['join']['taxonomy_term_hierarchy']['field'], 'parent');
-    $this->assertEqual($views_data['table']['join']['taxonomy_term_field_data']['left_field'], 'tid');
-    $this->assertEqual($views_data['table']['join']['taxonomy_term_field_data']['field'], 'tid');
+    $this->assertEquals($views_data['table']['join']['taxonomy_term_hierarchy']['left_field'], 'tid');
+    $this->assertEquals($views_data['table']['join']['taxonomy_term_hierarchy']['field'], 'parent');
+    $this->assertEquals($views_data['table']['join']['taxonomy_term_field_data']['left_field'], 'tid');
+    $this->assertEquals($views_data['table']['join']['taxonomy_term_field_data']['field'], 'tid');
     // Check the parent relationship data.
-    $this->assertEqual($views_data['parent']['relationship']['base'], 'taxonomy_term_field_data');
-    $this->assertEqual($views_data['parent']['relationship']['field'], 'parent');
-    $this->assertEqual($views_data['parent']['relationship']['label'], t('Parent'));
-    $this->assertEqual($views_data['parent']['relationship']['id'], 'standard');
+    $this->assertEquals($views_data['parent']['relationship']['base'], 'taxonomy_term_field_data');
+    $this->assertEquals($views_data['parent']['relationship']['field'], 'parent');
+    $this->assertEquals($views_data['parent']['relationship']['label'], t('Parent'));
+    $this->assertEquals($views_data['parent']['relationship']['id'], 'standard');
     // Check the parent filter and argument data.
-    $this->assertEqual($views_data['parent']['filter']['id'], 'numeric');
-    $this->assertEqual($views_data['parent']['argument']['id'], 'taxonomy');
+    $this->assertEquals($views_data['parent']['filter']['id'], 'numeric');
+    $this->assertEquals($views_data['parent']['argument']['id'], 'taxonomy');
 
     // Check an actual test view.
     $view = Views::getView('test_taxonomy_term_relationship');
@@ -86,19 +86,19 @@ public function testTaxonomyRelationships() {
     /** @var \Drupal\views\ResultRow $row */
     foreach ($view->result as $index => $row) {
       // Check that the actual ID of the entity is the expected one.
-      $this->assertEqual($row->tid, $this->terms[$index]->id());
+      $this->assertEquals($row->tid, $this->terms[$index]->id());
 
       // Also check that we have the correct result entity.
-      $this->assertEqual($row->_entity->id(), $this->terms[$index]->id());
+      $this->assertEquals($row->_entity->id(), $this->terms[$index]->id());
       $this->assertTrue($row->_entity instanceof TermInterface);
 
       if (!$index) {
         $this->assertTrue($row->_relationship_entities['parent'] instanceof TermInterface);
-        $this->assertEqual($row->_relationship_entities['parent']->id(), $this->term2->id());
-        $this->assertEqual($row->taxonomy_term_field_data_taxonomy_term_hierarchy_tid, $this->term2->id());
+        $this->assertEquals($row->_relationship_entities['parent']->id(), $this->term2->id());
+        $this->assertEquals($row->taxonomy_term_field_data_taxonomy_term_hierarchy_tid, $this->term2->id());
       }
       $this->assertTrue($row->_relationship_entities['nid'] instanceof NodeInterface);
-      $this->assertEqual($row->_relationship_entities['nid']->id(), $this->nodes[$index]->id());
+      $this->assertEquals($row->_relationship_entities['nid']->id(), $this->nodes[$index]->id());
     }
   }
 
diff --git a/core/modules/taxonomy/tests/src/Functional/Views/TaxonomyTermViewTest.php b/core/modules/taxonomy/tests/src/Functional/Views/TaxonomyTermViewTest.php
index f69c49c714..230ca69063 100644
--- a/core/modules/taxonomy/tests/src/Functional/Views/TaxonomyTermViewTest.php
+++ b/core/modules/taxonomy/tests/src/Functional/Views/TaxonomyTermViewTest.php
@@ -141,12 +141,12 @@ public function testTaxonomyTermView() {
     $tables = $query->getTables();
 
     // Ensure that the join to node_field_data is not added by default.
-    $this->assertEqual(['node_field_data', 'taxonomy_index'], array_keys($tables));
+    $this->assertEquals(['node_field_data', 'taxonomy_index'], array_keys($tables));
     // Ensure that the filter to the language column is not there by default.
     $condition = $query->conditions();
     // We only want to check the no. of conditions in the query.
     unset($condition['#conjunction']);
-    $this->assertEqual(1, count($condition));
+    $this->assertEquals(1, count($condition));
 
     // Clear permissions for anonymous users to check access for default views.
     Role::load(RoleInterface::ANONYMOUS_ID)->revokePermission('access content')->save();
diff --git a/core/modules/taxonomy/tests/src/Functional/Views/TermNameFieldTest.php b/core/modules/taxonomy/tests/src/Functional/Views/TermNameFieldTest.php
index 6fbe0c0b2b..31ff254cdf 100644
--- a/core/modules/taxonomy/tests/src/Functional/Views/TermNameFieldTest.php
+++ b/core/modules/taxonomy/tests/src/Functional/Views/TermNameFieldTest.php
@@ -32,8 +32,8 @@ public function testTermNameField() {
     $view->initDisplay();
     $this->executeView($view);
 
-    $this->assertEqual($this->term1->getName(), $view->getStyle()->getField(0, 'name'));
-    $this->assertEqual($this->term2->getName(), $view->getStyle()->getField(1, 'name'));
+    $this->assertEquals($this->term1->getName(), $view->getStyle()->getField(0, 'name'));
+    $this->assertEquals($this->term2->getName(), $view->getStyle()->getField(1, 'name'));
 
     $view = Views::getView('test_taxonomy_term_name');
     $display =& $view->storage->getDisplay('default');
@@ -41,8 +41,8 @@ public function testTermNameField() {
     $view->storage->invalidateCaches();
     $this->executeView($view);
 
-    $this->assertEqual(str_replace(' ', '-', $this->term1->getName()), $view->getStyle()->getField(0, 'name'));
-    $this->assertEqual($this->term2->getName(), $view->getStyle()->getField(1, 'name'));
+    $this->assertEquals(str_replace(' ', '-', $this->term1->getName()), $view->getStyle()->getField(0, 'name'));
+    $this->assertEquals($this->term2->getName(), $view->getStyle()->getField(1, 'name'));
   }
 
 }
diff --git a/core/modules/taxonomy/tests/src/Functional/VocabularyCrudTest.php b/core/modules/taxonomy/tests/src/Functional/VocabularyCrudTest.php
index 2ac2d9de61..1cb77b1370 100644
--- a/core/modules/taxonomy/tests/src/Functional/VocabularyCrudTest.php
+++ b/core/modules/taxonomy/tests/src/Functional/VocabularyCrudTest.php
@@ -40,7 +40,7 @@ public function testTaxonomyVocabularyDeleteWithTerms() {
     $query = \Drupal::entityQuery('taxonomy_term')->count();
 
     // Assert that there are no terms left.
-    $this->assertEqual(0, $query->execute(), 'There are no terms remaining.');
+    $this->assertEquals(0, $query->execute(), 'There are no terms remaining.');
 
     $terms = [];
     for ($i = 0; $i < 5; $i++) {
@@ -54,12 +54,12 @@ public function testTaxonomyVocabularyDeleteWithTerms() {
     $terms[4]->save();
 
     // Assert that there are now 5 terms.
-    $this->assertEqual(5, $query->execute(), 'There are 5 terms found.');
+    $this->assertEquals(5, $query->execute(), 'There are 5 terms found.');
 
     $vocabulary->delete();
 
     // Assert that there are no terms left.
-    $this->assertEqual(0, $query->execute(), 'All terms are deleted.');
+    $this->assertEquals(0, $query->execute(), 'All terms are deleted.');
   }
 
   /**
@@ -68,7 +68,7 @@ public function testTaxonomyVocabularyDeleteWithTerms() {
   public function testTaxonomyVocabularyLoadStaticReset() {
     $original_vocabulary = Vocabulary::load($this->vocabulary->id());
     $this->assertTrue(is_object($original_vocabulary), 'Vocabulary loaded successfully.');
-    $this->assertEqual($this->vocabulary->label(), $original_vocabulary->label(), 'Vocabulary loaded successfully.');
+    $this->assertEquals($this->vocabulary->label(), $original_vocabulary->label(), 'Vocabulary loaded successfully.');
 
     // Change the name and description.
     $vocabulary = $original_vocabulary;
@@ -78,7 +78,7 @@ public function testTaxonomyVocabularyLoadStaticReset() {
 
     // Load the vocabulary.
     $new_vocabulary = Vocabulary::load($original_vocabulary->id());
-    $this->assertEqual($new_vocabulary->label(), $vocabulary->label(), 'The vocabulary was loaded.');
+    $this->assertEquals($new_vocabulary->label(), $vocabulary->label(), 'The vocabulary was loaded.');
 
     // Delete the vocabulary.
     $this->vocabulary->delete();
@@ -108,14 +108,14 @@ public function testTaxonomyVocabularyLoadMultiple() {
     $vocabulary3->save();
 
     // Check if third party settings exist.
-    $this->assertEqual('bar', $vocabulary1->getThirdPartySetting('taxonomy_crud', 'foo'), 'Third party settings were added to the vocabulary.');
-    $this->assertEqual('bar', $vocabulary2->getThirdPartySetting('taxonomy_crud', 'foo'), 'Third party settings were added to the vocabulary.');
-    $this->assertEqual('bar', $vocabulary3->getThirdPartySetting('taxonomy_crud', 'foo'), 'Third party settings were added to the vocabulary.');
+    $this->assertEquals('bar', $vocabulary1->getThirdPartySetting('taxonomy_crud', 'foo'), 'Third party settings were added to the vocabulary.');
+    $this->assertEquals('bar', $vocabulary2->getThirdPartySetting('taxonomy_crud', 'foo'), 'Third party settings were added to the vocabulary.');
+    $this->assertEquals('bar', $vocabulary3->getThirdPartySetting('taxonomy_crud', 'foo'), 'Third party settings were added to the vocabulary.');
 
     // Fetch the names for all vocabularies, confirm that they are keyed by
     // machine name.
     $names = taxonomy_vocabulary_get_names();
-    $this->assertEqual($names[$vocabulary1->id()], $vocabulary1->id(), 'Vocabulary 1 name found.');
+    $this->assertEquals($names[$vocabulary1->id()], $vocabulary1->id(), 'Vocabulary 1 name found.');
 
     // Fetch the vocabularies with entity_load_multiple(), specifying IDs.
     // Ensure they are returned in the same order as the original array.
@@ -128,14 +128,14 @@ public function testTaxonomyVocabularyLoadMultiple() {
     $controller = $this->container->get('entity.manager')->getStorage('taxonomy_vocabulary');
     // Fetch vocabulary 1 by name.
     $vocabulary = current($controller->loadByProperties(['name' => $vocabulary1->label()]));
-    $this->assertEqual($vocabulary->id(), $vocabulary1->id(), 'Vocabulary loaded successfully by name.');
+    $this->assertEquals($vocabulary->id(), $vocabulary1->id(), 'Vocabulary loaded successfully by name.');
 
     // Fetch vocabulary 2 by name and ID.
     $vocabulary = current($controller->loadByProperties([
       'name' => $vocabulary2->label(),
       'vid' => $vocabulary2->id(),
     ]));
-    $this->assertEqual($vocabulary->id(), $vocabulary2->id(), 'Vocabulary loaded successfully by name and ID.');
+    $this->assertEquals($vocabulary->id(), $vocabulary2->id(), 'Vocabulary loaded successfully by name and ID.');
   }
 
   /**
diff --git a/core/modules/taxonomy/tests/src/Functional/VocabularyLanguageTest.php b/core/modules/taxonomy/tests/src/Functional/VocabularyLanguageTest.php
index f25df8a1fd..1817f696f5 100644
--- a/core/modules/taxonomy/tests/src/Functional/VocabularyLanguageTest.php
+++ b/core/modules/taxonomy/tests/src/Functional/VocabularyLanguageTest.php
@@ -85,7 +85,7 @@ public function testVocabularyDefaultLanguageForTerms() {
 
     // Check that the language settings were saved.
     $language_settings = ContentLanguageSettings::loadByEntityTypeBundle('taxonomy_term', $edit['vid']);
-    $this->assertEqual($language_settings->getDefaultLangcode(), 'bb', 'The langcode was saved.');
+    $this->assertEquals($language_settings->getDefaultLangcode(), 'bb', 'The langcode was saved.');
     $this->assertTrue($language_settings->isLanguageAlterable(), 'The visibility setting was saved.');
 
     // Check that the correct options are selected in the interface.
@@ -101,7 +101,7 @@ public function testVocabularyDefaultLanguageForTerms() {
 
     // And check again the settings and also the interface.
     $language_settings = ContentLanguageSettings::loadByEntityTypeBundle('taxonomy_term', $vid);
-    $this->assertEqual($language_settings->getDefaultLangcode(), 'aa', 'The langcode was saved.');
+    $this->assertEquals($language_settings->getDefaultLangcode(), 'aa', 'The langcode was saved.');
     $this->assertFalse($language_settings->isLanguageAlterable(), 'The visibility setting was saved.');
 
     $this->drupalGet('admin/structure/taxonomy/manage/' . $vid);
@@ -118,7 +118,7 @@ public function testVocabularyDefaultLanguageForTerms() {
 
     // Check that we have the new settings.
     $new_settings = ContentLanguageSettings::loadByEntityTypeBundle('taxonomy_term', $vid);
-    $this->assertEqual($new_settings->getDefaultLangcode(), 'authors_default', 'The langcode was saved.');
+    $this->assertEquals($new_settings->getDefaultLangcode(), 'authors_default', 'The langcode was saved.');
     $this->assertFalse($new_settings->isLanguageAlterable(), 'The new visibility setting was saved.');
   }
 
diff --git a/core/modules/taxonomy/tests/src/Functional/VocabularyUiTest.php b/core/modules/taxonomy/tests/src/Functional/VocabularyUiTest.php
index e39a0d8555..a08be26ad7 100644
--- a/core/modules/taxonomy/tests/src/Functional/VocabularyUiTest.php
+++ b/core/modules/taxonomy/tests/src/Functional/VocabularyUiTest.php
@@ -106,7 +106,7 @@ public function testTaxonomyAdminChangingWeights() {
 
     // Check that the weights are saved in the database correctly.
     foreach ($vocabularies as $key => $vocabulary) {
-      $this->assertEqual($new_vocabularies[$key]->get('weight'), $vocabularies[$key]->get('weight'), 'The vocabulary weight was changed.');
+      $this->assertEquals($new_vocabularies[$key]->get('weight'), $vocabularies[$key]->get('weight'), 'The vocabulary weight was changed.');
     }
   }
 
diff --git a/core/modules/taxonomy/tests/src/Kernel/Migrate/d7/MigrateNodeTaxonomyTest.php b/core/modules/taxonomy/tests/src/Kernel/Migrate/d7/MigrateNodeTaxonomyTest.php
index e8c6fefa8b..751e7d8f44 100644
--- a/core/modules/taxonomy/tests/src/Kernel/Migrate/d7/MigrateNodeTaxonomyTest.php
+++ b/core/modules/taxonomy/tests/src/Kernel/Migrate/d7/MigrateNodeTaxonomyTest.php
@@ -72,9 +72,9 @@ protected function setUp() {
   public function testMigration() {
     $node = Node::load(2);
     $this->assertTrue($node instanceof NodeInterface);
-    $this->assertEqual(9, $node->field_tags[0]->target_id);
-    $this->assertEqual(14, $node->field_tags[1]->target_id);
-    $this->assertEqual(17, $node->field_tags[2]->target_id);
+    $this->assertEquals(9, $node->field_tags[0]->target_id);
+    $this->assertEquals(14, $node->field_tags[1]->target_id);
+    $this->assertEquals(17, $node->field_tags[2]->target_id);
   }
 
 }
diff --git a/core/modules/taxonomy/tests/src/Kernel/TermKernelTest.php b/core/modules/taxonomy/tests/src/Kernel/TermKernelTest.php
index 3d8bff80a3..063d8431a3 100644
--- a/core/modules/taxonomy/tests/src/Kernel/TermKernelTest.php
+++ b/core/modules/taxonomy/tests/src/Kernel/TermKernelTest.php
@@ -112,11 +112,11 @@ public function testTaxonomyVocabularyTree() {
      */
     // Count $term[1] parents with $max_depth = 1.
     $tree = $taxonomy_storage->loadTree($vocabulary->id(), $term[1]->id(), 1);
-    $this->assertEqual(1, count($tree), 'We have one parent with depth 1.');
+    $this->assertEquals(1, count($tree), 'We have one parent with depth 1.');
 
     // Count all vocabulary tree elements.
     $tree = $taxonomy_storage->loadTree($vocabulary->id());
-    $this->assertEqual(8, count($tree), 'We have all vocabulary tree elements.');
+    $this->assertEquals(8, count($tree), 'We have all vocabulary tree elements.');
 
     // Count elements in every tree depth.
     foreach ($tree as $element) {
@@ -125,28 +125,28 @@ public function testTaxonomyVocabularyTree() {
       }
       $depth_count[$element->depth]++;
     }
-    $this->assertEqual(3, $depth_count[0], 'Three elements in taxonomy tree depth 0.');
-    $this->assertEqual(2, $depth_count[1], 'Two elements in taxonomy tree depth 1.');
-    $this->assertEqual(2, $depth_count[2], 'Two elements in taxonomy tree depth 2.');
-    $this->assertEqual(1, $depth_count[3], 'One element in taxonomy tree depth 3.');
+    $this->assertEquals(3, $depth_count[0], 'Three elements in taxonomy tree depth 0.');
+    $this->assertEquals(2, $depth_count[1], 'Two elements in taxonomy tree depth 1.');
+    $this->assertEquals(2, $depth_count[2], 'Two elements in taxonomy tree depth 2.');
+    $this->assertEquals(1, $depth_count[3], 'One element in taxonomy tree depth 3.');
 
     /** @var \Drupal\taxonomy\TermStorageInterface $storage */
     $storage = \Drupal::entityManager()->getStorage('taxonomy_term');
     // Count parents of $term[2].
     $parents = $storage->loadParents($term[2]->id());
-    $this->assertEqual(2, count($parents), 'The term has two parents.');
+    $this->assertEquals(2, count($parents), 'The term has two parents.');
 
     // Count parents of $term[3].
     $parents = $storage->loadParents($term[3]->id());
-    $this->assertEqual(1, count($parents), 'The term has one parent.');
+    $this->assertEquals(1, count($parents), 'The term has one parent.');
 
     // Identify all ancestors of $term[2].
     $ancestors = $storage->loadAllParents($term[2]->id());
-    $this->assertEqual(4, count($ancestors), 'The term has four ancestors including the term itself.');
+    $this->assertEquals(4, count($ancestors), 'The term has four ancestors including the term itself.');
 
     // Identify all ancestors of $term[3].
     $ancestors = $storage->loadAllParents($term[3]->id());
-    $this->assertEqual(5, count($ancestors), 'The term has five ancestors including the term itself.');
+    $this->assertEquals(5, count($ancestors), 'The term has five ancestors including the term itself.');
   }
 
 }
diff --git a/core/modules/telephone/tests/src/Kernel/TelephoneItemTest.php b/core/modules/telephone/tests/src/Kernel/TelephoneItemTest.php
index 72269409e4..2bd11c8a59 100644
--- a/core/modules/telephone/tests/src/Kernel/TelephoneItemTest.php
+++ b/core/modules/telephone/tests/src/Kernel/TelephoneItemTest.php
@@ -55,18 +55,18 @@ public function testTestItem() {
     $entity = EntityTest::load($id);
     $this->assertTrue($entity->field_test instanceof FieldItemListInterface, 'Field implements interface.');
     $this->assertTrue($entity->field_test[0] instanceof FieldItemInterface, 'Field item implements interface.');
-    $this->assertEqual($entity->field_test->value, $value);
-    $this->assertEqual($entity->field_test[0]->value, $value);
+    $this->assertEquals($entity->field_test->value, $value);
+    $this->assertEquals($entity->field_test[0]->value, $value);
 
     // Verify changing the field value.
     $new_value = '+41' . rand(1000000, 9999999);
     $entity->field_test->value = $new_value;
-    $this->assertEqual($entity->field_test->value, $new_value);
+    $this->assertEquals($entity->field_test->value, $new_value);
 
     // Read changed entity and assert changed values.
     $entity->save();
     $entity = EntityTest::load($id);
-    $this->assertEqual($entity->field_test->value, $new_value);
+    $this->assertEquals($entity->field_test->value, $new_value);
 
     // Test sample item generation.
     $entity = EntityTest::create();
diff --git a/core/modules/text/src/Tests/TextFieldTest.php b/core/modules/text/src/Tests/TextFieldTest.php
index f3fb43f2d5..a55f7e3862 100644
--- a/core/modules/text/src/Tests/TextFieldTest.php
+++ b/core/modules/text/src/Tests/TextFieldTest.php
@@ -58,10 +58,10 @@ public function testTextFieldValidation() {
       $entity->{$field_name}->value = str_repeat('x', $i);
       $violations = $entity->{$field_name}->validate();
       if ($i <= $max_length) {
-        $this->assertEqual(count($violations), 0, "Length $i does not cause validation error when max_length is $max_length");
+        $this->assertEquals(count($violations), 0, "Length $i does not cause validation error when max_length is $max_length");
       }
       else {
-        $this->assertEqual(count($violations), 1, "Length $i causes validation error when max_length is $max_length");
+        $this->assertEquals(count($violations), 1, "Length $i causes validation error when max_length is $max_length");
       }
     }
   }
diff --git a/core/modules/text/tests/src/Kernel/TextFormatterTest.php b/core/modules/text/tests/src/Kernel/TextFormatterTest.php
index c75ac34bc4..1c2feff063 100644
--- a/core/modules/text/tests/src/Kernel/TextFormatterTest.php
+++ b/core/modules/text/tests/src/Kernel/TextFormatterTest.php
@@ -90,8 +90,8 @@ public function testFormatters() {
       // Verify the text field formatter's render array.
       $build = $entity->get('formatted_text')->view(['type' => $formatter]);
       \Drupal::service('renderer')->renderRoot($build[0]);
-      $this->assertEqual($build[0]['#markup'], "<p>Hello, world!</p>\n");
-      $this->assertEqual($build[0]['#cache']['tags'], FilterFormat::load('my_text_format')->getCacheTags(), format_string('The @formatter formatter has the expected cache tags when formatting a formatted text field.', ['@formatter' => $formatter]));
+      $this->assertEquals($build[0]['#markup'], "<p>Hello, world!</p>\n");
+      $this->assertEquals($build[0]['#cache']['tags'], FilterFormat::load('my_text_format')->getCacheTags(), format_string('The @formatter formatter has the expected cache tags when formatting a formatted text field.', ['@formatter' => $formatter]));
     }
   }
 
diff --git a/core/modules/text/tests/src/Kernel/TextWithSummaryItemTest.php b/core/modules/text/tests/src/Kernel/TextWithSummaryItemTest.php
index a48c191b5e..61c78eac6a 100644
--- a/core/modules/text/tests/src/Kernel/TextWithSummaryItemTest.php
+++ b/core/modules/text/tests/src/Kernel/TextWithSummaryItemTest.php
@@ -71,18 +71,18 @@ public function testCrudAndUpdate() {
     $entity = $storage->load($entity->id());
     $this->assertTrue($entity->summary_field instanceof FieldItemListInterface, 'Field implements interface.');
     $this->assertTrue($entity->summary_field[0] instanceof FieldItemInterface, 'Field item implements interface.');
-    $this->assertEqual($entity->summary_field->value, $value);
-    $this->assertEqual($entity->summary_field->summary, $summary);
+    $this->assertEquals($entity->summary_field->value, $value);
+    $this->assertEquals($entity->summary_field->summary, $summary);
     $this->assertNull($entity->summary_field->format);
     // Even if no format is given, if text processing is enabled, the default
     // format is used.
-    $this->assertEqual($entity->summary_field->processed, "<p>$value</p>\n");
-    $this->assertEqual($entity->summary_field->summary_processed, "<p>$summary</p>\n");
+    $this->assertEquals($entity->summary_field->processed, "<p>$value</p>\n");
+    $this->assertEquals($entity->summary_field->summary_processed, "<p>$summary</p>\n");
 
     // Change the format, this should update the processed properties.
     $entity->summary_field->format = 'no_filters';
-    $this->assertEqual($entity->summary_field->processed, $value);
-    $this->assertEqual($entity->summary_field->summary_processed, $summary);
+    $this->assertEquals($entity->summary_field->processed, $value);
+    $this->assertEquals($entity->summary_field->summary_processed, $summary);
 
     // Test the generateSampleValue() method.
     $entity = $this->container->get('entity_type.manager')
diff --git a/core/modules/toolbar/tests/src/Functional/ToolbarAdminMenuTest.php b/core/modules/toolbar/tests/src/Functional/ToolbarAdminMenuTest.php
index 9585c86eb4..75e24bc135 100644
--- a/core/modules/toolbar/tests/src/Functional/ToolbarAdminMenuTest.php
+++ b/core/modules/toolbar/tests/src/Functional/ToolbarAdminMenuTest.php
@@ -202,7 +202,7 @@ public function testUserRoleUpdateSubtreesHashCacheClear() {
     // Assert that the old admin menu subtree hash and the new admin menu
     // subtree hash are the same.
     $this->assertTrue($new_subtree_hash, 'A valid hash value for the admin menu subtrees was created.');
-    $this->assertEqual($admin_user_2_hash, $new_subtree_hash, 'The user-specific subtree menu hash has not been updated.');
+    $this->assertEquals($admin_user_2_hash, $new_subtree_hash, 'The user-specific subtree menu hash has not been updated.');
   }
 
   /**
@@ -238,7 +238,7 @@ public function testNonCurrentUserAccountUpdates() {
     // Assert that the old adminUser subtree hash and the new adminUser
     // subtree hash are the same.
     $this->assertTrue($new_subtree_hash, 'A valid hash value for the admin menu subtrees was created.');
-    $this->assertEqual($admin_user_2_hash, $new_subtree_hash, 'The user-specific subtree menu hash has not been updated.');
+    $this->assertEquals($admin_user_2_hash, $new_subtree_hash, 'The user-specific subtree menu hash has not been updated.');
   }
 
   /**
@@ -333,8 +333,8 @@ public function testSubtreesJsonRequest() {
 
     $this->drupalGet('toolbar/subtrees/' . $subtrees_hash, ['query' => [MainContentViewSubscriber::WRAPPER_FORMAT => 'drupal_ajax']], ['X-Requested-With: XMLHttpRequest']);
     $ajax_result = json_decode($this->getSession()->getPage()->getContent(), TRUE);
-    $this->assertEqual($ajax_result[0]['command'], 'setToolbarSubtrees', 'Subtrees response uses the correct command.');
-    $this->assertEqual(array_keys($ajax_result[0]['subtrees']), ['system-admin_content', 'system-admin_structure', 'system-themes_page', 'system-modules_list', 'system-admin_config', 'entity-user-collection', 'front'], 'Correct subtrees returned.');
+    $this->assertEquals($ajax_result[0]['command'], 'setToolbarSubtrees', 'Subtrees response uses the correct command.');
+    $this->assertEquals(array_keys($ajax_result[0]['subtrees']), ['system-admin_content', 'system-admin_structure', 'system-themes_page', 'system-modules_list', 'system-admin_config', 'entity-user-collection', 'front'], 'Correct subtrees returned.');
   }
 
   /**
diff --git a/core/modules/toolbar/tests/src/Functional/ToolbarMenuTranslationTest.php b/core/modules/toolbar/tests/src/Functional/ToolbarMenuTranslationTest.php
index 995d49ee38..eb28961a1e 100644
--- a/core/modules/toolbar/tests/src/Functional/ToolbarMenuTranslationTest.php
+++ b/core/modules/toolbar/tests/src/Functional/ToolbarMenuTranslationTest.php
@@ -61,7 +61,7 @@ public function testToolbarClasses() {
 
     // Check that the class is on the item before we translate it.
     $xpath = $this->xpath('//a[contains(@class, "icon-system-admin-structure")]');
-    $this->assertEqual(count($xpath), 1, 'The menu item class ok before translation.');
+    $this->assertEquals(count($xpath), 1, 'The menu item class ok before translation.');
 
     // Translate the menu item.
     $menu_item_translated = $this->randomMachineName();
@@ -90,7 +90,7 @@ public function testToolbarClasses() {
     // Toolbar icons are included based on the presence of a specific class on
     // the menu item. Ensure that class also exists for a translated menu item.
     $xpath = $this->xpath('//a[contains(@class, "icon-system-admin-structure")]');
-    $this->assertEqual(count($xpath), 1, 'The menu item class is the same.');
+    $this->assertEquals(count($xpath), 1, 'The menu item class is the same.');
   }
 
 }
diff --git a/core/modules/tour/tests/src/Functional/TourTest.php b/core/modules/tour/tests/src/Functional/TourTest.php
index 55f3743f61..c3b1e8c67c 100644
--- a/core/modules/tour/tests/src/Functional/TourTest.php
+++ b/core/modules/tour/tests/src/Functional/TourTest.php
@@ -69,10 +69,10 @@ public function testTourFunctionality() {
       ':href' => \Drupal::url('<front>', [], ['absolute' => TRUE]),
       ':text' => 'Drupal',
     ]);
-    $this->assertEqual(count($elements), 1, 'Found Token replacement.');
+    $this->assertEquals(count($elements), 1, 'Found Token replacement.');
 
     $elements = $this->cssSelect("li[data-id=tour-test-1] h2:contains('The first tip')");
-    $this->assertEqual(count($elements), 1, 'Found English variant of tip 1.');
+    $this->assertEquals(count($elements), 1, 'Found English variant of tip 1.');
 
     $elements = $this->cssSelect("li[data-id=tour-test-2] h2:contains('The quick brown fox')");
     $this->assertNotEqual(count($elements), 1, 'Did not find English variant of tip 2.');
@@ -82,12 +82,12 @@ public function testTourFunctionality() {
 
     // Ensure that plugins work.
     $elements = $this->xpath('//img[@src="http://local/image.png"]');
-    $this->assertEqual(count($elements), 1, 'Image plugin tip found.');
+    $this->assertEquals(count($elements), 1, 'Image plugin tip found.');
 
     // Navigate to tour-test-2/subpath and verify the tour_test_2 tip is found.
     $this->drupalGet('tour-test-2/subpath');
     $elements = $this->cssSelect("li[data-id=tour-test-2] h2:contains('The quick brown fox')");
-    $this->assertEqual(count($elements), 1, 'Found English variant of tip 2.');
+    $this->assertEquals(count($elements), 1, 'Found English variant of tip 2.');
 
     $elements = $this->cssSelect("li[data-id=tour-test-1] h2:contains('The first tip')");
     $this->assertNotEqual(count($elements), 1, 'Did not find English variant of tip 1.');
@@ -98,7 +98,7 @@ public function testTourFunctionality() {
     $this->drupalGet('it/tour-test-1');
 
     $elements = $this->cssSelect("li[data-id=tour-test-1] h2:contains('La pioggia cade in spagna')");
-    $this->assertEqual(count($elements), 1, 'Found Italian variant of tip 1.');
+    $this->assertEquals(count($elements), 1, 'Found Italian variant of tip 1.');
 
     $elements = $this->cssSelect("li[data-id=tour-test-2] h2:contains('The quick brown fox')");
     $this->assertNotEqual(count($elements), 1, 'Did not find English variant of tip 1.');
@@ -140,26 +140,26 @@ public function testTourFunctionality() {
     // Ensure that a tour entity has the expected dependencies based on plugin
     // providers and the module named in the configuration entity.
     $dependencies = $tour->calculateDependencies()->getDependencies();
-    $this->assertEqual($dependencies['module'], ['system', 'tour_test']);
+    $this->assertEquals($dependencies['module'], ['system', 'tour_test']);
 
     $this->drupalGet('tour-test-1');
 
     // Load it back from the database and verify storage worked.
     $entity_save_tip = Tour::load('tour-entity-create-test-en');
     // Verify that hook_ENTITY_TYPE_load() integration worked.
-    $this->assertEqual($entity_save_tip->loaded, 'Load hooks work');
+    $this->assertEquals($entity_save_tip->loaded, 'Load hooks work');
     // Verify that hook_ENTITY_TYPE_presave() integration worked.
-    $this->assertEqual($entity_save_tip->label(), 'Tour test english alter');
+    $this->assertEquals($entity_save_tip->label(), 'Tour test english alter');
 
     // Navigate to tour-test-1 and verify the new tip is found.
     $this->drupalGet('tour-test-1');
     $elements = $this->cssSelect("li[data-id=tour-code-test-1] h2:contains('The rain in spain')");
-    $this->assertEqual(count($elements), 1, 'Found the required tip markup for tip 4');
+    $this->assertEquals(count($elements), 1, 'Found the required tip markup for tip 4');
 
     // Verify that the weight sorting works by ensuring the lower weight item
     // (tip 4) has the 'End tour' button.
     $elements = $this->cssSelect("li[data-id=tour-code-test-1][data-text='End tour']");
-    $this->assertEqual(count($elements), 1, 'Found code tip was weighted last and had "End tour".');
+    $this->assertEquals(count($elements), 1, 'Found code tip was weighted last and had "End tour".');
 
     // Test hook_tour_alter().
     $this->assertText('Altered by hook_tour_tips_alter');
@@ -172,7 +172,7 @@ public function testTourFunctionality() {
       ':data_id' => 'tour-test-1',
       ':text' => 'The first tip',
     ]);
-    $this->assertEqual(count($elements), 1, 'Found English variant of tip 1.');
+    $this->assertEquals(count($elements), 1, 'Found English variant of tip 1.');
 
     // Navigate to tour-test-3 and verify the tour_test_1 tip is not found with
     // appropriate classes.
@@ -182,7 +182,7 @@ public function testTourFunctionality() {
       ':data_id' => 'tour-test-1',
       ':text' => 'The first tip',
     ]);
-    $this->assertEqual(count($elements), 0, 'Did not find English variant of tip 1.');
+    $this->assertEquals(count($elements), 0, 'Did not find English variant of tip 1.');
   }
 
 }
diff --git a/core/modules/update/tests/src/Functional/UpdateCoreTest.php b/core/modules/update/tests/src/Functional/UpdateCoreTest.php
index 5cd4b10260..78746479f8 100644
--- a/core/modules/update/tests/src/Functional/UpdateCoreTest.php
+++ b/core/modules/update/tests/src/Functional/UpdateCoreTest.php
@@ -321,19 +321,19 @@ public function testFetchTasks() {
       'name' => 'bbb_update_test',
     ];
     $queue = \Drupal::queue('update_fetch_tasks');
-    $this->assertEqual($queue->numberOfItems(), 0, 'Queue is empty');
+    $this->assertEquals($queue->numberOfItems(), 0, 'Queue is empty');
     update_create_fetch_task($projecta);
-    $this->assertEqual($queue->numberOfItems(), 1, 'Queue contains one item');
+    $this->assertEquals($queue->numberOfItems(), 1, 'Queue contains one item');
     update_create_fetch_task($projectb);
-    $this->assertEqual($queue->numberOfItems(), 2, 'Queue contains two items');
+    $this->assertEquals($queue->numberOfItems(), 2, 'Queue contains two items');
     // Try to add project a again.
     update_create_fetch_task($projecta);
-    $this->assertEqual($queue->numberOfItems(), 2, 'Queue still contains two items');
+    $this->assertEquals($queue->numberOfItems(), 2, 'Queue still contains two items');
 
     // Clear storage and try again.
     update_storage_clear();
     update_create_fetch_task($projecta);
-    $this->assertEqual($queue->numberOfItems(), 2, 'Queue contains two items');
+    $this->assertEquals($queue->numberOfItems(), 2, 'Queue contains two items');
   }
 
   /**
diff --git a/core/modules/update/tests/src/Functional/UpdateUploadTest.php b/core/modules/update/tests/src/Functional/UpdateUploadTest.php
index 6096620062..aa9878d260 100644
--- a/core/modules/update/tests/src/Functional/UpdateUploadTest.php
+++ b/core/modules/update/tests/src/Functional/UpdateUploadTest.php
@@ -100,7 +100,7 @@ public function testUploadModule() {
     // directly instead.
     $info_parser = new InfoParserDynamic();
     $info = $info_parser->parse($installedInfoFilePath);
-    $this->assertEqual($info['version'], '8.x-1.0');
+    $this->assertEquals($info['version'], '8.x-1.0');
 
     // Enable the module.
     $this->drupalPostForm('admin/modules', ['modules[update_test_new_module][enable]' => TRUE], t('Install'));
@@ -128,7 +128,7 @@ public function testUploadModule() {
     // Parse the info file again to check that the module has been updated to
     // 8.x-1.1.
     $info = $info_parser->parse($installedInfoFilePath);
-    $this->assertEqual($info['version'], '8.x-1.1');
+    $this->assertEquals($info['version'], '8.x-1.1');
   }
 
   /**
@@ -191,10 +191,10 @@ public function testUpdateManagerCoreSecurityUpdateMessages() {
    */
   public function testUpdateDirectory() {
     $type = Updater::getUpdaterFromDirectory(\Drupal::root() . '/core/modules/update/tests/modules/aaa_update_test');
-    $this->assertEqual($type, 'Drupal\\Core\\Updater\\Module', 'Detected a Module');
+    $this->assertEquals($type, 'Drupal\\Core\\Updater\\Module', 'Detected a Module');
 
     $type = Updater::getUpdaterFromDirectory(\Drupal::root() . '/core/modules/update/tests/themes/update_test_basetheme');
-    $this->assertEqual($type, 'Drupal\\Core\\Updater\\Theme', 'Detected a Theme.');
+    $this->assertEquals($type, 'Drupal\\Core\\Updater\\Theme', 'Detected a Theme.');
   }
 
 }
diff --git a/core/modules/user/src/Tests/RestRegisterUserTest.php b/core/modules/user/src/Tests/RestRegisterUserTest.php
index 450c552919..b9c34cec43 100644
--- a/core/modules/user/src/Tests/RestRegisterUserTest.php
+++ b/core/modules/user/src/Tests/RestRegisterUserTest.php
@@ -60,7 +60,7 @@ public function testRegisterUser() {
     $this->assertFalse($user->isBlocked());
     $this->assertFalse(empty($user->getPassword()));
     $email_count = count($this->drupalGetMails());
-    $this->assertEqual(0, $email_count);
+    $this->assertEquals(0, $email_count);
 
     // Attempt to register without sending a password.
     $this->registerRequest('Rick.Deckard', FALSE);
diff --git a/core/modules/user/src/Tests/UserBlocksTest.php b/core/modules/user/src/Tests/UserBlocksTest.php
index 0a4c619da6..cf20d9b299 100644
--- a/core/modules/user/src/Tests/UserBlocksTest.php
+++ b/core/modules/user/src/Tests/UserBlocksTest.php
@@ -79,7 +79,7 @@ public function testUserLoginBlock() {
     // Now, log out and repeat with a non-403 page.
     $this->drupalLogout();
     $this->drupalGet('filter/tips');
-    $this->assertEqual('MISS', $this->drupalGetHeader(DynamicPageCacheSubscriber::HEADER));
+    $this->assertEquals('MISS', $this->drupalGetHeader(DynamicPageCacheSubscriber::HEADER));
     $this->drupalPostForm(NULL, $edit, t('Log in'));
     $this->assertNoText(t('User login'), 'Logged in.');
     $this->assertPattern('!<title.*?' . t('Compose tips') . '.*?</title>!', 'Still on the same page after login for allowed page');
@@ -87,7 +87,7 @@ public function testUserLoginBlock() {
     // Log out again and repeat with a non-403 page including query arguments.
     $this->drupalLogout();
     $this->drupalGet('filter/tips', ['query' => ['foo' => 'bar']]);
-    $this->assertEqual('HIT', $this->drupalGetHeader(DynamicPageCacheSubscriber::HEADER));
+    $this->assertEquals('HIT', $this->drupalGetHeader(DynamicPageCacheSubscriber::HEADER));
     $this->drupalPostForm(NULL, $edit, t('Log in'));
     $this->assertNoText(t('User login'), 'Logged in.');
     $this->assertPattern('!<title.*?' . t('Compose tips') . '.*?</title>!', 'Still on the same page after login for allowed page');
@@ -96,7 +96,7 @@ public function testUserLoginBlock() {
     // Repeat with different query arguments.
     $this->drupalLogout();
     $this->drupalGet('filter/tips', ['query' => ['foo' => 'baz']]);
-    $this->assertEqual('HIT', $this->drupalGetHeader(DynamicPageCacheSubscriber::HEADER));
+    $this->assertEquals('HIT', $this->drupalGetHeader(DynamicPageCacheSubscriber::HEADER));
     $this->drupalPostForm(NULL, $edit, t('Log in'));
     $this->assertNoText(t('User login'), 'Logged in.');
     $this->assertPattern('!<title.*?' . t('Compose tips') . '.*?</title>!', 'Still on the same page after login for allowed page');
diff --git a/core/modules/user/src/Tests/UserCreateTest.php b/core/modules/user/src/Tests/UserCreateTest.php
index 7b534435a0..391bc51491 100644
--- a/core/modules/user/src/Tests/UserCreateTest.php
+++ b/core/modules/user/src/Tests/UserCreateTest.php
@@ -28,8 +28,8 @@ public function testUserAdd() {
     $user = $this->drupalCreateUser(['administer users']);
     $this->drupalLogin($user);
 
-    $this->assertEqual($user->getCreatedTime(), REQUEST_TIME, 'Creating a user sets default "created" timestamp.');
-    $this->assertEqual($user->getChangedTime(), REQUEST_TIME, 'Creating a user sets default "changed" timestamp.');
+    $this->assertEquals($user->getCreatedTime(), REQUEST_TIME, 'Creating a user sets default "created" timestamp.');
+    $this->assertEquals($user->getChangedTime(), REQUEST_TIME, 'Creating a user sets default "changed" timestamp.');
 
     // Create a field.
     $field_name = 'test_field';
@@ -99,17 +99,17 @@ public function testUserAdd() {
 
       if ($notify) {
         $this->assertText(t('A welcome message with further instructions has been emailed to the new user @name.', ['@name' => $edit['name']]), 'User created');
-        $this->assertEqual(count($this->drupalGetMails()), 1, 'Notification email sent');
+        $this->assertEquals(count($this->drupalGetMails()), 1, 'Notification email sent');
       }
       else {
         $this->assertText(t('Created a new user account for @name. No email has been sent.', ['@name' => $edit['name']]), 'User created');
-        $this->assertEqual(count($this->drupalGetMails()), 0, 'Notification email not sent');
+        $this->assertEquals(count($this->drupalGetMails()), 0, 'Notification email not sent');
       }
 
       $this->drupalGet('admin/people');
       $this->assertText($edit['name'], 'User found in list of users');
       $user = user_load_by_name($name);
-      $this->assertEqual($user->isActive(), 'User is not blocked');
+      $this->assertEquals($user->isActive(), 'User is not blocked');
     }
 
     // Test that the password '0' is considered a password.
diff --git a/core/modules/user/src/Tests/UserPasswordResetTest.php b/core/modules/user/src/Tests/UserPasswordResetTest.php
index b940878f2d..df7d140862 100644
--- a/core/modules/user/src/Tests/UserPasswordResetTest.php
+++ b/core/modules/user/src/Tests/UserPasswordResetTest.php
@@ -82,7 +82,7 @@ public function testUserPasswordReset() {
     $this->drupalPostForm(NULL, $edit, t('Submit'));
 
     $this->assertText(t('@name is not recognized as a username or an email address.', ['@name' => $edit['name']]), 'Validation error message shown when trying to request password for invalid account.');
-    $this->assertEqual(count($this->drupalGetMails(['id' => 'user_password_reset'])), 0, 'No email was sent when requesting a password for an invalid account.');
+    $this->assertEquals(count($this->drupalGetMails(['id' => 'user_password_reset'])), 0, 'No email was sent when requesting a password for an invalid account.');
 
     // Reset the password by username via the password reset page.
     $edit['name'] = $this->account->getUsername();
@@ -324,7 +324,7 @@ public function testResetImpersonation() {
     $user1 = User::load($user1->id());
     $user2 = User::load($user2->id());
 
-    $this->assertEqual($user1->getPassword(), $user2->getPassword(), 'Both users have the same password hash.');
+    $this->assertEquals($user1->getPassword(), $user2->getPassword(), 'Both users have the same password hash.');
 
     // The password reset URL must not be valid for the second user when only
     // the user ID is changed in the URL.
diff --git a/core/modules/user/src/Tests/UserRegistrationTest.php b/core/modules/user/src/Tests/UserRegistrationTest.php
index 128b71b7da..b39ad39338 100644
--- a/core/modules/user/src/Tests/UserRegistrationTest.php
+++ b/core/modules/user/src/Tests/UserRegistrationTest.php
@@ -252,14 +252,14 @@ public function testRegistrationDefaultValues() {
     $accounts = $this->container->get('entity_type.manager')->getStorage('user')
       ->loadByProperties(['name' => $name, 'mail' => $mail]);
     $new_user = reset($accounts);
-    $this->assertEqual($new_user->getUsername(), $name, 'Username matches.');
-    $this->assertEqual($new_user->getEmail(), $mail, 'Email address matches.');
+    $this->assertEquals($new_user->getUsername(), $name, 'Username matches.');
+    $this->assertEquals($new_user->getEmail(), $mail, 'Email address matches.');
     $this->assertTrue(($new_user->getCreatedTime() > REQUEST_TIME - 20), 'Correct creation time.');
-    $this->assertEqual($new_user->isActive(), $config_user_settings->get('register') == USER_REGISTER_VISITORS ? 1 : 0, 'Correct status field.');
-    $this->assertEqual($new_user->getTimezone(), $config_system_date->get('timezone.default'), 'Correct time zone field.');
-    $this->assertEqual($new_user->langcode->value, \Drupal::languageManager()->getDefaultLanguage()->getId(), 'Correct language field.');
-    $this->assertEqual($new_user->preferred_langcode->value, \Drupal::languageManager()->getDefaultLanguage()->getId(), 'Correct preferred language field.');
-    $this->assertEqual($new_user->init->value, $mail, 'Correct init field.');
+    $this->assertEquals($new_user->isActive(), $config_user_settings->get('register') == USER_REGISTER_VISITORS ? 1 : 0, 'Correct status field.');
+    $this->assertEquals($new_user->getTimezone(), $config_system_date->get('timezone.default'), 'Correct time zone field.');
+    $this->assertEquals($new_user->langcode->value, \Drupal::languageManager()->getDefaultLanguage()->getId(), 'Correct language field.');
+    $this->assertEquals($new_user->preferred_langcode->value, \Drupal::languageManager()->getDefaultLanguage()->getId(), 'Correct preferred language field.');
+    $this->assertEquals($new_user->init->value, $mail, 'Correct init field.');
   }
 
   /**
@@ -343,7 +343,7 @@ public function testRegistrationWithUserFields() {
     $accounts = $this->container->get('entity_type.manager')->getStorage('user')
       ->loadByProperties(['name' => $name, 'mail' => $mail]);
     $new_user = reset($accounts);
-    $this->assertEqual($new_user->test_user_field->value, $value, 'The field value was correctly saved.');
+    $this->assertEquals($new_user->test_user_field->value, $value, 'The field value was correctly saved.');
 
     // Check that the 'add more' button works.
     $field_storage->setCardinality(FieldStorageDefinitionInterface::CARDINALITY_UNLIMITED);
@@ -373,9 +373,9 @@ public function testRegistrationWithUserFields() {
       $accounts = $this->container->get('entity_type.manager')->getStorage('user')
         ->loadByProperties(['name' => $name, 'mail' => $mail]);
       $new_user = reset($accounts);
-      $this->assertEqual($new_user->test_user_field[0]->value, $value, format_string('@js : The field value was correctly saved.', ['@js' => $js]));
-      $this->assertEqual($new_user->test_user_field[1]->value, $value + 1, format_string('@js : The field value was correctly saved.', ['@js' => $js]));
-      $this->assertEqual($new_user->test_user_field[2]->value, $value + 2, format_string('@js : The field value was correctly saved.', ['@js' => $js]));
+      $this->assertEquals($new_user->test_user_field[0]->value, $value, format_string('@js : The field value was correctly saved.', ['@js' => $js]));
+      $this->assertEquals($new_user->test_user_field[1]->value, $value + 1, format_string('@js : The field value was correctly saved.', ['@js' => $js]));
+      $this->assertEquals($new_user->test_user_field[2]->value, $value + 2, format_string('@js : The field value was correctly saved.', ['@js' => $js]));
     }
   }
 
diff --git a/core/modules/user/tests/src/Functional/AccessRoleUITest.php b/core/modules/user/tests/src/Functional/AccessRoleUITest.php
index 6c1004c9d4..a16a36983e 100644
--- a/core/modules/user/tests/src/Functional/AccessRoleUITest.php
+++ b/core/modules/user/tests/src/Functional/AccessRoleUITest.php
@@ -50,7 +50,7 @@ public function testAccessRoleUI() {
     $view = $entity_manager->getStorage('view')->load('test_access_role');
 
     $display = $view->getDisplay('default');
-    $this->assertEqual($display['display_options']['access']['options']['role'], ['custom_role' => 'custom_role']);
+    $this->assertEquals($display['display_options']['access']['options']['role'], ['custom_role' => 'custom_role']);
 
     // Test changing access plugin from role to none.
     $this->drupalPostForm('admin/structure/views/nojs/display/test_access_role/default/access', ['access[type]' => 'none'], t('Apply'));
diff --git a/core/modules/user/tests/src/Functional/UserAccountLinksTest.php b/core/modules/user/tests/src/Functional/UserAccountLinksTest.php
index c09fc34daf..66ac5a7996 100644
--- a/core/modules/user/tests/src/Functional/UserAccountLinksTest.php
+++ b/core/modules/user/tests/src/Functional/UserAccountLinksTest.php
@@ -46,14 +46,14 @@ public function testSecondaryMenu() {
       ':href' => 'user',
       ':text' => 'My account',
     ]);
-    $this->assertEqual(count($link), 1, 'My account link is in secondary menu.');
+    $this->assertEquals(count($link), 1, 'My account link is in secondary menu.');
 
     $link = $this->xpath('//ul[@class=:menu_class]/li/a[contains(@href, :href) and text()=:text]', [
       ':menu_class' => 'menu',
       ':href' => 'user/logout',
       ':text' => 'Log out',
     ]);
-    $this->assertEqual(count($link), 1, 'Log out link is in secondary menu.');
+    $this->assertEquals(count($link), 1, 'Log out link is in secondary menu.');
 
     // Log out and get the homepage.
     $this->drupalLogout();
@@ -65,7 +65,7 @@ public function testSecondaryMenu() {
       ':href' => 'user/login',
       ':text' => 'Log in',
     ]);
-    $this->assertEqual(count($link), 1, 'Log in link is in secondary menu.');
+    $this->assertEquals(count($link), 1, 'Log in link is in secondary menu.');
   }
 
   /**
@@ -82,7 +82,7 @@ public function testDisabledAccountLink() {
       ':href' => 'user',
       ':text' => 'My account',
     ]);
-    $this->assertEqual(count($link), 1, 'My account link is in the secondary menu.');
+    $this->assertEquals(count($link), 1, 'My account link is in the secondary menu.');
 
     // Verify that the 'My account' link is enabled. Do not assume the value of
     // auto-increment is 1. Use XPath to obtain input element id and name using
@@ -104,7 +104,7 @@ public function testDisabledAccountLink() {
       ':href' => 'user',
       ':text' => 'My account',
     ]);
-    $this->assertEqual(count($link), 0, 'My account link is not in the secondary menu.');
+    $this->assertEquals(count($link), 0, 'My account link is not in the secondary menu.');
   }
 
   /**
diff --git a/core/modules/user/tests/src/Functional/UserAdminListingTest.php b/core/modules/user/tests/src/Functional/UserAdminListingTest.php
index b72e423459..5b2e7ded2e 100644
--- a/core/modules/user/tests/src/Functional/UserAdminListingTest.php
+++ b/core/modules/user/tests/src/Functional/UserAdminListingTest.php
@@ -84,15 +84,15 @@ public function testUserListing() {
 
     $this->assertFalse(array_keys(array_diff_key($result_accounts, $accounts)), 'Ensure all accounts are listed.');
     foreach ($result_accounts as $name => $values) {
-      $this->assertEqual($values['status'] == t('active'), $accounts[$name]->status->value, 'Ensure the status is displayed properly.');
+      $this->assertEquals($values['status'] == t('active'), $accounts[$name]->status->value, 'Ensure the status is displayed properly.');
     }
 
     $expected_roles = ['custom_role_1', 'custom_role_2'];
-    $this->assertEqual($result_accounts[$role_account_name]['roles'], $expected_roles, 'Ensure roles are listed properly.');
+    $this->assertEquals($result_accounts[$role_account_name]['roles'], $expected_roles, 'Ensure roles are listed properly.');
 
-    $this->assertEqual($result_accounts[$timestamp_user]['member_for'], \Drupal::service('date.formatter')->formatTimeDiffSince($accounts[$timestamp_user]->created->value), 'Ensure the right member time is displayed.');
+    $this->assertEquals($result_accounts[$timestamp_user]['member_for'], \Drupal::service('date.formatter')->formatTimeDiffSince($accounts[$timestamp_user]->created->value), 'Ensure the right member time is displayed.');
 
-    $this->assertEqual($result_accounts[$timestamp_user]['last_access'], 'never', 'Ensure the last access time is "never".');
+    $this->assertEquals($result_accounts[$timestamp_user]['last_access'], 'never', 'Ensure the last access time is "never".');
   }
 
 }
diff --git a/core/modules/user/tests/src/Functional/UserAdminTest.php b/core/modules/user/tests/src/Functional/UserAdminTest.php
index 4e69346d2e..bf29e50f10 100644
--- a/core/modules/user/tests/src/Functional/UserAdminTest.php
+++ b/core/modules/user/tests/src/Functional/UserAdminTest.php
@@ -70,13 +70,13 @@ public function testUserAdmin() {
     // Filter the users by name/email.
     $this->drupalGet('admin/people', ['query' => ['user' => $user_a->getUsername()]]);
     $result = $this->xpath('//table/tbody/tr');
-    $this->assertEqual(1, count($result), 'Filter by username returned the right amount.');
-    $this->assertEqual($user_a->getUsername(), $result[0]->find('xpath', '/td[2]/span')->getText(), 'Filter by username returned the right user.');
+    $this->assertEquals(1, count($result), 'Filter by username returned the right amount.');
+    $this->assertEquals($user_a->getUsername(), $result[0]->find('xpath', '/td[2]/span')->getText(), 'Filter by username returned the right user.');
 
     $this->drupalGet('admin/people', ['query' => ['user' => $user_a->getEmail()]]);
     $result = $this->xpath('//table/tbody/tr');
-    $this->assertEqual(1, count($result), 'Filter by username returned the right amount.');
-    $this->assertEqual($user_a->getUsername(), $result[0]->find('xpath', '/td[2]/span')->getText(), 'Filter by username returned the right user.');
+    $this->assertEquals(1, count($result), 'Filter by username returned the right amount.');
+    $this->assertEquals($user_a->getUsername(), $result[0]->find('xpath', '/td[2]/span')->getText(), 'Filter by username returned the right user.');
 
     // Filter the users by permission 'administer taxonomy'.
     $this->drupalGet('admin/people', ['query' => ['permission' => 'administer taxonomy']]);
diff --git a/core/modules/user/tests/src/Functional/UserCancelTest.php b/core/modules/user/tests/src/Functional/UserCancelTest.php
index 9889cd65bb..7fe52e0005 100644
--- a/core/modules/user/tests/src/Functional/UserCancelTest.php
+++ b/core/modules/user/tests/src/Functional/UserCancelTest.php
@@ -363,7 +363,7 @@ public function testUserAnonymize() {
     $storage->resetCache([$comment->id()]);
     $test_comment = $storage->load($comment->id());
     $this->assertTrue(($test_comment->getOwnerId() == 0 && $test_comment->isPublished()), 'Comment of the user has been attributed to anonymous user.');
-    $this->assertEqual($test_comment->getAuthorName(), $anonymous_user->getDisplayName(), 'Comment of the user has been attributed to anonymous user name.');
+    $this->assertEquals($test_comment->getAuthorName(), $anonymous_user->getDisplayName(), 'Comment of the user has been attributed to anonymous user name.');
 
     // Confirm that the confirmation message made it through to the end user.
     $this->assertRaw(t('%name has been deleted.', ['%name' => $account->getUsername()]), "Confirmation message displayed to user.");
diff --git a/core/modules/user/tests/src/Functional/UserEditTest.php b/core/modules/user/tests/src/Functional/UserEditTest.php
index 0f75ff8dc5..db9b030f7d 100644
--- a/core/modules/user/tests/src/Functional/UserEditTest.php
+++ b/core/modules/user/tests/src/Functional/UserEditTest.php
@@ -68,7 +68,7 @@ public function testUserEdit() {
     $this->assertRaw(t("The changes have been saved."));
 
     // Make sure the changed timestamp is updated.
-    $this->assertEqual($user1->getChangedTime(), REQUEST_TIME, 'Changing a user sets "changed" timestamp.');
+    $this->assertEquals($user1->getChangedTime(), REQUEST_TIME, 'Changing a user sets "changed" timestamp.');
 
     // Make sure the user can log in with their new password.
     $this->drupalLogout();
diff --git a/core/modules/user/tests/src/Functional/UserEntityCallbacksTest.php b/core/modules/user/tests/src/Functional/UserEntityCallbacksTest.php
index feea805afd..cdccc87f7a 100644
--- a/core/modules/user/tests/src/Functional/UserEntityCallbacksTest.php
+++ b/core/modules/user/tests/src/Functional/UserEntityCallbacksTest.php
@@ -45,20 +45,20 @@ protected function setUp() {
    * Test label callback.
    */
   public function testLabelCallback() {
-    $this->assertEqual($this->account->label(), $this->account->getUsername(), 'The username should be used as label');
+    $this->assertEquals($this->account->label(), $this->account->getUsername(), 'The username should be used as label');
 
     // Setup a random anonymous name to be sure the name is used.
     $name = $this->randomMachineName();
     $this->config('user.settings')->set('anonymous', $name)->save();
-    $this->assertEqual($this->anonymous->label(), $name, 'The variable anonymous should be used for name of uid 0');
-    $this->assertEqual($this->anonymous->getDisplayName(), $name, 'The variable anonymous should be used for display name of uid 0');
-    $this->assertEqual($this->anonymous->getUserName(), '', 'The raw anonymous user name should be empty string');
+    $this->assertEquals($this->anonymous->label(), $name, 'The variable anonymous should be used for name of uid 0');
+    $this->assertEquals($this->anonymous->getDisplayName(), $name, 'The variable anonymous should be used for display name of uid 0');
+    $this->assertEquals($this->anonymous->getUserName(), '', 'The raw anonymous user name should be empty string');
 
     // Set to test the altered username.
     \Drupal::state()->set('user_hooks_test_user_format_name_alter', TRUE);
 
-    $this->assertEqual($this->account->getDisplayName(), '<em>' . $this->account->id() . '</em>', 'The user display name should be altered.');
-    $this->assertEqual($this->account->getUsername(), $this->account->name->value, 'The user name should not be altered.');
+    $this->assertEquals($this->account->getDisplayName(), '<em>' . $this->account->id() . '</em>', 'The user display name should be altered.');
+    $this->assertEquals($this->account->getUsername(), $this->account->name->value, 'The user name should not be altered.');
   }
 
 }
diff --git a/core/modules/user/tests/src/Functional/UserLanguageCreationTest.php b/core/modules/user/tests/src/Functional/UserLanguageCreationTest.php
index 6f493418b2..1e5a7cc1d7 100644
--- a/core/modules/user/tests/src/Functional/UserLanguageCreationTest.php
+++ b/core/modules/user/tests/src/Functional/UserLanguageCreationTest.php
@@ -57,8 +57,8 @@ public function testLocalUserCreation() {
     $this->drupalPostForm($langcode . '/admin/people/create', $edit, t('Create new account'));
 
     $user = user_load_by_name($username);
-    $this->assertEqual($user->getPreferredLangcode(), $langcode, 'New user has correct preferred language set.');
-    $this->assertEqual($user->language()->getId(), $langcode, 'New user has correct profile language set.');
+    $this->assertEquals($user->getPreferredLangcode(), $langcode, 'New user has correct preferred language set.');
+    $this->assertEquals($user->language()->getId(), $langcode, 'New user has correct profile language set.');
 
     // Register a new user and check if the language selector is hidden.
     $this->drupalLogout();
@@ -75,8 +75,8 @@ public function testLocalUserCreation() {
     $this->drupalPostForm($langcode . '/user/register', $edit, t('Create new account'));
 
     $user = user_load_by_name($username);
-    $this->assertEqual($user->getPreferredLangcode(), $langcode, 'New user has correct preferred language set.');
-    $this->assertEqual($user->language()->getId(), $langcode, 'New user has correct profile language set.');
+    $this->assertEquals($user->getPreferredLangcode(), $langcode, 'New user has correct preferred language set.');
+    $this->assertEquals($user->language()->getId(), $langcode, 'New user has correct profile language set.');
 
     // Test if the admin can use the language selector and if the
     // correct language is was saved.
diff --git a/core/modules/user/tests/src/Functional/UserPermissionsTest.php b/core/modules/user/tests/src/Functional/UserPermissionsTest.php
index baa848ae14..c801db6091 100644
--- a/core/modules/user/tests/src/Functional/UserPermissionsTest.php
+++ b/core/modules/user/tests/src/Functional/UserPermissionsTest.php
@@ -175,14 +175,14 @@ public function testAccessContentPermission() {
     // to 'access site reports'.
     $this->drupalGet('admin/people/permissions');
     $next_row = $this->xpath('//tr[@data-drupal-selector=\'edit-permissions-access-content\']/following-sibling::tr[1]');
-    $this->assertEqual('edit-permissions-access-site-reports', $next_row[0]->getAttribute('data-drupal-selector'));
+    $this->assertEquals('edit-permissions-access-site-reports', $next_row[0]->getAttribute('data-drupal-selector'));
 
     // When Node is installed the 'access content' permission is listed next to
     // to 'view own unpublished content'.
     \Drupal::service('module_installer')->install(['node']);
     $this->drupalGet('admin/people/permissions');
     $next_row = $this->xpath('//tr[@data-drupal-selector=\'edit-permissions-access-content\']/following-sibling::tr[1]');
-    $this->assertEqual('edit-permissions-view-own-unpublished-content', $next_row[0]->getAttribute('data-drupal-selector'));
+    $this->assertEquals('edit-permissions-view-own-unpublished-content', $next_row[0]->getAttribute('data-drupal-selector'));
   }
 
 }
diff --git a/core/modules/user/tests/src/Functional/UserPictureTest.php b/core/modules/user/tests/src/Functional/UserPictureTest.php
index d154577552..d107349a6d 100644
--- a/core/modules/user/tests/src/Functional/UserPictureTest.php
+++ b/core/modules/user/tests/src/Functional/UserPictureTest.php
@@ -112,7 +112,7 @@ public function testPictureOnNodeComment() {
     // Verify that the image is displayed on the node page.
     $this->drupalGet('node/' . $node->id());
     $elements = $this->cssSelect('.node__meta .field--name-user-picture img[alt="' . $alt_text . '"][src="' . $image_url . '"]');
-    $this->assertEqual(count($elements), 1, 'User picture with alt text found on node page.');
+    $this->assertEquals(count($elements), 1, 'User picture with alt text found on node page.');
 
     // Enable user pictures on comments, instead of nodes.
     $this->config('system.theme.global')
@@ -125,7 +125,7 @@ public function testPictureOnNodeComment() {
     ];
     $this->drupalPostForm('comment/reply/node/' . $node->id() . '/comment', $edit, t('Save'));
     $elements = $this->cssSelect('.comment__meta .field--name-user-picture img[alt="' . $alt_text . '"][src="' . $image_url . '"]');
-    $this->assertEqual(count($elements), 1, 'User picture with alt text found on the comment.');
+    $this->assertEquals(count($elements), 1, 'User picture with alt text found on the comment.');
 
     // Disable user pictures on comments and nodes.
     $this->config('system.theme.global')
diff --git a/core/modules/user/tests/src/Functional/UserRoleAdminTest.php b/core/modules/user/tests/src/Functional/UserRoleAdminTest.php
index 24dc0849fc..9c0b2894a5 100644
--- a/core/modules/user/tests/src/Functional/UserRoleAdminTest.php
+++ b/core/modules/user/tests/src/Functional/UserRoleAdminTest.php
@@ -48,7 +48,7 @@ public function testRoleAdministration() {
       ':classes' => 'tabs primary',
       ':text' => 'Roles',
     ]);
-    $this->assertEqual(count($tabs), 1, 'Found roles tab');
+    $this->assertEquals(count($tabs), 1, 'Found roles tab');
 
     // Test adding a role. (In doing so, we use a role name that happens to
     // correspond to an integer, to test that the role administration pages
@@ -61,7 +61,7 @@ public function testRoleAdministration() {
     $this->assertTrue(is_object($role), 'The role was successfully retrieved from the database.');
 
     // Check that the role was created in site default language.
-    $this->assertEqual($role->language()->getId(), $default_langcode);
+    $this->assertEquals($role->language()->getId(), $default_langcode);
 
     // Try adding a duplicate role.
     $this->drupalPostForm('admin/people/roles/add', $edit, t('Save'));
@@ -74,7 +74,7 @@ public function testRoleAdministration() {
     $this->assertRaw(t('Role %label has been updated.', ['%label' => $role_name]));
     \Drupal::entityManager()->getStorage('user_role')->resetCache([$role->id()]);
     $new_role = Role::load($role->id());
-    $this->assertEqual($new_role->label(), $role_name, 'The role name has been successfully changed.');
+    $this->assertEquals($new_role->label(), $role_name, 'The role name has been successfully changed.');
 
     // Test deleting a role.
     $this->drupalGet("admin/people/roles/manage/{$role->id()}");
@@ -122,7 +122,7 @@ public function testRoleWeightOrdering() {
     $rids = [];
     // Test that the role weights have been correctly saved.
     foreach ($roles as $role) {
-      $this->assertEqual($role->getWeight(), $new_role_weights[$role->id()]);
+      $this->assertEquals($role->getWeight(), $new_role_weights[$role->id()]);
       $rids[] = $role->id();
     }
     // The order of the roles should be reversed.
diff --git a/core/modules/user/tests/src/Functional/UserTokenReplaceTest.php b/core/modules/user/tests/src/Functional/UserTokenReplaceTest.php
index e272b60732..cb0c15b40d 100644
--- a/core/modules/user/tests/src/Functional/UserTokenReplaceTest.php
+++ b/core/modules/user/tests/src/Functional/UserTokenReplaceTest.php
@@ -102,8 +102,8 @@ public function testUserTokenReplacement() {
     foreach ($tests as $input => $expected) {
       $bubbleable_metadata = new BubbleableMetadata();
       $output = $token_service->replace($input, ['user' => $account], ['langcode' => $language_interface->getId()], $bubbleable_metadata);
-      $this->assertEqual($output, $expected, new FormattableMarkup('User token %token replaced.', ['%token' => $input]));
-      $this->assertEqual($bubbleable_metadata, $metadata_tests[$input]);
+      $this->assertEquals($output, $expected, new FormattableMarkup('User token %token replaced.', ['%token' => $input]));
+      $this->assertEquals($bubbleable_metadata, $metadata_tests[$input]);
     }
 
     // Generate tokens for the anonymous user.
@@ -122,8 +122,8 @@ public function testUserTokenReplacement() {
     foreach ($tests as $input => $expected) {
       $bubbleable_metadata = new BubbleableMetadata();
       $output = $token_service->replace($input, ['user' => $anonymous_user], ['langcode' => $language_interface->getId()], $bubbleable_metadata);
-      $this->assertEqual($output, $expected, format_string('Sanitized user token %token replaced.', ['%token' => $input]));
-      $this->assertEqual($bubbleable_metadata, $metadata_tests[$input]);
+      $this->assertEquals($output, $expected, format_string('Sanitized user token %token replaced.', ['%token' => $input]));
+      $this->assertEquals($bubbleable_metadata, $metadata_tests[$input]);
     }
 
     // Generate login and cancel link.
@@ -162,7 +162,7 @@ public function testUserTokenReplacement() {
     $input = '[user:display-name] [current-user:display-name]';
     $expected = "<em>{$user1->id()}</em> <em>{$user2->id()}</em>";
     $output = $token_service->replace($input, ['user' => $user1]);
-    $this->assertEqual($output, $expected, new FormattableMarkup('User token %token does not escape safe markup.', ['%token' => 'display-name']));
+    $this->assertEquals($output, $expected, new FormattableMarkup('User token %token does not escape safe markup.', ['%token' => 'display-name']));
   }
 
 }
diff --git a/core/modules/user/tests/src/Functional/Views/AccessPermissionTest.php b/core/modules/user/tests/src/Functional/Views/AccessPermissionTest.php
index dde139149a..151909271e 100644
--- a/core/modules/user/tests/src/Functional/Views/AccessPermissionTest.php
+++ b/core/modules/user/tests/src/Functional/Views/AccessPermissionTest.php
@@ -30,7 +30,7 @@ public function testAccessPerm() {
 
     $access_plugin = $view->display_handler->getPlugin('access');
     $this->assertTrue($access_plugin instanceof Permission, 'Make sure the right class got instantiated.');
-    $this->assertEqual($access_plugin->pluginTitle(), t('Permission'));
+    $this->assertEquals($access_plugin->pluginTitle(), t('Permission'));
 
     $this->assertFalse($view->display_handler->access($this->webUser));
     $this->assertTrue($view->display_handler->access($this->normalUser));
@@ -61,7 +61,7 @@ public function testRenderCaching() {
     $build = DisplayPluginBase::buildBasicRenderable('test_access_perm', 'default');
     $account_switcher->switchTo($this->webUser);
     $result = $renderer->renderPlain($build);
-    $this->assertEqual($result, '');
+    $this->assertEquals($result, '');
   }
 
 }
diff --git a/core/modules/user/tests/src/Functional/Views/AccessRoleTest.php b/core/modules/user/tests/src/Functional/Views/AccessRoleTest.php
index e6966f4f1a..45ec7273a5 100644
--- a/core/modules/user/tests/src/Functional/Views/AccessRoleTest.php
+++ b/core/modules/user/tests/src/Functional/Views/AccessRoleTest.php
@@ -120,8 +120,8 @@ public function testRenderCaching() {
     $account_switcher->switchTo($this->normalUser);
     $result = $renderer->renderPlain($build);
     $this->assertTrue(in_array('user.roles', $build['#cache']['contexts']));
-    $this->assertEqual(['config:views.view.test_access_role'], $build['#cache']['tags']);
-    $this->assertEqual(Cache::PERMANENT, $build['#cache']['max-age']);
+    $this->assertEquals(['config:views.view.test_access_role'], $build['#cache']['tags']);
+    $this->assertEquals(Cache::PERMANENT, $build['#cache']['max-age']);
     $this->assertNotEqual($result, '');
 
     // Then without access.
@@ -132,9 +132,9 @@ public function testRenderCaching() {
     // DisplayPluginBase::applyDisplayCacheabilityMetadata() is not invoked when
     // using buildBasicRenderable() and a Views access plugin returns FALSE.
     // $this->assertTrue(in_array('user.roles', $build['#cache']['contexts']));
-    // $this->assertEqual([], $build['#cache']['tags']);
-    $this->assertEqual(Cache::PERMANENT, $build['#cache']['max-age']);
-    $this->assertEqual($result, '');
+    // $this->assertEquals([], $build['#cache']['tags']);
+    $this->assertEquals(Cache::PERMANENT, $build['#cache']['max-age']);
+    $this->assertEquals($result, '');
   }
 
 }
diff --git a/core/modules/user/tests/src/Functional/Views/ArgumentDefaultTest.php b/core/modules/user/tests/src/Functional/Views/ArgumentDefaultTest.php
index e14948ba26..2f26201224 100644
--- a/core/modules/user/tests/src/Functional/Views/ArgumentDefaultTest.php
+++ b/core/modules/user/tests/src/Functional/Views/ArgumentDefaultTest.php
@@ -28,7 +28,7 @@ public function test_plugin_argument_default_current_user() {
     $view = Views::getView('test_plugin_argument_default_current_user');
     $view->initHandlers();
 
-    $this->assertEqual($view->argument['null']->getDefaultArgument(), $account->id(), 'Uid of the current user is used.');
+    $this->assertEquals($view->argument['null']->getDefaultArgument(), $account->id(), 'Uid of the current user is used.');
     // Switch back.
     \Drupal::service('account_switcher')->switchBack();
   }
diff --git a/core/modules/user/tests/src/Functional/Views/BulkFormTest.php b/core/modules/user/tests/src/Functional/Views/BulkFormTest.php
index 29c0e83e6b..d5bd466f61 100644
--- a/core/modules/user/tests/src/Functional/Views/BulkFormTest.php
+++ b/core/modules/user/tests/src/Functional/Views/BulkFormTest.php
@@ -134,7 +134,7 @@ public function testBulkFormCombineFilter() {
     User::load($this->users[0]->id());
     $view = Views::getView('test_user_bulk_form_combine_filter');
     $errors = $view->validate();
-    $this->assertEqual(reset($errors['default']), t('Field %field set in %filter is not usable for this filter type. Combined field filter only works for simple fields.', ['%field' => 'User: Bulk update', '%filter' => 'Global: Combine fields filter']));
+    $this->assertEquals(reset($errors['default']), t('Field %field set in %filter is not usable for this filter type. Combined field filter only works for simple fields.', ['%field' => 'User: Bulk update', '%filter' => 'Global: Combine fields filter']));
   }
 
 }
diff --git a/core/modules/user/tests/src/Functional/Views/HandlerArgumentUserUidTest.php b/core/modules/user/tests/src/Functional/Views/HandlerArgumentUserUidTest.php
index 628150b889..05d80a3423 100644
--- a/core/modules/user/tests/src/Functional/Views/HandlerArgumentUserUidTest.php
+++ b/core/modules/user/tests/src/Functional/Views/HandlerArgumentUserUidTest.php
@@ -32,23 +32,23 @@ public function testArgumentTitle() {
     // Tests a valid user.
     $account = $this->drupalCreateUser();
     $this->executeView($view, [$account->id()]);
-    $this->assertEqual($view->getTitle(), $account->label());
+    $this->assertEquals($view->getTitle(), $account->label());
     $view->destroy();
 
     // Tests the anonymous user.
     $anonymous = $this->config('user.settings')->get('anonymous');
     $this->executeView($view, [0]);
-    $this->assertEqual($view->getTitle(), $anonymous);
+    $this->assertEquals($view->getTitle(), $anonymous);
     $view->destroy();
 
     $view->getDisplay()->getHandler('argument', 'uid')->options['break_phrase'] = TRUE;
     $this->executeView($view, [$account->id() . ',0']);
-    $this->assertEqual($view->getTitle(), $account->label() . ', ' . $anonymous);
+    $this->assertEquals($view->getTitle(), $account->label() . ', ' . $anonymous);
     $view->destroy();
 
     $view->getDisplay()->getHandler('argument', 'uid')->options['break_phrase'] = TRUE;
     $this->executeView($view, ['0,' . $account->id()]);
-    $this->assertEqual($view->getTitle(), $anonymous . ', ' . $account->label());
+    $this->assertEquals($view->getTitle(), $anonymous . ', ' . $account->label());
     $view->destroy();
   }
 
diff --git a/core/modules/user/tests/src/Functional/Views/HandlerFieldUserNameTest.php b/core/modules/user/tests/src/Functional/Views/HandlerFieldUserNameTest.php
index 0525e3d1fe..a956ed529d 100644
--- a/core/modules/user/tests/src/Functional/Views/HandlerFieldUserNameTest.php
+++ b/core/modules/user/tests/src/Functional/Views/HandlerFieldUserNameTest.php
@@ -55,7 +55,7 @@ public function testUserName() {
     $render = $renderer->executeInRenderContext(new RenderContext(), function () use ($view, $new_user) {
       return $view->field['name']->advancedRender($view->result[$new_user->id()]);
     });
-    $this->assertEqual($render, $new_user->getDisplayName(), 'If the user is not linked the username should be printed out for a normal user.');
+    $this->assertEquals($render, $new_user->getDisplayName(), 'If the user is not linked the username should be printed out for a normal user.');
 
   }
 
diff --git a/core/modules/user/tests/src/Functional/Views/HandlerFilterUserNameTest.php b/core/modules/user/tests/src/Functional/Views/HandlerFilterUserNameTest.php
index c2b15ff58c..68c935742c 100644
--- a/core/modules/user/tests/src/Functional/Views/HandlerFilterUserNameTest.php
+++ b/core/modules/user/tests/src/Functional/Views/HandlerFilterUserNameTest.php
@@ -79,7 +79,7 @@ public function testUserNameApi() {
     $this->executeView($view);
     $this->assertIdenticalResultset($view, [['uid' => $this->accounts[0]->id()]], $this->columnMap);
 
-    $this->assertEqual($view->filter['uid']->getValueOptions(), NULL);
+    $this->assertEquals($view->filter['uid']->getValueOptions(), NULL);
   }
 
   /**
diff --git a/core/modules/user/tests/src/Functional/Views/UserDataTest.php b/core/modules/user/tests/src/Functional/Views/UserDataTest.php
index d15e6f368d..5b4b4e9995 100644
--- a/core/modules/user/tests/src/Functional/Views/UserDataTest.php
+++ b/core/modules/user/tests/src/Functional/Views/UserDataTest.php
@@ -39,7 +39,7 @@ public function testDataField() {
     $this->executeView($view);
 
     $output = $view->field['data']->render($view->result[0]);
-    $this->assertEqual($output, $random_value, 'A valid user data got rendered.');
+    $this->assertEquals($output, $random_value, 'A valid user data got rendered.');
 
     $view->field['data']->options['data_name'] = $this->randomMachineName();
     $output = $view->field['data']->render($view->result[0]);
diff --git a/core/modules/user/tests/src/Kernel/Condition/UserRoleConditionTest.php b/core/modules/user/tests/src/Kernel/Condition/UserRoleConditionTest.php
index 075b04c5e0..e8d9c0acc7 100644
--- a/core/modules/user/tests/src/Kernel/Condition/UserRoleConditionTest.php
+++ b/core/modules/user/tests/src/Kernel/Condition/UserRoleConditionTest.php
@@ -112,19 +112,19 @@ public function testConditions() {
     $this->assertFalse($condition->execute(), 'Anonymous users fail role checks for authenticated.');
     // Check for the proper summary.
     // Summaries require an extra space due to negate handling in summary().
-    $this->assertEqual($condition->summary(), 'The user is a member of Authenticated user');
+    $this->assertEquals($condition->summary(), 'The user is a member of Authenticated user');
 
     // Set the user role to anonymous.
     $condition->setConfig('roles', [RoleInterface::ANONYMOUS_ID => RoleInterface::ANONYMOUS_ID]);
     $this->assertTrue($condition->execute(), 'Anonymous users pass role checks for anonymous.');
     // Check for the proper summary.
-    $this->assertEqual($condition->summary(), 'The user is a member of Anonymous user');
+    $this->assertEquals($condition->summary(), 'The user is a member of Anonymous user');
 
     // Set the user role to check anonymous or authenticated.
     $condition->setConfig('roles', [RoleInterface::ANONYMOUS_ID => RoleInterface::ANONYMOUS_ID, RoleInterface::AUTHENTICATED_ID => RoleInterface::AUTHENTICATED_ID]);
     $this->assertTrue($condition->execute(), 'Anonymous users pass role checks for anonymous or authenticated.');
     // Check for the proper summary.
-    $this->assertEqual($condition->summary(), 'The user is a member of Anonymous user, Authenticated user');
+    $this->assertEquals($condition->summary(), 'The user is a member of Anonymous user, Authenticated user');
 
     // Set the context to the authenticated user and check that they also pass
     // against anonymous or authenticated roles.
@@ -141,17 +141,17 @@ public function testConditions() {
 
     // Check the negated summary.
     $condition->setConfig('negate', TRUE);
-    $this->assertEqual($condition->summary(), 'The user is not a member of Authenticated user');
+    $this->assertEquals($condition->summary(), 'The user is not a member of Authenticated user');
 
     // Check the complex negated summary.
     $condition->setConfig('roles', [RoleInterface::ANONYMOUS_ID => RoleInterface::ANONYMOUS_ID, RoleInterface::AUTHENTICATED_ID => RoleInterface::AUTHENTICATED_ID]);
-    $this->assertEqual($condition->summary(), 'The user is not a member of Anonymous user, Authenticated user');
+    $this->assertEquals($condition->summary(), 'The user is not a member of Anonymous user, Authenticated user');
 
     // Check a custom role.
     $condition->setConfig('roles', [$this->role->id() => $this->role->id()]);
     $condition->setConfig('negate', FALSE);
     $this->assertTrue($condition->execute(), 'Authenticated user is a member of the custom role.');
-    $this->assertEqual($condition->summary(), SafeMarkup::format('The user is a member of @roles', ['@roles' => $this->role->label()]));
+    $this->assertEquals($condition->summary(), SafeMarkup::format('The user is a member of @roles', ['@roles' => $this->role->label()]));
   }
 
 }
diff --git a/core/modules/user/tests/src/Kernel/Field/UserNameFormatterTest.php b/core/modules/user/tests/src/Kernel/Field/UserNameFormatterTest.php
index 6beecb88d3..8bcd067a5d 100644
--- a/core/modules/user/tests/src/Kernel/Field/UserNameFormatterTest.php
+++ b/core/modules/user/tests/src/Kernel/Field/UserNameFormatterTest.php
@@ -78,21 +78,21 @@ public function testFormatter() {
     $user->save();
 
     $result = $user->{$this->fieldName}->view(['type' => 'user_name']);
-    $this->assertEqual('username', $result[0]['#theme']);
-    $this->assertEqual(spl_object_hash($user), spl_object_hash($result[0]['#account']));
+    $this->assertEquals('username', $result[0]['#theme']);
+    $this->assertEquals(spl_object_hash($user), spl_object_hash($result[0]['#account']));
 
     $result = $user->{$this->fieldName}->view(['type' => 'user_name', 'settings' => ['link_to_entity' => FALSE]]);
-    $this->assertEqual($user->getDisplayName(), $result[0]['#markup']);
+    $this->assertEquals($user->getDisplayName(), $result[0]['#markup']);
 
     $user = User::getAnonymousUser();
 
     $result = $user->{$this->fieldName}->view(['type' => 'user_name']);
-    $this->assertEqual('username', $result[0]['#theme']);
-    $this->assertEqual(spl_object_hash($user), spl_object_hash($result[0]['#account']));
+    $this->assertEquals('username', $result[0]['#theme']);
+    $this->assertEquals(spl_object_hash($user), spl_object_hash($result[0]['#account']));
 
     $result = $user->{$this->fieldName}->view(['type' => 'user_name', 'settings' => ['link_to_entity' => FALSE]]);
-    $this->assertEqual($user->getDisplayName(), $result[0]['#markup']);
-    $this->assertEqual($this->config('user.settings')->get('anonymous'), $result[0]['#markup']);
+    $this->assertEquals($user->getDisplayName(), $result[0]['#markup']);
+    $this->assertEquals($this->config('user.settings')->get('anonymous'), $result[0]['#markup']);
   }
 
 }
diff --git a/core/modules/user/tests/src/Kernel/Migrate/MigrateUserProfileFieldTest.php b/core/modules/user/tests/src/Kernel/Migrate/MigrateUserProfileFieldTest.php
index 75bccf14be..c5cc4ac9dc 100644
--- a/core/modules/user/tests/src/Kernel/Migrate/MigrateUserProfileFieldTest.php
+++ b/core/modules/user/tests/src/Kernel/Migrate/MigrateUserProfileFieldTest.php
@@ -41,7 +41,7 @@ public function testUserProfileFields() {
     $field_storage = FieldStorageConfig::load('user.profile_sold_to');
     $this->assertIdentical('list_string', $field_storage->getType(), 'Field type is list_string.');
     $settings = $field_storage->getSettings();
-    $this->assertEqual($settings['allowed_values'], [
+    $this->assertEquals($settings['allowed_values'], [
       'Pill spammers' => 'Pill spammers',
       'Fitness spammers' => 'Fitness spammers',
       'Back\slash' => 'Back\slash',
diff --git a/core/modules/user/tests/src/Kernel/TempStoreDatabaseTest.php b/core/modules/user/tests/src/Kernel/TempStoreDatabaseTest.php
index b3d7ff1e1a..7a0787c1e7 100644
--- a/core/modules/user/tests/src/Kernel/TempStoreDatabaseTest.php
+++ b/core/modules/user/tests/src/Kernel/TempStoreDatabaseTest.php
@@ -89,13 +89,13 @@ public function testUserTempStore() {
     for ($i = 0; $i <= 1; $i++) {
       // setIfNotExists() should be TRUE the first time (when $i is 0) and
       // FALSE the second time (when $i is 1).
-      $this->assertEqual(!$i, $stores[0]->setIfNotExists($key, $this->objects[$i]));
+      $this->assertEquals(!$i, $stores[0]->setIfNotExists($key, $this->objects[$i]));
       $metadata = $stores[0]->getMetadata($key);
-      $this->assertEqual($users[0], $metadata->owner);
+      $this->assertEquals($users[0], $metadata->owner);
       $this->assertIdenticalObject($this->objects[0], $stores[0]->get($key));
       // Another user should get the same result.
       $metadata = $stores[1]->getMetadata($key);
-      $this->assertEqual($users[0], $metadata->owner);
+      $this->assertEquals($users[0], $metadata->owner);
       $this->assertIdenticalObject($this->objects[0], $stores[1]->get($key));
     }
 
@@ -121,11 +121,11 @@ public function testUserTempStore() {
     $this->assertIdenticalObject($this->objects[3], $stores[0]->get($key));
     $this->assertIdenticalObject($this->objects[3], $stores[1]->get($key));
     $metadata = $stores[1]->getMetadata($key);
-    $this->assertEqual($users[1], $metadata->owner);
+    $this->assertEquals($users[1], $metadata->owner);
 
     // The first user should be informed that the second now owns the data.
     $metadata = $stores[0]->getMetadata($key);
-    $this->assertEqual($users[1], $metadata->owner);
+    $this->assertEquals($users[1], $metadata->owner);
 
     // The first user should no longer be allowed to get, update, delete.
     $this->assertNull($stores[0]->getIfOwner($key));
diff --git a/core/modules/user/tests/src/Kernel/UserAccountFormFieldsTest.php b/core/modules/user/tests/src/Kernel/UserAccountFormFieldsTest.php
index 643302192c..9de0a40e4e 100644
--- a/core/modules/user/tests/src/Kernel/UserAccountFormFieldsTest.php
+++ b/core/modules/user/tests/src/Kernel/UserAccountFormFieldsTest.php
@@ -112,7 +112,7 @@ protected function assertFieldOrder(array $elements) {
       }
       $index++;
     }
-    $this->assertEqual($name_index, $pass_index - 1, "'name' field ($name_index) appears before 'pass' field ($pass_index).");
+    $this->assertEquals($name_index, $pass_index - 1, "'name' field ($name_index) appears before 'pass' field ($pass_index).");
     $this->assertTrue($name_weight < $pass_weight, "'name' field weight ($name_weight) is smaller than 'pass' field weight ($pass_weight).");
   }
 
diff --git a/core/modules/user/tests/src/Kernel/UserActionConfigSchemaTest.php b/core/modules/user/tests/src/Kernel/UserActionConfigSchemaTest.php
index dfafb1d536..7f34ea2f7a 100644
--- a/core/modules/user/tests/src/Kernel/UserActionConfigSchemaTest.php
+++ b/core/modules/user/tests/src/Kernel/UserActionConfigSchemaTest.php
@@ -32,12 +32,12 @@ public function testValidUserActionConfigSchema() {
 
     // Test user_add_role_action configuration.
     $config = $this->config('system.action.user_add_role_action.' . $rid);
-    $this->assertEqual($config->get('id'), 'user_add_role_action.' . $rid);
+    $this->assertEquals($config->get('id'), 'user_add_role_action.' . $rid);
     $this->assertConfigSchema(\Drupal::service('config.typed'), $config->getName(), $config->get());
 
     // Test user_remove_role_action configuration.
     $config = $this->config('system.action.user_remove_role_action.' . $rid);
-    $this->assertEqual($config->get('id'), 'user_remove_role_action.' . $rid);
+    $this->assertEquals($config->get('id'), 'user_remove_role_action.' . $rid);
     $this->assertConfigSchema(\Drupal::service('config.typed'), $config->getName(), $config->get());
   }
 
diff --git a/core/modules/user/tests/src/Kernel/UserEntityReferenceTest.php b/core/modules/user/tests/src/Kernel/UserEntityReferenceTest.php
index 3ad8e7b327..1491a95867 100644
--- a/core/modules/user/tests/src/Kernel/UserEntityReferenceTest.php
+++ b/core/modules/user/tests/src/Kernel/UserEntityReferenceTest.php
@@ -81,7 +81,7 @@ public function testUserSelectionByRole() {
     $autocomplete = \Drupal::service('entity.autocomplete_matcher');
 
     $matches = $autocomplete->getMatches('user', 'default', $field_definition->getSetting('handler_settings'), 'aabb');
-    $this->assertEqual(count($matches), 2);
+    $this->assertEquals(count($matches), 2);
     $users = [];
     foreach ($matches as $match) {
       $users[] = $match['label'];
@@ -91,7 +91,7 @@ public function testUserSelectionByRole() {
     $this->assertFalse(in_array($user3->label(), $users));
 
     $matches = $autocomplete->getMatches('user', 'default', $field_definition->getSetting('handler_settings'), 'aabbbb');
-    $this->assertEqual(count($matches), 0, '');
+    $this->assertEquals(count($matches), 0, '');
   }
 
 }
diff --git a/core/modules/user/tests/src/Kernel/UserEntityTest.php b/core/modules/user/tests/src/Kernel/UserEntityTest.php
index 73fe869ec3..8442c6ce82 100644
--- a/core/modules/user/tests/src/Kernel/UserEntityTest.php
+++ b/core/modules/user/tests/src/Kernel/UserEntityTest.php
@@ -50,27 +50,27 @@ public function testUserMethods() {
 
     $this->assertTrue($user->hasRole('test_role_one'));
     $this->assertFalse($user->hasRole('test_role_two'));
-    $this->assertEqual([RoleInterface::AUTHENTICATED_ID, 'test_role_one'], $user->getRoles());
+    $this->assertEquals([RoleInterface::AUTHENTICATED_ID, 'test_role_one'], $user->getRoles());
 
     $user->addRole('test_role_one');
     $this->assertTrue($user->hasRole('test_role_one'));
     $this->assertFalse($user->hasRole('test_role_two'));
-    $this->assertEqual([RoleInterface::AUTHENTICATED_ID, 'test_role_one'], $user->getRoles());
+    $this->assertEquals([RoleInterface::AUTHENTICATED_ID, 'test_role_one'], $user->getRoles());
 
     $user->addRole('test_role_two');
     $this->assertTrue($user->hasRole('test_role_one'));
     $this->assertTrue($user->hasRole('test_role_two'));
-    $this->assertEqual([RoleInterface::AUTHENTICATED_ID, 'test_role_one', 'test_role_two'], $user->getRoles());
+    $this->assertEquals([RoleInterface::AUTHENTICATED_ID, 'test_role_one', 'test_role_two'], $user->getRoles());
 
     $user->removeRole('test_role_three');
     $this->assertTrue($user->hasRole('test_role_one'));
     $this->assertTrue($user->hasRole('test_role_two'));
-    $this->assertEqual([RoleInterface::AUTHENTICATED_ID, 'test_role_one', 'test_role_two'], $user->getRoles());
+    $this->assertEquals([RoleInterface::AUTHENTICATED_ID, 'test_role_one', 'test_role_two'], $user->getRoles());
 
     $user->removeRole('test_role_one');
     $this->assertFalse($user->hasRole('test_role_one'));
     $this->assertTrue($user->hasRole('test_role_two'));
-    $this->assertEqual([RoleInterface::AUTHENTICATED_ID, 'test_role_two'], $user->getRoles());
+    $this->assertEquals([RoleInterface::AUTHENTICATED_ID, 'test_role_two'], $user->getRoles());
   }
 
   /**
diff --git a/core/modules/user/tests/src/Kernel/UserInstallTest.php b/core/modules/user/tests/src/Kernel/UserInstallTest.php
index f61811be79..e422e3e8d5 100644
--- a/core/modules/user/tests/src/Kernel/UserInstallTest.php
+++ b/core/modules/user/tests/src/Kernel/UserInstallTest.php
@@ -42,13 +42,13 @@ public function testUserInstall() {
 
     // Test that the anonymous and administrators languages are equal to the
     // site's default language.
-    $this->assertEqual($anon->langcode, \Drupal::languageManager()->getDefaultLanguage()->getId());
-    $this->assertEqual($admin->langcode, \Drupal::languageManager()->getDefaultLanguage()->getId());
+    $this->assertEquals($anon->langcode, \Drupal::languageManager()->getDefaultLanguage()->getId());
+    $this->assertEquals($admin->langcode, \Drupal::languageManager()->getDefaultLanguage()->getId());
 
     // Test that the administrator is active.
-    $this->assertEqual($admin->status, 1);
+    $this->assertEquals($admin->status, 1);
     // Test that the anonymous user is blocked.
-    $this->assertEqual($anon->status, 0);
+    $this->assertEquals($anon->status, 0);
   }
 
 }
diff --git a/core/modules/user/tests/src/Kernel/UserSaveStatusTest.php b/core/modules/user/tests/src/Kernel/UserSaveStatusTest.php
index 17364c059d..afd52c0347 100644
--- a/core/modules/user/tests/src/Kernel/UserSaveStatusTest.php
+++ b/core/modules/user/tests/src/Kernel/UserSaveStatusTest.php
@@ -37,12 +37,12 @@ public function testUserSaveStatus() {
 
     // Test SAVED_NEW.
     $return = $user->save();
-    $this->assertEqual($return, SAVED_NEW, "User was saved with SAVED_NEW status.");
+    $this->assertEquals($return, SAVED_NEW, "User was saved with SAVED_NEW status.");
 
     // Test SAVED_UPDATED.
     $user->name = $this->randomMachineName();
     $return = $user->save();
-    $this->assertEqual($return, SAVED_UPDATED, "User was saved with SAVED_UPDATED status.");
+    $this->assertEquals($return, SAVED_UPDATED, "User was saved with SAVED_UPDATED status.");
   }
 
 }
diff --git a/core/modules/user/tests/src/Kernel/UserValidationTest.php b/core/modules/user/tests/src/Kernel/UserValidationTest.php
index 4aa5850d1d..112c060b53 100644
--- a/core/modules/user/tests/src/Kernel/UserValidationTest.php
+++ b/core/modules/user/tests/src/Kernel/UserValidationTest.php
@@ -81,16 +81,16 @@ public function testValidation() {
       'mail' => 'test@example.com',
     ]);
     $violations = $user->validate();
-    $this->assertEqual(count($violations), 0, 'No violations when validating a default user.');
+    $this->assertEquals(count($violations), 0, 'No violations when validating a default user.');
 
     // Only test one example invalid name here, the rest is already covered in
     // the testUsernames() method in this class.
     $name = $this->randomMachineName(61);
     $user->set('name', $name);
     $violations = $user->validate();
-    $this->assertEqual(count($violations), 1, 'Violation found when name is too long.');
-    $this->assertEqual($violations[0]->getPropertyPath(), 'name');
-    $this->assertEqual($violations[0]->getMessage(), t('The username %name is too long: it must be %max characters or less.', ['%name' => $name, '%max' => 60]));
+    $this->assertEquals(count($violations), 1, 'Violation found when name is too long.');
+    $this->assertEquals($violations[0]->getPropertyPath(), 'name');
+    $this->assertEquals($violations[0]->getMessage(), t('The username %name is too long: it must be %max characters or less.', ['%name' => $name, '%max' => 60]));
 
     // Create a second test user to provoke a name collision.
     $user2 = User::create([
@@ -100,18 +100,18 @@ public function testValidation() {
     $user2->save();
     $user->set('name', 'existing');
     $violations = $user->validate();
-    $this->assertEqual(count($violations), 1, 'Violation found on name collision.');
-    $this->assertEqual($violations[0]->getPropertyPath(), 'name');
-    $this->assertEqual($violations[0]->getMessage(), t('The username %name is already taken.', ['%name' => 'existing']));
+    $this->assertEquals(count($violations), 1, 'Violation found on name collision.');
+    $this->assertEquals($violations[0]->getPropertyPath(), 'name');
+    $this->assertEquals($violations[0]->getMessage(), t('The username %name is already taken.', ['%name' => 'existing']));
 
     // Make the name valid.
     $user->set('name', $this->randomMachineName());
 
     $user->set('mail', 'invalid');
     $violations = $user->validate();
-    $this->assertEqual(count($violations), 1, 'Violation found when email is invalid');
-    $this->assertEqual($violations[0]->getPropertyPath(), 'mail.0.value');
-    $this->assertEqual($violations[0]->getMessage(), t('This value is not a valid email address.'));
+    $this->assertEquals(count($violations), 1, 'Violation found when email is invalid');
+    $this->assertEquals($violations[0]->getPropertyPath(), 'mail.0.value');
+    $this->assertEquals($violations[0]->getMessage(), t('This value is not a valid email address.'));
 
     $mail = $this->randomMachineName(Email::EMAIL_MAX_LENGTH - 11) . '@example.com';
     $user->set('mail', $mail);
@@ -120,23 +120,23 @@ public function testValidation() {
     //   overlaps with the implicit constraint of the 'email' property type used
     //   in EmailItem::propertyDefinitions(). Resolve this in
     //   https://www.drupal.org/node/2023465.
-    $this->assertEqual(count($violations), 2, 'Violations found when email is too long');
-    $this->assertEqual($violations[0]->getPropertyPath(), 'mail.0.value');
-    $this->assertEqual($violations[0]->getMessage(), t('%name: the email address can not be longer than @max characters.', ['%name' => $user->get('mail')->getFieldDefinition()->getLabel(), '@max' => Email::EMAIL_MAX_LENGTH]));
-    $this->assertEqual($violations[1]->getPropertyPath(), 'mail.0.value');
-    $this->assertEqual($violations[1]->getMessage(), t('This value is not a valid email address.'));
+    $this->assertEquals(count($violations), 2, 'Violations found when email is too long');
+    $this->assertEquals($violations[0]->getPropertyPath(), 'mail.0.value');
+    $this->assertEquals($violations[0]->getMessage(), t('%name: the email address can not be longer than @max characters.', ['%name' => $user->get('mail')->getFieldDefinition()->getLabel(), '@max' => Email::EMAIL_MAX_LENGTH]));
+    $this->assertEquals($violations[1]->getPropertyPath(), 'mail.0.value');
+    $this->assertEquals($violations[1]->getMessage(), t('This value is not a valid email address.'));
 
     // Provoke an email collision with an existing user.
     $user->set('mail', 'existing@example.com');
     $violations = $user->validate();
-    $this->assertEqual(count($violations), 1, 'Violation found when email already exists.');
-    $this->assertEqual($violations[0]->getPropertyPath(), 'mail');
-    $this->assertEqual($violations[0]->getMessage(), t('The email address %mail is already taken.', ['%mail' => 'existing@example.com']));
+    $this->assertEquals(count($violations), 1, 'Violation found when email already exists.');
+    $this->assertEquals($violations[0]->getPropertyPath(), 'mail');
+    $this->assertEquals($violations[0]->getMessage(), t('The email address %mail is already taken.', ['%mail' => 'existing@example.com']));
     $user->set('mail', NULL);
     $violations = $user->validate();
-    $this->assertEqual(count($violations), 1, 'Email addresses may not be removed');
-    $this->assertEqual($violations[0]->getPropertyPath(), 'mail');
-    $this->assertEqual($violations[0]->getMessage(), t('@name field is required.', ['@name' => $user->getFieldDefinition('mail')->getLabel()]));
+    $this->assertEquals(count($violations), 1, 'Email addresses may not be removed');
+    $this->assertEquals($violations[0]->getPropertyPath(), 'mail');
+    $this->assertEquals($violations[0]->getMessage(), t('@name field is required.', ['@name' => $user->getFieldDefinition('mail')->getLabel()]));
     $user->set('mail', 'someone@example.com');
 
     $user->set('timezone', $this->randomString(33));
@@ -147,7 +147,7 @@ public function testValidation() {
 
     $user->set('init', 'invalid');
     $violations = $user->validate();
-    $this->assertEqual(count($violations), 1, 'Violation found when init email is invalid');
+    $this->assertEquals(count($violations), 1, 'Violation found when init email is invalid');
     $user->set('init', NULL);
 
     $user->set('langcode', 'invalid');
@@ -173,13 +173,13 @@ public function testValidation() {
       'roles' => ['role1', 'role2'],
     ]);
     $violations = $user->validate();
-    $this->assertEqual(count($violations), 0);
+    $this->assertEquals(count($violations), 0);
 
     $user->roles[1]->target_id = 'unknown_role';
     $violations = $user->validate();
-    $this->assertEqual(count($violations), 1);
-    $this->assertEqual($violations[0]->getPropertyPath(), 'roles.1.target_id');
-    $this->assertEqual($violations[0]->getMessage(), t('The referenced entity (%entity_type: %name) does not exist.', ['%entity_type' => 'user_role', '%name' => 'unknown_role']));
+    $this->assertEquals(count($violations), 1);
+    $this->assertEquals($violations[0]->getPropertyPath(), 'roles.1.target_id');
+    $this->assertEquals($violations[0]->getMessage(), t('The referenced entity (%entity_type: %name) does not exist.', ['%entity_type' => 'user_role', '%name' => 'unknown_role']));
   }
 
   /**
@@ -198,10 +198,10 @@ public function testValidation() {
    */
   protected function assertLengthViolation(EntityInterface $entity, $field_name, $length, $count = 1, $expected_index = 0) {
     $violations = $entity->validate();
-    $this->assertEqual(count($violations), $count, "Violation found when $field_name is too long.");
-    $this->assertEqual($violations[$expected_index]->getPropertyPath(), "$field_name.0.value");
+    $this->assertEquals(count($violations), $count, "Violation found when $field_name is too long.");
+    $this->assertEquals($violations[$expected_index]->getPropertyPath(), "$field_name.0.value");
     $field_label = $entity->get($field_name)->getFieldDefinition()->getLabel();
-    $this->assertEqual($violations[$expected_index]->getMessage(), t('%name: may not be longer than @max characters.', ['%name' => $field_label, '@max' => $length]));
+    $this->assertEquals($violations[$expected_index]->getMessage(), t('%name: may not be longer than @max characters.', ['%name' => $field_label, '@max' => $length]));
   }
 
   /**
@@ -214,9 +214,9 @@ protected function assertLengthViolation(EntityInterface $entity, $field_name, $
    */
   protected function assertAllowedValuesViolation(EntityInterface $entity, $field_name) {
     $violations = $entity->validate();
-    $this->assertEqual(count($violations), 1, "Allowed values violation for $field_name found.");
-    $this->assertEqual($violations[0]->getPropertyPath(), "$field_name.0.value");
-    $this->assertEqual($violations[0]->getMessage(), t('The value you selected is not a valid choice.'));
+    $this->assertEquals(count($violations), 1, "Allowed values violation for $field_name found.");
+    $this->assertEquals($violations[0]->getPropertyPath(), "$field_name.0.value");
+    $this->assertEquals($violations[0]->getMessage(), t('The value you selected is not a valid choice.'));
   }
 
 }
diff --git a/core/modules/user/tests/src/Kernel/Views/HandlerFieldPermissionTest.php b/core/modules/user/tests/src/Kernel/Views/HandlerFieldPermissionTest.php
index 0d21221841..6320a432a7 100644
--- a/core/modules/user/tests/src/Kernel/Views/HandlerFieldPermissionTest.php
+++ b/core/modules/user/tests/src/Kernel/Views/HandlerFieldPermissionTest.php
@@ -46,7 +46,7 @@ public function testFieldPermission() {
       $rendered_permission = $style_plugin->getField($index, 'permission');
 
       $expected_output = implode(', ', $expected_permissions[$uid]);
-      $this->assertEqual($rendered_permission, $expected_output, 'The right permissions are rendered.');
+      $this->assertEquals($rendered_permission, $expected_output, 'The right permissions are rendered.');
     }
   }
 
diff --git a/core/modules/user/tests/src/Kernel/Views/HandlerFilterPermissionTest.php b/core/modules/user/tests/src/Kernel/Views/HandlerFilterPermissionTest.php
index b005f62ada..0c6634e691 100644
--- a/core/modules/user/tests/src/Kernel/Views/HandlerFilterPermissionTest.php
+++ b/core/modules/user/tests/src/Kernel/Views/HandlerFilterPermissionTest.php
@@ -38,7 +38,7 @@ public function testFilterPermission() {
     $view->initHandlers();
     $view->filter['permission']->value = ['non_existent_permission'];
     $this->executeView($view);
-    $this->assertEqual(count($view->result), 4, 'A non existent permission is not filtered so everything is the result.');
+    $this->assertEquals(count($view->result), 4, 'A non existent permission is not filtered so everything is the result.');
     $expected[] = ['uid' => 1];
     $expected[] = ['uid' => 2];
     $expected[] = ['uid' => 3];
@@ -50,7 +50,7 @@ public function testFilterPermission() {
     $view->initHandlers();
     $view->filter['permission']->value = ['administer permissions'];
     $this->executeView($view);
-    $this->assertEqual(count($view->result), 2);
+    $this->assertEquals(count($view->result), 2);
     $expected = [];
     $expected[] = ['uid' => 3];
     $expected[] = ['uid' => 4];
@@ -62,7 +62,7 @@ public function testFilterPermission() {
     $view->filter['permission']->operator = 'not';
     $view->filter['permission']->value = ['administer users'];
     $this->executeView($view);
-    $this->assertEqual(count($view->result), 3);
+    $this->assertEquals(count($view->result), 3);
     $expected = [];
     $expected[] = ['uid' => 1];
     $expected[] = ['uid' => 2];
@@ -75,7 +75,7 @@ public function testFilterPermission() {
     $view->filter['permission']->operator = 'not';
     $view->filter['permission']->value = ['administer users', 'administer permissions'];
     $this->executeView($view);
-    $this->assertEqual(count($view->result), 2);
+    $this->assertEquals(count($view->result), 2);
     $expected = [];
     $expected[] = ['uid' => 1];
     $expected[] = ['uid' => 2];
@@ -86,7 +86,7 @@ public function testFilterPermission() {
     $view->initHandlers();
     $view->filter['permission']->value = ['administer users'];
     $this->executeView($view);
-    $this->assertEqual(count($view->result), 1);
+    $this->assertEquals(count($view->result), 1);
     $expected = [];
     $expected[] = ['uid' => 4];
     $this->assertIdenticalResultset($view, $expected, $column_map);
@@ -108,7 +108,7 @@ public function testFilterPermission() {
         return Html::escape(strip_tags($permission['title']));
       }, $permission_by_module[$module]);
 
-      $this->assertEqual($expected, $value_options[$title], 'Ensure the all permissions are available');
+      $this->assertEquals($expected, $value_options[$title], 'Ensure the all permissions are available');
     }
   }
 
diff --git a/core/modules/user/tests/src/Kernel/Views/HandlerFilterRolesTest.php b/core/modules/user/tests/src/Kernel/Views/HandlerFilterRolesTest.php
index ec5a06bf1c..40869ba036 100644
--- a/core/modules/user/tests/src/Kernel/Views/HandlerFilterRolesTest.php
+++ b/core/modules/user/tests/src/Kernel/Views/HandlerFilterRolesTest.php
@@ -32,7 +32,7 @@ public function testDependencies() {
     $expected = [
       'module' => ['user'],
     ];
-    $this->assertEqual($expected, $view->getDependencies());
+    $this->assertEquals($expected, $view->getDependencies());
 
     $display = &$view->getDisplay('default');
     $display['display_options']['filters']['roles_target_id'] = [
@@ -44,7 +44,7 @@ public function testDependencies() {
     ];
     $view->save();
     $expected['config'][] = 'user.role.test_user_role';
-    $this->assertEqual($expected, $view->getDependencies());
+    $this->assertEquals($expected, $view->getDependencies());
 
     $view = View::load('test_user_name');
     $display = &$view->getDisplay('default');
@@ -60,7 +60,7 @@ public function testDependencies() {
     ];
     $view->save();
     unset($expected['config']);
-    $this->assertEqual($expected, $view->getDependencies());
+    $this->assertEquals($expected, $view->getDependencies());
 
     $view = View::load('test_user_name');
     $display = &$view->getDisplay('default');
@@ -75,12 +75,12 @@ public function testDependencies() {
       'plugin_id' => 'user_roles',
     ];
     $view->save();
-    $this->assertEqual($expected, $view->getDependencies());
+    $this->assertEquals($expected, $view->getDependencies());
 
     $view = Views::getView('test_user_name');
     $view->initDisplay();
     $view->initHandlers();
-    $this->assertEqual(array_keys($view->filter['roles_target_id']->getValueOptions()), ['test_user_role']);
+    $this->assertEquals(array_keys($view->filter['roles_target_id']->getValueOptions()), ['test_user_role']);
 
     $view = View::load('test_user_name');
     $display = &$view->getDisplay('default');
@@ -92,7 +92,7 @@ public function testDependencies() {
       'plugin_id' => 'user_roles',
     ];
     $view->save();
-    $this->assertEqual($expected, $view->getDependencies());
+    $this->assertEquals($expected, $view->getDependencies());
   }
 
 }
diff --git a/core/modules/views/src/Tests/AssertViewsCacheTagsTrait.php b/core/modules/views/src/Tests/AssertViewsCacheTagsTrait.php
index b01e985450..93ecc341f8 100644
--- a/core/modules/views/src/Tests/AssertViewsCacheTagsTrait.php
+++ b/core/modules/views/src/Tests/AssertViewsCacheTagsTrait.php
@@ -53,7 +53,7 @@ protected function assertViewsCacheTags(ViewExecutable $view, $expected_results_
     // Render array cache tags.
     $this->pass('Checking render array cache tags.');
     sort($expected_render_array_cache_tags);
-    $this->assertEqual($build['#cache']['tags'], $expected_render_array_cache_tags);
+    $this->assertEquals($build['#cache']['tags'], $expected_render_array_cache_tags);
     $this->debugCacheTags($build['#cache']['tags'], $expected_render_array_cache_tags);
 
     if ($views_caching_is_enabled) {
@@ -70,7 +70,7 @@ protected function assertViewsCacheTags(ViewExecutable $view, $expected_results_
         $this->assertTrue($results_cache_item, 'Results cache item found.');
         if ($results_cache_item) {
           sort($expected_results_cache);
-          $this->assertEqual($results_cache_item->tags, $expected_results_cache);
+          $this->assertEquals($results_cache_item->tags, $expected_results_cache);
           $this->debugCacheTags($results_cache_item->tags, $expected_results_cache);
         }
       }
@@ -87,7 +87,7 @@ protected function assertViewsCacheTags(ViewExecutable $view, $expected_results_
       if ($views_caching_is_enabled === TRUE) {
         $this->assertTrue(!empty($render_cache_item), 'Render cache item found.');
         if ($render_cache_item) {
-          $this->assertEqual($render_cache_item['#cache']['tags'], $expected_render_array_cache_tags);
+          $this->assertEquals($render_cache_item['#cache']['tags'], $expected_render_array_cache_tags);
           $this->debugCacheTags($render_cache_item['#cache']['tags'], $expected_render_array_cache_tags);
         }
       }
@@ -138,7 +138,7 @@ protected function assertViewsCacheTagsFromStaticRenderArray(ViewExecutable $vie
     // Render array cache tags.
     $this->pass('Checking render array cache tags.');
     sort($expected_render_array_cache_tags);
-    $this->assertEqual($build['#cache']['tags'], $expected_render_array_cache_tags);
+    $this->assertEquals($build['#cache']['tags'], $expected_render_array_cache_tags);
     $this->debugCacheTags($build['#cache']['tags'], $expected_render_array_cache_tags);
 
     $this->pass('Checking Views render cache item cache tags.');
@@ -149,7 +149,7 @@ protected function assertViewsCacheTagsFromStaticRenderArray(ViewExecutable $vie
     if ($views_caching_is_enabled) {
       $this->assertTrue(!empty($render_cache_item), 'Render cache item found.');
       if ($render_cache_item) {
-        $this->assertEqual($render_cache_item['#cache']['tags'], $expected_render_array_cache_tags);
+        $this->assertEquals($render_cache_item['#cache']['tags'], $expected_render_array_cache_tags);
         $this->debugCacheTags($render_cache_item['#cache']['tags'], $expected_render_array_cache_tags);
       }
     }
diff --git a/core/modules/views/src/Tests/FieldApiDataTest.php b/core/modules/views/src/Tests/FieldApiDataTest.php
index f6d5159dd8..b5fbb3a68e 100644
--- a/core/modules/views/src/Tests/FieldApiDataTest.php
+++ b/core/modules/views/src/Tests/FieldApiDataTest.php
@@ -197,7 +197,7 @@ public function testViewsData() {
         ['left_field' => 'langcode', 'field' => 'langcode'],
       ],
     ];
-    $this->assertEqual($expected_join, $data[$current_table]['table']['join']['node_field_data']);
+    $this->assertEquals($expected_join, $data[$current_table]['table']['join']['node_field_data']);
     $expected_join = [
       'table' => $revision_table,
       'left_field' => 'vid',
@@ -207,7 +207,7 @@ public function testViewsData() {
         ['left_field' => 'langcode', 'field' => 'langcode'],
       ],
     ];
-    $this->assertEqual($expected_join, $data[$revision_table]['table']['join']['node_field_revision']);
+    $this->assertEquals($expected_join, $data[$revision_table]['table']['join']['node_field_revision']);
 
     // Test click sortable.
     $this->assertTrue($data[$current_table][$field_storage->getName()]['field']['click sortable'], 'String field is click sortable.');
@@ -215,14 +215,14 @@ public function testViewsData() {
     $this->assertTrue(empty($data[$revision_table][$field_storage->getName()]['field']['click sortable']), 'Non-primary fields are not click sortable');
 
     $this->assertTrue($data[$current_table][$field_storage->getName()]['help'] instanceof MarkupInterface);
-    $this->assertEqual($data[$current_table][$field_storage->getName()]['help'], 'Appears in: page, article. Also known as: Content: GiraffeB&quot; label');
+    $this->assertEquals($data[$current_table][$field_storage->getName()]['help'], 'Appears in: page, article. Also known as: Content: GiraffeB&quot; label');
 
     $this->assertTrue($data[$current_table][$field_storage->getName() . '_value']['help'] instanceof MarkupInterface);
-    $this->assertEqual($data[$current_table][$field_storage->getName() . '_value']['help'], 'Appears in: page, article. Also known as: Content: GiraffeA&quot; label (field_name_0)');
+    $this->assertEquals($data[$current_table][$field_storage->getName() . '_value']['help'], 'Appears in: page, article. Also known as: Content: GiraffeA&quot; label (field_name_0)');
 
     // Since each label is only used once, views_entity_field_label() will
     // return a label using alphabetical sorting.
-    $this->assertEqual('GiraffeA&quot; label (field_name_0)', $data[$current_table][$field_storage->getName() . '_value']['title']);
+    $this->assertEquals('GiraffeA&quot; label (field_name_0)', $data[$current_table][$field_storage->getName() . '_value']['title']);
 
     // Attach the same field to a different bundle with a different label.
     $this->drupalCreateContentType(['type' => 'news']);
@@ -237,9 +237,9 @@ public function testViewsData() {
 
     // Now the 'GiraffeB&quot; label' is used twice and therefore will be
     // selected by views_entity_field_label().
-    $this->assertEqual('GiraffeB&quot; label (field_name_0)', $data[$current_table][$field_storage->getName() . '_value']['title']);
+    $this->assertEquals('GiraffeB&quot; label (field_name_0)', $data[$current_table][$field_storage->getName() . '_value']['title']);
     $this->assertTrue($data[$current_table][$field_storage->getName()]['help'] instanceof MarkupInterface);
-    $this->assertEqual($data[$current_table][$field_storage->getName()]['help'], 'Appears in: page, article, news. Also known as: Content: GiraffeA&quot; label');
+    $this->assertEquals($data[$current_table][$field_storage->getName()]['help'], 'Appears in: page, article, news. Also known as: Content: GiraffeA&quot; label');
   }
 
   /**
diff --git a/core/modules/views/src/Tests/Plugin/DisplayFeedTest.php b/core/modules/views/src/Tests/Plugin/DisplayFeedTest.php
index e8d2549176..119f2e0867 100644
--- a/core/modules/views/src/Tests/Plugin/DisplayFeedTest.php
+++ b/core/modules/views/src/Tests/Plugin/DisplayFeedTest.php
@@ -59,8 +59,8 @@ public function testFeedOutput() {
 
     $this->drupalGet('test-feed-display.xml');
     $result = $this->xpath('//title');
-    $this->assertEqual($result[0], $site_name, 'The site title is used for the feed title.');
-    $this->assertEqual($result[1], $node_title, 'Node title with HTML entities displays correctly.');
+    $this->assertEquals($result[0], $site_name, 'The site title is used for the feed title.');
+    $this->assertEquals($result[1], $node_title, 'Node title with HTML entities displays correctly.');
     // Verify HTML is properly escaped in the description field.
     $this->assertRaw('&lt;p&gt;A paragraph&lt;/p&gt;');
 
@@ -71,7 +71,7 @@ public function testFeedOutput() {
 
     $this->drupalGet('test-feed-display.xml');
     $result = $this->xpath('//title');
-    $this->assertEqual($result[0], 'test_display_feed', 'The display title is used for the feed title.');
+    $this->assertEquals($result[0], 'test_display_feed', 'The display title is used for the feed title.');
 
     // Add a block display and attach the feed.
     $view->getExecutable()->newDisplay('block', NULL, 'test');
@@ -88,11 +88,11 @@ public function testFeedOutput() {
     $this->drupalGet('test-feed-icon/' . $node->id());
     $page_url = $this->getUrl();
     $icon_href = $this->cssSelect('a.feed-icon[href *= "test-feed-icon"]')[0]['href'];
-    $this->assertEqual($icon_href, $page_url . '/feed', 'The feed icon was found.');
+    $this->assertEquals($icon_href, $page_url . '/feed', 'The feed icon was found.');
     $link_href = $this->cssSelect('link[type = "application/rss+xml"][href *= "test-feed-icon"]')[0]['href'];
-    $this->assertEqual($link_href, $page_url . '/feed', 'The RSS link was found.');
+    $this->assertEquals($link_href, $page_url . '/feed', 'The RSS link was found.');
     $feed_link = simplexml_load_string($this->drupalGet($icon_href))->channel->link;
-    $this->assertEqual($feed_link, $page_url, 'The channel link was found.');
+    $this->assertEquals($feed_link, $page_url, 'The channel link was found.');
   }
 
   /**
@@ -115,7 +115,7 @@ public function testFeedFieldOutput() {
 
     $this->drupalGet('test-feed-display-fields.xml');
     $result = $this->xpath('//title/a');
-    $this->assertEqual($result[0], $node_title, 'Node title with HTML entities displays correctly.');
+    $this->assertEquals($result[0], $node_title, 'Node title with HTML entities displays correctly.');
     // Verify HTML is properly escaped in the description field.
     $this->assertRaw('&lt;p&gt;A paragraph&lt;/p&gt;');
   }
@@ -136,7 +136,7 @@ public function testDisabledFeed() {
     // Check that the rss header is output on the page display.
     $this->drupalGet('/test-attached-disabled');
     $feed_header = $this->xpath('//link[@rel="alternate"]');
-    $this->assertEqual($feed_header[0]['type'], 'application/rss+xml', 'The feed link has the type application/rss+xml.');
+    $this->assertEquals($feed_header[0]['type'], 'application/rss+xml', 'The feed link has the type application/rss+xml.');
     $this->assertTrue(strpos($feed_header[0]['href'], 'test-attached-disabled.xml'), 'Page display contains the correct feed URL.');
 
     // Disable the feed display.
diff --git a/core/modules/views/src/Tests/Plugin/StyleOpmlTest.php b/core/modules/views/src/Tests/Plugin/StyleOpmlTest.php
index 4e84433dca..b4868bc9fd 100644
--- a/core/modules/views/src/Tests/Plugin/StyleOpmlTest.php
+++ b/core/modules/views/src/Tests/Plugin/StyleOpmlTest.php
@@ -53,9 +53,9 @@ public function testOpmlOutput() {
 
     $this->drupalGet('test-feed-opml-style');
     $outline = $this->xpath('//outline[1]');
-    $this->assertEqual($outline[0]['type'], 'rss', 'The correct type attribute is used for rss OPML.');
-    $this->assertEqual($outline[0]['text'], $feed->label(), 'The correct text attribute is used for rss OPML.');
-    $this->assertEqual($outline[0]['xmlurl'], $feed->getUrl(), 'The correct xmlUrl attribute is used for rss OPML.');
+    $this->assertEquals($outline[0]['type'], 'rss', 'The correct type attribute is used for rss OPML.');
+    $this->assertEquals($outline[0]['text'], $feed->label(), 'The correct text attribute is used for rss OPML.');
+    $this->assertEquals($outline[0]['xmlurl'], $feed->getUrl(), 'The correct xmlUrl attribute is used for rss OPML.');
 
     $view = $this->container->get('entity.manager')
       ->getStorage('view')
@@ -67,9 +67,9 @@ public function testOpmlOutput() {
 
     $this->drupalGet('test-feed-opml-style');
     $outline = $this->xpath('//outline[1]');
-    $this->assertEqual($outline[0]['type'], 'link', 'The correct type attribute is used for link OPML.');
-    $this->assertEqual($outline[0]['text'], $feed->label(), 'The correct text attribute is used for link OPML.');
-    $this->assertEqual($outline[0]['url'], $feed->getUrl(), 'The correct URL attribute is used for link OPML.');
+    $this->assertEquals($outline[0]['type'], 'link', 'The correct type attribute is used for link OPML.');
+    $this->assertEquals($outline[0]['text'], $feed->label(), 'The correct text attribute is used for link OPML.');
+    $this->assertEquals($outline[0]['url'], $feed->getUrl(), 'The correct URL attribute is used for link OPML.');
     // xmlUrl should not be present when type is link.
     $this->assertNull($outline[0]['xmlUrl'], 'The xmlUrl attribute is not used for link OPML.');
   }
diff --git a/core/modules/views/src/Tests/Update/EntityViewsMultiValueBaseFieldDataUpdateTest.php b/core/modules/views/src/Tests/Update/EntityViewsMultiValueBaseFieldDataUpdateTest.php
index 206214e8ba..74ce0c7dbf 100644
--- a/core/modules/views/src/Tests/Update/EntityViewsMultiValueBaseFieldDataUpdateTest.php
+++ b/core/modules/views/src/Tests/Update/EntityViewsMultiValueBaseFieldDataUpdateTest.php
@@ -40,14 +40,14 @@ public function testUpdateMultiValueBaseFields() {
 
       // The ID should remain unchanged. Otherwise the update handler could
       // overwrite a separate handler config.
-      $this->assertEqual('roles', $handler_config['id']);
+      $this->assertEquals('roles', $handler_config['id']);
       // The field should be updated from 'roles' to the correct column name.
-      $this->assertEqual('roles_target_id', $handler_config['field']);
+      $this->assertEquals('roles_target_id', $handler_config['field']);
       // Check the table is still correct.
-      $this->assertEqual('user__roles', $handler_config['table']);
+      $this->assertEquals('user__roles', $handler_config['table']);
 
       // The plugin ID should be updated as well.
-      $this->assertEqual($type === 'arguments' ? 'user__roles_rid' : 'user_roles', $handler_config['plugin_id']);
+      $this->assertEquals($type === 'arguments' ? 'user__roles_rid' : 'user_roles', $handler_config['plugin_id']);
     }
   }
 
diff --git a/core/modules/views/src/Tests/ViewAjaxTest.php b/core/modules/views/src/Tests/ViewAjaxTest.php
index 5a966a8f76..61ce505285 100644
--- a/core/modules/views/src/Tests/ViewAjaxTest.php
+++ b/core/modules/views/src/Tests/ViewAjaxTest.php
@@ -33,10 +33,10 @@ public function testAjaxView() {
 
     $drupal_settings = $this->getDrupalSettings();
     $this->assertTrue(isset($drupal_settings['views']['ajax_path']), 'The Ajax callback path is set in drupalSettings.');
-    $this->assertEqual(count($drupal_settings['views']['ajaxViews']), 1);
+    $this->assertEquals(count($drupal_settings['views']['ajaxViews']), 1);
     $view_entry = array_keys($drupal_settings['views']['ajaxViews'])[0];
-    $this->assertEqual($drupal_settings['views']['ajaxViews'][$view_entry]['view_name'], 'test_ajax_view', 'The view\'s ajaxViews array entry has the correct \'view_name\' key.');
-    $this->assertEqual($drupal_settings['views']['ajaxViews'][$view_entry]['view_display_id'], 'page_1', 'The view\'s ajaxViews array entry has the correct \'view_display_id\' key.');
+    $this->assertEquals($drupal_settings['views']['ajaxViews'][$view_entry]['view_name'], 'test_ajax_view', 'The view\'s ajaxViews array entry has the correct \'view_name\' key.');
+    $this->assertEquals($drupal_settings['views']['ajaxViews'][$view_entry]['view_display_id'], 'page_1', 'The view\'s ajaxViews array entry has the correct \'view_display_id\' key.');
 
     $data = [];
     $data['view_name'] = 'test_ajax_view';
@@ -53,12 +53,12 @@ public function testAjaxView() {
     $this->assertTrue(isset($data[0]['settings']['views']['ajaxViews']));
 
     // Ensure that the view insert command is part of the result.
-    $this->assertEqual($data[1]['command'], 'insert');
+    $this->assertEquals($data[1]['command'], 'insert');
     $this->assertTrue(strpos($data[1]['selector'], '.js-view-dom-id-') === 0);
 
     $this->setRawContent($data[1]['data']);
     $result = $this->xpath('//div[contains(@class, "views-row")]');
-    $this->assertEqual(count($result), 2, 'Ensure that two items are rendered in the HTML.');
+    $this->assertEquals(count($result), 2, 'Ensure that two items are rendered in the HTML.');
   }
 
   /**
diff --git a/core/modules/views/tests/src/Functional/Entity/FieldEntityTest.php b/core/modules/views/tests/src/Functional/Entity/FieldEntityTest.php
index a46e54c9e5..0d7c22974f 100644
--- a/core/modules/views/tests/src/Functional/Entity/FieldEntityTest.php
+++ b/core/modules/views/tests/src/Functional/Entity/FieldEntityTest.php
@@ -78,13 +78,13 @@ public function testGetEntity() {
 
     // Tests entities on the base level.
     $entity = $view->field['cid']->getEntity($row);
-    $this->assertEqual($entity->id(), $comment->id(), 'Make sure the right comment entity got loaded.');
+    $this->assertEquals($entity->id(), $comment->id(), 'Make sure the right comment entity got loaded.');
     // Tests entities as relationship on first level.
     $entity = $view->field['nid']->getEntity($row);
-    $this->assertEqual($entity->id(), $node->id(), 'Make sure the right node entity got loaded.');
+    $this->assertEquals($entity->id(), $node->id(), 'Make sure the right node entity got loaded.');
     // Tests entities as relationships on second level.
     $entity = $view->field['uid']->getEntity($row);
-    $this->assertEqual($entity->id(), $account->id(), 'Make sure the right user entity got loaded.');
+    $this->assertEquals($entity->id(), $account->id(), 'Make sure the right user entity got loaded.');
   }
 
 }
diff --git a/core/modules/views/tests/src/Functional/Entity/FieldEntityTranslationTest.php b/core/modules/views/tests/src/Functional/Entity/FieldEntityTranslationTest.php
index 2a227c5433..202b815210 100644
--- a/core/modules/views/tests/src/Functional/Entity/FieldEntityTranslationTest.php
+++ b/core/modules/views/tests/src/Functional/Entity/FieldEntityTranslationTest.php
@@ -168,7 +168,7 @@ protected function assertRows($expected = []) {
         'sticky' => $row->find('xpath', (new CssSelectorConverter())->toXPath('.views-field-sticky span.field-content'))->getText(),
       ];
     }
-    $this->assertEqual($actual, $expected);
+    $this->assertEquals($actual, $expected);
   }
 
 }
diff --git a/core/modules/views/tests/src/Functional/Entity/FilterEntityBundleTest.php b/core/modules/views/tests/src/Functional/Entity/FilterEntityBundleTest.php
index 993293cebf..4327bf9fac 100644
--- a/core/modules/views/tests/src/Functional/Entity/FilterEntityBundleTest.php
+++ b/core/modules/views/tests/src/Functional/Entity/FilterEntityBundleTest.php
@@ -89,7 +89,7 @@ public function testFilterEntity() {
     $this->executeView($view);
 
     // Test we have all the results, with all types selected.
-    $this->assertEqual(count($view->result), $this->entities['count']);
+    $this->assertEquals(count($view->result), $this->entities['count']);
 
     // Test the valueOptions of the filter handler.
     $expected = [];
@@ -110,7 +110,7 @@ public function testFilterEntity() {
       $view->display_handler->setOption('filters', $filters);
       $this->executeView($view);
 
-      $this->assertEqual(count($view->result), count($this->entities[$key]));
+      $this->assertEquals(count($view->result), count($this->entities[$key]));
 
       $view->destroy();
     }
@@ -122,7 +122,7 @@ public function testFilterEntity() {
     $view->display_handler->setOption('filters', $filters);
     $this->executeView($view);
 
-    $this->assertEqual(count($view->result), 0);
+    $this->assertEquals(count($view->result), 0);
   }
 
 }
diff --git a/core/modules/views/tests/src/Functional/GlossaryTest.php b/core/modules/views/tests/src/Functional/GlossaryTest.php
index d67f70dfd7..1229d4b440 100644
--- a/core/modules/views/tests/src/Functional/GlossaryTest.php
+++ b/core/modules/views/tests/src/Functional/GlossaryTest.php
@@ -58,7 +58,7 @@ public function testGlossaryView() {
 
     // Check that the amount of nodes per char.
     foreach ($view->result as $item) {
-      $this->assertEqual($nodes_per_char[$item->title_truncated], $item->num_records);
+      $this->assertEquals($nodes_per_char[$item->title_truncated], $item->num_records);
     }
 
     // Enable the glossary to be displayed.
@@ -117,7 +117,7 @@ public function testGlossaryView() {
       // The rendered output looks like "<a href=''>X</a> | (count)" so let's
       // figure out the int.
       $result_count = explode(' ', trim(str_replace(['|', '(', ')'], '', $result[0]->getText())))[1];
-      $this->assertEqual($result_count, $count, 'The expected number got rendered.');
+      $this->assertEquals($result_count, $count, 'The expected number got rendered.');
     }
   }
 
diff --git a/core/modules/views/tests/src/Functional/Handler/AreaTest.php b/core/modules/views/tests/src/Functional/Handler/AreaTest.php
index d631373d23..e0a6bb480e 100644
--- a/core/modules/views/tests/src/Functional/Handler/AreaTest.php
+++ b/core/modules/views/tests/src/Functional/Handler/AreaTest.php
@@ -120,7 +120,7 @@ public function testAreaAccess() {
     $view->initDisplay();
     $view->initHandlers();
     $handlers = $view->display_handler->getHandlers('empty');
-    $this->assertEqual(0, count($handlers));
+    $this->assertEquals(0, count($handlers));
 
     $output = $view->preview();
     $output = \Drupal::service('renderer')->renderRoot($output);
@@ -147,7 +147,7 @@ public function testAreaAccess() {
     $output = $view->preview();
     $output = \Drupal::service('renderer')->renderRoot($output);
     $this->assertTrue(strpos($output, 'a custom string') !== FALSE);
-    $this->assertEqual(1, count($handlers));
+    $this->assertEquals(1, count($handlers));
   }
 
   /**
diff --git a/core/modules/views/tests/src/Functional/Handler/ArgumentStringTest.php b/core/modules/views/tests/src/Functional/Handler/ArgumentStringTest.php
index 17ece944c5..b799aa1b6a 100644
--- a/core/modules/views/tests/src/Functional/Handler/ArgumentStringTest.php
+++ b/core/modules/views/tests/src/Functional/Handler/ArgumentStringTest.php
@@ -47,13 +47,13 @@ public function testGlossary() {
     $count_field = 'nid';
     foreach ($view->result as &$row) {
       if (strpos($view->field['title']->getValue($row), 'a') === 0) {
-        $this->assertEqual(1, $row->{$count_field});
+        $this->assertEquals(1, $row->{$count_field});
       }
       if (strpos($view->field['title']->getValue($row), 'b') === 0) {
-        $this->assertEqual(2, $row->{$count_field});
+        $this->assertEquals(2, $row->{$count_field});
       }
       if (strpos($view->field['title']->getValue($row), 'c') === 0) {
-        $this->assertEqual(3, $row->{$count_field});
+        $this->assertEquals(3, $row->{$count_field});
       }
     }
   }
diff --git a/core/modules/views/tests/src/Functional/Handler/FieldDropButtonTest.php b/core/modules/views/tests/src/Functional/Handler/FieldDropButtonTest.php
index e0e380b0f8..8fd05b5371 100644
--- a/core/modules/views/tests/src/Functional/Handler/FieldDropButtonTest.php
+++ b/core/modules/views/tests/src/Functional/Handler/FieldDropButtonTest.php
@@ -49,9 +49,9 @@ public function testDropbutton() {
     $this->drupalGet('test-dropbutton');
     foreach ($nodes as $node) {
       $result = $this->xpath('//ul[contains(@class, dropbutton)]/li/a[contains(@href, :path) and text()=:title]', [':path' => '/node/' . $node->id(), ':title' => $node->label()]);
-      $this->assertEqual(count($result), 1, 'Just one node title link was found.');
+      $this->assertEquals(count($result), 1, 'Just one node title link was found.');
       $result = $this->xpath('//ul[contains(@class, dropbutton)]/li/a[contains(@href, :path) and text()=:title]', [':path' => '/node/' . $node->id(), ':title' => 'Custom Text']);
-      $this->assertEqual(count($result), 1, 'Just one custom link was found.');
+      $this->assertEquals(count($result), 1, 'Just one custom link was found.');
     }
 
     // Check if the dropbutton.js library is available.
diff --git a/core/modules/views/tests/src/Functional/Handler/FieldEntityOperationsTest.php b/core/modules/views/tests/src/Functional/Handler/FieldEntityOperationsTest.php
index 7ced4f7071..005fd3cf2b 100644
--- a/core/modules/views/tests/src/Functional/Handler/FieldEntityOperationsTest.php
+++ b/core/modules/views/tests/src/Functional/Handler/FieldEntityOperationsTest.php
@@ -77,13 +77,13 @@ public function testEntityOperations() {
           // test would by default point to the frontpage.
           $operation['url']->setOption('query', ['destination' => $expected_destination]);
           $result = $this->xpath('//ul[contains(@class, dropbutton)]/li/a[@href=:path and text()=:title]', [':path' => $operation['url']->toString(), ':title' => (string) $operation['title']]);
-          $this->assertEqual(count($result), 1, t('Found entity @operation link with destination parameter.', ['@operation' => $operation['title']]));
+          $this->assertEquals(count($result), 1, t('Found entity @operation link with destination parameter.', ['@operation' => $operation['title']]));
           // Entities which were created in Hungarian should link to the Hungarian
           // edit form, others to the English one (which has no path prefix here).
           $base_path = \Drupal::request()->getBasePath();
           $parts = explode('/', str_replace($base_path, '', $operation['url']->toString()));
           $expected_prefix = ($language->getId() != 'en' ? $language->getId() : 'node');
-          $this->assertEqual($parts[1], $expected_prefix, 'Entity operation links to the correct language for the entity.');
+          $this->assertEquals($parts[1], $expected_prefix, 'Entity operation links to the correct language for the entity.');
         }
       }
     }
diff --git a/core/modules/views/tests/src/Functional/Handler/FieldGroupRowsTest.php b/core/modules/views/tests/src/Functional/Handler/FieldGroupRowsTest.php
index d38ba41792..ec0c7f84c1 100644
--- a/core/modules/views/tests/src/Functional/Handler/FieldGroupRowsTest.php
+++ b/core/modules/views/tests/src/Functional/Handler/FieldGroupRowsTest.php
@@ -82,7 +82,7 @@ public function testGroupRows() {
     $output = $renderer->executeInRenderContext(new RenderContext(), function () use ($view) {
       return $view->field[$this->fieldName]->advancedRender($view->result[0]);
     });
-    $this->assertEqual($output, 'a, b, c');
+    $this->assertEquals($output, 'a, b, c');
 
     // Change the group_rows checkbox to false.
     $view = Views::getView('test_group_rows');
@@ -96,17 +96,17 @@ public function testGroupRows() {
     $output = $renderer->executeInRenderContext(new RenderContext(), function () use ($view) {
       return $view->field[$this->fieldName]->advancedRender($view->result[0]);
     });
-    $this->assertEqual($output, 'a');
+    $this->assertEquals($output, 'a');
     $view->row_index = 1;
     $output = $renderer->executeInRenderContext(new RenderContext(), function () use ($view) {
       return $view->field[$this->fieldName]->advancedRender($view->result[1]);
     });
-    $this->assertEqual($output, 'b');
+    $this->assertEquals($output, 'b');
     $view->row_index = 2;
     $output = $renderer->executeInRenderContext(new RenderContext(), function () use ($view) {
       return $view->field[$this->fieldName]->advancedRender($view->result[2]);
     });
-    $this->assertEqual($output, 'c');
+    $this->assertEquals($output, 'c');
   }
 
 }
diff --git a/core/modules/views/tests/src/Functional/Handler/FieldGroupRowsWebTest.php b/core/modules/views/tests/src/Functional/Handler/FieldGroupRowsWebTest.php
index 275960cb0d..e85451caa2 100644
--- a/core/modules/views/tests/src/Functional/Handler/FieldGroupRowsWebTest.php
+++ b/core/modules/views/tests/src/Functional/Handler/FieldGroupRowsWebTest.php
@@ -100,7 +100,7 @@ public function testGroupRows() {
     foreach ($result as $row) {
       $rendered_value[] = $row->getText();
     }
-    $this->assertEqual(['a, b, c'], $rendered_value);
+    $this->assertEquals(['a, b, c'], $rendered_value);
   }
 
   /**
@@ -113,7 +113,7 @@ public function testUngroupedRows() {
     foreach ($result as $row) {
       $rendered_value[] = $row->getText();
     }
-    $this->assertEqual(['a', 'b', 'c'], $rendered_value);
+    $this->assertEquals(['a', 'b', 'c'], $rendered_value);
   }
 
 }
diff --git a/core/modules/views/tests/src/Functional/Handler/FieldWebTest.php b/core/modules/views/tests/src/Functional/Handler/FieldWebTest.php
index a3646f0c0b..3a27348728 100644
--- a/core/modules/views/tests/src/Functional/Handler/FieldWebTest.php
+++ b/core/modules/views/tests/src/Functional/Handler/FieldWebTest.php
@@ -82,12 +82,12 @@ public function testClickSorting() {
     $this->assertLinkByHref(\Drupal::url('<none>', [], ['query' => ['order' => 'id', 'sort' => 'desc']]));
     // Check that the output has the expected order (asc).
     $ids = $this->clickSortLoadIdsFromOutput();
-    $this->assertEqual($ids, range(1, 5));
+    $this->assertEquals($ids, range(1, 5));
 
     $this->clickLink(t('ID Sort descending'));
     // Check that the output has the expected order (desc).
     $ids = $this->clickSortLoadIdsFromOutput();
-    $this->assertEqual($ids, range(5, 1, -1));
+    $this->assertEquals($ids, range(5, 1, -1));
   }
 
   /**
@@ -487,7 +487,7 @@ public function testFieldClasses() {
       'marquee'
     ];
 
-    $this->assertEqual(array_keys($element_types), $expected_elements);
+    $this->assertEquals(array_keys($element_types), $expected_elements);
   }
 
   /**
diff --git a/core/modules/views/tests/src/Functional/Handler/FilterDateTest.php b/core/modules/views/tests/src/Functional/Handler/FilterDateTest.php
index ec3b52385f..1fc24eb174 100644
--- a/core/modules/views/tests/src/Functional/Handler/FilterDateTest.php
+++ b/core/modules/views/tests/src/Functional/Handler/FilterDateTest.php
@@ -214,7 +214,7 @@ protected function _testFilterDateUI() {
       $this->assertFieldByName($name, $value);
       if (strpos($name, '[value][type]')) {
         $radio = $this->cssSelect('input[name="' . $name . '"][checked="checked"][type="radio"]');
-        $this->assertEqual($radio[0]->getAttribute('value'), $value);
+        $this->assertEquals($radio[0]->getAttribute('value'), $value);
       }
     }
 
@@ -230,19 +230,19 @@ protected function _testFilterDateUI() {
     $this->drupalGet($path);
     $this->drupalPostForm(NULL, [], 'Apply');
     $results = $this->cssSelect('.view-content .field-content');
-    $this->assertEqual(count($results), 4);
+    $this->assertEquals(count($results), 4);
     $this->drupalPostForm(NULL, ['created' => '1'], 'Apply');
     $results = $this->cssSelect('.view-content .field-content');
-    $this->assertEqual(count($results), 1);
-    $this->assertEqual($results[0]->getText(), $this->nodes[3]->id());
+    $this->assertEquals(count($results), 1);
+    $this->assertEquals($results[0]->getText(), $this->nodes[3]->id());
     $this->drupalPostForm(NULL, ['created' => '2'], 'Apply');
     $results = $this->cssSelect('.view-content .field-content');
-    $this->assertEqual(count($results), 1);
-    $this->assertEqual($results[0]->getText(), $this->nodes[3]->id());
+    $this->assertEquals(count($results), 1);
+    $this->assertEquals($results[0]->getText(), $this->nodes[3]->id());
     $this->drupalPostForm(NULL, ['created' => '3'], 'Apply');
     $results = $this->cssSelect('.view-content .field-content');
-    $this->assertEqual(count($results), 1);
-    $this->assertEqual($results[0]->getText(), $this->nodes[1]->id());
+    $this->assertEquals(count($results), 1);
+    $this->assertEquals($results[0]->getText(), $this->nodes[1]->id());
 
     // Change the filter to a single filter to test the schema when the operator
     // is not exposed.
@@ -258,13 +258,13 @@ protected function _testFilterDateUI() {
     // Test that the filter works as expected.
     $this->drupalGet($path);
     $results = $this->cssSelect('.view-content .field-content');
-    $this->assertEqual(count($results), 1);
-    $this->assertEqual($results[0]->getText(), $this->nodes[3]->id());
+    $this->assertEquals(count($results), 1);
+    $this->assertEquals($results[0]->getText(), $this->nodes[3]->id());
     $this->drupalPostForm(NULL, ['created' => format_date(250000, 'custom', 'Y-m-d H:i:s')], 'Apply');
     $results = $this->cssSelect('.view-content .field-content');
-    $this->assertEqual(count($results), 2);
-    $this->assertEqual($results[0]->getText(), $this->nodes[2]->id());
-    $this->assertEqual($results[1]->getText(), $this->nodes[3]->id());
+    $this->assertEquals(count($results), 2);
+    $this->assertEquals($results[0]->getText(), $this->nodes[2]->id());
+    $this->assertEquals($results[1]->getText(), $this->nodes[3]->id());
   }
 
   /**
diff --git a/core/modules/views/tests/src/Functional/Handler/HandlerTest.php b/core/modules/views/tests/src/Functional/Handler/HandlerTest.php
index cffe6d1402..41fdb15d75 100644
--- a/core/modules/views/tests/src/Functional/Handler/HandlerTest.php
+++ b/core/modules/views/tests/src/Functional/Handler/HandlerTest.php
@@ -68,46 +68,46 @@ protected function viewsData() {
    */
   public function testBreakString() {
     // Check defaults.
-    $this->assertEqual((object) ['value' => [], 'operator' => NULL], HandlerBase::breakString(''));
+    $this->assertEquals((object) ['value' => [], 'operator' => NULL], HandlerBase::breakString(''));
 
     // Test ors
     $handler = HandlerBase::breakString('word1 word2+word');
     $this->assertEqualValue(['word1', 'word2', 'word'], $handler);
-    $this->assertEqual('or', $handler->operator);
+    $this->assertEquals('or', $handler->operator);
     $handler = HandlerBase::breakString('word1+word2+word');
     $this->assertEqualValue(['word1', 'word2', 'word'], $handler);
-    $this->assertEqual('or', $handler->operator);
+    $this->assertEquals('or', $handler->operator);
     $handler = HandlerBase::breakString('word1 word2 word');
     $this->assertEqualValue(['word1', 'word2', 'word'], $handler);
-    $this->assertEqual('or', $handler->operator);
+    $this->assertEquals('or', $handler->operator);
     $handler = HandlerBase::breakString('word-1+word-2+word');
     $this->assertEqualValue(['word-1', 'word-2', 'word'], $handler);
-    $this->assertEqual('or', $handler->operator);
+    $this->assertEquals('or', $handler->operator);
     $handler = HandlerBase::breakString('wõrd1+wõrd2+wõrd');
     $this->assertEqualValue(['wõrd1', 'wõrd2', 'wõrd'], $handler);
-    $this->assertEqual('or', $handler->operator);
+    $this->assertEquals('or', $handler->operator);
 
     // Test ands.
     $handler = HandlerBase::breakString('word1,word2,word');
     $this->assertEqualValue(['word1', 'word2', 'word'], $handler);
-    $this->assertEqual('and', $handler->operator);
+    $this->assertEquals('and', $handler->operator);
     $handler = HandlerBase::breakString('word1 word2,word');
     $this->assertEqualValue(['word1 word2', 'word'], $handler);
-    $this->assertEqual('and', $handler->operator);
+    $this->assertEquals('and', $handler->operator);
     $handler = HandlerBase::breakString('word1,word2 word');
     $this->assertEqualValue(['word1', 'word2 word'], $handler);
-    $this->assertEqual('and', $handler->operator);
+    $this->assertEquals('and', $handler->operator);
     $handler = HandlerBase::breakString('word-1,word-2,word');
     $this->assertEqualValue(['word-1', 'word-2', 'word'], $handler);
-    $this->assertEqual('and', $handler->operator);
+    $this->assertEquals('and', $handler->operator);
     $handler = HandlerBase::breakString('wõrd1,wõrd2,wõrd');
     $this->assertEqualValue(['wõrd1', 'wõrd2', 'wõrd'], $handler);
-    $this->assertEqual('and', $handler->operator);
+    $this->assertEquals('and', $handler->operator);
 
     // Test a single word
     $handler = HandlerBase::breakString('word');
     $this->assertEqualValue(['word'], $handler);
-    $this->assertEqual('and', $handler->operator);
+    $this->assertEquals('and', $handler->operator);
 
     $s1 = $this->randomMachineName();
     // Generate three random numbers which can be used below;
@@ -118,45 +118,45 @@ public function testBreakString() {
     // Test "or"s.
     $handlerBase = HandlerBase::breakString("$s1 $n2+$n3");
     $this->assertEqualValue([$s1, $n2, $n3], $handlerBase);
-    $this->assertEqual('or', $handlerBase->operator);
+    $this->assertEquals('or', $handlerBase->operator);
 
     $handlerBase = HandlerBase::breakString("$s1+$n2+$n3");
     $this->assertEqualValue([$s1, $n2, $n3], $handlerBase);
-    $this->assertEqual('or', $handlerBase->operator);
+    $this->assertEquals('or', $handlerBase->operator);
 
     $handlerBase = HandlerBase::breakString("$s1 $n2 $n3");
     $this->assertEqualValue([$s1, $n2, $n3], $handlerBase);
-    $this->assertEqual('or', $handlerBase->operator);
+    $this->assertEquals('or', $handlerBase->operator);
 
     $handlerBase = HandlerBase::breakString("$s1 $n2++$n3");
     $this->assertEqualValue([$s1, $n2, $n3], $handlerBase);
-    $this->assertEqual('or', $handlerBase->operator);
+    $this->assertEquals('or', $handlerBase->operator);
 
     // Test "and"s.
     $handlerBase = HandlerBase::breakString("$s1,$n2,$n3");
     $this->assertEqualValue([$s1, $n2, $n3], $handlerBase);
-    $this->assertEqual('and', $handlerBase->operator);
+    $this->assertEquals('and', $handlerBase->operator);
 
     $handlerBase = HandlerBase::breakString("$s1,,$n2,$n3");
     $this->assertEqualValue([$s1, $n2, $n3], $handlerBase);
-    $this->assertEqual('and', $handlerBase->operator);
+    $this->assertEquals('and', $handlerBase->operator);
 
     // Enforce int values.
     $handlerBase = HandlerBase::breakString("$n1,$n2,$n3", TRUE);
     $this->assertEqualValue([$n1, $n2, $n3], $handlerBase);
-    $this->assertEqual('and', $handlerBase->operator);
+    $this->assertEquals('and', $handlerBase->operator);
 
     $handlerBase = HandlerBase::breakString("$n1+$n2+$n3", TRUE);
     $this->assertEqualValue([$n1, $n2, $n3], $handlerBase);
-    $this->assertEqual('or', $handlerBase->operator);
+    $this->assertEquals('or', $handlerBase->operator);
 
     $handlerBase = HandlerBase::breakString("$s1,$n2,$n3", TRUE);
     $this->assertEqualValue([(int) $s1, $n2, $n3], $handlerBase);
-    $this->assertEqual('and', $handlerBase->operator);
+    $this->assertEquals('and', $handlerBase->operator);
 
     $handlerBase = HandlerBase::breakString("$s1+$n2+$n3", TRUE);
     $this->assertEqualValue([(int) $s1, $n2, $n3], $handlerBase);
-    $this->assertEqual('or', $handlerBase->operator);
+    $this->assertEquals('or', $handlerBase->operator);
 
     // Generate three random decimals which can be used below;
     $d1 = rand(0, 10) / 10;
@@ -166,28 +166,28 @@ public function testBreakString() {
     // Test "or"s.
     $handlerBase = HandlerBase::breakString("$s1 $d1+$d2");
     $this->assertEqualValue([$s1, $d1, $d2], $handlerBase);
-    $this->assertEqual('or', $handlerBase->operator);
+    $this->assertEquals('or', $handlerBase->operator);
 
     $handlerBase = HandlerBase::breakString("$s1+$d1+$d3");
     $this->assertEqualValue([$s1, $d1, $d3], $handlerBase);
-    $this->assertEqual('or', $handlerBase->operator);
+    $this->assertEquals('or', $handlerBase->operator);
 
     $handlerBase = HandlerBase::breakString("$s1 $d2 $d3");
     $this->assertEqualValue([$s1, $d2, $d3], $handlerBase);
-    $this->assertEqual('or', $handlerBase->operator);
+    $this->assertEquals('or', $handlerBase->operator);
 
     $handlerBase = HandlerBase::breakString("$s1 $d2++$d3");
     $this->assertEqualValue([$s1, $d2, $d3], $handlerBase);
-    $this->assertEqual('or', $handlerBase->operator);
+    $this->assertEquals('or', $handlerBase->operator);
 
     // Test "and"s.
     $handlerBase = HandlerBase::breakString("$s1,$d2,$d3");
     $this->assertEqualValue([$s1, $d2, $d3], $handlerBase);
-    $this->assertEqual('and', $handlerBase->operator);
+    $this->assertEquals('and', $handlerBase->operator);
 
     $handlerBase = HandlerBase::breakString("$s1,,$d2,$d3");
     $this->assertEqualValue([$s1, $d2, $d3], $handlerBase);
-    $this->assertEqual('and', $handlerBase->operator);
+    $this->assertEquals('and', $handlerBase->operator);
   }
 
   /**
@@ -269,7 +269,7 @@ public function testRelationshipUI() {
       }
     }
     $expected_options = ['none', 'nid'];
-    $this->assertEqual($options, $expected_options);
+    $this->assertEquals($options, $expected_options);
 
     // Remove the relationship and make sure no relationship option appears.
     $this->drupalPostForm('admin/structure/views/nojs/handler/test_handler_relationships/default/relationship/nid', [], t('Remove'));
@@ -324,7 +324,7 @@ public function testSetRelationship() {
 
     $view->build();
     $field->setRelationship();
-    $this->assertEqual($field->relationship, $view->relationship['valid_relationship']->alias, 'Make sure that a valid relationship does create the right relationship query alias.');
+    $this->assertEquals($field->relationship, $view->relationship['valid_relationship']->alias, 'Make sure that a valid relationship does create the right relationship query alias.');
   }
 
   /**
@@ -343,9 +343,9 @@ public function testPlaceholder() {
     $string = ':' . $table . '_' . $field;
 
     // Make sure the placeholder variables are like expected.
-    $this->assertEqual($handler->getPlaceholder(), $string);
-    $this->assertEqual($handler->getPlaceholder(), $string . 1);
-    $this->assertEqual($handler->getPlaceholder(), $string . 2);
+    $this->assertEquals($handler->getPlaceholder(), $string);
+    $this->assertEquals($handler->getPlaceholder(), $string . 1);
+    $this->assertEquals($handler->getPlaceholder(), $string . 2);
 
     // Set another table/field combination and make sure there are new
     // placeholders.
@@ -354,9 +354,9 @@ public function testPlaceholder() {
     $string = ':' . $table . '_' . $field;
 
     // Make sure the placeholder variables are like expected.
-    $this->assertEqual($handler->getPlaceholder(), $string);
-    $this->assertEqual($handler->getPlaceholder(), $string . 1);
-    $this->assertEqual($handler->getPlaceholder(), $string . 2);
+    $this->assertEquals($handler->getPlaceholder(), $string);
+    $this->assertEquals($handler->getPlaceholder(), $string . 1);
+    $this->assertEquals($handler->getPlaceholder(), $string . 2);
   }
 
   /**
diff --git a/core/modules/views/tests/src/Functional/Plugin/ArgumentDefaultTest.php b/core/modules/views/tests/src/Functional/Plugin/ArgumentDefaultTest.php
index 57eb2320b8..45fdf7b7f8 100644
--- a/core/modules/views/tests/src/Functional/Plugin/ArgumentDefaultTest.php
+++ b/core/modules/views/tests/src/Functional/Plugin/ArgumentDefaultTest.php
@@ -65,18 +65,18 @@ public function testArgumentDefaultPlugin() {
     $this->assertTrue($plugin instanceof ArgumentDefaultTestPlugin, 'The correct argument default plugin is used.');
 
     // Check that the value of the default argument is as expected.
-    $this->assertEqual($view->argument[$id]->getDefaultArgument(), 'John', 'The correct argument default value is returned.');
+    $this->assertEquals($view->argument[$id]->getDefaultArgument(), 'John', 'The correct argument default value is returned.');
     // Don't pass in a value for the default argument and make sure the query
     // just returns John.
     $this->executeView($view);
-    $this->assertEqual($view->argument[$id]->getValue(), 'John', 'The correct argument value is used.');
+    $this->assertEquals($view->argument[$id]->getValue(), 'John', 'The correct argument value is used.');
     $expected_result = [['name' => 'John']];
     $this->assertIdenticalResultset($view, $expected_result, ['views_test_data_name' => 'name']);
 
     // Pass in value as argument to be sure that not the default value is used.
     $view->destroy();
     $this->executeView($view, ['George']);
-    $this->assertEqual($view->argument[$id]->getValue(), 'George', 'The correct argument value is used.');
+    $this->assertEquals($view->argument[$id]->getValue(), 'George', 'The correct argument value is used.');
     $expected_result = [['name' => 'George']];
     $this->assertIdenticalResultset($view, $expected_result, ['views_test_data_name' => 'name']);
   }
@@ -118,13 +118,13 @@ public function testArgumentDefaultFixed() {
     $view->display_handler->overrideOption('arguments', $options);
     $view->initHandlers();
 
-    $this->assertEqual($view->argument['null']->getDefaultArgument(), $random, 'Fixed argument should be used by default.');
+    $this->assertEquals($view->argument['null']->getDefaultArgument(), $random, 'Fixed argument should be used by default.');
 
     // Make sure that a normal argument provided is used
     $random_string = $this->randomMachineName();
     $view->executeDisplay('default', [$random_string]);
 
-    $this->assertEqual($view->args[0], $random_string, 'Provided argument should be used.');
+    $this->assertEquals($view->args[0], $random_string, 'Provided argument should be used.');
   }
 
   /**
@@ -177,13 +177,13 @@ public function testArgumentDefaultQueryParameter() {
     // Check the query parameter default argument fallback value.
     $view->setRequest($request);
     $view->initHandlers();
-    $this->assertEqual($view->argument['type']->getDefaultArgument(), 'all');
+    $this->assertEquals($view->argument['type']->getDefaultArgument(), 'all');
 
     // Check the query parameter default argument with a value.
     $request->query->add(['the_node_type' => 'page']);
     $view->setRequest($request);
     $view->initHandlers();
-    $this->assertEqual($view->argument['type']->getDefaultArgument(), 'page');
+    $this->assertEquals($view->argument['type']->getDefaultArgument(), 'page');
   }
 
 }
diff --git a/core/modules/views/tests/src/Functional/Plugin/CacheWebTest.php b/core/modules/views/tests/src/Functional/Plugin/CacheWebTest.php
index f8ce5a927f..7b1d1ff329 100644
--- a/core/modules/views/tests/src/Functional/Plugin/CacheWebTest.php
+++ b/core/modules/views/tests/src/Functional/Plugin/CacheWebTest.php
@@ -88,7 +88,7 @@ public function testDisplayWithoutCacheStillBubblesMetadata() {
 
     $uncached_block = $view->buildRenderable('block_1', [], FALSE);
     $cached_block = $view->buildRenderable('block_1', [], TRUE);
-    $this->assertEqual($uncached_block['#cache']['contexts'], $cached_block['#cache']['contexts'], 'Cache contexts are the same when you render the view cached and uncached.');
+    $this->assertEquals($uncached_block['#cache']['contexts'], $cached_block['#cache']['contexts'], 'Cache contexts are the same when you render the view cached and uncached.');
   }
 
 }
diff --git a/core/modules/views/tests/src/Functional/Plugin/ContextualFiltersBlockContextTest.php b/core/modules/views/tests/src/Functional/Plugin/ContextualFiltersBlockContextTest.php
index 215ee2890f..1509e0ff7f 100644
--- a/core/modules/views/tests/src/Functional/Plugin/ContextualFiltersBlockContextTest.php
+++ b/core/modules/views/tests/src/Functional/Plugin/ContextualFiltersBlockContextTest.php
@@ -84,8 +84,8 @@ public function testBlockContext() {
     $this->assertTrue($definition['context']['nid'] instanceof ContextDefinitionInterface);
     /** @var \Drupal\Core\Plugin\Context\ContextDefinitionInterface $context */
     $context = $definition['context']['nid'];
-    $this->assertEqual($context->getDataType(), 'entity:node', 'Context definition data type is correct.');
-    $this->assertEqual($context->getLabel(), 'Content: ID', 'Context definition label is correct.');
+    $this->assertEquals($context->getDataType(), 'entity:node', 'Context definition data type is correct.');
+    $this->assertEquals($context->getLabel(), 'Content: ID', 'Context definition label is correct.');
     $this->assertFalse($context->isRequired(), 'Context is not required.');
 
     // Place test block via block UI to check if contexts are correctly exposed.
@@ -112,7 +112,7 @@ public function testBlockContext() {
       'items_per_page' => 'none',
       'context_mapping' => ['nid' => '@node.node_route_context:node']
     ];
-    $this->assertEqual($block->getPlugin()->getConfiguration(), $expected_settings, 'Block settings are correct.');
+    $this->assertEquals($block->getPlugin()->getConfiguration(), $expected_settings, 'Block settings are correct.');
 
     // Make sure view behaves as expected.
     $this->drupalGet('<front>');
@@ -131,22 +131,22 @@ public function testBlockContext() {
     $this->assertTrue($definition['context']['created'] instanceof ContextDefinitionInterface);
     /** @var \Drupal\Core\Plugin\Context\ContextDefinitionInterface $context */
     $context = $definition['context']['created'];
-    $this->assertEqual($context->getDataType(), 'integer', 'Context definition data type is correct.');
-    $this->assertEqual($context->getLabel(), 'Content: Authored on', 'Context definition label is correct.');
+    $this->assertEquals($context->getDataType(), 'integer', 'Context definition data type is correct.');
+    $this->assertEquals($context->getLabel(), 'Content: Authored on', 'Context definition label is correct.');
     $this->assertFalse($context->isRequired(), 'Context is not required.');
 
     $this->assertTrue($definition['context']['vid'] instanceof ContextDefinitionInterface);
     /** @var \Drupal\Core\Plugin\Context\ContextDefinitionInterface $context */
     $context = $definition['context']['vid'];
-    $this->assertEqual($context->getDataType(), 'integer', 'Context definition data type is correct.');
-    $this->assertEqual($context->getLabel(), 'Content: Revision ID', 'Context definition label is correct.');
+    $this->assertEquals($context->getDataType(), 'integer', 'Context definition data type is correct.');
+    $this->assertEquals($context->getLabel(), 'Content: Revision ID', 'Context definition label is correct.');
     $this->assertFalse($context->isRequired(), 'Context is not required.');
 
     $this->assertTrue($definition['context']['title'] instanceof ContextDefinitionInterface);
     /** @var \Drupal\Core\Plugin\Context\ContextDefinitionInterface $context */
     $context = $definition['context']['title'];
-    $this->assertEqual($context->getDataType(), 'string', 'Context definition data type is correct.');
-    $this->assertEqual($context->getLabel(), 'Content: Title', 'Context definition label is correct.');
+    $this->assertEquals($context->getDataType(), 'string', 'Context definition data type is correct.');
+    $this->assertEquals($context->getLabel(), 'Content: Title', 'Context definition label is correct.');
     $this->assertFalse($context->isRequired(), 'Context is not required.');
   }
 
diff --git a/core/modules/views/tests/src/Functional/Plugin/DisabledDisplayTest.php b/core/modules/views/tests/src/Functional/Plugin/DisabledDisplayTest.php
index 708ac55030..095d704bfb 100644
--- a/core/modules/views/tests/src/Functional/Plugin/DisabledDisplayTest.php
+++ b/core/modules/views/tests/src/Functional/Plugin/DisabledDisplayTest.php
@@ -58,7 +58,7 @@ public function testDisabledDisplays() {
     // Enabled page display should return content.
     $this->drupalGet('test-disabled-display');
     $result = $this->xpath('//h1[@class="page-title"]');
-    $this->assertEqual($result[0]->getText(), 'test_disabled_display', 'The enabled page_1 display is accessible.');
+    $this->assertEquals($result[0]->getText(), 'test_disabled_display', 'The enabled page_1 display is accessible.');
 
     // Disabled page view should 404.
     $this->drupalGet('test-disabled-display-2');
@@ -77,7 +77,7 @@ public function testDisabledDisplays() {
     // Check that the originally disabled page_2 display is now enabled.
     $this->drupalGet('test-disabled-display-2');
     $result = $this->xpath('//h1[@class="page-title"]');
-    $this->assertEqual($result[0]->getText(), 'test_disabled_display', 'The enabled page_2 display is accessible.');
+    $this->assertEquals($result[0]->getText(), 'test_disabled_display', 'The enabled page_2 display is accessible.');
 
     // Disable each disabled display and save the view.
     foreach ($display_ids as $display_id) {
diff --git a/core/modules/views/tests/src/Functional/Plugin/DisplayAttachmentTest.php b/core/modules/views/tests/src/Functional/Plugin/DisplayAttachmentTest.php
index 8c326baa05..17d7fca564 100644
--- a/core/modules/views/tests/src/Functional/Plugin/DisplayAttachmentTest.php
+++ b/core/modules/views/tests/src/Functional/Plugin/DisplayAttachmentTest.php
@@ -44,13 +44,13 @@ public function testAttachment() {
     $this->drupalGet('test-display-attachment');
 
     $result = $this->xpath('//div[contains(@class, "view-content")]');
-    $this->assertEqual(count($result), 2, 'Both actual view and the attachment is rendered.');
+    $this->assertEquals(count($result), 2, 'Both actual view and the attachment is rendered.');
 
     $result = $this->xpath('//div[contains(@class, "attachment-after")]');
-    $this->assertEqual(count($result), 0, 'The attachment is not rendered after the actual view.');
+    $this->assertEquals(count($result), 0, 'The attachment is not rendered after the actual view.');
 
     $result = $this->xpath('//div[contains(@class, "attachment-before")]');
-    $this->assertEqual(count($result), 1, 'The attachment is rendered before the actual view.');
+    $this->assertEquals(count($result), 1, 'The attachment is rendered before the actual view.');
   }
 
   /**
@@ -71,13 +71,13 @@ public function testDisabledAttachments() {
     $this->drupalGet('test-attached-disabled');
 
     $result = $this->xpath('//div[contains(@class, "view-content")]');
-    $this->assertEqual(count($result), 3, 'The page view and the attachments are rendered.');
+    $this->assertEquals(count($result), 3, 'The page view and the attachments are rendered.');
 
     $result = $this->xpath('//div[contains(@class, "attachment-before")]');
-    $this->assertEqual(count($result), 1, 'The attachment is rendered before the page view.');
+    $this->assertEquals(count($result), 1, 'The attachment is rendered before the page view.');
 
     $result = $this->xpath('//div[contains(@class, "attachment-after")]');
-    $this->assertEqual(count($result), 1, 'The attachment is rendered after the page view.');
+    $this->assertEquals(count($result), 1, 'The attachment is rendered after the page view.');
 
     // Disable the attachment_1 display.
     $view->displayHandlers->get('attachment_1')->setOption('enabled', FALSE);
@@ -86,10 +86,10 @@ public function testDisabledAttachments() {
     // Test that the before attachment is not displayed.
     $this->drupalGet('/test-attached-disabled');
     $result = $this->xpath('//div[contains(@class, "view-content")]');
-    $this->assertEqual(count($result), 2, 'The page view and only one attachment are rendered.');
+    $this->assertEquals(count($result), 2, 'The page view and only one attachment are rendered.');
 
     $result = $this->xpath('//div[contains(@class, "attachment-before")]');
-    $this->assertEqual(count($result), 0, 'The attachment_1 is not rendered.');
+    $this->assertEquals(count($result), 0, 'The attachment_1 is not rendered.');
 
     // Disable the attachment_2 display.
     $view->displayHandlers->get('attachment_2')->setOption('enabled', FALSE);
@@ -98,10 +98,10 @@ public function testDisabledAttachments() {
     // Test that the after attachment is not displayed.
     $this->drupalGet('/test-attached-disabled');
     $result = $this->xpath('//div[contains(@class, "view-content")]');
-    $this->assertEqual(count($result), 1, 'The page view is rendered without attachments.');
+    $this->assertEquals(count($result), 1, 'The page view is rendered without attachments.');
 
     $result = $this->xpath('//div[contains(@class, "attachment-after")]');
-    $this->assertEqual(count($result), 0, 'The attachment_2 is not rendered.');
+    $this->assertEquals(count($result), 0, 'The attachment_2 is not rendered.');
   }
 
 }
diff --git a/core/modules/views/tests/src/Functional/Plugin/DisplayEntityReferenceTest.php b/core/modules/views/tests/src/Functional/Plugin/DisplayEntityReferenceTest.php
index daad14896e..30a6b002a6 100644
--- a/core/modules/views/tests/src/Functional/Plugin/DisplayEntityReferenceTest.php
+++ b/core/modules/views/tests/src/Functional/Plugin/DisplayEntityReferenceTest.php
@@ -153,7 +153,7 @@ public function testEntityReferenceDisplay() {
     $this->executeView($view);
 
     // Test that we have searched in both fields.
-    $this->assertEqual(count($view->result), 2, 'Search returned two rows');
+    $this->assertEquals(count($view->result), 2, 'Search returned two rows');
     $view->destroy();
 
     // Test the 'CONTAINS' match_operator.
@@ -167,7 +167,7 @@ public function testEntityReferenceDisplay() {
     ];
     $view->display_handler->setOption('entity_reference_options', $options);
     $this->executeView($view);
-    $this->assertEqual(count($view->result), 13, 'Search returned thirteen rows');
+    $this->assertEquals(count($view->result), 13, 'Search returned thirteen rows');
     $view->destroy();
 
     // Test the 'STARTS_WITH' match_operator.
@@ -181,7 +181,7 @@ public function testEntityReferenceDisplay() {
     ];
     $view->display_handler->setOption('entity_reference_options', $options);
     $this->executeView($view);
-    $this->assertEqual(count($view->result), 12, 'Search returned twelve rows');
+    $this->assertEquals(count($view->result), 12, 'Search returned twelve rows');
     $view->destroy();
 
     // Test the '=' match_operator.
@@ -195,7 +195,7 @@ public function testEntityReferenceDisplay() {
     ];
     $view->display_handler->setOption('entity_reference_options', $options);
     $this->executeView($view);
-    $this->assertEqual(count($view->result), 2, 'Search returned two rows');
+    $this->assertEquals(count($view->result), 2, 'Search returned two rows');
     $view->destroy();
 
     // Add a relationship and a field using that relationship.
@@ -225,7 +225,7 @@ public function testEntityReferenceDisplay() {
     $this->executeView($view);
 
     // Run validation when using a relationship to the same base table.
-    $this->assertEqual(count($view->result), 2, 'Search returned two rows');
+    $this->assertEquals(count($view->result), 2, 'Search returned two rows');
     $view->destroy();
 
     $this->drupalPostForm('admin/structure/views/nojs/add-handler/test_display_entity_reference/default/relationship', ['name[entity_test__field_test_entity_ref_entity_ref.field_test_entity_ref_entity_ref]' => TRUE], t('Add and configure relationships'));
@@ -248,7 +248,7 @@ public function testEntityReferenceDisplay() {
 
     $this->executeView($view);
 
-    $this->assertEqual(count($view->result), 2, 'Search returned two rows');
+    $this->assertEquals(count($view->result), 2, 'Search returned two rows');
 
     // Test that the render() return empty array for empty result.
     $view = Views::getView('test_display_entity_reference');
diff --git a/core/modules/views/tests/src/Functional/Plugin/DisplayPageWebTest.php b/core/modules/views/tests/src/Functional/Plugin/DisplayPageWebTest.php
index 501d9226ee..aaf1852974 100644
--- a/core/modules/views/tests/src/Functional/Plugin/DisplayPageWebTest.php
+++ b/core/modules/views/tests/src/Functional/Plugin/DisplayPageWebTest.php
@@ -46,7 +46,7 @@ public function testArguments() {
     $this->drupalGet('test_route_without_arguments');
     $this->assertResponse(200);
     $result = $this->xpath('//span[@class="field-content"]');
-    $this->assertEqual(count($result), 5, 'All entries was returned');
+    $this->assertEquals(count($result), 5, 'All entries was returned');
 
     $this->drupalGet('test_route_without_arguments/1');
     $this->assertResponse(404);
@@ -55,31 +55,31 @@ public function testArguments() {
     $this->assertResponse(200);
     $this->assertCacheContexts(['languages:language_interface', 'route', 'theme', 'url']);
     $result = $this->xpath('//span[@class="field-content"]');
-    $this->assertEqual(count($result), 1, 'Ensure that just the filtered entry was returned.');
-    $this->assertEqual($result[0]->getText(), 1, 'The passed ID was returned.');
+    $this->assertEquals(count($result), 1, 'Ensure that just the filtered entry was returned.');
+    $this->assertEquals($result[0]->getText(), 1, 'The passed ID was returned.');
 
     $this->drupalGet('test_route_with_suffix/1/suffix');
     $this->assertResponse(200);
     $result = $this->xpath('//span[@class="field-content"]');
-    $this->assertEqual(count($result), 1, 'Ensure that just the filtered entry was returned.');
-    $this->assertEqual($result[0]->getText(), 1, 'The passed ID was returned.');
+    $this->assertEquals(count($result), 1, 'Ensure that just the filtered entry was returned.');
+    $this->assertEquals($result[0]->getText(), 1, 'The passed ID was returned.');
 
     $this->drupalGet('test_route_with_suffix_and_argument/1/suffix/2');
     $this->assertResponse(200);
     $result = $this->xpath('//span[@class="field-content"]');
-    $this->assertEqual(count($result), 0, 'No result was returned.');
+    $this->assertEquals(count($result), 0, 'No result was returned.');
 
     $this->drupalGet('test_route_with_suffix_and_argument/1/suffix/1');
     $this->assertResponse(200);
     $result = $this->xpath('//span[@class="field-content"]');
-    $this->assertEqual(count($result), 1, 'Ensure that just the filtered entry was returned.');
-    $this->assertEqual($result[0]->getText(), 1, 'The passed ID was returned.');
+    $this->assertEquals(count($result), 1, 'Ensure that just the filtered entry was returned.');
+    $this->assertEquals($result[0]->getText(), 1, 'The passed ID was returned.');
 
     $this->drupalGet('test_route_with_long_argument/1');
     $this->assertResponse(200);
     $result = $this->xpath('//span[@class="field-content"]');
-    $this->assertEqual(count($result), 1, 'Ensure that just the filtered entry was returned.');
-    $this->assertEqual($result[0]->getText(), 1, 'The passed ID was returned.');
+    $this->assertEquals(count($result), 1, 'Ensure that just the filtered entry was returned.');
+    $this->assertEquals($result[0]->getText(), 1, 'The passed ID was returned.');
   }
 
   /**
@@ -93,7 +93,7 @@ public function testPageDisplayMenu() {
       ':ul_class' => 'tabs primary',
       ':a_class' => 'is-active',
     ]);
-    $this->assertEqual($element[0]->getText(), t('Test default tab'));
+    $this->assertEquals($element[0]->getText(), t('Test default tab'));
     $this->assertTitle(t('Test default page | Drupal'));
 
     $this->drupalGet('test_page_display_menu/default');
@@ -105,7 +105,7 @@ public function testPageDisplayMenu() {
       ':ul_class' => 'tabs primary',
       ':a_class' => 'is-active',
     ]);
-    $this->assertEqual($element[0]->getText(), t('Test local tab'));
+    $this->assertEquals($element[0]->getText(), t('Test local tab'));
     $this->assertTitle(t('Test local page | Drupal'));
 
     // Check an ordinary menu link.
@@ -115,7 +115,7 @@ public function testPageDisplayMenu() {
     $this->drupalGet('<front>');
 
     $menu_link = $this->cssSelect('nav.block-menu ul.menu a');
-    $this->assertEqual($menu_link[0]->getText(), 'Test menu link');
+    $this->assertEquals($menu_link[0]->getText(), 'Test menu link');
 
     // Update the menu link.
     $this->drupalPostForm("admin/structure/menu/link/views_view:views.test_page_display_menu.page_3/edit", [
@@ -124,7 +124,7 @@ public function testPageDisplayMenu() {
 
     $this->drupalGet('<front>');
     $menu_link = $this->cssSelect('nav.block-menu ul.menu a');
-    $this->assertEqual($menu_link[0]->getText(), 'New title');
+    $this->assertEquals($menu_link[0]->getText(), 'New title');
   }
 
   /**
diff --git a/core/modules/views/tests/src/Functional/Plugin/DisplayTest.php b/core/modules/views/tests/src/Functional/Plugin/DisplayTest.php
index 6748152987..bbd7eeab17 100644
--- a/core/modules/views/tests/src/Functional/Plugin/DisplayTest.php
+++ b/core/modules/views/tests/src/Functional/Plugin/DisplayTest.php
@@ -66,7 +66,7 @@ public function testDisplayPlugin() {
       'display_title' => 'Display test',
       'position' => 1,
     ];
-    $this->assertEqual($displays['display_test_1'], $options);
+    $this->assertEquals($displays['display_test_1'], $options);
 
     // Add another one to ensure that position is counted up.
     $view->storage->addDisplay('display_test');
@@ -78,7 +78,7 @@ public function testDisplayPlugin() {
       'display_title' => 'Display test 2',
       'position' => 2,
     ];
-    $this->assertEqual($displays['display_test_2'], $options);
+    $this->assertEquals($displays['display_test_2'], $options);
 
     // Move the second display before the first one in order to test custom
     // sorting.
@@ -121,8 +121,8 @@ public function testDisplayPlugin() {
     $this->assertText('Display test settings');
     // Ensure that the order is as expected.
     $result = $this->xpath('//ul[@id="views-display-menu-tabs"]/li/a/child::text()');
-    $this->assertEqual($result[0]->getText(), 'Display test 2');
-    $this->assertEqual($result[1]->getText(), 'Display test');
+    $this->assertEquals($result[0]->getText(), 'Display test 2');
+    $this->assertEquals($result[1]->getText(), 'Display test');
 
     $this->clickLink('Test option title');
 
@@ -161,10 +161,10 @@ public function testGetAttachedDisplays() {
 
     // Both the feed_1 and the feed_2 display are attached to the page display.
     $view->setDisplay('page_1');
-    $this->assertEqual($view->display_handler->getAttachedDisplays(), ['feed_1', 'feed_2']);
+    $this->assertEquals($view->display_handler->getAttachedDisplays(), ['feed_1', 'feed_2']);
 
     $view->setDisplay('feed_1');
-    $this->assertEqual($view->display_handler->getAttachedDisplays(), []);
+    $this->assertEquals($view->display_handler->getAttachedDisplays(), []);
   }
 
   /**
@@ -182,7 +182,7 @@ public function testReadMoreNoDisplay() {
     $view->setDisplay('default');
     $errors = $view->validate();
     $this->assertTrue(!empty($errors), 'More link validation has some errors.');
-    $this->assertEqual($errors['default'][0], 'Display "Master" uses a "more" link but there are no displays it can link to. You need to specify a custom URL.', 'More link validation has the right error.');
+    $this->assertEquals($errors['default'][0], 'Display "Master" uses a "more" link but there are no displays it can link to. You need to specify a custom URL.', 'More link validation has the right error.');
 
     // Confirm that the view does not validate when the page display does not exist.
     $view = Views::getView('test_view');
@@ -190,7 +190,7 @@ public function testReadMoreNoDisplay() {
     $view->display_handler->setOption('use_more', 1);
     $errors = $view->validate();
     $this->assertTrue(!empty($errors), 'More link validation has some errors.');
-    $this->assertEqual($errors['default'][0], 'Display "Master" uses a "more" link but there are no displays it can link to. You need to specify a custom URL.', 'More link validation has the right error.');
+    $this->assertEquals($errors['default'][0], 'Display "Master" uses a "more" link but there are no displays it can link to. You need to specify a custom URL.', 'More link validation has the right error.');
   }
 
   /**
@@ -265,8 +265,8 @@ public function testMissingRelationship() {
     $errors = $view->validate();
     // Check that the error messages are shown.
     $this->assertTrue(count($errors['default']) == 2, 'Error messages found for required relationship');
-    $this->assertEqual($errors['default'][0], t('The %handler_type %handler uses a relationship that has been removed.', ['%handler_type' => 'field', '%handler' => 'User: Last login']));
-    $this->assertEqual($errors['default'][1], t('The %handler_type %handler uses a relationship that has been removed.', ['%handler_type' => 'field', '%handler' => 'User: Created']));
+    $this->assertEquals($errors['default'][0], t('The %handler_type %handler uses a relationship that has been removed.', ['%handler_type' => 'field', '%handler' => 'User: Last login']));
+    $this->assertEquals($errors['default'][1], t('The %handler_type %handler uses a relationship that has been removed.', ['%handler_type' => 'field', '%handler' => 'User: Created']));
   }
 
   /**
diff --git a/core/modules/views/tests/src/Functional/Plugin/ExposedFormCheckboxesTest.php b/core/modules/views/tests/src/Functional/Plugin/ExposedFormCheckboxesTest.php
index 80584d796e..197e02f24c 100644
--- a/core/modules/views/tests/src/Functional/Plugin/ExposedFormCheckboxesTest.php
+++ b/core/modules/views/tests/src/Functional/Plugin/ExposedFormCheckboxesTest.php
@@ -94,17 +94,17 @@ public function testExposedFormRenderCheckboxes() {
     $this->drupalGet('test_exposed_form_checkboxes');
 
     $actual = $this->xpath('//form//input[@type="checkbox" and @name="type[article]"]');
-    $this->assertEqual(count($actual), 1, 'Article option renders as a checkbox.');
+    $this->assertEquals(count($actual), 1, 'Article option renders as a checkbox.');
     $actual = $this->xpath('//form//input[@type="checkbox" and @name="type[page]"]');
-    $this->assertEqual(count($actual), 1, 'Page option renders as a checkbox');
+    $this->assertEquals(count($actual), 1, 'Page option renders as a checkbox');
 
     // Ensure that all results are displayed.
     $rows = $this->xpath("//div[contains(@class, 'views-row')]");
-    $this->assertEqual(count($rows), 5, '5 rows are displayed by default on the first page when no options are checked.');
+    $this->assertEquals(count($rows), 5, '5 rows are displayed by default on the first page when no options are checked.');
 
     $this->clickLink('Page 2');
     $rows = $this->xpath("//div[contains(@class, 'views-row')]");
-    $this->assertEqual(count($rows), 1, '1 row is displayed by default on the second page when no options are checked.');
+    $this->assertEquals(count($rows), 1, '1 row is displayed by default on the second page when no options are checked.');
     $this->assertNoText('An illegal choice has been detected. Please contact the site administrator.');
   }
 
@@ -152,7 +152,7 @@ public function testExposedIsAllOfFilter() {
 
     // Ensure that all results are displayed.
     $rows = $this->xpath("//div[contains(@class, 'views-row')]");
-    $this->assertEqual(count($rows), 8, 'All rows are displayed by default on the first page when no options are checked.');
+    $this->assertEquals(count($rows), 8, 'All rows are displayed by default on the first page when no options are checked.');
     $this->assertNoText('An illegal choice has been detected. Please contact the site administrator.');
 
     // Select one option and ensure we still have results.
@@ -161,7 +161,7 @@ public function testExposedIsAllOfFilter() {
 
     // Ensure only nodes tagged with $tid are displayed.
     $rows = $this->xpath("//div[contains(@class, 'views-row')]");
-    $this->assertEqual(count($rows), 2, 'Correct rows are displayed when a tid is selected.');
+    $this->assertEquals(count($rows), 2, 'Correct rows are displayed when a tid is selected.');
     $this->assertNoText('An illegal choice has been detected. Please contact the site administrator.');
   }
 
diff --git a/core/modules/views/tests/src/Functional/Plugin/ExposedFormTest.php b/core/modules/views/tests/src/Functional/Plugin/ExposedFormTest.php
index eaa5aaa32f..cc4ff59d8e 100644
--- a/core/modules/views/tests/src/Functional/Plugin/ExposedFormTest.php
+++ b/core/modules/views/tests/src/Functional/Plugin/ExposedFormTest.php
@@ -142,7 +142,7 @@ public function testExposedIdentifier() {
       'default' => ['This identifier has illegal characters.'],
       'page_1' => ['This identifier has illegal characters.'],
     ];
-    $this->assertEqual($errors, $expected);
+    $this->assertEquals($errors, $expected);
   }
 
   /**
@@ -212,7 +212,7 @@ public function testExposedBlock() {
 
     // Test there is only one views exposed form on the page.
     $elements = $this->xpath('//form[@id=:id]', [':id' => $this->getExpectedExposedFormId($view)]);
-    $this->assertEqual(count($elements), 1, 'One exposed form block found.');
+    $this->assertEquals(count($elements), 1, 'One exposed form block found.');
 
     // Test that the correct option is selected after form submission.
     $this->assertCacheContext('url');
@@ -239,13 +239,13 @@ public function testInputRequired() {
 
     // Ensure that no results are displayed.
     $rows = $this->xpath("//div[contains(@class, 'views-row')]");
-    $this->assertEqual(count($rows), 0, 'No rows are displayed by default when no input is provided.');
+    $this->assertEquals(count($rows), 0, 'No rows are displayed by default when no input is provided.');
 
     $this->drupalGet('test_exposed_form_buttons', ['query' => ['type' => 'article']]);
 
     // Ensure that results are displayed.
     $rows = $this->xpath("//div[contains(@class, 'views-row')]");
-    $this->assertEqual(count($rows), 5, 'All rows are displayed by default when input is provided.');
+    $this->assertEquals(count($rows), 5, 'All rows are displayed by default when input is provided.');
   }
 
   /**
diff --git a/core/modules/views/tests/src/Functional/Plugin/FilterTest.php b/core/modules/views/tests/src/Functional/Plugin/FilterTest.php
index 60424108f5..63263d79a9 100644
--- a/core/modules/views/tests/src/Functional/Plugin/FilterTest.php
+++ b/core/modules/views/tests/src/Functional/Plugin/FilterTest.php
@@ -91,7 +91,7 @@ public function testFilterQuery() {
 
     // Check that we have a single element, as a result of applying the '= John'
     // filter.
-    $this->assertEqual(count($view->result), 1, format_string('Results were returned. @count results.', ['@count' => count($view->result)]));
+    $this->assertEquals(count($view->result), 1, format_string('Results were returned. @count results.', ['@count' => count($view->result)]));
 
     $view->destroy();
 
@@ -117,7 +117,7 @@ public function testFilterQuery() {
 
     // Check if we have the other elements in the dataset, as a result of
     // applying the '<> John' filter.
-    $this->assertEqual(count($view->result), 4, format_string('Results were returned. @count results.', ['@count' => count($view->result)]));
+    $this->assertEquals(count($view->result), 4, format_string('Results were returned. @count results.', ['@count' => count($view->result)]));
 
     $view->destroy();
     $view->initDisplay();
@@ -141,7 +141,7 @@ public function testFilterQuery() {
     $this->executeView($view);
 
     // Check if we have all 5 results.
-    $this->assertEqual(count($view->result), 5, format_string('All @count results returned', ['@count' => count($view->displayHandlers)]));
+    $this->assertEquals(count($view->result), 5, format_string('All @count results returned', ['@count' => count($view->displayHandlers)]));
   }
 
   /**
diff --git a/core/modules/views/tests/src/Functional/Plugin/MiniPagerTest.php b/core/modules/views/tests/src/Functional/Plugin/MiniPagerTest.php
index 492d22f987..e944e765d9 100644
--- a/core/modules/views/tests/src/Functional/Plugin/MiniPagerTest.php
+++ b/core/modules/views/tests/src/Functional/Plugin/MiniPagerTest.php
@@ -76,7 +76,7 @@ public function testMiniPagerRender() {
     $view->setDisplay('page_4');
     $this->executeView($view);
     $this->assertIdentical($view->get_total_rows, TRUE, 'The query was set to calculate the total number of rows.');
-    $this->assertEqual(count($this->nodes), $view->total_rows, 'The total row count is equal to the number of nodes.');
+    $this->assertEquals(count($this->nodes), $view->total_rows, 'The total row count is equal to the number of nodes.');
 
     $this->drupalGet('test_mini_pager_total', ['query' => ['page' => 1]]);
     $this->assertText('of ' . count($this->nodes), 'The first page shows the total row count.');
@@ -106,7 +106,7 @@ public function testMiniPagerRender() {
     $this->assertNoText('Page 1', 'The current page info shows the only page.');
     $this->assertNoText('test ››', 'The next link does not appear on the page.');
     $result = $this->xpath('//div[contains(@class, "views-row")]');
-    $this->assertEqual(count($result), count($this->nodes), 'All rows appear on the page.');
+    $this->assertEquals(count($result), count($this->nodes), 'All rows appear on the page.');
 
     // Remove all items beside 1, so there should be no links shown.
     for ($i = 0; $i < 19; $i++) {
diff --git a/core/modules/views/tests/src/Functional/Plugin/NumericFormatPluralTest.php b/core/modules/views/tests/src/Functional/Plugin/NumericFormatPluralTest.php
index 08f2504c54..044356d45f 100644
--- a/core/modules/views/tests/src/Functional/Plugin/NumericFormatPluralTest.php
+++ b/core/modules/views/tests/src/Functional/Plugin/NumericFormatPluralTest.php
@@ -44,8 +44,8 @@ public function testNumericFormatPlural() {
     // Assert that the starting configuration is correct.
     $config = $this->config('views.view.numeric_test');
     $field_config_prefix = 'display.default.display_options.fields.count.';
-    $this->assertEqual($config->get($field_config_prefix . 'format_plural'), TRUE);
-    $this->assertEqual($config->get($field_config_prefix . 'format_plural_string'), '1' . LOCALE_PLURAL_DELIMITER . '@count');
+    $this->assertEquals($config->get($field_config_prefix . 'format_plural'), TRUE);
+    $this->assertEquals($config->get($field_config_prefix . 'format_plural_string'), '1' . LOCALE_PLURAL_DELIMITER . '@count');
 
     // Assert that the value is displayed.
     $this->drupalGet('numeric-test');
@@ -63,8 +63,8 @@ public function testNumericFormatPlural() {
 
     $config = $this->config('views.view.numeric_test');
     $field_config_prefix = 'display.default.display_options.fields.count.';
-    $this->assertEqual($config->get($field_config_prefix . 'format_plural'), TRUE);
-    $this->assertEqual($config->get($field_config_prefix . 'format_plural_string'), '1 time' . LOCALE_PLURAL_DELIMITER . '@count times');
+    $this->assertEquals($config->get($field_config_prefix . 'format_plural'), TRUE);
+    $this->assertEquals($config->get($field_config_prefix . 'format_plural_string'), '1 time' . LOCALE_PLURAL_DELIMITER . '@count times');
 
     // Assert that the value is displayed with some sample values.
     $numbers = [0, 1, 2, 3, 4, 42];
@@ -106,8 +106,8 @@ public function testNumericFormatPlural() {
     $this->drupalPostForm(NULL, [], t('Save'));
     $config = $this->config('views.view.numeric_test');
     $field_config_prefix = 'display.default.display_options.fields.count.';
-    $this->assertEqual($config->get($field_config_prefix . 'format_plural'), TRUE);
-    $this->assertEqual($config->get($field_config_prefix . 'format_plural_string'), implode(LOCALE_PLURAL_DELIMITER, array_values($edit)));
+    $this->assertEquals($config->get($field_config_prefix . 'format_plural'), TRUE);
+    $this->assertEquals($config->get($field_config_prefix . 'format_plural_string'), implode(LOCALE_PLURAL_DELIMITER, array_values($edit)));
 
     // The view should now use the new plural configuration.
     $this->drupalGet('sl/numeric-test');
diff --git a/core/modules/views/tests/src/Functional/Plugin/PagerTest.php b/core/modules/views/tests/src/Functional/Plugin/PagerTest.php
index c80fa09bfc..3f817e8f72 100644
--- a/core/modules/views/tests/src/Functional/Plugin/PagerTest.php
+++ b/core/modules/views/tests/src/Functional/Plugin/PagerTest.php
@@ -135,7 +135,7 @@ public function testNoLimit() {
     }
     $view = Views::getView('test_pager_none');
     $this->executeView($view);
-    $this->assertEqual(count($view->result), 11, 'Make sure that every item is returned in the result');
+    $this->assertEquals(count($view->result), 11, 'Make sure that every item is returned in the result');
 
     // Setup and test a offset.
     $view = Views::getView('test_pager_none');
@@ -149,12 +149,12 @@ public function testNoLimit() {
     $view->display_handler->setOption('pager', $pager);
     $this->executeView($view);
 
-    $this->assertEqual(count($view->result), 8, 'Make sure that every item beside the first three is returned in the result');
+    $this->assertEquals(count($view->result), 8, 'Make sure that every item beside the first three is returned in the result');
 
     // Check some public functions.
     $this->assertFalse($view->pager->usePager());
     $this->assertFalse($view->pager->useCountQuery());
-    $this->assertEqual($view->pager->getItemsPerPage(), 0);
+    $this->assertEquals($view->pager->getItemsPerPage(), 0);
   }
 
   public function testViewTotalRowsWithoutPager() {
@@ -167,7 +167,7 @@ public function testViewTotalRowsWithoutPager() {
     $view->get_total_rows = TRUE;
     $this->executeView($view);
 
-    $this->assertEqual($view->total_rows, 23, "'total_rows' is calculated when pager type is 'none' and 'get_total_rows' is TRUE.");
+    $this->assertEquals($view->total_rows, 23, "'total_rows' is calculated when pager type is 'none' and 'get_total_rows' is TRUE.");
   }
 
   /**
@@ -183,7 +183,7 @@ public function testLimit() {
 
     $view = Views::getView('test_pager_some');
     $this->executeView($view);
-    $this->assertEqual(count($view->result), 5, 'Make sure that only a certain count of items is returned');
+    $this->assertEquals(count($view->result), 5, 'Make sure that only a certain count of items is returned');
 
     // Setup and test a offset.
     $view = Views::getView('test_pager_some');
@@ -197,7 +197,7 @@ public function testLimit() {
     ];
     $view->display_handler->setOption('pager', $pager);
     $this->executeView($view);
-    $this->assertEqual(count($view->result), 3, 'Make sure that only a certain count of items is returned');
+    $this->assertEquals(count($view->result), 3, 'Make sure that only a certain count of items is returned');
 
     // Check some public functions.
     $this->assertFalse($view->pager->usePager());
@@ -217,7 +217,7 @@ public function testNormalPager() {
 
     $view = Views::getView('test_pager_full');
     $this->executeView($view);
-    $this->assertEqual(count($view->result), 5, 'Make sure that only a certain count of items is returned');
+    $this->assertEquals(count($view->result), 5, 'Make sure that only a certain count of items is returned');
 
     // Setup and test a offset.
     $view = Views::getView('test_pager_full');
@@ -231,13 +231,13 @@ public function testNormalPager() {
     ];
     $view->display_handler->setOption('pager', $pager);
     $this->executeView($view);
-    $this->assertEqual(count($view->result), 3, 'Make sure that only a certain count of items is returned');
+    $this->assertEquals(count($view->result), 3, 'Make sure that only a certain count of items is returned');
 
     // Test items per page = 0
     $view = Views::getView('test_view_pager_full_zero_items_per_page');
     $this->executeView($view);
 
-    $this->assertEqual(count($view->result), 11, 'All items are return');
+    $this->assertEquals(count($view->result), 11, 'All items are return');
 
     // TODO test number of pages.
 
@@ -255,8 +255,8 @@ public function testNormalPager() {
 
     $view->display_handler->setOption('pager', $pager);
     $this->executeView($view);
-    $this->assertEqual($view->pager->getItemsPerPage(), 0);
-    $this->assertEqual(count($view->result), 11);
+    $this->assertEquals($view->pager->getItemsPerPage(), 0);
+    $this->assertEquals(count($view->result), 11);
 
     // Test pager cache contexts.
     $this->drupalGet('test_pager_full');
@@ -280,7 +280,7 @@ public function testRenderNullPager() {
     $view->pager = NULL;
     $output = $view->render();
     $output = \Drupal::service('renderer')->renderRoot($output);
-    $this->assertEqual(preg_match('/<ul class="pager">/', $output), 0, 'The pager is not rendered.');
+    $this->assertEquals(preg_match('/<ul class="pager">/', $output), 0, 'The pager is not rendered.');
   }
 
   /**
@@ -291,20 +291,20 @@ public function testPagerApi() {
     $view->setDisplay();
     // On the first round don't initialize the pager.
 
-    $this->assertEqual($view->getItemsPerPage(), NULL, 'If the pager is not initialized and no manual override there is no items per page.');
+    $this->assertEquals($view->getItemsPerPage(), NULL, 'If the pager is not initialized and no manual override there is no items per page.');
     $rand_number = rand(1, 5);
     $view->setItemsPerPage($rand_number);
-    $this->assertEqual($view->getItemsPerPage(), $rand_number, 'Make sure getItemsPerPage uses the settings of setItemsPerPage.');
+    $this->assertEquals($view->getItemsPerPage(), $rand_number, 'Make sure getItemsPerPage uses the settings of setItemsPerPage.');
 
-    $this->assertEqual($view->getOffset(), NULL, 'If the pager is not initialized and no manual override there is no offset.');
+    $this->assertEquals($view->getOffset(), NULL, 'If the pager is not initialized and no manual override there is no offset.');
     $rand_number = rand(1, 5);
     $view->setOffset($rand_number);
-    $this->assertEqual($view->getOffset(), $rand_number, 'Make sure getOffset uses the settings of setOffset.');
+    $this->assertEquals($view->getOffset(), $rand_number, 'Make sure getOffset uses the settings of setOffset.');
 
-    $this->assertEqual($view->getCurrentPage(), NULL, 'If the pager is not initialized and no manual override there is no current page.');
+    $this->assertEquals($view->getCurrentPage(), NULL, 'If the pager is not initialized and no manual override there is no current page.');
     $rand_number = rand(1, 5);
     $view->setCurrentPage($rand_number);
-    $this->assertEqual($view->getCurrentPage(), $rand_number, 'Make sure getCurrentPage uses the settings of set_current_page.');
+    $this->assertEquals($view->getCurrentPage(), $rand_number, 'Make sure getCurrentPage uses the settings of set_current_page.');
 
     $view->destroy();
 
@@ -313,30 +313,30 @@ public function testPagerApi() {
     $view->initQuery();
     $view->initPager();
 
-    $this->assertEqual($view->getItemsPerPage(), 5, 'Per default the view has 5 items per page.');
+    $this->assertEquals($view->getItemsPerPage(), 5, 'Per default the view has 5 items per page.');
     $rand_number = rand(1, 5);
     $view->setItemsPerPage($rand_number);
     $rand_number = rand(6, 11);
     $view->pager->setItemsPerPage($rand_number);
-    $this->assertEqual($view->getItemsPerPage(), $rand_number, 'Make sure getItemsPerPage uses the settings of setItemsPerPage.');
+    $this->assertEquals($view->getItemsPerPage(), $rand_number, 'Make sure getItemsPerPage uses the settings of setItemsPerPage.');
 
-    $this->assertEqual($view->getOffset(), 0, 'Per default a view has a 0 offset.');
+    $this->assertEquals($view->getOffset(), 0, 'Per default a view has a 0 offset.');
     $rand_number = rand(1, 5);
     $view->setOffset($rand_number);
     $rand_number = rand(6, 11);
     $view->pager->setOffset($rand_number);
-    $this->assertEqual($view->getOffset(), $rand_number, 'Make sure getOffset uses the settings of setOffset.');
+    $this->assertEquals($view->getOffset(), $rand_number, 'Make sure getOffset uses the settings of setOffset.');
 
-    $this->assertEqual($view->getCurrentPage(), 0, 'Per default the current page is 0.');
+    $this->assertEquals($view->getCurrentPage(), 0, 'Per default the current page is 0.');
     $rand_number = rand(1, 5);
     $view->setCurrentPage($rand_number);
     $rand_number = rand(6, 11);
     $view->pager->setCurrentPage($rand_number);
-    $this->assertEqual($view->getCurrentPage(), $rand_number, 'Make sure getCurrentPage uses the settings of set_current_page.');
+    $this->assertEquals($view->getCurrentPage(), $rand_number, 'Make sure getCurrentPage uses the settings of set_current_page.');
 
     // Set an invalid page and make sure the method takes care about it.
     $view->setCurrentPage(-1);
-    $this->assertEqual($view->getCurrentPage(), 0, 'Make sure setCurrentPage always sets a valid page number.');
+    $this->assertEquals($view->getCurrentPage(), 0, 'Make sure setCurrentPage always sets a valid page number.');
   }
 
   /**
diff --git a/core/modules/views/tests/src/Functional/Plugin/StyleSummaryTest.php b/core/modules/views/tests/src/Functional/Plugin/StyleSummaryTest.php
index a2359b9734..834594acd2 100644
--- a/core/modules/views/tests/src/Functional/Plugin/StyleSummaryTest.php
+++ b/core/modules/views/tests/src/Functional/Plugin/StyleSummaryTest.php
@@ -58,21 +58,21 @@ public function testSummaryView() {
     $this->assertRaw('stable/css/views/views.module.css');
 
     $summary_list = $this->cssSelect('ul.views-summary li');
-    $this->assertEqual(4, count($summary_list));
+    $this->assertEquals(4, count($summary_list));
 
     foreach ($summary_list as $summary_list_item) {
-      $this->assertEqual('(5)', trim(explode(' ', $summary_list_item->getText())[1]));
+      $this->assertEquals('(5)', trim(explode(' ', $summary_list_item->getText())[1]));
     }
 
     $summary_links = $this->cssSelect('ul.views-summary a');
-    $this->assertEqual(4, count($summary_links));
+    $this->assertEquals(4, count($summary_links));
     foreach ($summary_links as $index => $summary_link) {
-      $this->assertEqual('type' . $index, trim($summary_link->getText()));
+      $this->assertEquals('type' . $index, trim($summary_link->getText()));
     }
 
     $this->clickLink('type1');
     $entries = $this->cssSelect('div.view-content div.views-row');
-    $this->assertEqual(2, count($entries));
+    $this->assertEquals(2, count($entries));
 
     // Add a base path to the summary settings.
     $edit = [
@@ -85,7 +85,7 @@ public function testSummaryView() {
     $this->drupalGet('test-summary');
     $this->clickLink('type1');
     $entries = $this->cssSelect('div.view-content div.views-row');
-    $this->assertEqual(2, count($entries));
+    $this->assertEquals(2, count($entries));
 
     // Change the summary display to an unformatted list displaying 3 items.
     $edit = [
@@ -100,21 +100,21 @@ public function testSummaryView() {
     $this->drupalGet('test-summary');
 
     $summary_list = $this->cssSelect('.views-summary-unformatted');
-    $this->assertEqual(3, count($summary_list));
+    $this->assertEquals(3, count($summary_list));
 
     foreach ($summary_list as $summary_list_item) {
-      $this->assertEqual('(5)', trim(explode(' ', $summary_list_item->getText())[1]));
+      $this->assertEquals('(5)', trim(explode(' ', $summary_list_item->getText())[1]));
     }
 
     $summary_links = $this->cssSelect('.views-summary-unformatted a');
-    $this->assertEqual(3, count($summary_links));
+    $this->assertEquals(3, count($summary_links));
     foreach ($summary_links as $index => $summary_link) {
-      $this->assertEqual('type' . $index, trim($summary_link->getText()));
+      $this->assertEquals('type' . $index, trim($summary_link->getText()));
     }
 
     $this->clickLink('type1');
     $entries = $this->cssSelect('div.view-content div.views-row');
-    $this->assertEqual(2, count($entries));
+    $this->assertEquals(2, count($entries));
 
     // Add a base path to the summary settings.
     $edit = [
@@ -127,7 +127,7 @@ public function testSummaryView() {
     $this->drupalGet('test-summary');
     $this->clickLink('type1');
     $entries = $this->cssSelect('div.view-content div.views-row');
-    $this->assertEqual(2, count($entries));
+    $this->assertEquals(2, count($entries));
 
     // Set base_path to an unknown path and test that the links lead to the
     // front page.
diff --git a/core/modules/views/tests/src/Functional/Plugin/StyleTableTest.php b/core/modules/views/tests/src/Functional/Plugin/StyleTableTest.php
index 3bbe6bf97c..0fc2776557 100644
--- a/core/modules/views/tests/src/Functional/Plugin/StyleTableTest.php
+++ b/core/modules/views/tests/src/Functional/Plugin/StyleTableTest.php
@@ -36,15 +36,15 @@ public function testAccessibilitySettings() {
 
     $result = $this->xpath('//caption/child::text()');
     $this->assertTrue(count($result), 'The caption appears on the table.');
-    $this->assertEqual(trim($result[0]->getText()), 'caption-text');
+    $this->assertEquals(trim($result[0]->getText()), 'caption-text');
 
     $result = $this->xpath('//summary/child::text()');
     $this->assertTrue(count($result), 'The summary appears on the table.');
-    $this->assertEqual(trim($result[0]->getText()), 'summary-text');
+    $this->assertEquals(trim($result[0]->getText()), 'summary-text');
 
     $result = $this->xpath('//caption/details/child::text()');
     $this->assertTrue(count($result), 'The table description appears on the table.');
-    $this->assertEqual(trim($result[0]->getText()), 'description-text');
+    $this->assertEquals(trim($result[0]->getText()), 'description-text');
 
     // Remove the caption and ensure the caption is not displayed anymore.
     $view = View::load('test_table');
@@ -147,10 +147,10 @@ public function testEmptyColumn() {
 
     // Test that only one of the job columns still shows.
     $result = $this->xpath('//thead/tr/th/a[text()="Job"]');
-    $this->assertEqual(count($result), 1, 'Ensure that empty column header is hidden.');
+    $this->assertEquals(count($result), 1, 'Ensure that empty column header is hidden.');
 
     $result = $this->xpath('//tbody/tr/td[contains(concat(" ", @class, " "), " views-field-job-1 ")]');
-    $this->assertEqual(count($result), 0, 'Ensure the empty table cells are hidden.');
+    $this->assertEquals(count($result), 0, 'Ensure the empty table cells are hidden.');
   }
 
   /**
diff --git a/core/modules/views/tests/src/Functional/Plugin/StyleTest.php b/core/modules/views/tests/src/Functional/Plugin/StyleTest.php
index 1686d53f13..f596b2f663 100644
--- a/core/modules/views/tests/src/Functional/Plugin/StyleTest.php
+++ b/core/modules/views/tests/src/Functional/Plugin/StyleTest.php
@@ -196,7 +196,7 @@ public function _testGrouping($stripped = FALSE) {
     // The newer api passes the value of the grouping as well.
     $sets_new_rendered = $view->style_plugin->renderGrouping($view->result, $view->style_plugin->options['grouping'], TRUE);
 
-    $this->assertEqual($sets_new_rendered, $expected, 'The style plugins should properly group the results with grouping by the rendered output.');
+    $this->assertEquals($sets_new_rendered, $expected, 'The style plugins should properly group the results with grouping by the rendered output.');
 
     // Don't test stripped case, because the actual value is not stripped.
     if (!$stripped) {
@@ -215,7 +215,7 @@ public function _testGrouping($stripped = FALSE) {
       unset($new_expected['Job: Drummer']);
       unset($new_expected['Drummer']['rows']['Age: 28']);
 
-      $this->assertEqual($sets_new_value, $new_expected, 'The style plugins should proper group the results with grouping by the value.');
+      $this->assertEquals($sets_new_value, $new_expected, 'The style plugins should proper group the results with grouping by the value.');
     }
 
     // Test that grouping works on fields having no label.
@@ -248,7 +248,7 @@ public function _testGrouping($stripped = FALSE) {
       $data['group'] = $job;
       $expected[$job] = $data;
     }
-    $this->assertEqual($expected, $sets_new_rendered);
+    $this->assertEquals($expected, $sets_new_rendered);
   }
 
   /**
diff --git a/core/modules/views/tests/src/Functional/Plugin/ViewsSqlExceptionTest.php b/core/modules/views/tests/src/Functional/Plugin/ViewsSqlExceptionTest.php
index 40405ae03d..e4e19752be 100644
--- a/core/modules/views/tests/src/Functional/Plugin/ViewsSqlExceptionTest.php
+++ b/core/modules/views/tests/src/Functional/Plugin/ViewsSqlExceptionTest.php
@@ -64,7 +64,7 @@ public function testSqlException() {
     }
     catch (DatabaseExceptionWrapper $e) {
       $exception_assert_message = "Exception in {$view->storage->label()}[{$view->storage->id()}]";
-      $this->assertEqual(strstr($e->getMessage(), ':', TRUE), $exception_assert_message);
+      $this->assertEquals(strstr($e->getMessage(), ':', TRUE), $exception_assert_message);
     }
   }
 
diff --git a/core/modules/views/tests/src/Functional/RenderCacheWebTest.php b/core/modules/views/tests/src/Functional/RenderCacheWebTest.php
index f8dfdd810d..329b727c70 100644
--- a/core/modules/views/tests/src/Functional/RenderCacheWebTest.php
+++ b/core/modules/views/tests/src/Functional/RenderCacheWebTest.php
@@ -57,19 +57,19 @@ protected function setUp($import_test_views = TRUE) {
    */
   public function testEmptyView() {
     $this->drupalGet('<front>');
-    $this->assertEqual([], $this->cssSelect('div.region-header div.views-field-title'));
+    $this->assertEquals([], $this->cssSelect('div.region-header div.views-field-title'));
 
     $this->drupalGet($this->nodes[0]->toUrl());
     $result = $this->cssSelect('div.region-header div.views-field-title')[0]->getText();
-    $this->assertEqual('test title 1', $result);
+    $this->assertEquals('test title 1', $result);
 
     $this->drupalGet($this->nodes[1]->toUrl());
     $result = $this->cssSelect('div.region-header div.views-field-title')[0]->getText();
-    $this->assertEqual('test title 2', $result);
+    $this->assertEquals('test title 2', $result);
 
     $this->drupalGet($this->nodes[0]->toUrl());
     $result = $this->cssSelect('div.region-header div.views-field-title')[0]->getText();
-    $this->assertEqual('test title 1', $result);
+    $this->assertEquals('test title 1', $result);
   }
 
 }
diff --git a/core/modules/views/tests/src/Functional/SearchIntegrationTest.php b/core/modules/views/tests/src/Functional/SearchIntegrationTest.php
index f4daac774e..d9b5c8fba9 100644
--- a/core/modules/views/tests/src/Functional/SearchIntegrationTest.php
+++ b/core/modules/views/tests/src/Functional/SearchIntegrationTest.php
@@ -113,8 +113,8 @@ public function testSearchIntegration() {
     $xpath = '//div[@class="views-row"]//a';
     /** @var \Behat\Mink\Element\NodeElement[] $results */
     $results = $this->xpath($xpath);
-    $this->assertEqual($results[0]->getText(), "Drupal's search rocks <em>really</em> rocks!");
-    $this->assertEqual($results[1]->getText(), "Drupal's search rocks.");
+    $this->assertEquals($results[0]->getText(), "Drupal's search rocks <em>really</em> rocks!");
+    $this->assertEquals($results[1]->getText(), "Drupal's search rocks.");
     $this->assertEscaped("Drupal's search rocks <em>really</em> rocks!");
 
     // Test sorting with another set of titles.
@@ -130,8 +130,8 @@ public function testSearchIntegration() {
     $xpath = '//div[@class="views-row"]//a';
     /** @var \SimpleXMLElement[] $results */
     $results = $this->xpath($xpath);
-    $this->assertEqual($results[0]->getText(), "Testing one one one");
-    $this->assertEqual($results[1]->getText(), "Testing one two two two");
+    $this->assertEquals($results[0]->getText(), "Testing one one one");
+    $this->assertEquals($results[1]->getText(), "Testing one two two two");
   }
 
   /**
diff --git a/core/modules/views/tests/src/Functional/Update/ArgumentPlaceholderUpdatePathTest.php b/core/modules/views/tests/src/Functional/Update/ArgumentPlaceholderUpdatePathTest.php
index 8d60f358b9..93f20edab3 100644
--- a/core/modules/views/tests/src/Functional/Update/ArgumentPlaceholderUpdatePathTest.php
+++ b/core/modules/views/tests/src/Functional/Update/ArgumentPlaceholderUpdatePathTest.php
@@ -32,20 +32,20 @@ public function testArgumentPlaceholderUpdate() {
     $view = View::load('test_token_view');
 
     $data = $view->toArray();
-    $this->assertEqual('{{ arguments.nid }}-test-class-{{ raw_arguments.nid }}', $data['display']['default']['display_options']['style']['options']['col_class_custom']);
-    $this->assertEqual('{{ arguments.nid }}-test-class-{{ raw_arguments.nid }}', $data['display']['default']['display_options']['style']['options']['row_class_custom']);
-    $this->assertEqual('{{ arguments.nid }}-description-{{ raw_arguments.nid }}', $data['display']['feed_1']['display_options']['style']['options']['description']);
-    $this->assertEqual('{{ arguments.nid }}-custom-text-{{ raw_arguments.nid }}', $data['display']['default']['display_options']['fields']['title']['alter']['text']);
-    $this->assertEqual('test_token_view {{ arguments.nid }} {{ raw_arguments.nid }}', $data['display']['default']['display_options']['title']);
-    $this->assertEqual('{{ arguments.nid }}-custom-{{ raw_arguments.nid }}', $data['display']['default']['display_options']['header']['area_text_custom']['content']);
-    $this->assertEqual('{{ arguments.nid }}-text-{{ raw_arguments.nid }}', $data['display']['default']['display_options']['footer']['area']['content']['value']);
-    $this->assertEqual("Displaying @start - @end of @total\n\n{{ arguments.nid }}-result-{{ raw_arguments.nid }}", $data['display']['default']['display_options']['empty']['result']['content']);
-    $this->assertEqual('{{ arguments.nid }}-title-{{ raw_arguments.nid }}', $data['display']['default']['display_options']['empty']['title']['title']);
-    $this->assertEqual('{{ arguments.nid }}-entity-{{ raw_arguments.nid }}', $data['display']['default']['display_options']['empty']['entity_node']['target']);
-    $this->assertEqual('{{ arguments.nid }} title {{ raw_arguments.nid }}', $data['display']['default']['display_options']['arguments']['nid']['title']);
-    $this->assertEqual('{{ arguments.nid }} exception-title {{ raw_arguments.nid }}', $data['display']['default']['display_options']['arguments']['nid']['exception']['title']);
-    $this->assertEqual('{{ arguments.nid }}-more-text-{{ raw_arguments.nid }}', $data['display']['default']['display_options']['use_more_text']);
-    $this->assertEqual('{{ arguments.nid }}-custom-url-{{ raw_arguments.nid }}', $data['display']['default']['display_options']['link_url']);
+    $this->assertEquals('{{ arguments.nid }}-test-class-{{ raw_arguments.nid }}', $data['display']['default']['display_options']['style']['options']['col_class_custom']);
+    $this->assertEquals('{{ arguments.nid }}-test-class-{{ raw_arguments.nid }}', $data['display']['default']['display_options']['style']['options']['row_class_custom']);
+    $this->assertEquals('{{ arguments.nid }}-description-{{ raw_arguments.nid }}', $data['display']['feed_1']['display_options']['style']['options']['description']);
+    $this->assertEquals('{{ arguments.nid }}-custom-text-{{ raw_arguments.nid }}', $data['display']['default']['display_options']['fields']['title']['alter']['text']);
+    $this->assertEquals('test_token_view {{ arguments.nid }} {{ raw_arguments.nid }}', $data['display']['default']['display_options']['title']);
+    $this->assertEquals('{{ arguments.nid }}-custom-{{ raw_arguments.nid }}', $data['display']['default']['display_options']['header']['area_text_custom']['content']);
+    $this->assertEquals('{{ arguments.nid }}-text-{{ raw_arguments.nid }}', $data['display']['default']['display_options']['footer']['area']['content']['value']);
+    $this->assertEquals("Displaying @start - @end of @total\n\n{{ arguments.nid }}-result-{{ raw_arguments.nid }}", $data['display']['default']['display_options']['empty']['result']['content']);
+    $this->assertEquals('{{ arguments.nid }}-title-{{ raw_arguments.nid }}', $data['display']['default']['display_options']['empty']['title']['title']);
+    $this->assertEquals('{{ arguments.nid }}-entity-{{ raw_arguments.nid }}', $data['display']['default']['display_options']['empty']['entity_node']['target']);
+    $this->assertEquals('{{ arguments.nid }} title {{ raw_arguments.nid }}', $data['display']['default']['display_options']['arguments']['nid']['title']);
+    $this->assertEquals('{{ arguments.nid }} exception-title {{ raw_arguments.nid }}', $data['display']['default']['display_options']['arguments']['nid']['exception']['title']);
+    $this->assertEquals('{{ arguments.nid }}-more-text-{{ raw_arguments.nid }}', $data['display']['default']['display_options']['use_more_text']);
+    $this->assertEquals('{{ arguments.nid }}-custom-url-{{ raw_arguments.nid }}', $data['display']['default']['display_options']['link_url']);
   }
 
 }
diff --git a/core/modules/views/tests/src/Functional/Update/EntityViewsDataUpdateTest.php b/core/modules/views/tests/src/Functional/Update/EntityViewsDataUpdateTest.php
index 2de6568e47..f169d39a86 100644
--- a/core/modules/views/tests/src/Functional/Update/EntityViewsDataUpdateTest.php
+++ b/core/modules/views/tests/src/Functional/Update/EntityViewsDataUpdateTest.php
@@ -43,39 +43,39 @@ public function testUpdateHookN() {
     $created_2 = $view->field['created_2'];
 
     // Make sure the plugins were converted from date to field.
-    $this->assertEqual($created->getPluginId(), 'field', 'created has correct plugin_id');
-    $this->assertEqual($created_1->getPluginId(), 'field', 'created has correct plugin_id');
-    $this->assertEqual($created_2->getPluginId(), 'field', 'created has correct plugin_id');
+    $this->assertEquals($created->getPluginId(), 'field', 'created has correct plugin_id');
+    $this->assertEquals($created_1->getPluginId(), 'field', 'created has correct plugin_id');
+    $this->assertEquals($created_2->getPluginId(), 'field', 'created has correct plugin_id');
 
     // Check options on 'created'.
     $options = $created->options;
-    $this->assertEqual($options['type'], 'timestamp');
+    $this->assertEquals($options['type'], 'timestamp');
     $this->assertFalse(array_key_exists('date_format', $options));
     $this->assertFalse(array_key_exists('custom_date_format', $options));
     $this->assertFalse(array_key_exists('timezone', $options));
-    $this->assertEqual($options['settings']['date_format'], 'long');
-    $this->assertEqual($options['settings']['custom_date_format'], '');
-    $this->assertEqual($options['settings']['timezone'], 'Africa/Abidjan');
+    $this->assertEquals($options['settings']['date_format'], 'long');
+    $this->assertEquals($options['settings']['custom_date_format'], '');
+    $this->assertEquals($options['settings']['timezone'], 'Africa/Abidjan');
 
     // Check options on 'created'.
     $options = $created_1->options;
-    $this->assertEqual($options['type'], 'timestamp_ago');
+    $this->assertEquals($options['type'], 'timestamp_ago');
     $this->assertFalse(array_key_exists('date_format', $options));
     $this->assertFalse(array_key_exists('custom_date_format', $options));
     $this->assertFalse(array_key_exists('timezone', $options));
-    $this->assertEqual($options['settings']['future_format'], '@interval');
-    $this->assertEqual($options['settings']['past_format'], '@interval');
-    $this->assertEqual($options['settings']['granularity'], 2);
+    $this->assertEquals($options['settings']['future_format'], '@interval');
+    $this->assertEquals($options['settings']['past_format'], '@interval');
+    $this->assertEquals($options['settings']['granularity'], 2);
 
     // Check options on 'created'.
     $options = $created_2->options;
-    $this->assertEqual($options['type'], 'timestamp_ago');
+    $this->assertEquals($options['type'], 'timestamp_ago');
     $this->assertFalse(array_key_exists('date_format', $options));
     $this->assertFalse(array_key_exists('custom_date_format', $options));
     $this->assertFalse(array_key_exists('timezone', $options));
-    $this->assertEqual($options['settings']['future_format'], '@interval hence');
-    $this->assertEqual($options['settings']['past_format'], '@interval ago');
-    $this->assertEqual($options['settings']['granularity'], 2);
+    $this->assertEquals($options['settings']['future_format'], '@interval hence');
+    $this->assertEquals($options['settings']['past_format'], '@interval ago');
+    $this->assertEquals($options['settings']['granularity'], 2);
   }
 
 }
diff --git a/core/modules/views/tests/src/Functional/Update/FieldHandlersUpdateTest.php b/core/modules/views/tests/src/Functional/Update/FieldHandlersUpdateTest.php
index 1af161964c..404fc2d9c7 100644
--- a/core/modules/views/tests/src/Functional/Update/FieldHandlersUpdateTest.php
+++ b/core/modules/views/tests/src/Functional/Update/FieldHandlersUpdateTest.php
@@ -34,10 +34,10 @@ public function testViewsUpdate8004() {
     $view = View::load('test_duplicate_field_handlers');
     $data = $view->toArray();
     // Check that the field is using the expected base table.
-    $this->assertEqual('node_field_data', $data['display']['default']['display_options']['fields']['nid']['table']);
-    $this->assertEqual('node_field_data', $data['display']['default']['display_options']['filters']['type']['table']);
-    $this->assertEqual('node_field_data', $data['display']['default']['display_options']['sorts']['vid']['table']);
-    $this->assertEqual('node_field_data', $data['display']['default']['display_options']['arguments']['nid']['table']);
+    $this->assertEquals('node_field_data', $data['display']['default']['display_options']['fields']['nid']['table']);
+    $this->assertEquals('node_field_data', $data['display']['default']['display_options']['filters']['type']['table']);
+    $this->assertEquals('node_field_data', $data['display']['default']['display_options']['sorts']['vid']['table']);
+    $this->assertEquals('node_field_data', $data['display']['default']['display_options']['arguments']['nid']['table']);
   }
 
 }
diff --git a/core/modules/views/tests/src/Functional/ViewElementTest.php b/core/modules/views/tests/src/Functional/ViewElementTest.php
index 2dbc54f6b5..02b0e5b1f6 100644
--- a/core/modules/views/tests/src/Functional/ViewElementTest.php
+++ b/core/modules/views/tests/src/Functional/ViewElementTest.php
@@ -43,7 +43,7 @@ public function testViewElement() {
     $this->assertTrue($xpath, 'The view content has been found on the form.');
     // There should be 5 rows in the results.
     $xpath = $this->xpath('//div[@class="view-content"]/div');
-    $this->assertEqual(count($xpath), 5);
+    $this->assertEquals(count($xpath), 5);
 
     // Add an argument and save the view.
     $view->displayHandlers->get('default')->overrideOption('arguments', [
@@ -68,7 +68,7 @@ public function testViewElement() {
     // Test that the form has the expected result.
     $this->drupalGet('views_test_data_element_form');
     $xpath = $this->xpath('//div[@class="view-content"]/div');
-    $this->assertEqual(count($xpath), 1);
+    $this->assertEquals(count($xpath), 1);
   }
 
   /**
@@ -88,7 +88,7 @@ public function testViewElementEmbed() {
     $this->assertTrue($xpath, 'The view content has been found on the form.');
     // There should be 5 rows in the results.
     $xpath = $this->xpath('//div[@class="view-content"]/div');
-    $this->assertEqual(count($xpath), 5);
+    $this->assertEquals(count($xpath), 5);
 
     // Add an argument and save the view.
     $view->displayHandlers->get('default')->overrideOption('arguments', [
@@ -113,7 +113,7 @@ public function testViewElementEmbed() {
     // Test that the form has the same expected result.
     $this->drupalGet('views_test_data_element_embed_form');
     $xpath = $this->xpath('//div[@class="view-content"]/div');
-    $this->assertEqual(count($xpath), 1);
+    $this->assertEquals(count($xpath), 1);
   }
 
 }
diff --git a/core/modules/views/tests/src/Functional/ViewRenderTest.php b/core/modules/views/tests/src/Functional/ViewRenderTest.php
index aaf894cd23..82ee67f629 100644
--- a/core/modules/views/tests/src/Functional/ViewRenderTest.php
+++ b/core/modules/views/tests/src/Functional/ViewRenderTest.php
@@ -36,7 +36,7 @@ public function testRender() {
     $output = $view->preview();
     $this->container->get('renderer')->renderRoot($output);
 
-    $this->assertEqual(\Drupal::state()->get('views_render.test'), 1);
+    $this->assertEquals(\Drupal::state()->get('views_render.test'), 1);
   }
 
 }
diff --git a/core/modules/views/tests/src/Functional/ViewsEscapingTest.php b/core/modules/views/tests/src/Functional/ViewsEscapingTest.php
index 80a8398722..3d6182513c 100644
--- a/core/modules/views/tests/src/Functional/ViewsEscapingTest.php
+++ b/core/modules/views/tests/src/Functional/ViewsEscapingTest.php
@@ -53,7 +53,7 @@ public function testViewsViewFieldsEscaping() {
     $this->config('system.theme')
       ->set('default', 'views_test_theme')
       ->save();
-    $this->assertEqual($this->config('system.theme')->get('default'), 'views_test_theme');
+    $this->assertEquals($this->config('system.theme')->get('default'), 'views_test_theme');
 
     $this->drupalGet('test_page_display_200');
 
diff --git a/core/modules/views/tests/src/Functional/ViewsThemeIntegrationTest.php b/core/modules/views/tests/src/Functional/ViewsThemeIntegrationTest.php
index 9bdb405b86..80adf67c58 100644
--- a/core/modules/views/tests/src/Functional/ViewsThemeIntegrationTest.php
+++ b/core/modules/views/tests/src/Functional/ViewsThemeIntegrationTest.php
@@ -51,7 +51,7 @@ public function testThemedViewPage() {
     $this->config('system.theme')
       ->set('default', 'test_basetheme')
       ->save();
-    $this->assertEqual($this->config('system.theme')->get('default'), 'test_basetheme');
+    $this->assertEquals($this->config('system.theme')->get('default'), 'test_basetheme');
 
     // Make sure a views rendered page is touched.
     $this->drupalGet('test_page_display_200');
@@ -64,7 +64,7 @@ public function testThemedViewPage() {
     $this->config('system.theme')
       ->set('default', 'test_subtheme')
       ->save();
-    $this->assertEqual($this->config('system.theme')->get('default'), 'test_subtheme');
+    $this->assertEquals($this->config('system.theme')->get('default'), 'test_subtheme');
 
     // Make sure a views rendered page is touched.
     $this->drupalGet('test_page_display_200');
diff --git a/core/modules/views/tests/src/Functional/Wizard/BasicTest.php b/core/modules/views/tests/src/Functional/Wizard/BasicTest.php
index d26968e492..f4b6070b7a 100644
--- a/core/modules/views/tests/src/Functional/Wizard/BasicTest.php
+++ b/core/modules/views/tests/src/Functional/Wizard/BasicTest.php
@@ -78,7 +78,7 @@ public function testViewsWizardAndListing() {
     // Check if we have the feed.
     $this->assertLinkByHref(Url::fromRoute('view.' . $view2['id'] . '.feed_1')->toString());
     $elements = $this->cssSelect('link[href="' . Url::fromRoute('view.' . $view2['id'] . '.feed_1', [], ['absolute' => TRUE])->toString() . '"]');
-    $this->assertEqual(count($elements), 1, 'Feed found.');
+    $this->assertEquals(count($elements), 1, 'Feed found.');
     $this->drupalGet($view2['page[feed_properties][path]']);
     // Because the response is XML we can't use the page which depends on an
     // HTML tag being present.
@@ -168,9 +168,9 @@ public function testViewsWizardAndListing() {
     $this->drupalGet($view4['rest_export[path]'], ['query' => ['_format' => 'json']]);
     $this->assertResponse(200);
     $data = Json::decode($this->getSession()->getPage()->getContent());
-    $this->assertEqual(count($data), 1, 'Only the node of type page is exported.');
+    $this->assertEquals(count($data), 1, 'Only the node of type page is exported.');
     $node = reset($data);
-    $this->assertEqual($node['nid'][0]['value'], $node1->id(), 'The node of type page is exported.');
+    $this->assertEquals($node['nid'][0]['value'], $node1->id(), 'The node of type page is exported.');
   }
 
   /**
diff --git a/core/modules/views/tests/src/Functional/Wizard/MenuTest.php b/core/modules/views/tests/src/Functional/Wizard/MenuTest.php
index 853c0692d0..304f3b05a7 100644
--- a/core/modules/views/tests/src/Functional/Wizard/MenuTest.php
+++ b/core/modules/views/tests/src/Functional/Wizard/MenuTest.php
@@ -44,9 +44,9 @@ public function testMenus() {
     /** @var \Drupal\Core\Menu\MenuLinkInterface $link */
     $link = $menu_link_manager->createInstance('views_view:views.' . $view['id'] . '.page_1');
     $url = $link->getUrlObject();
-    $this->assertEqual($url->getRouteName(), 'view.' . $view['id'] . '.page_1', SafeMarkup::format('Found a link to %path in the main menu', ['%path' => $view['page[path]']]));
+    $this->assertEquals($url->getRouteName(), 'view.' . $view['id'] . '.page_1', SafeMarkup::format('Found a link to %path in the main menu', ['%path' => $view['page[path]']]));
     $metadata = $link->getMetaData();
-    $this->assertEqual(['view_id' => $view['id'], 'display_id' => 'page_1'], $metadata);
+    $this->assertEquals(['view_id' => $view['id'], 'display_id' => 'page_1'], $metadata);
   }
 
 }
diff --git a/core/modules/views/tests/src/Functional/Wizard/NodeWizardTest.php b/core/modules/views/tests/src/Functional/Wizard/NodeWizardTest.php
index 41870b6db9..a1e5d01fa4 100644
--- a/core/modules/views/tests/src/Functional/Wizard/NodeWizardTest.php
+++ b/core/modules/views/tests/src/Functional/Wizard/NodeWizardTest.php
@@ -32,14 +32,14 @@ public function testViewAddWithNodeTitles() {
     $display_options = $view->getDisplay('default')['display_options'];
     // Ensure that the 'entity_table' and 'entity_field' properties are set
     // property.
-    $this->assertEqual('node', $display_options['fields']['title']['entity_type']);
-    $this->assertEqual('title', $display_options['fields']['title']['entity_field']);
+    $this->assertEquals('node', $display_options['fields']['title']['entity_type']);
+    $this->assertEquals('title', $display_options['fields']['title']['entity_field']);
 
-    $this->assertEqual('node', $display_options['filters']['status']['entity_type']);
-    $this->assertEqual('status', $display_options['filters']['status']['entity_field']);
+    $this->assertEquals('node', $display_options['filters']['status']['entity_type']);
+    $this->assertEquals('status', $display_options['filters']['status']['entity_field']);
 
-    $this->assertEqual('node', $display_options['sorts']['created']['entity_type']);
-    $this->assertEqual('created', $display_options['sorts']['created']['entity_field']);
+    $this->assertEquals('node', $display_options['sorts']['created']['entity_type']);
+    $this->assertEquals('created', $display_options['sorts']['created']['entity_field']);
   }
 
 }
diff --git a/core/modules/views/tests/src/Kernel/BasicTest.php b/core/modules/views/tests/src/Kernel/BasicTest.php
index 4ef22b1408..821b20a0d7 100644
--- a/core/modules/views/tests/src/Kernel/BasicTest.php
+++ b/core/modules/views/tests/src/Kernel/BasicTest.php
@@ -29,7 +29,7 @@ public function testSimpleResultSet() {
     $this->executeView($view);
 
     // Verify the result.
-    $this->assertEqual(5, count($view->result), 'The number of returned rows match.');
+    $this->assertEquals(5, count($view->result), 'The number of returned rows match.');
     $this->assertIdenticalResultset($view, $this->dataSet(), [
       'views_test_data_name' => 'name',
       'views_test_data_age' => 'age',
@@ -88,7 +88,7 @@ public function testSimpleFiltering() {
     ];
 
     // Verify the result.
-    $this->assertEqual(3, count($view->result), 'The number of returned rows match.');
+    $this->assertEquals(3, count($view->result), 'The number of returned rows match.');
     $this->assertIdenticalResultSet($view, $dataset, [
       'views_test_data_name' => 'name',
       'views_test_data_age' => 'age',
@@ -114,7 +114,7 @@ public function testSimpleArgument() {
     ];
 
     // Verify the result.
-    $this->assertEqual(1, count($view->result), 'The number of returned rows match.');
+    $this->assertEquals(1, count($view->result), 'The number of returned rows match.');
     $this->assertIdenticalResultSet($view, $dataset, [
       'views_test_data_name' => 'name',
       'views_test_data_age' => 'age',
@@ -127,7 +127,7 @@ public function testSimpleArgument() {
     // Build the expected result.
     $dataset = $this->dataSet();
 
-    $this->assertEqual(5, count($view->result), 'The number of returned rows match.');
+    $this->assertEquals(5, count($view->result), 'The number of returned rows match.');
     $this->assertIdenticalResultSet($view, $dataset, [
       'views_test_data_name' => 'name',
       'views_test_data_age' => 'age',
diff --git a/core/modules/views/tests/src/Kernel/Entity/ViewEntityDependenciesTest.php b/core/modules/views/tests/src/Kernel/Entity/ViewEntityDependenciesTest.php
index 4929c7ecf7..c07859d489 100644
--- a/core/modules/views/tests/src/Kernel/Entity/ViewEntityDependenciesTest.php
+++ b/core/modules/views/tests/src/Kernel/Entity/ViewEntityDependenciesTest.php
@@ -134,7 +134,7 @@ public function testGetDependencies() {
       $view = Views::getView($view_id);
 
       $dependencies = $view->getDependencies();
-      $this->assertEqual($expected[$view_id], $dependencies);
+      $this->assertEquals($expected[$view_id], $dependencies);
       $config = $this->config('views.view.' . $view_id);
       \Drupal::service('config.storage.sync')->write($view_id, $config->get());
     }
@@ -171,7 +171,7 @@ public function testGetDependencies() {
     $view->initDisplay();
     foreach ($view->displayHandlers as $display) {
       // Calculate the dependencies each display has.
-      $this->assertEqual($expected_display[$display->getPluginId()], $display->calculateDependencies());
+      $this->assertEquals($expected_display[$display->getPluginId()], $display->calculateDependencies());
     }
   }
 
diff --git a/core/modules/views/tests/src/Kernel/EventSubscriber/ViewsEntitySchemaSubscriberIntegrationTest.php b/core/modules/views/tests/src/Kernel/EventSubscriber/ViewsEntitySchemaSubscriberIntegrationTest.php
index 2319a7064a..912e3ab0f7 100644
--- a/core/modules/views/tests/src/Kernel/EventSubscriber/ViewsEntitySchemaSubscriberIntegrationTest.php
+++ b/core/modules/views/tests/src/Kernel/EventSubscriber/ViewsEntitySchemaSubscriberIntegrationTest.php
@@ -135,10 +135,10 @@ public function testBaseTableRename() {
     $view = $entity_storage->load('test_view_entity_test');
 
     // Ensure the base table got renamed, so also the views fields.
-    $this->assertEqual('entity_test_update_new', $view->get('base_table'));
+    $this->assertEquals('entity_test_update_new', $view->get('base_table'));
     $display = $view->getDisplay('default');
-    $this->assertEqual('entity_test_update_new', $display['display_options']['fields']['id']['table']);
-    $this->assertEqual('entity_test_update_new', $display['display_options']['fields']['name']['table']);
+    $this->assertEquals('entity_test_update_new', $display['display_options']['fields']['id']['table']);
+    $this->assertEquals('entity_test_update_new', $display['display_options']['fields']['name']['table']);
   }
 
   /**
@@ -150,11 +150,11 @@ public function testDataTableRename() {
 
     $entity_storage = $this->entityManager->getStorage('view');
     $view = $entity_storage->load('test_view_entity_test_data');
-    $this->assertEqual('entity_test_update', $view->get('base_table'));
+    $this->assertEquals('entity_test_update', $view->get('base_table'));
     $display = $view->getDisplay('default');
-    $this->assertEqual('entity_test_update', $display['display_options']['fields']['id']['table']);
+    $this->assertEquals('entity_test_update', $display['display_options']['fields']['id']['table']);
     // Ensure that the data table is used.
-    $this->assertEqual('entity_test_update_data', $display['display_options']['fields']['name']['table']);
+    $this->assertEquals('entity_test_update_data', $display['display_options']['fields']['name']['table']);
 
     $this->renameDataTable();
     $this->entityDefinitionUpdateManager->applyUpdates();
@@ -164,10 +164,10 @@ public function testDataTableRename() {
     $view = $entity_storage->load('test_view_entity_test_data');
 
     // Ensure the data table got renamed, so also the views fields.
-    $this->assertEqual('entity_test_update', $view->get('base_table'));
+    $this->assertEquals('entity_test_update', $view->get('base_table'));
     $display = $view->getDisplay('default');
-    $this->assertEqual('entity_test_update', $display['display_options']['fields']['id']['table']);
-    $this->assertEqual('entity_test_update_data_new', $display['display_options']['fields']['name']['table']);
+    $this->assertEquals('entity_test_update', $display['display_options']['fields']['id']['table']);
+    $this->assertEquals('entity_test_update_data_new', $display['display_options']['fields']['name']['table']);
   }
 
   /**
@@ -180,10 +180,10 @@ public function testRevisionBaseTableRename() {
     /** @var \Drupal\views\Entity\View $view */
     $entity_storage = $this->entityManager->getStorage('view');
     $view = $entity_storage->load('test_view_entity_test_revision');
-    $this->assertEqual('entity_test_update_revision', $view->get('base_table'));
+    $this->assertEquals('entity_test_update_revision', $view->get('base_table'));
     $display = $view->getDisplay('default');
-    $this->assertEqual('entity_test_update_revision', $display['display_options']['fields']['id']['table']);
-    $this->assertEqual('entity_test_update_revision', $display['display_options']['fields']['name']['table']);
+    $this->assertEquals('entity_test_update_revision', $display['display_options']['fields']['id']['table']);
+    $this->assertEquals('entity_test_update_revision', $display['display_options']['fields']['name']['table']);
 
     $this->renameRevisionBaseTable();
     $this->entityDefinitionUpdateManager->applyUpdates();
@@ -193,10 +193,10 @@ public function testRevisionBaseTableRename() {
     $view = $entity_storage->load('test_view_entity_test_revision');
 
     // Ensure the base table got renamed, so also the views fields.
-    $this->assertEqual('entity_test_update_revision_new', $view->get('base_table'));
+    $this->assertEquals('entity_test_update_revision_new', $view->get('base_table'));
     $display = $view->getDisplay('default');
-    $this->assertEqual('entity_test_update_revision_new', $display['display_options']['fields']['id']['table']);
-    $this->assertEqual('entity_test_update_revision_new', $display['display_options']['fields']['name']['table']);
+    $this->assertEquals('entity_test_update_revision_new', $display['display_options']['fields']['id']['table']);
+    $this->assertEquals('entity_test_update_revision_new', $display['display_options']['fields']['name']['table']);
   }
 
   /**
@@ -213,10 +213,10 @@ public function testRevisionDataTableRename() {
     /** @var \Drupal\views\Entity\View $view */
     $entity_storage = $this->entityManager->getStorage('view');
     $view = $entity_storage->load('test_view_entity_test_revision');
-    $this->assertEqual('entity_test_update_revision', $view->get('base_table'));
+    $this->assertEquals('entity_test_update_revision', $view->get('base_table'));
     $display = $view->getDisplay('default');
-    $this->assertEqual('entity_test_update_revision', $display['display_options']['fields']['id']['table']);
-    $this->assertEqual('entity_test_update_revision_data', $display['display_options']['fields']['name']['table']);
+    $this->assertEquals('entity_test_update_revision', $display['display_options']['fields']['id']['table']);
+    $this->assertEquals('entity_test_update_revision_data', $display['display_options']['fields']['name']['table']);
 
     $this->renameRevisionDataTable();
     $this->entityDefinitionUpdateManager->applyUpdates();
@@ -226,10 +226,10 @@ public function testRevisionDataTableRename() {
     $view = $entity_storage->load('test_view_entity_test_revision');
 
     // Ensure the base table got renamed, so also the views fields.
-    $this->assertEqual('entity_test_update_revision', $view->get('base_table'));
+    $this->assertEquals('entity_test_update_revision', $view->get('base_table'));
     $display = $view->getDisplay('default');
-    $this->assertEqual('entity_test_update_revision', $display['display_options']['fields']['id']['table']);
-    $this->assertEqual('entity_test_update_revision_data_new', $display['display_options']['fields']['name']['table']);
+    $this->assertEquals('entity_test_update_revision', $display['display_options']['fields']['id']['table']);
+    $this->assertEquals('entity_test_update_revision_data_new', $display['display_options']['fields']['name']['table']);
   }
 
   /**
@@ -244,10 +244,10 @@ public function testDataTableAddition() {
     $view = $entity_storage->load('test_view_entity_test');
 
     // Ensure the data table got renamed, so also the views fields.
-    $this->assertEqual('entity_test_update', $view->get('base_table'));
+    $this->assertEquals('entity_test_update', $view->get('base_table'));
     $display = $view->getDisplay('default');
-    $this->assertEqual('entity_test_update', $display['display_options']['fields']['id']['table']);
-    $this->assertEqual('entity_test_update_data', $display['display_options']['fields']['name']['table']);
+    $this->assertEquals('entity_test_update', $display['display_options']['fields']['id']['table']);
+    $this->assertEquals('entity_test_update_data', $display['display_options']['fields']['name']['table']);
   }
 
   /**
@@ -262,10 +262,10 @@ public function testRevisionEnabling() {
     $view = $entity_storage->load('test_view_entity_test');
 
     // Ensure that nothing happens.
-    $this->assertEqual('entity_test_update', $view->get('base_table'));
+    $this->assertEquals('entity_test_update', $view->get('base_table'));
     $display = $view->getDisplay('default');
-    $this->assertEqual('entity_test_update', $display['display_options']['fields']['id']['table']);
-    $this->assertEqual('entity_test_update', $display['display_options']['fields']['name']['table']);
+    $this->assertEquals('entity_test_update', $display['display_options']['fields']['id']['table']);
+    $this->assertEquals('entity_test_update', $display['display_options']['fields']['name']['table']);
   }
 
   /**
@@ -301,17 +301,17 @@ public function testVariousTableUpdates() {
     $this->entityDefinitionUpdateManager->applyUpdates();
     list($view, $display) = $this->getUpdatedViewAndDisplay();
 
-    $this->assertEqual('entity_test_update', $view->get('base_table'));
-    $this->assertEqual('entity_test_update', $display['display_options']['fields']['id']['table']);
-    $this->assertEqual('entity_test_update_data', $display['display_options']['fields']['name']['table']);
+    $this->assertEquals('entity_test_update', $view->get('base_table'));
+    $this->assertEquals('entity_test_update', $display['display_options']['fields']['id']['table']);
+    $this->assertEquals('entity_test_update_data', $display['display_options']['fields']['name']['table']);
 
     $this->updateEntityTypeToNotTranslatable();
     $this->entityDefinitionUpdateManager->applyUpdates();
     list($view, $display) = $this->getUpdatedViewAndDisplay();
 
-    $this->assertEqual('entity_test_update', $view->get('base_table'));
-    $this->assertEqual('entity_test_update', $display['display_options']['fields']['id']['table']);
-    $this->assertEqual('entity_test_update', $display['display_options']['fields']['name']['table']);
+    $this->assertEquals('entity_test_update', $view->get('base_table'));
+    $this->assertEquals('entity_test_update', $display['display_options']['fields']['id']['table']);
+    $this->assertEquals('entity_test_update', $display['display_options']['fields']['name']['table']);
 
     $this->resetEntityType();
 
@@ -320,25 +320,25 @@ public function testVariousTableUpdates() {
     $this->entityDefinitionUpdateManager->applyUpdates();
     list($view, $display) = $this->getUpdatedViewAndDisplay();
 
-    $this->assertEqual('entity_test_update', $view->get('base_table'));
-    $this->assertEqual('entity_test_update', $display['display_options']['fields']['id']['table']);
-    $this->assertEqual('entity_test_update_data', $display['display_options']['fields']['name']['table']);
+    $this->assertEquals('entity_test_update', $view->get('base_table'));
+    $this->assertEquals('entity_test_update', $display['display_options']['fields']['id']['table']);
+    $this->assertEquals('entity_test_update_data', $display['display_options']['fields']['name']['table']);
 
     $this->updateEntityTypeToRevisionable();
     $this->entityDefinitionUpdateManager->applyUpdates();
     list($view, $display) = $this->getUpdatedViewAndDisplay();
 
-    $this->assertEqual('entity_test_update', $view->get('base_table'));
-    $this->assertEqual('entity_test_update', $display['display_options']['fields']['id']['table']);
-    $this->assertEqual('entity_test_update_data', $display['display_options']['fields']['name']['table']);
+    $this->assertEquals('entity_test_update', $view->get('base_table'));
+    $this->assertEquals('entity_test_update', $display['display_options']['fields']['id']['table']);
+    $this->assertEquals('entity_test_update_data', $display['display_options']['fields']['name']['table']);
 
     $this->updateEntityTypeToNotRevisionable();
     $this->entityDefinitionUpdateManager->applyUpdates();
     list($view, $display) = $this->getUpdatedViewAndDisplay();
 
-    $this->assertEqual('entity_test_update', $view->get('base_table'));
-    $this->assertEqual('entity_test_update', $display['display_options']['fields']['id']['table']);
-    $this->assertEqual('entity_test_update_data', $display['display_options']['fields']['name']['table']);
+    $this->assertEquals('entity_test_update', $view->get('base_table'));
+    $this->assertEquals('entity_test_update', $display['display_options']['fields']['id']['table']);
+    $this->assertEquals('entity_test_update_data', $display['display_options']['fields']['name']['table']);
 
     $this->resetEntityType();
 
@@ -346,25 +346,25 @@ public function testVariousTableUpdates() {
     $this->updateEntityTypeToRevisionable();
     list($view, $display) = $this->getUpdatedViewAndDisplay();
 
-    $this->assertEqual('entity_test_update', $view->get('base_table'));
-    $this->assertEqual('entity_test_update', $display['display_options']['fields']['id']['table']);
-    $this->assertEqual('entity_test_update', $display['display_options']['fields']['name']['table']);
+    $this->assertEquals('entity_test_update', $view->get('base_table'));
+    $this->assertEquals('entity_test_update', $display['display_options']['fields']['id']['table']);
+    $this->assertEquals('entity_test_update', $display['display_options']['fields']['name']['table']);
 
     $this->updateEntityTypeToTranslatable();
     $this->entityDefinitionUpdateManager->applyUpdates();
     list($view, $display) = $this->getUpdatedViewAndDisplay();
 
-    $this->assertEqual('entity_test_update', $view->get('base_table'));
-    $this->assertEqual('entity_test_update', $display['display_options']['fields']['id']['table']);
-    $this->assertEqual('entity_test_update_data', $display['display_options']['fields']['name']['table']);
+    $this->assertEquals('entity_test_update', $view->get('base_table'));
+    $this->assertEquals('entity_test_update', $display['display_options']['fields']['id']['table']);
+    $this->assertEquals('entity_test_update_data', $display['display_options']['fields']['name']['table']);
 
     $this->updateEntityTypeToNotTranslatable();
     $this->entityDefinitionUpdateManager->applyUpdates();
     list($view, $display) = $this->getUpdatedViewAndDisplay();
 
-    $this->assertEqual('entity_test_update', $view->get('base_table'));
-    $this->assertEqual('entity_test_update', $display['display_options']['fields']['id']['table']);
-    $this->assertEqual('entity_test_update', $display['display_options']['fields']['name']['table']);
+    $this->assertEquals('entity_test_update', $view->get('base_table'));
+    $this->assertEquals('entity_test_update', $display['display_options']['fields']['id']['table']);
+    $this->assertEquals('entity_test_update', $display['display_options']['fields']['name']['table']);
 
     $this->resetEntityType();
 
@@ -373,17 +373,17 @@ public function testVariousTableUpdates() {
     $this->entityDefinitionUpdateManager->applyUpdates();
     list($view, $display) = $this->getUpdatedViewAndDisplay();
 
-    $this->assertEqual('entity_test_update', $view->get('base_table'));
-    $this->assertEqual('entity_test_update', $display['display_options']['fields']['id']['table']);
-    $this->assertEqual('entity_test_update', $display['display_options']['fields']['name']['table']);
+    $this->assertEquals('entity_test_update', $view->get('base_table'));
+    $this->assertEquals('entity_test_update', $display['display_options']['fields']['id']['table']);
+    $this->assertEquals('entity_test_update', $display['display_options']['fields']['name']['table']);
 
     $this->updateEntityTypeToNotRevisionable();
     $this->entityDefinitionUpdateManager->applyUpdates();
     list($view, $display) = $this->getUpdatedViewAndDisplay();
 
-    $this->assertEqual('entity_test_update', $view->get('base_table'));
-    $this->assertEqual('entity_test_update', $display['display_options']['fields']['id']['table']);
-    $this->assertEqual('entity_test_update', $display['display_options']['fields']['name']['table']);
+    $this->assertEquals('entity_test_update', $view->get('base_table'));
+    $this->assertEquals('entity_test_update', $display['display_options']['fields']['id']['table']);
+    $this->assertEquals('entity_test_update', $display['display_options']['fields']['name']['table']);
 
     $this->resetEntityType();
 
@@ -393,18 +393,18 @@ public function testVariousTableUpdates() {
     $this->entityDefinitionUpdateManager->applyUpdates();
     list($view, $display) = $this->getUpdatedViewAndDisplay();
 
-    $this->assertEqual('entity_test_update', $view->get('base_table'));
-    $this->assertEqual('entity_test_update', $display['display_options']['fields']['id']['table']);
-    $this->assertEqual('entity_test_update_data', $display['display_options']['fields']['name']['table']);
+    $this->assertEquals('entity_test_update', $view->get('base_table'));
+    $this->assertEquals('entity_test_update', $display['display_options']['fields']['id']['table']);
+    $this->assertEquals('entity_test_update_data', $display['display_options']['fields']['name']['table']);
 
     $this->updateEntityTypeToNotRevisionable();
     $this->updateEntityTypeToNotTranslatable();
     $this->entityDefinitionUpdateManager->applyUpdates();
     list($view, $display) = $this->getUpdatedViewAndDisplay();
 
-    $this->assertEqual('entity_test_update', $view->get('base_table'));
-    $this->assertEqual('entity_test_update', $display['display_options']['fields']['id']['table']);
-    $this->assertEqual('entity_test_update', $display['display_options']['fields']['name']['table']);
+    $this->assertEquals('entity_test_update', $view->get('base_table'));
+    $this->assertEquals('entity_test_update', $display['display_options']['fields']['id']['table']);
+    $this->assertEquals('entity_test_update', $display['display_options']['fields']['name']['table']);
   }
 
   /**
@@ -419,25 +419,25 @@ public function testVariousTableUpdatesForRevisionView() {
 
     list($view, $display) = $this->getUpdatedViewAndDisplay(TRUE);
 
-    $this->assertEqual('entity_test_update_revision', $view->get('base_table'));
-    $this->assertEqual('entity_test_update_revision', $display['display_options']['fields']['id']['table']);
-    $this->assertEqual('entity_test_update_revision', $display['display_options']['fields']['name']['table']);
+    $this->assertEquals('entity_test_update_revision', $view->get('base_table'));
+    $this->assertEquals('entity_test_update_revision', $display['display_options']['fields']['id']['table']);
+    $this->assertEquals('entity_test_update_revision', $display['display_options']['fields']['name']['table']);
 
     $this->updateEntityTypeToTranslatable();
     $this->entityDefinitionUpdateManager->applyUpdates();
     list($view, $display) = $this->getUpdatedViewAndDisplay(TRUE);
 
-    $this->assertEqual('entity_test_update_revision', $view->get('base_table'));
-    $this->assertEqual('entity_test_update_revision', $display['display_options']['fields']['id']['table']);
-    $this->assertEqual('entity_test_update_revision_data', $display['display_options']['fields']['name']['table']);
+    $this->assertEquals('entity_test_update_revision', $view->get('base_table'));
+    $this->assertEquals('entity_test_update_revision', $display['display_options']['fields']['id']['table']);
+    $this->assertEquals('entity_test_update_revision_data', $display['display_options']['fields']['name']['table']);
 
     $this->updateEntityTypeToNotTranslatable();
     $this->entityDefinitionUpdateManager->applyUpdates();
     list($view, $display) = $this->getUpdatedViewAndDisplay(TRUE);
 
-    $this->assertEqual('entity_test_update_revision', $view->get('base_table'));
-    $this->assertEqual('entity_test_update_revision', $display['display_options']['fields']['id']['table']);
-    $this->assertEqual('entity_test_update_revision', $display['display_options']['fields']['name']['table']);
+    $this->assertEquals('entity_test_update_revision', $view->get('base_table'));
+    $this->assertEquals('entity_test_update_revision', $display['display_options']['fields']['id']['table']);
+    $this->assertEquals('entity_test_update_revision', $display['display_options']['fields']['name']['table']);
 
     $this->resetEntityType();
   }
diff --git a/core/modules/views/tests/src/Kernel/Handler/AreaEntityTest.php b/core/modules/views/tests/src/Kernel/Handler/AreaEntityTest.php
index a95214a782..1515316355 100644
--- a/core/modules/views/tests/src/Kernel/Handler/AreaEntityTest.php
+++ b/core/modules/views/tests/src/Kernel/Handler/AreaEntityTest.php
@@ -72,7 +72,7 @@ public function testEntityAreaData() {
     foreach (array_keys($expected_entities) as $entity) {
       $this->assertTrue(!empty($data['entity_' . $entity]), format_string('Views entity area data found for @entity', ['@entity' => $entity]));
       // Test that entity_type is set correctly in the area data.
-      $this->assertEqual($entity, $data['entity_' . $entity]['area']['entity_type'], format_string('Correct entity_type set for @entity', ['@entity' => $entity]));
+      $this->assertEquals($entity, $data['entity_' . $entity]['area']['entity_type'], format_string('Correct entity_type set for @entity', ['@entity' => $entity]));
     }
 
     $expected_entities = array_filter($entity_types, function (EntityTypeInterface $type) {
@@ -191,7 +191,7 @@ public function doTestCalculateDependencies() {
 
     $dependencies = $view->calculateDependencies()->getDependencies();
     // Ensure that both config and content entity dependencies are calculated.
-    $this->assertEqual([
+    $this->assertEquals([
       'config' => ['block.block.test_block'],
       'content' => ['entity_test:entity_test:aa0c61cb-b7bb-4795-972a-493dabcf529c'],
     ], $dependencies);
diff --git a/core/modules/views/tests/src/Kernel/Handler/AreaTextTest.php b/core/modules/views/tests/src/Kernel/Handler/AreaTextTest.php
index 2feaaf144e..bf73e5870a 100644
--- a/core/modules/views/tests/src/Kernel/Handler/AreaTextTest.php
+++ b/core/modules/views/tests/src/Kernel/Handler/AreaTextTest.php
@@ -53,18 +53,18 @@ public function testAreaText() {
 
     $view->display_handler->handlers['header']['area']->options['content']['format'] = $this->randomString();
     $build = $view->display_handler->handlers['header']['area']->render();
-    $this->assertEqual('', $renderer->renderRoot($build), 'Nonexistent format should return empty markup.');
+    $this->assertEquals('', $renderer->renderRoot($build), 'Nonexistent format should return empty markup.');
 
     $view->display_handler->handlers['header']['area']->options['content']['format'] = filter_default_format();
     $build = $view->display_handler->handlers['header']['area']->render();
-    $this->assertEqual(check_markup($string), $renderer->renderRoot($build), 'Existent format should return something');
+    $this->assertEquals(check_markup($string), $renderer->renderRoot($build), 'Existent format should return something');
 
     // Empty results, and it shouldn't be displayed .
-    $this->assertEqual([], $view->display_handler->handlers['header']['area']->render(TRUE), 'No result should lead to no header');
+    $this->assertEquals([], $view->display_handler->handlers['header']['area']->render(TRUE), 'No result should lead to no header');
     // Empty results, and it should be displayed.
     $view->display_handler->handlers['header']['area']->options['empty'] = TRUE;
     $build = $view->display_handler->handlers['header']['area']->render(TRUE);
-    $this->assertEqual(check_markup($string), $renderer->renderRoot($build), 'No result, but empty enabled lead to a full header');
+    $this->assertEquals(check_markup($string), $renderer->renderRoot($build), 'No result, but empty enabled lead to a full header');
   }
 
 }
diff --git a/core/modules/views/tests/src/Kernel/Handler/AreaTitleTest.php b/core/modules/views/tests/src/Kernel/Handler/AreaTitleTest.php
index 8c16b63088..f5194a1a6e 100644
--- a/core/modules/views/tests/src/Kernel/Handler/AreaTitleTest.php
+++ b/core/modules/views/tests/src/Kernel/Handler/AreaTitleTest.php
@@ -36,20 +36,20 @@ public function testTitleText() {
     $this->executeView($view);
     $view->result = [];
     $view->render();
-    $this->assertEqual($view->getTitle(), 'test_title_empty', 'The title area should override the title if the result is empty.');
+    $this->assertEquals($view->getTitle(), 'test_title_empty', 'The title area should override the title if the result is empty.');
     $view->destroy();
 
     $view->setDisplay('page_1');
     $this->executeView($view);
     $view->render();
-    $this->assertEqual($view->getTitle(), 'test_title_header', 'The title area on the header should override the title if the result is not empty.');
+    $this->assertEquals($view->getTitle(), 'test_title_header', 'The title area on the header should override the title if the result is not empty.');
     $view->destroy();
 
     $view->setDisplay('page_1');
     $this->executeView($view);
     $view->result = [];
     $view->render();
-    $this->assertEqual($view->getTitle(), 'test_title_empty', 'The title area should override the title if the result is empty.');
+    $this->assertEquals($view->getTitle(), 'test_title_empty', 'The title area should override the title if the result is empty.');
     $view->destroy();
   }
 
diff --git a/core/modules/views/tests/src/Kernel/Handler/ArgumentNullTest.php b/core/modules/views/tests/src/Kernel/Handler/ArgumentNullTest.php
index 933a00099f..53da777eed 100644
--- a/core/modules/views/tests/src/Kernel/Handler/ArgumentNullTest.php
+++ b/core/modules/views/tests/src/Kernel/Handler/ArgumentNullTest.php
@@ -68,7 +68,7 @@ public function testAreaText() {
     $this->executeView($view, [26]);
 
     // The argument should be ignored, so every result should return.
-    $this->assertEqual(5, count($view->result));
+    $this->assertEquals(5, count($view->result));
   }
 
 }
diff --git a/core/modules/views/tests/src/Kernel/Handler/FieldBooleanTest.php b/core/modules/views/tests/src/Kernel/Handler/FieldBooleanTest.php
index 0690fc12ca..e7994300cc 100644
--- a/core/modules/views/tests/src/Kernel/Handler/FieldBooleanTest.php
+++ b/core/modules/views/tests/src/Kernel/Handler/FieldBooleanTest.php
@@ -49,31 +49,31 @@ public function testFieldBoolean() {
     $this->executeView($view);
 
     // This is john, which has no age, there are no custom formats defined, yet.
-    $this->assertEqual(t('No'), $view->field['age']->advancedRender($view->result[0]));
-    $this->assertEqual(t('Yes'), $view->field['age']->advancedRender($view->result[1]));
+    $this->assertEquals(t('No'), $view->field['age']->advancedRender($view->result[0]));
+    $this->assertEquals(t('Yes'), $view->field['age']->advancedRender($view->result[1]));
 
     // Reverse the output.
     $view->field['age']->options['not'] = TRUE;
-    $this->assertEqual(t('Yes'), $view->field['age']->advancedRender($view->result[0]));
-    $this->assertEqual(t('No'), $view->field['age']->advancedRender($view->result[1]));
+    $this->assertEquals(t('Yes'), $view->field['age']->advancedRender($view->result[0]));
+    $this->assertEquals(t('No'), $view->field['age']->advancedRender($view->result[1]));
 
     unset($view->field['age']->options['not']);
 
     // Use another output format.
     $view->field['age']->options['type'] = 'true-false';
-    $this->assertEqual(t('False'), $view->field['age']->advancedRender($view->result[0]));
-    $this->assertEqual(t('True'), $view->field['age']->advancedRender($view->result[1]));
+    $this->assertEquals(t('False'), $view->field['age']->advancedRender($view->result[0]));
+    $this->assertEquals(t('True'), $view->field['age']->advancedRender($view->result[1]));
 
     // test awesome unicode.
     $view->field['age']->options['type'] = 'unicode-yes-no';
-    $this->assertEqual('✖', $view->field['age']->advancedRender($view->result[0]));
-    $this->assertEqual('✔', $view->field['age']->advancedRender($view->result[1]));
+    $this->assertEquals('✖', $view->field['age']->advancedRender($view->result[0]));
+    $this->assertEquals('✔', $view->field['age']->advancedRender($view->result[1]));
 
     // Set a custom output format.
     $view->field['age']->formats['test'] = [t('Test-True'), t('Test-False')];
     $view->field['age']->options['type'] = 'test';
-    $this->assertEqual(t('Test-False'), $view->field['age']->advancedRender($view->result[0]));
-    $this->assertEqual(t('Test-True'), $view->field['age']->advancedRender($view->result[1]));
+    $this->assertEquals(t('Test-False'), $view->field['age']->advancedRender($view->result[0]));
+    $this->assertEquals(t('Test-True'), $view->field['age']->advancedRender($view->result[1]));
   }
 
 }
diff --git a/core/modules/views/tests/src/Kernel/Handler/FieldCounterTest.php b/core/modules/views/tests/src/Kernel/Handler/FieldCounterTest.php
index b5c52fef77..9e77ba016e 100644
--- a/core/modules/views/tests/src/Kernel/Handler/FieldCounterTest.php
+++ b/core/modules/views/tests/src/Kernel/Handler/FieldCounterTest.php
@@ -46,11 +46,11 @@ public function testSimple() {
     $view->preview();
 
     $counter = $view->style_plugin->getField(0, 'counter');
-    $this->assertEqual($counter, '1', format_string('Make sure the expected number (@expected) patches with the rendered number (@counter)', ['@expected' => 1, '@counter' => $counter]));
+    $this->assertEquals($counter, '1', format_string('Make sure the expected number (@expected) patches with the rendered number (@counter)', ['@expected' => 1, '@counter' => $counter]));
     $counter = $view->style_plugin->getField(1, 'counter');
-    $this->assertEqual($counter, '2', format_string('Make sure the expected number (@expected) patches with the rendered number (@counter)', ['@expected' => 2, '@counter' => $counter]));
+    $this->assertEquals($counter, '2', format_string('Make sure the expected number (@expected) patches with the rendered number (@counter)', ['@expected' => 2, '@counter' => $counter]));
     $counter = $view->style_plugin->getField(2, 'counter');
-    $this->assertEqual($counter, '3', format_string('Make sure the expected number (@expected) patches with the rendered number (@counter)', ['@expected' => 3, '@counter' => $counter]));
+    $this->assertEquals($counter, '3', format_string('Make sure the expected number (@expected) patches with the rendered number (@counter)', ['@expected' => 3, '@counter' => $counter]));
     $view->destroy();
     $view->storage->invalidateCaches();
 
@@ -75,13 +75,13 @@ public function testSimple() {
 
     $counter = $view->style_plugin->getField(0, 'counter');
     $expected_number = 0 + $rand_start;
-    $this->assertEqual($counter, (string) $expected_number, format_string('Make sure the expected number (@expected) patches with the rendered number (@counter)', ['@expected' => $expected_number, '@counter' => $counter]));
+    $this->assertEquals($counter, (string) $expected_number, format_string('Make sure the expected number (@expected) patches with the rendered number (@counter)', ['@expected' => $expected_number, '@counter' => $counter]));
     $counter = $view->style_plugin->getField(1, 'counter');
     $expected_number = 1 + $rand_start;
-    $this->assertEqual($counter, (string) $expected_number, format_string('Make sure the expected number (@expected) patches with the rendered number (@counter)', ['@expected' => $expected_number, '@counter' => $counter]));
+    $this->assertEquals($counter, (string) $expected_number, format_string('Make sure the expected number (@expected) patches with the rendered number (@counter)', ['@expected' => $expected_number, '@counter' => $counter]));
     $counter = $view->style_plugin->getField(2, 'counter');
     $expected_number = 2 + $rand_start;
-    $this->assertEqual($counter, (string) $expected_number, format_string('Make sure the expected number (@expected) patches with the rendered number (@counter)', ['@expected' => $expected_number, '@counter' => $counter]));
+    $this->assertEquals($counter, (string) $expected_number, format_string('Make sure the expected number (@expected) patches with the rendered number (@counter)', ['@expected' => $expected_number, '@counter' => $counter]));
   }
 
   /**
diff --git a/core/modules/views/tests/src/Kernel/Handler/FieldCustomTest.php b/core/modules/views/tests/src/Kernel/Handler/FieldCustomTest.php
index 599052dcbf..7f0caae64b 100644
--- a/core/modules/views/tests/src/Kernel/Handler/FieldCustomTest.php
+++ b/core/modules/views/tests/src/Kernel/Handler/FieldCustomTest.php
@@ -52,7 +52,7 @@ public function testFieldCustom() {
 
     $this->executeView($view);
 
-    $this->assertEqual($random, $view->style_plugin->getField(0, 'name'));
+    $this->assertEquals($random, $view->style_plugin->getField(0, 'name'));
   }
 
   /**
@@ -110,7 +110,7 @@ public function testCustomFieldXss() {
       ],
     ]);
     $this->executeView($view);
-    $this->assertEqual(Xss::filter($text), $view->style_plugin->getField(0, 'name'));
+    $this->assertEquals(Xss::filter($text), $view->style_plugin->getField(0, 'name'));
   }
 
 }
diff --git a/core/modules/views/tests/src/Kernel/Handler/FieldDateTest.php b/core/modules/views/tests/src/Kernel/Handler/FieldDateTest.php
index 833b5c99d1..82f3e273fc 100644
--- a/core/modules/views/tests/src/Kernel/Handler/FieldDateTest.php
+++ b/core/modules/views/tests/src/Kernel/Handler/FieldDateTest.php
@@ -164,7 +164,7 @@ protected function assertRenderedDatesEqual($view, $map, $timezone = NULL) {
         $message = t('Value %value in %format format matches.', $t_args);
       }
       $actual_result = $view->field['created']->advancedRender($view->result[0]);
-      $this->assertEqual($expected_result, $actual_result, $message);
+      $this->assertEquals($expected_result, $actual_result, $message);
     }
   }
 
@@ -186,7 +186,7 @@ protected function assertRenderedFutureDatesEqual($view, $map) {
         '%actual' => $view_result,
       ];
       $message = t('Value %value in %format matches %actual', $t_args);
-      $this->assertEqual($view_result, $result, $message);
+      $this->assertEquals($view_result, $result, $message);
     }
   }
 
diff --git a/core/modules/views/tests/src/Kernel/Handler/FieldEntityLinkTest.php b/core/modules/views/tests/src/Kernel/Handler/FieldEntityLinkTest.php
index a7f5116f35..adfa4ac4cc 100644
--- a/core/modules/views/tests/src/Kernel/Handler/FieldEntityLinkTest.php
+++ b/core/modules/views/tests/src/Kernel/Handler/FieldEntityLinkTest.php
@@ -145,7 +145,7 @@ protected function doTestEntityLink(AccountInterface $account, $expected_results
           }
         }
         $link = $view->style_plugin->getField($index, $info[$template]['field_id']);
-        $this->assertEqual($link, $expected_link);
+        $this->assertEquals($link, $expected_link);
       }
       $index++;
     }
diff --git a/core/modules/views/tests/src/Kernel/Handler/FieldFieldTest.php b/core/modules/views/tests/src/Kernel/Handler/FieldFieldTest.php
index 8bdab81b63..66b46a90db 100644
--- a/core/modules/views/tests/src/Kernel/Handler/FieldFieldTest.php
+++ b/core/modules/views/tests/src/Kernel/Handler/FieldFieldTest.php
@@ -251,18 +251,18 @@ public function testSimpleRender() {
     $executable = Views::getView('test_field_field_test');
     $executable->execute();
 
-    $this->assertEqual('1', $executable->getStyle()->getField(0, 'id'));
-    $this->assertEqual('3', $executable->getStyle()->getField(0, 'field_test'));
-    $this->assertEqual('2', $executable->getStyle()->getField(1, 'id'));
+    $this->assertEquals('1', $executable->getStyle()->getField(0, 'id'));
+    $this->assertEquals('3', $executable->getStyle()->getField(0, 'field_test'));
+    $this->assertEquals('2', $executable->getStyle()->getField(1, 'id'));
     // @todo Switch this assertion to assertIdentical('', ...) when
     //   https://www.drupal.org/node/2488006 gets fixed.
-    $this->assertEqual('0', $executable->getStyle()->getField(1, 'field_test'));
-    $this->assertEqual('3', $executable->getStyle()->getField(2, 'id'));
-    $this->assertEqual('8', $executable->getStyle()->getField(2, 'field_test'));
-    $this->assertEqual('4', $executable->getStyle()->getField(3, 'id'));
-    $this->assertEqual('5', $executable->getStyle()->getField(3, 'field_test'));
-    $this->assertEqual('5', $executable->getStyle()->getField(4, 'id'));
-    $this->assertEqual('6', $executable->getStyle()->getField(4, 'field_test'));
+    $this->assertEquals('0', $executable->getStyle()->getField(1, 'field_test'));
+    $this->assertEquals('3', $executable->getStyle()->getField(2, 'id'));
+    $this->assertEquals('8', $executable->getStyle()->getField(2, 'field_test'));
+    $this->assertEquals('4', $executable->getStyle()->getField(3, 'id'));
+    $this->assertEquals('5', $executable->getStyle()->getField(3, 'field_test'));
+    $this->assertEquals('5', $executable->getStyle()->getField(4, 'id'));
+    $this->assertEquals('6', $executable->getStyle()->getField(4, 'field_test'));
   }
 
   /**
@@ -286,7 +286,7 @@ public function testAttachedRender() {
       $expected_attachments['library'][] = 'foo/fake_library';
       $expected_attachments['drupalSettings']['AttachmentIntegerFormatter'][$entity->id()] = $entity->id();
     }
-    $this->assertEqual($expected_attachments, $render['#attached']);
+    $this->assertEquals($expected_attachments, $render['#attached']);
   }
 
   /**
@@ -326,10 +326,10 @@ public function testFieldAliasRender() {
     $executable->execute();
 
     for ($i = 0; $i < 5; $i++) {
-      $this->assertEqual((string) ($i + 1), $executable->getStyle()->getField($i, 'id'));
-      $this->assertEqual('test ' . $i, $executable->getStyle()->getField($i, 'name'));
+      $this->assertEquals((string) ($i + 1), $executable->getStyle()->getField($i, 'id'));
+      $this->assertEquals('test ' . $i, $executable->getStyle()->getField($i, 'name'));
       $entity = EntityTest::load($i + 1);
-      $this->assertEqual('<a href="' . $entity->url() . '" hreflang="' . $entity->language()->getId() . '">test ' . $i . '</a>', (string) $executable->getStyle()->getField($i, 'name_alias'));
+      $this->assertEquals('<a href="' . $entity->url() . '" hreflang="' . $entity->language()->getId() . '">test ' . $i . '</a>', (string) $executable->getStyle()->getField($i, 'name_alias'));
     }
   }
 
@@ -373,45 +373,45 @@ public function testComplexRender() {
     $executable->execute();
     $date_formatter = \Drupal::service('date.formatter');
 
-    $this->assertEqual($this->testUsers[0]->getTimeZone(), $executable->getStyle()->getField(0, 'timezone'));
-    $this->assertEqual("1, 3", $executable->getStyle()->getField(0, 'field_test_multiple'));
-    $this->assertEqual("1", $executable->getStyle()->getField(0, 'field_test_multiple_1'));
-    $this->assertEqual("3", $executable->getStyle()->getField(0, 'field_test_multiple_2'));
-    $this->assertEqual($date_formatter->format($this->testUsers[0]->getCreatedTime(), 'custom', 'Y'), $executable->getStyle()->getField(0, 'created'));
-    $this->assertEqual($date_formatter->format($this->testUsers[0]->getCreatedTime(), 'custom', 'H:i:s'), $executable->getStyle()->getField(0, 'created_1'));
-    $this->assertEqual($date_formatter->format($this->testUsers[0]->getCreatedTime(), 'fallback'), $executable->getStyle()->getField(0, 'created_2'));
-
-    $this->assertEqual($this->testUsers[1]->getTimeZone(), $executable->getStyle()->getField(1, 'timezone'));
-    $this->assertEqual("7, 0", $executable->getStyle()->getField(1, 'field_test_multiple'));
-    $this->assertEqual("7", $executable->getStyle()->getField(1, 'field_test_multiple_1'));
-    $this->assertEqual("0", $executable->getStyle()->getField(1, 'field_test_multiple_2'));
-    $this->assertEqual($date_formatter->format($this->testUsers[1]->getCreatedTime(), 'custom', 'Y'), $executable->getStyle()->getField(1, 'created'));
-    $this->assertEqual($date_formatter->format($this->testUsers[1]->getCreatedTime(), 'custom', 'H:i:s'), $executable->getStyle()->getField(1, 'created_1'));
-    $this->assertEqual($date_formatter->format($this->testUsers[1]->getCreatedTime(), 'fallback'), $executable->getStyle()->getField(1, 'created_2'));
-
-    $this->assertEqual($this->testUsers[2]->getTimeZone(), $executable->getStyle()->getField(2, 'timezone'));
-    $this->assertEqual("3, 5", $executable->getStyle()->getField(2, 'field_test_multiple'));
-    $this->assertEqual("3", $executable->getStyle()->getField(2, 'field_test_multiple_1'));
-    $this->assertEqual("5", $executable->getStyle()->getField(2, 'field_test_multiple_2'));
-    $this->assertEqual($date_formatter->format($this->testUsers[2]->getCreatedTime(), 'custom', 'Y'), $executable->getStyle()->getField(2, 'created'));
-    $this->assertEqual($date_formatter->format($this->testUsers[2]->getCreatedTime(), 'custom', 'H:i:s'), $executable->getStyle()->getField(2, 'created_1'));
-    $this->assertEqual($date_formatter->format($this->testUsers[2]->getCreatedTime(), 'fallback'), $executable->getStyle()->getField(2, 'created_2'));
-
-    $this->assertEqual($this->testUsers[3]->getTimeZone(), $executable->getStyle()->getField(3, 'timezone'));
-    $this->assertEqual("9, 9", $executable->getStyle()->getField(3, 'field_test_multiple'));
-    $this->assertEqual("9", $executable->getStyle()->getField(3, 'field_test_multiple_1'));
-    $this->assertEqual("9", $executable->getStyle()->getField(3, 'field_test_multiple_2'));
-    $this->assertEqual($date_formatter->format($this->testUsers[3]->getCreatedTime(), 'custom', 'Y'), $executable->getStyle()->getField(3, 'created'));
-    $this->assertEqual($date_formatter->format($this->testUsers[3]->getCreatedTime(), 'custom', 'H:i:s'), $executable->getStyle()->getField(3, 'created_1'));
-    $this->assertEqual($date_formatter->format($this->testUsers[3]->getCreatedTime(), 'fallback'), $executable->getStyle()->getField(3, 'created_2'));
-
-    $this->assertEqual($this->testUsers[4]->getTimeZone(), $executable->getStyle()->getField(4, 'timezone'));
-    $this->assertEqual("9, 0", $executable->getStyle()->getField(4, 'field_test_multiple'));
-    $this->assertEqual("9", $executable->getStyle()->getField(4, 'field_test_multiple_1'));
-    $this->assertEqual("0", $executable->getStyle()->getField(4, 'field_test_multiple_2'));
-    $this->assertEqual($date_formatter->format($this->testUsers[4]->getCreatedTime(), 'custom', 'Y'), $executable->getStyle()->getField(4, 'created'));
-    $this->assertEqual($date_formatter->format($this->testUsers[4]->getCreatedTime(), 'custom', 'H:i:s'), $executable->getStyle()->getField(4, 'created_1'));
-    $this->assertEqual($date_formatter->format($this->testUsers[4]->getCreatedTime(), 'fallback'), $executable->getStyle()->getField(4, 'created_2'));
+    $this->assertEquals($this->testUsers[0]->getTimeZone(), $executable->getStyle()->getField(0, 'timezone'));
+    $this->assertEquals("1, 3", $executable->getStyle()->getField(0, 'field_test_multiple'));
+    $this->assertEquals("1", $executable->getStyle()->getField(0, 'field_test_multiple_1'));
+    $this->assertEquals("3", $executable->getStyle()->getField(0, 'field_test_multiple_2'));
+    $this->assertEquals($date_formatter->format($this->testUsers[0]->getCreatedTime(), 'custom', 'Y'), $executable->getStyle()->getField(0, 'created'));
+    $this->assertEquals($date_formatter->format($this->testUsers[0]->getCreatedTime(), 'custom', 'H:i:s'), $executable->getStyle()->getField(0, 'created_1'));
+    $this->assertEquals($date_formatter->format($this->testUsers[0]->getCreatedTime(), 'fallback'), $executable->getStyle()->getField(0, 'created_2'));
+
+    $this->assertEquals($this->testUsers[1]->getTimeZone(), $executable->getStyle()->getField(1, 'timezone'));
+    $this->assertEquals("7, 0", $executable->getStyle()->getField(1, 'field_test_multiple'));
+    $this->assertEquals("7", $executable->getStyle()->getField(1, 'field_test_multiple_1'));
+    $this->assertEquals("0", $executable->getStyle()->getField(1, 'field_test_multiple_2'));
+    $this->assertEquals($date_formatter->format($this->testUsers[1]->getCreatedTime(), 'custom', 'Y'), $executable->getStyle()->getField(1, 'created'));
+    $this->assertEquals($date_formatter->format($this->testUsers[1]->getCreatedTime(), 'custom', 'H:i:s'), $executable->getStyle()->getField(1, 'created_1'));
+    $this->assertEquals($date_formatter->format($this->testUsers[1]->getCreatedTime(), 'fallback'), $executable->getStyle()->getField(1, 'created_2'));
+
+    $this->assertEquals($this->testUsers[2]->getTimeZone(), $executable->getStyle()->getField(2, 'timezone'));
+    $this->assertEquals("3, 5", $executable->getStyle()->getField(2, 'field_test_multiple'));
+    $this->assertEquals("3", $executable->getStyle()->getField(2, 'field_test_multiple_1'));
+    $this->assertEquals("5", $executable->getStyle()->getField(2, 'field_test_multiple_2'));
+    $this->assertEquals($date_formatter->format($this->testUsers[2]->getCreatedTime(), 'custom', 'Y'), $executable->getStyle()->getField(2, 'created'));
+    $this->assertEquals($date_formatter->format($this->testUsers[2]->getCreatedTime(), 'custom', 'H:i:s'), $executable->getStyle()->getField(2, 'created_1'));
+    $this->assertEquals($date_formatter->format($this->testUsers[2]->getCreatedTime(), 'fallback'), $executable->getStyle()->getField(2, 'created_2'));
+
+    $this->assertEquals($this->testUsers[3]->getTimeZone(), $executable->getStyle()->getField(3, 'timezone'));
+    $this->assertEquals("9, 9", $executable->getStyle()->getField(3, 'field_test_multiple'));
+    $this->assertEquals("9", $executable->getStyle()->getField(3, 'field_test_multiple_1'));
+    $this->assertEquals("9", $executable->getStyle()->getField(3, 'field_test_multiple_2'));
+    $this->assertEquals($date_formatter->format($this->testUsers[3]->getCreatedTime(), 'custom', 'Y'), $executable->getStyle()->getField(3, 'created'));
+    $this->assertEquals($date_formatter->format($this->testUsers[3]->getCreatedTime(), 'custom', 'H:i:s'), $executable->getStyle()->getField(3, 'created_1'));
+    $this->assertEquals($date_formatter->format($this->testUsers[3]->getCreatedTime(), 'fallback'), $executable->getStyle()->getField(3, 'created_2'));
+
+    $this->assertEquals($this->testUsers[4]->getTimeZone(), $executable->getStyle()->getField(4, 'timezone'));
+    $this->assertEquals("9, 0", $executable->getStyle()->getField(4, 'field_test_multiple'));
+    $this->assertEquals("9", $executable->getStyle()->getField(4, 'field_test_multiple_1'));
+    $this->assertEquals("0", $executable->getStyle()->getField(4, 'field_test_multiple_2'));
+    $this->assertEquals($date_formatter->format($this->testUsers[4]->getCreatedTime(), 'custom', 'Y'), $executable->getStyle()->getField(4, 'created'));
+    $this->assertEquals($date_formatter->format($this->testUsers[4]->getCreatedTime(), 'custom', 'H:i:s'), $executable->getStyle()->getField(4, 'created_1'));
+    $this->assertEquals($date_formatter->format($this->testUsers[4]->getCreatedTime(), 'fallback'), $executable->getStyle()->getField(4, 'created_2'));
   }
 
   /**
@@ -442,25 +442,25 @@ public function testRevisionRender() {
     $executable = Views::getView('test_field_field_revision_test');
     $executable->execute();
 
-    $this->assertEqual('1', $executable->getStyle()->getField(0, 'id'));
-    $this->assertEqual('1', $executable->getStyle()->getField(0, 'revision_id'));
-    $this->assertEqual('1', $executable->getStyle()->getField(0, 'field_test'));
-    $this->assertEqual('base value', $executable->getStyle()->getField(0, 'name'));
-
-    $this->assertEqual('1', $executable->getStyle()->getField(1, 'id'));
-    $this->assertEqual('2', $executable->getStyle()->getField(1, 'revision_id'));
-    $this->assertEqual('2', $executable->getStyle()->getField(1, 'field_test'));
-    $this->assertEqual('revision value1', $executable->getStyle()->getField(1, 'name'));
-
-    $this->assertEqual('1', $executable->getStyle()->getField(2, 'id'));
-    $this->assertEqual('3', $executable->getStyle()->getField(2, 'revision_id'));
-    $this->assertEqual('3', $executable->getStyle()->getField(2, 'field_test'));
-    $this->assertEqual('revision value2', $executable->getStyle()->getField(2, 'name'));
-
-    $this->assertEqual('2', $executable->getStyle()->getField(3, 'id'));
-    $this->assertEqual('4', $executable->getStyle()->getField(3, 'revision_id'));
-    $this->assertEqual('4', $executable->getStyle()->getField(3, 'field_test'));
-    $this->assertEqual('next entity value', $executable->getStyle()->getField(3, 'name'));
+    $this->assertEquals('1', $executable->getStyle()->getField(0, 'id'));
+    $this->assertEquals('1', $executable->getStyle()->getField(0, 'revision_id'));
+    $this->assertEquals('1', $executable->getStyle()->getField(0, 'field_test'));
+    $this->assertEquals('base value', $executable->getStyle()->getField(0, 'name'));
+
+    $this->assertEquals('1', $executable->getStyle()->getField(1, 'id'));
+    $this->assertEquals('2', $executable->getStyle()->getField(1, 'revision_id'));
+    $this->assertEquals('2', $executable->getStyle()->getField(1, 'field_test'));
+    $this->assertEquals('revision value1', $executable->getStyle()->getField(1, 'name'));
+
+    $this->assertEquals('1', $executable->getStyle()->getField(2, 'id'));
+    $this->assertEquals('3', $executable->getStyle()->getField(2, 'revision_id'));
+    $this->assertEquals('3', $executable->getStyle()->getField(2, 'field_test'));
+    $this->assertEquals('revision value2', $executable->getStyle()->getField(2, 'name'));
+
+    $this->assertEquals('2', $executable->getStyle()->getField(3, 'id'));
+    $this->assertEquals('4', $executable->getStyle()->getField(3, 'revision_id'));
+    $this->assertEquals('4', $executable->getStyle()->getField(3, 'field_test'));
+    $this->assertEquals('next entity value', $executable->getStyle()->getField(3, 'name'));
   }
 
   /**
@@ -500,33 +500,33 @@ public function testRevisionComplexRender() {
     $executable = Views::getView('test_field_field_revision_complex_test');
     $executable->execute();
 
-    $this->assertEqual('1', $executable->getStyle()->getField(0, 'id'));
-    $this->assertEqual('1', $executable->getStyle()->getField(0, 'revision_id'));
-    $this->assertEqual($this->testUsers[0]->getTimeZone(), $executable->getStyle()->getField(0, 'timezone'));
-    $this->assertEqual('1, 3, 7', $executable->getStyle()->getField(0, 'field_test_multiple'));
-    $this->assertEqual('1', $executable->getStyle()->getField(0, 'field_test_multiple_1'));
-    $this->assertEqual('3, 7', $executable->getStyle()->getField(0, 'field_test_multiple_2'));
-
-    $this->assertEqual('1', $executable->getStyle()->getField(1, 'id'));
-    $this->assertEqual('2', $executable->getStyle()->getField(1, 'revision_id'));
-    $this->assertEqual($this->testUsers[1]->getTimeZone(), $executable->getStyle()->getField(1, 'timezone'));
-    $this->assertEqual('0, 3, 5', $executable->getStyle()->getField(1, 'field_test_multiple'));
-    $this->assertEqual('0', $executable->getStyle()->getField(1, 'field_test_multiple_1'));
-    $this->assertEqual('3, 5', $executable->getStyle()->getField(1, 'field_test_multiple_2'));
-
-    $this->assertEqual('1', $executable->getStyle()->getField(2, 'id'));
-    $this->assertEqual('3', $executable->getStyle()->getField(2, 'revision_id'));
-    $this->assertEqual($this->testUsers[2]->getTimeZone(), $executable->getStyle()->getField(2, 'timezone'));
-    $this->assertEqual('9, 9, 9', $executable->getStyle()->getField(2, 'field_test_multiple'));
-    $this->assertEqual('9', $executable->getStyle()->getField(2, 'field_test_multiple_1'));
-    $this->assertEqual('9, 9', $executable->getStyle()->getField(2, 'field_test_multiple_2'));
-
-    $this->assertEqual('2', $executable->getStyle()->getField(3, 'id'));
-    $this->assertEqual('4', $executable->getStyle()->getField(3, 'revision_id'));
-    $this->assertEqual($this->testUsers[3]->getTimeZone(), $executable->getStyle()->getField(3, 'timezone'));
-    $this->assertEqual('2, 9, 9', $executable->getStyle()->getField(3, 'field_test_multiple'));
-    $this->assertEqual('2', $executable->getStyle()->getField(3, 'field_test_multiple_1'));
-    $this->assertEqual('9, 9', $executable->getStyle()->getField(3, 'field_test_multiple_2'));
+    $this->assertEquals('1', $executable->getStyle()->getField(0, 'id'));
+    $this->assertEquals('1', $executable->getStyle()->getField(0, 'revision_id'));
+    $this->assertEquals($this->testUsers[0]->getTimeZone(), $executable->getStyle()->getField(0, 'timezone'));
+    $this->assertEquals('1, 3, 7', $executable->getStyle()->getField(0, 'field_test_multiple'));
+    $this->assertEquals('1', $executable->getStyle()->getField(0, 'field_test_multiple_1'));
+    $this->assertEquals('3, 7', $executable->getStyle()->getField(0, 'field_test_multiple_2'));
+
+    $this->assertEquals('1', $executable->getStyle()->getField(1, 'id'));
+    $this->assertEquals('2', $executable->getStyle()->getField(1, 'revision_id'));
+    $this->assertEquals($this->testUsers[1]->getTimeZone(), $executable->getStyle()->getField(1, 'timezone'));
+    $this->assertEquals('0, 3, 5', $executable->getStyle()->getField(1, 'field_test_multiple'));
+    $this->assertEquals('0', $executable->getStyle()->getField(1, 'field_test_multiple_1'));
+    $this->assertEquals('3, 5', $executable->getStyle()->getField(1, 'field_test_multiple_2'));
+
+    $this->assertEquals('1', $executable->getStyle()->getField(2, 'id'));
+    $this->assertEquals('3', $executable->getStyle()->getField(2, 'revision_id'));
+    $this->assertEquals($this->testUsers[2]->getTimeZone(), $executable->getStyle()->getField(2, 'timezone'));
+    $this->assertEquals('9, 9, 9', $executable->getStyle()->getField(2, 'field_test_multiple'));
+    $this->assertEquals('9', $executable->getStyle()->getField(2, 'field_test_multiple_1'));
+    $this->assertEquals('9, 9', $executable->getStyle()->getField(2, 'field_test_multiple_2'));
+
+    $this->assertEquals('2', $executable->getStyle()->getField(3, 'id'));
+    $this->assertEquals('4', $executable->getStyle()->getField(3, 'revision_id'));
+    $this->assertEquals($this->testUsers[3]->getTimeZone(), $executable->getStyle()->getField(3, 'timezone'));
+    $this->assertEquals('2, 9, 9', $executable->getStyle()->getField(3, 'field_test_multiple'));
+    $this->assertEquals('2', $executable->getStyle()->getField(3, 'field_test_multiple_1'));
+    $this->assertEquals('9, 9', $executable->getStyle()->getField(3, 'field_test_multiple_2'));
   }
 
   /**
@@ -547,7 +547,7 @@ public function testMissingBundleFieldRender() {
     $executable = Views::getView('test_field_field_test');
     $executable->execute();
 
-    $this->assertEqual('', $executable->getStyle()->getField(6, 'field_test'));
+    $this->assertEquals('', $executable->getStyle()->getField(6, 'field_test'));
   }
 
   /**
diff --git a/core/modules/views/tests/src/Kernel/Handler/FieldFileSizeTest.php b/core/modules/views/tests/src/Kernel/Handler/FieldFileSizeTest.php
index 892e82fce8..4008fd9ca4 100644
--- a/core/modules/views/tests/src/Kernel/Handler/FieldFileSizeTest.php
+++ b/core/modules/views/tests/src/Kernel/Handler/FieldFileSizeTest.php
@@ -52,16 +52,16 @@ public function testFieldFileSize() {
     $this->executeView($view);
 
     // Test with the formatted option.
-    $this->assertEqual($view->field['age']->advancedRender($view->result[0]), '');
-    $this->assertEqual($view->field['age']->advancedRender($view->result[1]), '10 bytes');
-    $this->assertEqual($view->field['age']->advancedRender($view->result[2]), '1000 bytes');
-    $this->assertEqual($view->field['age']->advancedRender($view->result[3]), '9.77 KB');
+    $this->assertEquals($view->field['age']->advancedRender($view->result[0]), '');
+    $this->assertEquals($view->field['age']->advancedRender($view->result[1]), '10 bytes');
+    $this->assertEquals($view->field['age']->advancedRender($view->result[2]), '1000 bytes');
+    $this->assertEquals($view->field['age']->advancedRender($view->result[3]), '9.77 KB');
     // Test with the bytes option.
     $view->field['age']->options['file_size_display'] = 'bytes';
-    $this->assertEqual($view->field['age']->advancedRender($view->result[0]), '');
-    $this->assertEqual($view->field['age']->advancedRender($view->result[1]), '10');
-    $this->assertEqual($view->field['age']->advancedRender($view->result[2]), '1000');
-    $this->assertEqual($view->field['age']->advancedRender($view->result[3]), '10000');
+    $this->assertEquals($view->field['age']->advancedRender($view->result[0]), '');
+    $this->assertEquals($view->field['age']->advancedRender($view->result[1]), '10');
+    $this->assertEquals($view->field['age']->advancedRender($view->result[2]), '1000');
+    $this->assertEquals($view->field['age']->advancedRender($view->result[3]), '10000');
   }
 
 }
diff --git a/core/modules/views/tests/src/Kernel/Handler/FieldKernelTest.php b/core/modules/views/tests/src/Kernel/Handler/FieldKernelTest.php
index 677a3f5e40..476b9a9cb7 100644
--- a/core/modules/views/tests/src/Kernel/Handler/FieldKernelTest.php
+++ b/core/modules/views/tests/src/Kernel/Handler/FieldKernelTest.php
@@ -59,7 +59,7 @@ public function testRender() {
     $output = $renderer->executeInRenderContext(new RenderContext(), function () use ($view) {
       return $view->field['job']->theme($view->result[0]);
     });
-    $this->assertEqual($output, $random_text, 'Make sure the render method rendered the manual set value.');
+    $this->assertEquals($output, $random_text, 'Make sure the render method rendered the manual set value.');
   }
 
   /**
@@ -77,17 +77,17 @@ public function testQuery() {
     $view->build();
 
     // Make sure the field aliases have the expected value.
-    $this->assertEqual($id_field->aliases['job'], 'views_test_data_job');
-    $this->assertEqual($id_field->aliases['created_test'], 'views_test_data_created');
+    $this->assertEquals($id_field->aliases['job'], 'views_test_data_job');
+    $this->assertEquals($id_field->aliases['created_test'], 'views_test_data_created');
 
     $this->executeView($view);
     // Tests the getValue method with and without a field aliases.
     foreach ($this->dataSet() as $key => $row) {
       $id = $key + 1;
       $result = $view->result[$key];
-      $this->assertEqual($id_field->getValue($result), $id);
-      $this->assertEqual($id_field->getValue($result, 'job'), $row['job']);
-      $this->assertEqual($id_field->getValue($result, 'created_test'), $row['created']);
+      $this->assertEquals($id_field->getValue($result), $id);
+      $this->assertEquals($id_field->getValue($result, 'job'), $row['job']);
+      $this->assertEquals($id_field->getValue($result, 'created_test'), $row['created']);
     }
   }
 
@@ -251,7 +251,7 @@ public function testArgumentTokens() {
     });
 
     $this->assertFalse(strpos((string) $output, 'views_test_data_test_pre_render_function executed') !== FALSE, 'Ensure that the pre_render function was not executed');
-    $this->assertEqual('%1 !1', (string) $output, "Ensure that old style placeholders aren't replaced");
+    $this->assertEquals('%1 !1', (string) $output, "Ensure that old style placeholders aren't replaced");
 
     // This time use new style tokens but ensure that we still don't allow
     // arbitrary code execution.
@@ -264,7 +264,7 @@ public function testArgumentTokens() {
     });
 
     $this->assertFalse(strpos((string) $output, 'views_test_data_test_pre_render_function executed') !== FALSE, 'Ensure that the pre_render function was not executed');
-    $this->assertEqual('{{ { &quot;#pre_render&quot;: [&quot;views_test_data_test_pre_render_function&quot;]} }} {{ { &quot;#pre_render&quot;: [&quot;views_test_data_test_pre_render_function&quot;]} }}', (string) $output, 'Ensure that new style placeholders are replaced');
+    $this->assertEquals('{{ { &quot;#pre_render&quot;: [&quot;views_test_data_test_pre_render_function&quot;]} }} {{ { &quot;#pre_render&quot;: [&quot;views_test_data_test_pre_render_function&quot;]} }}', (string) $output, 'Ensure that new style placeholders are replaced');
   }
 
   /**
@@ -298,7 +298,7 @@ public function testFieldTokens() {
       $output = $renderer->executeInRenderContext(new RenderContext(), function () use ($name_field_0, $row) {
         return $name_field_0->advancedRender($row);
       });
-      $this->assertEqual($output, $expected_output_0, format_string('Test token replacement: "@token" gave "@output"', [
+      $this->assertEquals($output, $expected_output_0, format_string('Test token replacement: "@token" gave "@output"', [
         '@token' => $name_field_0->options['alter']['text'],
         '@output' => $output,
       ]));
@@ -306,7 +306,7 @@ public function testFieldTokens() {
       $output = $renderer->executeInRenderContext(new RenderContext(), function () use ($name_field_1, $row) {
         return $name_field_1->advancedRender($row);
       });
-      $this->assertEqual($output, $expected_output_1, format_string('Test token replacement: "@token" gave "@output"', [
+      $this->assertEquals($output, $expected_output_1, format_string('Test token replacement: "@token" gave "@output"', [
         '@token' => $name_field_1->options['alter']['text'],
         '@output' => $output,
       ]));
@@ -314,7 +314,7 @@ public function testFieldTokens() {
       $output = $renderer->executeInRenderContext(new RenderContext(), function () use ($name_field_2, $row) {
         return $name_field_2->advancedRender($row);
       });
-      $this->assertEqual($output, $expected_output_2, format_string('Test token replacement: "@token" gave "@output"', [
+      $this->assertEquals($output, $expected_output_2, format_string('Test token replacement: "@token" gave "@output"', [
         '@token' => $name_field_2->options['alter']['text'],
         '@output' => $output,
       ]));
@@ -343,7 +343,7 @@ public function testFieldTokens() {
     $output = $renderer->executeInRenderContext(new RenderContext(), function () use ($job_field, $row) {
       return $job_field->advancedRender($row);
     });
-    $this->assertEqual($output, $old_token, format_string('Make sure the old token style (@token => @value) is not changed in the output (@output)', [
+    $this->assertEquals($output, $old_token, format_string('Make sure the old token style (@token => @value) is not changed in the output (@output)', [
       '@value' => $random_text,
       '@output' => $output,
       '@token' => $job_field->options['alter']['text'],
@@ -357,7 +357,7 @@ public function testFieldTokens() {
     $output = $renderer->executeInRenderContext(new RenderContext(), function () use ($job_field, $row) {
       return $job_field->advancedRender($row);
     });
-    $this->assertEqual($output, '<h1>&lt;span&gt;' . $random_text . '&lt;/span&gt;</h1>', 'Valid tags are allowed in rewrite templates and token replacements.');
+    $this->assertEquals($output, '<h1>&lt;span&gt;' . $random_text . '&lt;/span&gt;</h1>', 'Valid tags are allowed in rewrite templates and token replacements.');
 
     // Verify <script> tags are correctly removed from rewritten text.
     $rewrite_template = '<script>alert("malicious");</script>';
@@ -376,7 +376,7 @@ public function testFieldTokens() {
     $output = $renderer->executeInRenderContext(new RenderContext(), function () use ($job_field, $row) {
       return $job_field->advancedRender($row);
     });
-    $this->assertEqual($output, $random_text, format_string('Make sure a script tag in the template (@template) is removed, leaving only the replaced token in the output (@output)', [
+    $this->assertEquals($output, $random_text, format_string('Make sure a script tag in the template (@template) is removed, leaving only the replaced token in the output (@output)', [
       '@output' => $output,
       '@template' => $rewrite_template,
     ]));
@@ -828,7 +828,7 @@ public function testTrimText() {
 
     foreach ($text as $key => $line) {
       $result_text = FieldPluginBase::trimText($alter, $line);
-      $this->assertEqual($result_text, $expect[$key]);
+      $this->assertEquals($result_text, $expect[$key]);
     }
 
     // Test also word_boundary
@@ -846,7 +846,7 @@ public function testTrimText() {
 
     foreach ($text as $key => $line) {
       $result_text = FieldPluginBase::trimText($alter, $line);
-      $this->assertEqual($result_text, $expect[$key]);
+      $this->assertEquals($result_text, $expect[$key]);
     }
   }
 
diff --git a/core/modules/views/tests/src/Kernel/Handler/FieldRenderedEntityTest.php b/core/modules/views/tests/src/Kernel/Handler/FieldRenderedEntityTest.php
index 02419f4847..eac72814ba 100644
--- a/core/modules/views/tests/src/Kernel/Handler/FieldRenderedEntityTest.php
+++ b/core/modules/views/tests/src/Kernel/Handler/FieldRenderedEntityTest.php
@@ -131,7 +131,7 @@ public function testRenderedEntityWithoutField() {
    *   The render array
    */
   protected function assertCacheabilityMetadata($build) {
-    $this->assertEqual([
+    $this->assertEquals([
       'config:core.entity_view_display.entity_test.entity_test.foobar',
       'config:views.view.test_field_entity_test_rendered',
       'entity_test:1',
@@ -141,7 +141,7 @@ protected function assertCacheabilityMetadata($build) {
       'entity_test_view',
     ], $build['#cache']['tags']);
 
-    $this->assertEqual([
+    $this->assertEquals([
       'entity_test_view_grants',
       'languages:language_interface',
       'theme',
@@ -157,7 +157,7 @@ protected function assertCacheabilityMetadata($build) {
    */
   protected function assertConfigDependencies(View $storage) {
     $storage->calculateDependencies();
-    $this->assertEqual([
+    $this->assertEquals([
       'config' => ['core.entity_view_mode.entity_test.foobar'],
       'module' => ['entity_test'],
     ], $storage->getDependencies());
diff --git a/core/modules/views/tests/src/Kernel/Handler/FieldUrlTest.php b/core/modules/views/tests/src/Kernel/Handler/FieldUrlTest.php
index 0814402ca6..9b192bbc3d 100644
--- a/core/modules/views/tests/src/Kernel/Handler/FieldUrlTest.php
+++ b/core/modules/views/tests/src/Kernel/Handler/FieldUrlTest.php
@@ -44,7 +44,7 @@ public function testFieldUrl() {
 
     $this->executeView($view);
 
-    $this->assertEqual('John', $view->field['name']->advancedRender($view->result[0]));
+    $this->assertEquals('John', $view->field['name']->advancedRender($view->result[0]));
 
     // Make the url a link.
     $view->destroy();
@@ -61,7 +61,7 @@ public function testFieldUrl() {
 
     $this->executeView($view);
 
-    $this->assertEqual(\Drupal::l('John', Url::fromUri('base:John'))->getGeneratedLink(), $view->field['name']->advancedRender($view->result[0]));
+    $this->assertEquals(\Drupal::l('John', Url::fromUri('base:John'))->getGeneratedLink(), $view->field['name']->advancedRender($view->result[0]));
   }
 
 }
diff --git a/core/modules/views/tests/src/Kernel/Handler/FilterBooleanOperatorStringTest.php b/core/modules/views/tests/src/Kernel/Handler/FilterBooleanOperatorStringTest.php
index 325da5106e..484473776d 100644
--- a/core/modules/views/tests/src/Kernel/Handler/FilterBooleanOperatorStringTest.php
+++ b/core/modules/views/tests/src/Kernel/Handler/FilterBooleanOperatorStringTest.php
@@ -106,7 +106,7 @@ public function testFilterBooleanOperatorString() {
       ['id' => 4],
     ];
 
-    $this->assertEqual(2, count($view->result));
+    $this->assertEquals(2, count($view->result));
     $this->assertIdenticalResultset($view, $expected_result, $this->columnMap);
 
     $view->destroy();
@@ -129,7 +129,7 @@ public function testFilterBooleanOperatorString() {
       ['id' => 5],
     ];
 
-    $this->assertEqual(3, count($view->result));
+    $this->assertEquals(3, count($view->result));
     $this->assertIdenticalResultset($view, $expected_result, $this->columnMap);
   }
 
@@ -152,7 +152,7 @@ public function testFilterGroupedExposed() {
       ['id' => 5],
     ];
 
-    $this->assertEqual(3, count($view->result));
+    $this->assertEquals(3, count($view->result));
     $this->assertIdenticalResultset($view, $expected_result, $this->columnMap);
     $view->destroy();
 
@@ -167,7 +167,7 @@ public function testFilterGroupedExposed() {
       ['id' => 4],
     ];
 
-    $this->assertEqual(2, count($view->result));
+    $this->assertEquals(2, count($view->result));
     $this->assertIdenticalResultset($view, $expected_result, $this->columnMap);
   }
 
diff --git a/core/modules/views/tests/src/Kernel/Handler/FilterBooleanOperatorTest.php b/core/modules/views/tests/src/Kernel/Handler/FilterBooleanOperatorTest.php
index 7cdd41f525..98a817bcf0 100644
--- a/core/modules/views/tests/src/Kernel/Handler/FilterBooleanOperatorTest.php
+++ b/core/modules/views/tests/src/Kernel/Handler/FilterBooleanOperatorTest.php
@@ -59,7 +59,7 @@ public function testFilterBooleanOperator() {
       ['id' => 4],
     ];
 
-    $this->assertEqual(2, count($view->result));
+    $this->assertEquals(2, count($view->result));
     $this->assertIdenticalResultset($view, $expected_result, $this->columnMap);
 
     $view->destroy();
@@ -82,7 +82,7 @@ public function testFilterBooleanOperator() {
       ['id' => 5],
     ];
 
-    $this->assertEqual(3, count($view->result));
+    $this->assertEquals(3, count($view->result));
     $this->assertIdenticalResultset($view, $expected_result, $this->columnMap);
 
     $view->destroy();
@@ -106,7 +106,7 @@ public function testFilterBooleanOperator() {
       ['id' => 5],
     ];
 
-    $this->assertEqual(3, count($view->result));
+    $this->assertEquals(3, count($view->result));
     $this->assertIdenticalResultset($view, $expected_result, $this->columnMap);
   }
 
@@ -129,7 +129,7 @@ public function testFilterGroupedExposed() {
       ['id' => 5],
     ];
 
-    $this->assertEqual(3, count($view->result));
+    $this->assertEquals(3, count($view->result));
     $this->assertIdenticalResultset($view, $expected_result, $this->columnMap);
     $view->destroy();
 
@@ -144,7 +144,7 @@ public function testFilterGroupedExposed() {
       ['id' => 4],
     ];
 
-    $this->assertEqual(2, count($view->result));
+    $this->assertEquals(2, count($view->result));
     $this->assertIdenticalResultset($view, $expected_result, $this->columnMap);
 
     $view->destroy();
@@ -162,7 +162,7 @@ public function testFilterGroupedExposed() {
       ['id' => 5],
     ];
 
-    $this->assertEqual(3, count($view->result));
+    $this->assertEquals(3, count($view->result));
     $this->assertIdenticalResultset($view, $expected_result, $this->columnMap);
   }
 
diff --git a/core/modules/views/tests/src/Kernel/Handler/FilterInOperatorTest.php b/core/modules/views/tests/src/Kernel/Handler/FilterInOperatorTest.php
index e02a8430c7..97a00a3304 100644
--- a/core/modules/views/tests/src/Kernel/Handler/FilterInOperatorTest.php
+++ b/core/modules/views/tests/src/Kernel/Handler/FilterInOperatorTest.php
@@ -65,7 +65,7 @@ public function testFilterInOperatorSimple() {
       ],
     ];
 
-    $this->assertEqual(2, count($view->result));
+    $this->assertEquals(2, count($view->result));
     $this->assertIdenticalResultset($view, $expected_result, $this->columnMap);
 
     $view->destroy();
@@ -99,7 +99,7 @@ public function testFilterInOperatorSimple() {
       ],
     ];
 
-    $this->assertEqual(3, count($view->result));
+    $this->assertEquals(3, count($view->result));
     $this->assertIdenticalResultset($view, $expected_result, $this->columnMap);
   }
 
@@ -125,7 +125,7 @@ public function testFilterInOperatorGroupedExposedSimple() {
       ],
     ];
 
-    $this->assertEqual(2, count($view->result));
+    $this->assertEquals(2, count($view->result));
     $this->assertIdenticalResultset($view, $expected_result, $this->columnMap);
   }
 
@@ -155,7 +155,7 @@ public function testFilterNotInOperatorGroupedExposedSimple() {
       ],
     ];
 
-    $this->assertEqual(3, count($view->result));
+    $this->assertEquals(3, count($view->result));
     $this->assertIdenticalResultset($view, $expected_result, $this->columnMap);
   }
 
diff --git a/core/modules/views/tests/src/Kernel/Handler/SortDateTest.php b/core/modules/views/tests/src/Kernel/Handler/SortDateTest.php
index 2d1a2fcc2f..0899530f29 100644
--- a/core/modules/views/tests/src/Kernel/Handler/SortDateTest.php
+++ b/core/modules/views/tests/src/Kernel/Handler/SortDateTest.php
@@ -190,7 +190,7 @@ public function testDateOrdering() {
         $this->executeView($view);
 
         // Verify the result.
-        $this->assertEqual(count($this->dataSet()), count($view->result), 'The number of returned rows match.');
+        $this->assertEquals(count($this->dataSet()), count($view->result), 'The number of returned rows match.');
         $this->assertIdenticalResultset($view, $this->expectedResultSet($granularity, $reverse), [
           'views_test_data_name' => 'name',
         ], SafeMarkup::format('Result is returned correctly when ordering by granularity @granularity, @reverse.', ['@granularity' => $granularity, '@reverse' => $reverse ? 'reverse' : 'forward']));
diff --git a/core/modules/views/tests/src/Kernel/Handler/SortRandomTest.php b/core/modules/views/tests/src/Kernel/Handler/SortRandomTest.php
index 941ed8d9ef..2c5b43395b 100644
--- a/core/modules/views/tests/src/Kernel/Handler/SortRandomTest.php
+++ b/core/modules/views/tests/src/Kernel/Handler/SortRandomTest.php
@@ -75,7 +75,7 @@ public function testRandomOrdering() {
     $this->executeView($view);
 
     // Verify the result.
-    $this->assertEqual(count($this->dataSet()), count($view->result), 'The number of returned rows match.');
+    $this->assertEquals(count($this->dataSet()), count($view->result), 'The number of returned rows match.');
     $this->assertIdenticalResultset($view, $this->dataSet(), [
       'views_test_data_name' => 'name',
       'views_test_data_age' => 'age',
@@ -84,7 +84,7 @@ public function testRandomOrdering() {
     // Execute a random view, we expect the result set to be different.
     $view_random = $this->getBasicRandomView();
     $this->executeView($view_random);
-    $this->assertEqual(count($this->dataSet()), count($view_random->result), 'The number of returned rows match.');
+    $this->assertEquals(count($this->dataSet()), count($view_random->result), 'The number of returned rows match.');
     $this->assertNotIdenticalResultset($view_random, $view->result, [
       'views_test_data_name' => 'views_test_data_name',
       'views_test_data_age' => 'views_test_data_name',
@@ -93,7 +93,7 @@ public function testRandomOrdering() {
     // Execute a second random view, we expect the result set to be different again.
     $view_random_2 = $this->getBasicRandomView();
     $this->executeView($view_random_2);
-    $this->assertEqual(count($this->dataSet()), count($view_random_2->result), 'The number of returned rows match.');
+    $this->assertEquals(count($this->dataSet()), count($view_random_2->result), 'The number of returned rows match.');
     $this->assertNotIdenticalResultset($view_random, $view->result, [
       'views_test_data_name' => 'views_test_data_name',
       'views_test_data_age' => 'views_test_data_name',
diff --git a/core/modules/views/tests/src/Kernel/Handler/SortTest.php b/core/modules/views/tests/src/Kernel/Handler/SortTest.php
index 91560495fb..2f962e5b97 100644
--- a/core/modules/views/tests/src/Kernel/Handler/SortTest.php
+++ b/core/modules/views/tests/src/Kernel/Handler/SortTest.php
@@ -41,7 +41,7 @@ public function testNumericOrdering() {
     $this->executeView($view);
 
     // Verify the result.
-    $this->assertEqual(count($this->dataSet()), count($view->result), 'The number of returned rows match.');
+    $this->assertEquals(count($this->dataSet()), count($view->result), 'The number of returned rows match.');
     $this->assertIdenticalResultset($view, $this->orderResultSet($this->dataSet(), 'age'), [
       'views_test_data_name' => 'name',
       'views_test_data_age' => 'age',
@@ -65,7 +65,7 @@ public function testNumericOrdering() {
     $this->executeView($view);
 
     // Verify the result.
-    $this->assertEqual(count($this->dataSet()), count($view->result), 'The number of returned rows match.');
+    $this->assertEquals(count($this->dataSet()), count($view->result), 'The number of returned rows match.');
     $this->assertIdenticalResultset($view, $this->orderResultSet($this->dataSet(), 'age', TRUE), [
       'views_test_data_name' => 'name',
       'views_test_data_age' => 'age',
@@ -94,7 +94,7 @@ public function testStringOrdering() {
     $this->executeView($view);
 
     // Verify the result.
-    $this->assertEqual(count($this->dataSet()), count($view->result), 'The number of returned rows match.');
+    $this->assertEquals(count($this->dataSet()), count($view->result), 'The number of returned rows match.');
     $this->assertIdenticalResultset($view, $this->orderResultSet($this->dataSet(), 'name'), [
       'views_test_data_name' => 'name',
       'views_test_data_age' => 'age',
@@ -118,7 +118,7 @@ public function testStringOrdering() {
     $this->executeView($view);
 
     // Verify the result.
-    $this->assertEqual(count($this->dataSet()), count($view->result), 'The number of returned rows match.');
+    $this->assertEquals(count($this->dataSet()), count($view->result), 'The number of returned rows match.');
     $this->assertIdenticalResultset($view, $this->orderResultSet($this->dataSet(), 'name', TRUE), [
       'views_test_data_name' => 'name',
       'views_test_data_age' => 'age',
diff --git a/core/modules/views/tests/src/Kernel/ModuleTest.php b/core/modules/views/tests/src/Kernel/ModuleTest.php
index 9fe9df6416..6be2e4d05a 100644
--- a/core/modules/views/tests/src/Kernel/ModuleTest.php
+++ b/core/modules/views/tests/src/Kernel/ModuleTest.php
@@ -50,7 +50,7 @@ public function testViewsGetHandler() {
         'field' => $this->randomMachineName(),
       ];
       $handler = $this->container->get('plugin.manager.views.' . $type)->getHandler($item);
-      $this->assertEqual('Drupal\views\Plugin\views\\' . $type . '\Broken', get_class($handler), new FormattableMarkup('Make sure that a broken handler of type: @type is created.', ['@type' => $type]));
+      $this->assertEquals('Drupal\views\Plugin\views\\' . $type . '\Broken', get_class($handler), new FormattableMarkup('Make sure that a broken handler of type: @type is created.', ['@type' => $type]));
     }
 
     $views_data = $this->viewsData();
@@ -98,7 +98,7 @@ public function testViewsGetHandler() {
       'field' => 'id',
     ];
     $this->container->get('plugin.manager.views.filter')->getHandler($item);
-    $this->assertEqual(strpos($this->lastErrorMessage, format_string("Missing handler: @table @field @type", ['@table' => 'table_invalid', '@field' => 'id', '@type' => 'filter'])) !== FALSE, 'An invalid table name throws a debug message.');
+    $this->assertEquals(strpos($this->lastErrorMessage, format_string("Missing handler: @table @field @type", ['@table' => 'table_invalid', '@field' => 'id', '@type' => 'filter'])) !== FALSE, 'An invalid table name throws a debug message.');
     unset($this->lastErrorMessage);
 
     $item = [
@@ -106,7 +106,7 @@ public function testViewsGetHandler() {
       'field' => 'id',
     ];
     $this->container->get('plugin.manager.views.filter')->getHandler($item);
-    $this->assertEqual(strpos($this->lastErrorMessage, format_string("Missing handler: @table @field @type", ['@table' => 'table_invalid', '@field' => 'id', '@type' => 'filter'])) !== FALSE, 'An invalid table name throws a debug message.');
+    $this->assertEquals(strpos($this->lastErrorMessage, format_string("Missing handler: @table @field @type", ['@table' => 'table_invalid', '@field' => 'id', '@type' => 'filter'])) !== FALSE, 'An invalid table name throws a debug message.');
     unset($this->lastErrorMessage);
 
     restore_error_handler();
@@ -215,11 +215,11 @@ public function testStatusFunctions() {
 
     views_enable_view($view);
     $this->assertTrue($view->status(), 'A view has been enabled.');
-    $this->assertEqual($view->status(), views_view_is_enabled($view), 'views_view_is_enabled is correct.');
+    $this->assertEquals($view->status(), views_view_is_enabled($view), 'views_view_is_enabled is correct.');
 
     views_disable_view($view);
     $this->assertFalse($view->status(), 'A view has been disabled.');
-    $this->assertEqual(!$view->status(), views_view_is_disabled($view), 'views_view_is_disabled is correct.');
+    $this->assertEquals(!$view->status(), views_view_is_disabled($view), 'views_view_is_disabled is correct.');
   }
 
   /**
@@ -259,9 +259,9 @@ public function testViewsPluginList() {
       $this->assertTrue(isset($plugin_list[$key]), SafeMarkup::format('The expected @key plugin list key was found.', ['@key' => $key]));
       $plugin_details = $plugin_list[$key];
 
-      $this->assertEqual($plugin_details['type'], $plugin_type, 'The expected plugin type was found.');
-      $this->assertEqual($plugin_details['title'], $plugin_def['title'], 'The expected plugin title was found.');
-      $this->assertEqual($plugin_details['provider'], $plugin_def['provider'], 'The expected plugin provider was found.');
+      $this->assertEquals($plugin_details['type'], $plugin_type, 'The expected plugin type was found.');
+      $this->assertEquals($plugin_details['title'], $plugin_def['title'], 'The expected plugin title was found.');
+      $this->assertEquals($plugin_details['provider'], $plugin_def['provider'], 'The expected plugin provider was found.');
       $this->assertTrue(in_array('test_view', $plugin_details['views']), 'The test_view View was found in the list of views using this plugin.');
     }
   }
@@ -275,23 +275,23 @@ public function testViewsEmbedView() {
 
     $result = views_embed_view('test_argument');
     $renderer->renderPlain($result);
-    $this->assertEqual(count($result['view_build']['#view']->result), 5);
+    $this->assertEquals(count($result['view_build']['#view']->result), 5);
 
     $result = views_embed_view('test_argument', 'default', 1);
     $renderer->renderPlain($result);
-    $this->assertEqual(count($result['view_build']['#view']->result), 1);
+    $this->assertEquals(count($result['view_build']['#view']->result), 1);
 
     $result = views_embed_view('test_argument', 'default', '1,2');
     $renderer->renderPlain($result);
-    $this->assertEqual(count($result['view_build']['#view']->result), 2);
+    $this->assertEquals(count($result['view_build']['#view']->result), 2);
 
     $result = views_embed_view('test_argument', 'default', '1,2', 'John');
     $renderer->renderPlain($result);
-    $this->assertEqual(count($result['view_build']['#view']->result), 1);
+    $this->assertEquals(count($result['view_build']['#view']->result), 1);
 
     $result = views_embed_view('test_argument', 'default', '1,2', 'John,George');
     $renderer->renderPlain($result);
-    $this->assertEqual(count($result['view_build']['#view']->result), 2);
+    $this->assertEquals(count($result['view_build']['#view']->result), 2);
   }
 
   /**
@@ -300,39 +300,39 @@ public function testViewsEmbedView() {
   public function testViewsPreview() {
     $view = Views::getView('test_argument');
     $result = $view->preview('default');
-    $this->assertEqual(count($result['#view']->result), 5);
+    $this->assertEquals(count($result['#view']->result), 5);
 
     $view = Views::getView('test_argument');
     $result = $view->preview('default', ['0' => 1]);
-    $this->assertEqual(count($result['#view']->result), 1);
+    $this->assertEquals(count($result['#view']->result), 1);
 
     $view = Views::getView('test_argument');
     $result = $view->preview('default', ['3' => 1]);
-    $this->assertEqual(count($result['#view']->result), 1);
+    $this->assertEquals(count($result['#view']->result), 1);
 
     $view = Views::getView('test_argument');
     $result = $view->preview('default', ['0' => '1,2']);
-    $this->assertEqual(count($result['#view']->result), 2);
+    $this->assertEquals(count($result['#view']->result), 2);
 
     $view = Views::getView('test_argument');
     $result = $view->preview('default', ['3' => '1,2']);
-    $this->assertEqual(count($result['#view']->result), 2);
+    $this->assertEquals(count($result['#view']->result), 2);
 
     $view = Views::getView('test_argument');
     $result = $view->preview('default', ['0' => '1,2', '1' => 'John']);
-    $this->assertEqual(count($result['#view']->result), 1);
+    $this->assertEquals(count($result['#view']->result), 1);
 
     $view = Views::getView('test_argument');
     $result = $view->preview('default', ['3' => '1,2', '4' => 'John']);
-    $this->assertEqual(count($result['#view']->result), 1);
+    $this->assertEquals(count($result['#view']->result), 1);
 
     $view = Views::getView('test_argument');
     $result = $view->preview('default', ['0' => '1,2', '1' => 'John,George']);
-    $this->assertEqual(count($result['#view']->result), 2);
+    $this->assertEquals(count($result['#view']->result), 2);
 
     $view = Views::getView('test_argument');
     $result = $view->preview('default', ['3' => '1,2', '4' => 'John,George']);
-    $this->assertEqual(count($result['#view']->result), 2);
+    $this->assertEquals(count($result['#view']->result), 2);
   }
 
   /**
@@ -364,7 +364,7 @@ public function assertInstanceHandler($handler, $table, $field, $id) {
     $table_data = $this->container->get('views.views_data')->get($table);
     $field_data = $table_data[$field][$id];
 
-    $this->assertEqual($field_data['id'], $handler->getPluginId());
+    $this->assertEquals($field_data['id'], $handler->getPluginId());
   }
 
 }
diff --git a/core/modules/views/tests/src/Kernel/Plugin/CacheTest.php b/core/modules/views/tests/src/Kernel/Plugin/CacheTest.php
index 9f6066eff3..24bf23fc05 100644
--- a/core/modules/views/tests/src/Kernel/Plugin/CacheTest.php
+++ b/core/modules/views/tests/src/Kernel/Plugin/CacheTest.php
@@ -81,7 +81,7 @@ public function testTimeResultCaching() {
     // Test the default (non-paged) display.
     $this->executeView($view);
     // Verify the result.
-    $this->assertEqual(5, count($view->result), 'The number of returned rows match.');
+    $this->assertEquals(5, count($view->result), 'The number of returned rows match.');
 
     // Add another man to the beatles.
     $record = [
@@ -97,7 +97,7 @@ public function testTimeResultCaching() {
     $view->destroy();
     $this->executeView($view);
     // Verify the result.
-    $this->assertEqual(5, count($view->result), 'The number of returned rows match.');
+    $this->assertEquals(5, count($view->result), 'The number of returned rows match.');
   }
 
   /**
@@ -141,7 +141,7 @@ public function testTimeResultCachingWithFilter() {
     $dataset = [['name' => 'John']];
 
     // Verify the result.
-    $this->assertEqual(1, count($view->result), 'The number of returned rows match.');
+    $this->assertEquals(1, count($view->result), 'The number of returned rows match.');
     $this->assertIdenticalResultSet($view, $dataset, [
       'views_test_data_name' => 'name',
     ]);
@@ -172,7 +172,7 @@ public function testTimeResultCachingWithFilter() {
     $dataset = [['name' => 'Ringo']];
 
     // Verify the result.
-    $this->assertEqual(1, count($view->result), 'The number of returned rows match.');
+    $this->assertEquals(1, count($view->result), 'The number of returned rows match.');
     $this->assertIdenticalResultSet($view, $dataset, [
       'views_test_data_name' => 'name',
     ]);
@@ -235,7 +235,7 @@ public function testNoneResultCaching() {
 
     $this->executeView($view);
     // Verify the result.
-    $this->assertEqual(5, count($view->result), 'The number of returned rows match.');
+    $this->assertEquals(5, count($view->result), 'The number of returned rows match.');
 
     // Add another man to the beatles.
     $record = [
@@ -255,7 +255,7 @@ public function testNoneResultCaching() {
 
     $this->executeView($view);
     // Verify the result.
-    $this->assertEqual(6, count($view->result), 'The number of returned rows match.');
+    $this->assertEquals(6, count($view->result), 'The number of returned rows match.');
   }
 
   /**
@@ -292,10 +292,10 @@ public function testHeaderStorage() {
     });
 
     $this->assertTrue(in_array('views_test_data/test', $output['#attached']['library']), 'Make sure libraries are added for cached views.');
-    $this->assertEqual(['foo' => 'bar'], $output['#attached']['drupalSettings'], 'Make sure drupalSettings are added for cached views.');
+    $this->assertEquals(['foo' => 'bar'], $output['#attached']['drupalSettings'], 'Make sure drupalSettings are added for cached views.');
     // Note: views_test_data_views_pre_render() adds some cache tags.
-    $this->assertEqual(['config:views.view.test_cache_header_storage', 'views_test_data:1'], $output['#cache']['tags']);
-    $this->assertEqual(['non-existing-placeholder-just-for-testing-purposes' => ['#lazy_builder' => ['views_test_data_placeholders', ['bar']]]], $output['#attached']['placeholders']);
+    $this->assertEquals(['config:views.view.test_cache_header_storage', 'views_test_data:1'], $output['#cache']['tags']);
+    $this->assertEquals(['non-existing-placeholder-just-for-testing-purposes' => ['#lazy_builder' => ['views_test_data_placeholders', ['bar']]]], $output['#attached']['placeholders']);
     $this->assertFalse(!empty($view->build_info['pre_render_called']), 'Make sure hook_views_pre_render is not called for the cached view.');
   }
 
@@ -310,7 +310,7 @@ public function testSubqueryStringCache() {
     // Request for the cache.
     $cid = 'views_relationship_groupwise_max:test_groupwise_term_ui:default:tid_representative';
     $cache = \Drupal::cache('data')->get($cid);
-    $this->assertEqual($cid, $cache->cid, 'Subquery String cached as expected.');
+    $this->assertEquals($cid, $cache->cid, 'Subquery String cached as expected.');
   }
 
   /**
diff --git a/core/modules/views/tests/src/Kernel/Plugin/DisplayExtenderTest.php b/core/modules/views/tests/src/Kernel/Plugin/DisplayExtenderTest.php
index 6f7154d10c..4b5724f786 100644
--- a/core/modules/views/tests/src/Kernel/Plugin/DisplayExtenderTest.php
+++ b/core/modules/views/tests/src/Kernel/Plugin/DisplayExtenderTest.php
@@ -26,12 +26,12 @@ class DisplayExtenderTest extends ViewsKernelTestBase {
    */
   public function testDisplayExtenders() {
     $this->config('views.settings')->set('display_extenders', ['display_extender_test'])->save();
-    $this->assertEqual(count(Views::getEnabledDisplayExtenders()), 1, 'Make sure that there is only one enabled display extender.');
+    $this->assertEquals(count(Views::getEnabledDisplayExtenders()), 1, 'Make sure that there is only one enabled display extender.');
 
     $view = Views::getView('test_view');
     $view->initDisplay();
 
-    $this->assertEqual(count($view->display_handler->getExtenders()), 1, 'Make sure that only one extender is initialized.');
+    $this->assertEquals(count($view->display_handler->getExtenders()), 1, 'Make sure that only one extender is initialized.');
 
     $display_extender = $view->display_handler->getExtenders()['display_extender_test'];
     $this->assertTrue($display_extender instanceof DisplayExtenderTestData, 'Make sure the right class got initialized.');
diff --git a/core/modules/views/tests/src/Kernel/Plugin/DisplayPageTest.php b/core/modules/views/tests/src/Kernel/Plugin/DisplayPageTest.php
index 3232ecb815..36b9ba9972 100644
--- a/core/modules/views/tests/src/Kernel/Plugin/DisplayPageTest.php
+++ b/core/modules/views/tests/src/Kernel/Plugin/DisplayPageTest.php
@@ -46,15 +46,15 @@ public function testPageResponses() {
     \Drupal::currentUser()->setAccount(new AnonymousUserSession());
     $subrequest = Request::create('/test_page_display_403', 'GET');
     $response = $this->container->get('http_kernel')->handle($subrequest, HttpKernelInterface::SUB_REQUEST);
-    $this->assertEqual($response->getStatusCode(), 403);
+    $this->assertEquals($response->getStatusCode(), 403);
 
     $subrequest = Request::create('/test_page_display_404', 'GET');
     $response = $this->container->get('http_kernel')->handle($subrequest, HttpKernelInterface::SUB_REQUEST);
-    $this->assertEqual($response->getStatusCode(), 404);
+    $this->assertEquals($response->getStatusCode(), 404);
 
     $subrequest = Request::create('/test_page_display_200', 'GET');
     $response = $this->container->get('http_kernel')->handle($subrequest, HttpKernelInterface::SUB_REQUEST);
-    $this->assertEqual($response->getStatusCode(), 200);
+    $this->assertEquals($response->getStatusCode(), 200);
 
     $subrequest = Request::create('/test_page_display_200', 'GET');
     \Drupal::getContainer()->get('request_stack')->push($subrequest);
@@ -68,7 +68,7 @@ public function testPageResponses() {
     \Drupal::service('router.builder')->rebuild();
 
     $response = $this->container->get('http_kernel')->handle($subrequest, HttpKernelInterface::SUB_REQUEST);
-    $this->assertEqual($response->getStatusCode(), 404);
+    $this->assertEquals($response->getStatusCode(), 404);
   }
 
   /**
@@ -79,36 +79,36 @@ public function testPageRouterItems() {
 
     // Check the controller defaults.
     foreach ($collection as $id => $route) {
-      $this->assertEqual($route->getDefault('_controller'), 'Drupal\views\Routing\ViewPageController::handle');
+      $this->assertEquals($route->getDefault('_controller'), 'Drupal\views\Routing\ViewPageController::handle');
       $id_parts = explode('.', $id);
-      $this->assertEqual($route->getDefault('view_id'), $id_parts[1]);
-      $this->assertEqual($route->getDefault('display_id'), $id_parts[2]);
+      $this->assertEquals($route->getDefault('view_id'), $id_parts[1]);
+      $this->assertEquals($route->getDefault('display_id'), $id_parts[2]);
     }
 
     // Check the generated patterns and default values.
     $route = $collection->get('view.test_page_display_route.page_1');
-    $this->assertEqual($route->getPath(), '/test_route_without_arguments');
+    $this->assertEquals($route->getPath(), '/test_route_without_arguments');
 
     $route = $collection->get('view.test_page_display_route.page_2');
-    $this->assertEqual($route->getPath(), '/test_route_with_argument/{arg_0}');
+    $this->assertEquals($route->getPath(), '/test_route_with_argument/{arg_0}');
     $this->assertTrue($route->hasDefault('arg_0'), 'A default value is set for the optional argument id.');
 
     $route = $collection->get('view.test_page_display_route.page_3');
-    $this->assertEqual($route->getPath(), '/test_route_with_argument/{arg_0}/suffix');
+    $this->assertEquals($route->getPath(), '/test_route_with_argument/{arg_0}/suffix');
     $this->assertFalse($route->hasDefault('arg_0'), 'No default value is set for the required argument id.');
 
     $route = $collection->get('view.test_page_display_route.page_4');
-    $this->assertEqual($route->getPath(), '/test_route_with_argument/{arg_0}/suffix/{arg_1}');
+    $this->assertEquals($route->getPath(), '/test_route_with_argument/{arg_0}/suffix/{arg_1}');
     $this->assertFalse($route->hasDefault('arg_0'), 'No default value is set for the required argument id.');
     $this->assertTrue($route->hasDefault('arg_1'), 'A default value is set for the optional argument id_2.');
 
     $route = $collection->get('view.test_page_display_route.page_5');
-    $this->assertEqual($route->getPath(), '/test_route_with_argument/{arg_0}/{arg_1}');
+    $this->assertEquals($route->getPath(), '/test_route_with_argument/{arg_0}/{arg_1}');
     $this->assertTrue($route->hasDefault('arg_0'), 'A default value is set for the optional argument id.');
     $this->assertTrue($route->hasDefault('arg_1'), 'A default value is set for the optional argument id_2.');
 
     $route = $collection->get('view.test_page_display_route.page_6');
-    $this->assertEqual($route->getPath(), '/test_route_with_argument/{arg_0}/{arg_1}');
+    $this->assertEquals($route->getPath(), '/test_route_with_argument/{arg_0}/{arg_1}');
     $this->assertFalse($route->hasDefault('arg_0'), 'No default value is set for the required argument id.');
     $this->assertFalse($route->hasDefault('arg_1'), 'No default value is set for the required argument id_2.');
   }
@@ -121,9 +121,9 @@ public function testMenuLinks() {
     $tree = \Drupal::menuTree()->load('admin', new MenuTreeParameters());
     $this->assertTrue(isset($tree['system.admin']->subtree['views_view:views.test_page_display_menu.page_4']));
     $menu_link = $tree['system.admin']->subtree['views_view:views.test_page_display_menu.page_4']->link;
-    $this->assertEqual($menu_link->getTitle(), 'Test child (with parent)');
-    $this->assertEqual($menu_link->isExpanded(), TRUE);
-    $this->assertEqual($menu_link->getDescription(), 'Sample description.');
+    $this->assertEquals($menu_link->getTitle(), 'Test child (with parent)');
+    $this->assertEquals($menu_link->isExpanded(), TRUE);
+    $this->assertEquals($menu_link->getDescription(), 'Sample description.');
   }
 
   /**
@@ -167,8 +167,8 @@ public function testReadMore() {
 
     $this->setRawContent($output);
     $result = $this->xpath('//div[@class=:class]/a', [':class' => 'more-link']);
-    $this->assertEqual($result[0]->attributes()->href, \Drupal::url('view.test_display_more.page_1'), 'The right more link is shown.');
-    $this->assertEqual(trim($result[0][0]), $expected_more_text, 'The right link text is shown.');
+    $this->assertEquals($result[0]->attributes()->href, \Drupal::url('view.test_display_more.page_1'), 'The right more link is shown.');
+    $this->assertEquals(trim($result[0][0]), $expected_more_text, 'The right link text is shown.');
 
     // Test the renderMoreLink method directly. This could be directly unit
     // tested.
@@ -176,13 +176,13 @@ public function testReadMore() {
     $more_link = $renderer->renderRoot($more_link);
     $this->setRawContent($more_link);
     $result = $this->xpath('//div[@class=:class]/a', [':class' => 'more-link']);
-    $this->assertEqual($result[0]->attributes()->href, \Drupal::url('view.test_display_more.page_1'), 'The right more link is shown.');
-    $this->assertEqual(trim($result[0][0]), $expected_more_text, 'The right link text is shown.');
+    $this->assertEquals($result[0]->attributes()->href, \Drupal::url('view.test_display_more.page_1'), 'The right more link is shown.');
+    $this->assertEquals(trim($result[0][0]), $expected_more_text, 'The right link text is shown.');
 
     // Test the useMoreText method directly. This could be directly unit
     // tested.
     $more_text = $view->display_handler->useMoreText();
-    $this->assertEqual($more_text, $expected_more_text, 'The right more text is chosen.');
+    $this->assertEquals($more_text, $expected_more_text, 'The right more text is chosen.');
 
     $view = Views::getView('test_display_more');
     $view->setDisplay();
diff --git a/core/modules/views/tests/src/Kernel/Plugin/ExposedFormRenderTest.php b/core/modules/views/tests/src/Kernel/Plugin/ExposedFormRenderTest.php
index 6767fffe3c..4563db7977 100644
--- a/core/modules/views/tests/src/Kernel/Plugin/ExposedFormRenderTest.php
+++ b/core/modules/views/tests/src/Kernel/Plugin/ExposedFormRenderTest.php
@@ -49,7 +49,7 @@ public function testExposedFormRender() {
     $this->assertFieldByXPath('//form/@action', $expected_action, 'The expected value for the action attribute was found.');
     // Make sure the description is shown.
     $result = $this->xpath('//form//div[contains(@id, :id) and normalize-space(text())=:description]', [':id' => 'edit-type--description', ':description' => t('Exposed description')]);
-    $this->assertEqual(count($result), 1, 'Filter description was found.');
+    $this->assertEquals(count($result), 1, 'Filter description was found.');
   }
 
 }
diff --git a/core/modules/views/tests/src/Kernel/Plugin/JoinTest.php b/core/modules/views/tests/src/Kernel/Plugin/JoinTest.php
index 1c196a1d98..c9d0e31ff5 100644
--- a/core/modules/views/tests/src/Kernel/Plugin/JoinTest.php
+++ b/core/modules/views/tests/src/Kernel/Plugin/JoinTest.php
@@ -99,10 +99,10 @@ public function testBasePlugin() {
 
     $tables = $query->getTables();
     $join_info = $tables['users_field_data'];
-    $this->assertEqual($join_info['join type'], 'LEFT', 'Make sure the default join type is LEFT');
-    $this->assertEqual($join_info['table'], $configuration['table']);
-    $this->assertEqual($join_info['alias'], 'users_field_data');
-    $this->assertEqual($join_info['condition'], 'views_test_data.uid = users_field_data.uid');
+    $this->assertEquals($join_info['join type'], 'LEFT', 'Make sure the default join type is LEFT');
+    $this->assertEquals($join_info['table'], $configuration['table']);
+    $this->assertEquals($join_info['alias'], 'users_field_data');
+    $this->assertEquals($join_info['condition'], 'views_test_data.uid = users_field_data.uid');
 
     // Set a different alias and make sure table info is as expected.
     $join = $this->manager->createInstance('standard', $configuration);
@@ -111,7 +111,7 @@ public function testBasePlugin() {
 
     $tables = $query->getTables();
     $join_info = $tables['users1'];
-    $this->assertEqual($join_info['alias'], 'users1');
+    $this->assertEquals($join_info['alias'], 'users1');
 
     // Set a different join type (INNER) and make sure it is used.
     $configuration['type'] = 'INNER';
@@ -121,7 +121,7 @@ public function testBasePlugin() {
 
     $tables = $query->getTables();
     $join_info = $tables['users2'];
-    $this->assertEqual($join_info['join type'], 'INNER');
+    $this->assertEquals($join_info['join type'], 'INNER');
 
     // Setup addition conditions and make sure it is used.
     $random_name_1 = $this->randomMachineName();
@@ -146,7 +146,7 @@ public function testBasePlugin() {
     $this->assertTrue(strpos($join_info['condition'], "views_test_data.uid = users3.uid") !== FALSE, 'Make sure the join condition appears in the query.');
     $this->assertTrue(strpos($join_info['condition'], "users3.name = :views_join_condition_0") !== FALSE, 'Make sure the first extra join condition appears in the query and uses the first placeholder.');
     $this->assertTrue(strpos($join_info['condition'], "users3.name <> :views_join_condition_1") !== FALSE, 'Make sure the second extra join condition appears in the query and uses the second placeholder.');
-    $this->assertEqual(array_values($join_info['arguments']), [$random_name_1, $random_name_2], 'Make sure the arguments are in the right order');
+    $this->assertEquals(array_values($join_info['arguments']), [$random_name_1, $random_name_2], 'Make sure the arguments are in the right order');
 
     // Test that 'IN' conditions are properly built.
     $random_name_1 = $this->randomMachineName();
@@ -172,7 +172,7 @@ public function testBasePlugin() {
     $this->assertTrue(strpos($join_info['condition'], "views_test_data.uid = users4.uid") !== FALSE, 'Make sure the join condition appears in the query.');
     $this->assertTrue(strpos($join_info['condition'], "users4.name = :views_join_condition_2") !== FALSE, 'Make sure the first extra join condition appears in the query.');
     $this->assertTrue(strpos($join_info['condition'], "users4.name IN ( :views_join_condition_3[] )") !== FALSE, 'The IN condition for the join is properly formed.');
-    $this->assertEqual($join_info['arguments'][':views_join_condition_3[]'], [$random_name_2, $random_name_3, $random_name_4], 'Make sure the IN arguments are still part of an array.');
+    $this->assertEquals($join_info['arguments'][':views_join_condition_3[]'], [$random_name_2, $random_name_3, $random_name_4], 'Make sure the IN arguments are still part of an array.');
 
     // Test that all the conditions are properly built.
     $configuration['extra'] = [
@@ -200,7 +200,7 @@ public function testBasePlugin() {
     $this->assertTrue(strpos($join_info['condition'], "users5.langcode = :views_join_condition_4") !== FALSE, 'Make sure the first extra join condition appears in the query.');
     $this->assertTrue(strpos($join_info['condition'], "views_test_data.status = :views_join_condition_5") !== FALSE, 'Make sure the second extra join condition appears in the query.');
     $this->assertTrue(strpos($join_info['condition'], "users5.name = views_test_data.name") !== FALSE, 'Make sure the third extra join condition appears in the query.');
-    $this->assertEqual(array_values($join_info['arguments']), ['en', 0], 'Make sure the arguments are in the right order');
+    $this->assertEquals(array_values($join_info['arguments']), ['en', 0], 'Make sure the arguments are in the right order');
   }
 
 }
diff --git a/core/modules/views/tests/src/Kernel/Plugin/QueryTest.php b/core/modules/views/tests/src/Kernel/Plugin/QueryTest.php
index 02548b25c9..5932732c13 100644
--- a/core/modules/views/tests/src/Kernel/Plugin/QueryTest.php
+++ b/core/modules/views/tests/src/Kernel/Plugin/QueryTest.php
@@ -71,7 +71,7 @@ protected function queryMethodsTests() {
     $this->assertFalse($view->query->getLimit(), 'Default to an empty limit.');
     $rand_number = rand(5, 10);
     $view->query->setLimit($rand_number);
-    $this->assertEqual($view->query->getLimit(), $rand_number, 'set_limit adapts the amount of items.');
+    $this->assertEquals($view->query->getLimit(), $rand_number, 'set_limit adapts the amount of items.');
   }
 
 }
diff --git a/core/modules/views/tests/src/Kernel/Plugin/RelationshipTest.php b/core/modules/views/tests/src/Kernel/Plugin/RelationshipTest.php
index 802befe1ca..fe1f2a3110 100644
--- a/core/modules/views/tests/src/Kernel/Plugin/RelationshipTest.php
+++ b/core/modules/views/tests/src/Kernel/Plugin/RelationshipTest.php
@@ -170,9 +170,9 @@ public function testRelationshipRender() {
 
     // Check that the output contains correct values.
     $xpath = '//div[@class="views-row" and div[@class="views-field views-field-id"]=:id and div[@class="views-field views-field-author"]=:author]';
-    $this->assertEqual(1, count($this->xpath($xpath, [':id' => 1, ':author' => $author1->getUsername()])));
-    $this->assertEqual(1, count($this->xpath($xpath, [':id' => 2, ':author' => $author2->getUsername()])));
-    $this->assertEqual(1, count($this->xpath($xpath, [':id' => 3, ':author' => ''])));
+    $this->assertEquals(1, count($this->xpath($xpath, [':id' => 1, ':author' => $author1->getUsername()])));
+    $this->assertEquals(1, count($this->xpath($xpath, [':id' => 2, ':author' => $author2->getUsername()])));
+    $this->assertEquals(1, count($this->xpath($xpath, [':id' => 3, ':author' => ''])));
   }
 
 }
diff --git a/core/modules/views/tests/src/Kernel/Plugin/RowRenderCacheTest.php b/core/modules/views/tests/src/Kernel/Plugin/RowRenderCacheTest.php
index 223963e2d0..5cf3bfde58 100644
--- a/core/modules/views/tests/src/Kernel/Plugin/RowRenderCacheTest.php
+++ b/core/modules/views/tests/src/Kernel/Plugin/RowRenderCacheTest.php
@@ -165,26 +165,26 @@ protected function doTestRenderedOutput(AccountInterface $account, $check_cache
       $counter = $index + 1;
       $expected = "$nid: $counter (just in case: $nid)";
       $counter_output = $view->style_plugin->getField($index, 'counter');
-      $this->assertEqual($counter_output, $expected);
+      $this->assertEquals($counter_output, $expected);
 
       $node_url = $node->url();
       $expected = "<a href=\"$node_url\"><span class=\"da-title\">{$node->label()}</span> <span class=\"counter\">$counter_output</span></a>";
       $output = $view->style_plugin->getField($index, 'title');
-      $this->assertEqual($output, $expected);
+      $this->assertEquals($output, $expected);
 
       $expected = $access ? "<a href=\"$node_url/edit?destination=/\" hreflang=\"en\">edit</a>" : "";
       $output = $view->style_plugin->getField($index, 'edit_node');
-      $this->assertEqual($output, $expected);
+      $this->assertEquals($output, $expected);
 
       $expected = $access ? "<a href=\"$node_url/delete?destination=/\" hreflang=\"en\">delete</a>" : "";
       $output = $view->style_plugin->getField($index, 'delete_node');
-      $this->assertEqual($output, $expected);
+      $this->assertEquals($output, $expected);
       $expected = $access ? '  <div class="dropbutton-wrapper"><div class="dropbutton-widget"><ul class="dropbutton">' .
         '<li><a href="' . $node_url . '/edit?destination=/" hreflang="en">Edit</a></li>' .
         '<li><a href="' . $node_url . '/delete?destination=/" hreflang="en">Delete</a></li>' .
         '</ul></div></div>' : '';
       $output = $view->style_plugin->getField($index, 'operations');
-      $this->assertEqual($output, $expected);
+      $this->assertEquals($output, $expected);
 
       if ($check_cache) {
         $keys = $cache_plugin->getRowCacheKeys($view->result[$index]);
diff --git a/core/modules/views/tests/src/Kernel/Plugin/ViewsBlockTest.php b/core/modules/views/tests/src/Kernel/Plugin/ViewsBlockTest.php
index 879f6d44d5..d15f7bb9ce 100644
--- a/core/modules/views/tests/src/Kernel/Plugin/ViewsBlockTest.php
+++ b/core/modules/views/tests/src/Kernel/Plugin/ViewsBlockTest.php
@@ -49,7 +49,7 @@ public function testMachineNameSuggestion() {
     $plugin_id = 'views_block:test_view_block-block_1';
     $views_block = ViewsBlock::create($this->container, [], $plugin_id, $plugin_definition);
 
-    $this->assertEqual($views_block->getMachineNameSuggestion(), 'views_block__test_view_block_block_1');
+    $this->assertEquals($views_block->getMachineNameSuggestion(), 'views_block__test_view_block_block_1');
   }
 
   /**
diff --git a/core/modules/views/tests/src/Kernel/QueryGroupByTest.php b/core/modules/views/tests/src/Kernel/QueryGroupByTest.php
index e4a088459f..16850f193f 100644
--- a/core/modules/views/tests/src/Kernel/QueryGroupByTest.php
+++ b/core/modules/views/tests/src/Kernel/QueryGroupByTest.php
@@ -61,7 +61,7 @@ public function testAggregateCount() {
     $view = Views::getView('test_aggregate_count');
     $this->executeView($view);
 
-    $this->assertEqual(count($view->result), 2, 'Make sure the count of items is right.');
+    $this->assertEquals(count($view->result), 2, 'Make sure the count of items is right.');
 
     $types = [];
     foreach ($view->result as $item) {
@@ -69,8 +69,8 @@ public function testAggregateCount() {
       $types[$item->entity_test_name] = $item->num_records;
     }
 
-    $this->assertEqual($types['name1'], 4, 'Groupby the name: name1 returned the expected amount of results.');
-    $this->assertEqual($types['name2'], 3, 'Groupby the name: name2 returned the expected amount of results.');
+    $this->assertEquals($types['name1'], 4, 'Groupby the name: name1 returned the expected amount of results.');
+    $this->assertEquals($types['name2'], 3, 'Groupby the name: name2 returned the expected amount of results.');
   }
 
   /**
@@ -99,14 +99,14 @@ public function groupByTestHelper($aggregation_function, $values) {
 
     $this->executeView($view);
 
-    $this->assertEqual(count($view->result), 2, 'Make sure the count of items is right.');
+    $this->assertEquals(count($view->result), 2, 'Make sure the count of items is right.');
     // Group by name to identify the right count.
     $results = [];
     foreach ($view->result as $item) {
       $results[$item->entity_test_name] = $item->id;
     }
-    $this->assertEqual($results['name1'], $values[0], format_string('Aggregation with @aggregation_function and groupby name: name1 returned the expected amount of results', ['@aggregation_function' => $aggregation_function]));
-    $this->assertEqual($results['name2'], $values[1], format_string('Aggregation with @aggregation_function and groupby name: name2 returned the expected amount of results', ['@aggregation_function' => $aggregation_function]));
+    $this->assertEquals($results['name1'], $values[0], format_string('Aggregation with @aggregation_function and groupby name: name1 returned the expected amount of results', ['@aggregation_function' => $aggregation_function]));
+    $this->assertEquals($results['name2'], $values[1], format_string('Aggregation with @aggregation_function and groupby name: name2 returned the expected amount of results', ['@aggregation_function' => $aggregation_function]));
   }
 
   /**
@@ -246,12 +246,12 @@ public function testGroupByFieldWithCardinality() {
 
     $view = Views::getView('test_group_by_count_multicardinality');
     $this->executeView($view);
-    $this->assertEqual(2, count($view->result));
+    $this->assertEquals(2, count($view->result));
 
-    $this->assertEqual('3', $view->getStyle()->getField(0, 'id'));
-    $this->assertEqual('1', $view->getStyle()->getField(0, 'field_test'));
-    $this->assertEqual('6', $view->getStyle()->getField(1, 'id'));
-    $this->assertEqual('2', $view->getStyle()->getField(1, 'field_test'));
+    $this->assertEquals('3', $view->getStyle()->getField(0, 'id'));
+    $this->assertEquals('1', $view->getStyle()->getField(0, 'field_test'));
+    $this->assertEquals('6', $view->getStyle()->getField(1, 'id'));
+    $this->assertEquals('2', $view->getStyle()->getField(1, 'field_test'));
 
     $entities[2]->field_test[0]->value = 3;
     $entities[2]->field_test[1]->value = 4;
@@ -260,18 +260,18 @@ public function testGroupByFieldWithCardinality() {
 
     $view = Views::getView('test_group_by_count_multicardinality');
     $this->executeView($view);
-    $this->assertEqual(5, count($view->result));
-
-    $this->assertEqual('3', $view->getStyle()->getField(0, 'id'));
-    $this->assertEqual('1', $view->getStyle()->getField(0, 'field_test'));
-    $this->assertEqual('3', $view->getStyle()->getField(1, 'id'));
-    $this->assertEqual('2', $view->getStyle()->getField(1, 'field_test'));
-    $this->assertEqual('1', $view->getStyle()->getField(2, 'id'));
-    $this->assertEqual('3', $view->getStyle()->getField(2, 'field_test'));
-    $this->assertEqual('1', $view->getStyle()->getField(3, 'id'));
-    $this->assertEqual('4', $view->getStyle()->getField(3, 'field_test'));
-    $this->assertEqual('1', $view->getStyle()->getField(4, 'id'));
-    $this->assertEqual('5', $view->getStyle()->getField(4, 'field_test'));
+    $this->assertEquals(5, count($view->result));
+
+    $this->assertEquals('3', $view->getStyle()->getField(0, 'id'));
+    $this->assertEquals('1', $view->getStyle()->getField(0, 'field_test'));
+    $this->assertEquals('3', $view->getStyle()->getField(1, 'id'));
+    $this->assertEquals('2', $view->getStyle()->getField(1, 'field_test'));
+    $this->assertEquals('1', $view->getStyle()->getField(2, 'id'));
+    $this->assertEquals('3', $view->getStyle()->getField(2, 'field_test'));
+    $this->assertEquals('1', $view->getStyle()->getField(3, 'id'));
+    $this->assertEquals('4', $view->getStyle()->getField(3, 'field_test'));
+    $this->assertEquals('1', $view->getStyle()->getField(4, 'id'));
+    $this->assertEquals('5', $view->getStyle()->getField(4, 'field_test'));
 
     // Check that translated values are correctly retrieved and are not grouped
     // into the original entity.
@@ -282,9 +282,9 @@ public function testGroupByFieldWithCardinality() {
     $view = Views::getView('test_group_by_count_multicardinality');
     $this->executeView($view);
 
-    $this->assertEqual(6, count($view->result));
-    $this->assertEqual('3', $view->getStyle()->getField(5, 'id'));
-    $this->assertEqual('6', $view->getStyle()->getField(5, 'field_test'));
+    $this->assertEquals(6, count($view->result));
+    $this->assertEquals('3', $view->getStyle()->getField(5, 'id'));
+    $this->assertEquals('6', $view->getStyle()->getField(5, 'field_test'));
   }
 
   /**
@@ -322,13 +322,13 @@ public function testGroupByWithFieldsNotExistingOnBundle() {
     $view = Views::getView('test_group_by_field_not_within_bundle');
     $this->executeView($view);
 
-    $this->assertEqual(2, count($view->result));
+    $this->assertEquals(2, count($view->result));
     // The first result is coming from entity_test_mul2, so no field could be
     // rendered.
-    $this->assertEqual('', $view->getStyle()->getField(0, 'field_test'));
+    $this->assertEquals('', $view->getStyle()->getField(0, 'field_test'));
     // The second result is coming from entity_test_mul, so its field value
     // could be rendered.
-    $this->assertEqual('1', $view->getStyle()->getField(1, 'field_test'));
+    $this->assertEquals('1', $view->getStyle()->getField(1, 'field_test'));
   }
 
 }
diff --git a/core/modules/views/tests/src/Kernel/RenderCacheIntegrationTest.php b/core/modules/views/tests/src/Kernel/RenderCacheIntegrationTest.php
index 02e90cd502..e21ba1ac81 100644
--- a/core/modules/views/tests/src/Kernel/RenderCacheIntegrationTest.php
+++ b/core/modules/views/tests/src/Kernel/RenderCacheIntegrationTest.php
@@ -167,9 +167,9 @@ protected function assertCacheTagsForFieldBasedView($do_assert_views_caches) {
 
       $result = $this->cssSelect('div.views-row');
       $count = count($result);
-      $this->assertEqual($count, 1);
+      $this->assertEquals($count, 1);
 
-      $this->assertEqual((string) $result[0]->div->span, (string) $entity->id());
+      $this->assertEquals((string) $result[0]->div->span, (string) $entity->id());
     };
 
     // Execute the view once with a static renderable and one with a full
@@ -284,7 +284,7 @@ public function testBuildRenderableWithCacheContexts() {
     $executable = $view->getExecutable();
 
     $build = $executable->buildRenderable();
-    $this->assertEqual(['views_test_cache_context'], $build['#cache']['contexts']);
+    $this->assertEquals(['views_test_cache_context'], $build['#cache']['contexts']);
   }
 
   /**
@@ -294,7 +294,7 @@ public function testViewAddCacheMetadata() {
     $view = View::load('test_display');
     $view->save();
 
-    $this->assertEqual(['languages:' . LanguageInterface::TYPE_CONTENT, 'languages:' . LanguageInterface::TYPE_INTERFACE, 'url.query_args', 'user.node_grants:view', 'user.permissions'], $view->getDisplay('default')['cache_metadata']['contexts']);
+    $this->assertEquals(['languages:' . LanguageInterface::TYPE_CONTENT, 'languages:' . LanguageInterface::TYPE_INTERFACE, 'url.query_args', 'user.node_grants:view', 'user.permissions'], $view->getDisplay('default')['cache_metadata']['contexts']);
   }
 
 }
diff --git a/core/modules/views/tests/src/Kernel/TokenReplaceTest.php b/core/modules/views/tests/src/Kernel/TokenReplaceTest.php
index 4b1cfc362c..cd1102129f 100644
--- a/core/modules/views/tests/src/Kernel/TokenReplaceTest.php
+++ b/core/modules/views/tests/src/Kernel/TokenReplaceTest.php
@@ -69,7 +69,7 @@ public function testTokenReplacement() {
       $bubbleable_metadata = new BubbleableMetadata();
       $output = $token_handler->replace($token, ['view' => $view], [], $bubbleable_metadata);
       $this->assertIdentical($output, $expected_output, format_string('Token %token replaced correctly.', ['%token' => $token]));
-      $this->assertEqual($bubbleable_metadata, $metadata_tests[$token]);
+      $this->assertEquals($bubbleable_metadata, $metadata_tests[$token]);
     }
   }
 
diff --git a/core/modules/views/tests/src/Kernel/ViewElementTest.php b/core/modules/views/tests/src/Kernel/ViewElementTest.php
index c6149e90e9..6437229c47 100644
--- a/core/modules/views/tests/src/Kernel/ViewElementTest.php
+++ b/core/modules/views/tests/src/Kernel/ViewElementTest.php
@@ -29,7 +29,7 @@ public function testViewElement() {
     // Get the render array, #embed must be FALSE since this is the default
     // display.
     $render = $view->buildRenderable();
-    $this->assertEqual($render['#embed'], FALSE);
+    $this->assertEquals($render['#embed'], FALSE);
     $this->setRawContent($renderer->renderRoot($render));
 
     $xpath = $this->xpath('//div[@class="views-element-container"]');
@@ -37,7 +37,7 @@ public function testViewElement() {
 
     // There should be 5 rows in the results.
     $xpath = $this->xpath('//div[@class="views-row"]');
-    $this->assertEqual(count($xpath), 5);
+    $this->assertEquals(count($xpath), 5);
 
     // Add an argument and save the view.
     $view->displayHandlers->get('default')->overrideOption('arguments', [
@@ -65,7 +65,7 @@ public function testViewElement() {
     $this->setRawContent($renderer->renderRoot($render));
     // There should be 1 row in the results, 'John' arg 25.
     $xpath = $this->xpath('//div[@class="views-row"]');
-    $this->assertEqual(count($xpath), 1);
+    $this->assertEquals(count($xpath), 1);
   }
 
   /**
@@ -79,7 +79,7 @@ public function testViewElementEmbed() {
 
     // Get the render array, #embed must be TRUE since this is an embed display.
     $render = $view->buildRenderable('embed_1');
-    $this->assertEqual($render['#embed'], TRUE);
+    $this->assertEquals($render['#embed'], TRUE);
     $this->setRawContent($renderer->renderRoot($render));
 
     $xpath = $this->xpath('//div[@class="views-element-container"]');
@@ -87,7 +87,7 @@ public function testViewElementEmbed() {
 
     // There should be 5 rows in the results.
     $xpath = $this->xpath('//div[@class="views-row"]');
-    $this->assertEqual(count($xpath), 5);
+    $this->assertEquals(count($xpath), 5);
 
     // Add an argument and save the view.
     $view->displayHandlers->get('default')->overrideOption('arguments', [
@@ -115,7 +115,7 @@ public function testViewElementEmbed() {
     $this->setRawContent($renderer->renderRoot($render));
     // There should be 1 row in the results, 'John' arg 25.
     $xpath = $this->xpath('//div[@class="views-row"]');
-    $this->assertEqual(count($xpath), 1);
+    $this->assertEquals(count($xpath), 1);
 
     // Tests the render array with an exposed filter.
     $view = Views::getView('test_view_embed');
@@ -123,7 +123,7 @@ public function testViewElementEmbed() {
     $this->setRawContent($renderer->renderRoot($render));
 
     // Ensure that the exposed form is rendered.
-    $this->assertEqual(1, count($this->xpath('//form[@class="views-exposed-form"]')));
+    $this->assertEquals(1, count($this->xpath('//form[@class="views-exposed-form"]')));
   }
 
 }
diff --git a/core/modules/views/tests/src/Kernel/ViewExecutableTest.php b/core/modules/views/tests/src/Kernel/ViewExecutableTest.php
index 7390214052..078601d994 100644
--- a/core/modules/views/tests/src/Kernel/ViewExecutableTest.php
+++ b/core/modules/views/tests/src/Kernel/ViewExecutableTest.php
@@ -138,14 +138,14 @@ public function testInitMethods() {
     $this->assertTrue($view->style_plugin instanceof DefaultStyle, 'Make sure a reference to the style plugin is set.');
     // Test the plugin has been inited and view have references to the view and
     // display handler.
-    $this->assertEqual(spl_object_hash($view->style_plugin->view), $view_hash);
-    $this->assertEqual(spl_object_hash($view->style_plugin->displayHandler), $display_hash);
+    $this->assertEquals(spl_object_hash($view->style_plugin->view), $view_hash);
+    $this->assertEquals(spl_object_hash($view->style_plugin->displayHandler), $display_hash);
 
     // Test the initQuery method().
     $view->initQuery();
     $this->assertTrue($view->query instanceof Sql, 'Make sure a reference to the query is set');
-    $this->assertEqual(spl_object_hash($view->query->view), $view_hash);
-    $this->assertEqual(spl_object_hash($view->query->displayHandler), $display_hash);
+    $this->assertEquals(spl_object_hash($view->query->view), $view_hash);
+    $this->assertEquals(spl_object_hash($view->query->displayHandler), $display_hash);
 
     $view->destroy();
 
@@ -188,7 +188,7 @@ public function testProperties() {
     }
 
     // Per default exposed input should fall back to an empty array.
-    $this->assertEqual($view->getExposedInput(), []);
+    $this->assertEquals($view->getExposedInput(), []);
   }
 
   public function testSetDisplayWithInvalidDisplay() {
@@ -204,8 +204,8 @@ public function testSetDisplayWithInvalidDisplay() {
       $this->assertEquals('setDisplay() called with invalid display ID "invalid".', $e->getMessage());
     }
 
-    $this->assertEqual($view->current_display, 'default', 'If setDisplay is called with an invalid display id the default display should be used.');
-    $this->assertEqual(spl_object_hash($view->display_handler), spl_object_hash($view->displayHandlers->get('default')));
+    $this->assertEquals($view->current_display, 'default', 'If setDisplay is called with an invalid display id the default display should be used.');
+    $this->assertEquals(spl_object_hash($view->display_handler), spl_object_hash($view->displayHandlers->get('default')));
   }
 
   /**
@@ -223,26 +223,26 @@ public function testDisplays() {
     $this->assertTrue($view->displayHandlers->get('page_2') instanceof Page);
 
     // After initializing the default display is the current used display.
-    $this->assertEqual($view->current_display, 'default');
-    $this->assertEqual(spl_object_hash($view->display_handler), spl_object_hash($view->displayHandlers->get('default')));
+    $this->assertEquals($view->current_display, 'default');
+    $this->assertEquals(spl_object_hash($view->display_handler), spl_object_hash($view->displayHandlers->get('default')));
 
     // All handlers should have a reference to the default display.
-    $this->assertEqual(spl_object_hash($view->displayHandlers->get('page_1')->default_display), spl_object_hash($view->displayHandlers->get('default')));
-    $this->assertEqual(spl_object_hash($view->displayHandlers->get('page_2')->default_display), spl_object_hash($view->displayHandlers->get('default')));
+    $this->assertEquals(spl_object_hash($view->displayHandlers->get('page_1')->default_display), spl_object_hash($view->displayHandlers->get('default')));
+    $this->assertEquals(spl_object_hash($view->displayHandlers->get('page_2')->default_display), spl_object_hash($view->displayHandlers->get('default')));
 
     // Tests Drupal\views\ViewExecutable::setDisplay().
     $view->setDisplay();
-    $this->assertEqual($view->current_display, 'default', 'If setDisplay is called with no parameter the default display should be used.');
-    $this->assertEqual(spl_object_hash($view->display_handler), spl_object_hash($view->displayHandlers->get('default')));
+    $this->assertEquals($view->current_display, 'default', 'If setDisplay is called with no parameter the default display should be used.');
+    $this->assertEquals(spl_object_hash($view->display_handler), spl_object_hash($view->displayHandlers->get('default')));
 
     // Set two different valid displays.
     $view->setDisplay('page_1');
-    $this->assertEqual($view->current_display, 'page_1', 'If setDisplay is called with a valid display id the appropriate display should be used.');
-    $this->assertEqual(spl_object_hash($view->display_handler), spl_object_hash($view->displayHandlers->get('page_1')));
+    $this->assertEquals($view->current_display, 'page_1', 'If setDisplay is called with a valid display id the appropriate display should be used.');
+    $this->assertEquals(spl_object_hash($view->display_handler), spl_object_hash($view->displayHandlers->get('page_1')));
 
     $view->setDisplay('page_2');
-    $this->assertEqual($view->current_display, 'page_2', 'If setDisplay is called with a valid display id the appropriate display should be used.');
-    $this->assertEqual(spl_object_hash($view->display_handler), spl_object_hash($view->displayHandlers->get('page_2')));
+    $this->assertEquals($view->current_display, 'page_2', 'If setDisplay is called with a valid display id the appropriate display should be used.');
+    $this->assertEquals(spl_object_hash($view->display_handler), spl_object_hash($view->displayHandlers->get('page_2')));
 
     // Destroy the view, so we can start again and test an invalid display.
     $view->destroy();
@@ -304,7 +304,7 @@ public function testPropertyMethods() {
     // Test setting and getting the offset.
     $rand = rand();
     $view->setOffset($rand);
-    $this->assertEqual($view->getOffset(), $rand);
+    $this->assertEquals($view->getOffset(), $rand);
 
     // Test the getBaseTable() method.
     $expected = [
@@ -323,16 +323,16 @@ public function testPropertyMethods() {
     $path = $this->randomMachineName();
     $view->displayHandlers->get('page_1')->overrideOption('path', $path);
     $view->setDisplay('page_1');
-    $this->assertEqual($view->getPath(), $path);
+    $this->assertEquals($view->getPath(), $path);
     // Test the override_path property override.
     $override_path = $this->randomMachineName();
     $view->override_path = $override_path;
-    $this->assertEqual($view->getPath(), $override_path);
+    $this->assertEquals($view->getPath(), $override_path);
 
     // Test the title methods.
     $title = $this->randomString();
     $view->setTitle($title);
-    $this->assertEqual($view->getTitle(), Xss::filterAdmin($title));
+    $this->assertEquals($view->getTitle(), Xss::filterAdmin($title));
   }
 
   /**
@@ -397,10 +397,10 @@ public function testGetHandlerTypes() {
       //   or something similar instead of the singular, but so long check for
       //   this special case.
       if (isset($types[$type]['type']) && $types[$type]['type'] == 'area') {
-        $this->assertEqual($types[$type]['plural'], $type);
+        $this->assertEquals($types[$type]['plural'], $type);
       }
       else {
-        $this->assertEqual($types[$type]['plural'], $type . 's');
+        $this->assertEquals($types[$type]['plural'], $type . 's');
       }
     }
   }
@@ -415,7 +415,7 @@ public function testGetHandlers() {
     $view->getHandlers('field', 'page_2');
 
     // getHandlers() shouldn't change the active display.
-    $this->assertEqual('page_1', $view->current_display, "The display shouldn't change after getHandlers()");
+    $this->assertEquals('page_1', $view->current_display, "The display shouldn't change after getHandlers()");
   }
 
   /**
@@ -428,7 +428,7 @@ public function testValidate() {
     $validate = $view->validate();
 
     // Validating a view shouldn't change the active display.
-    $this->assertEqual('page_1', $view->current_display, "The display should be constant while validating");
+    $this->assertEquals('page_1', $view->current_display, "The display should be constant while validating");
 
     $count = 0;
     foreach ($view->displayHandlers as $id => $display) {
@@ -439,7 +439,7 @@ public function testValidate() {
       $count++;
     }
 
-    $this->assertEqual(count($view->displayHandlers), $count, 'Error messages from all handlers merged.');
+    $this->assertEquals(count($view->displayHandlers), $count, 'Error messages from all handlers merged.');
 
     // Test that a deleted display is not included.
     $display = &$view->storage->getDisplay('default');
diff --git a/core/modules/views/tests/src/Kernel/ViewStorageTest.php b/core/modules/views/tests/src/Kernel/ViewStorageTest.php
index 7cf953af74..6e8e32b33a 100644
--- a/core/modules/views/tests/src/Kernel/ViewStorageTest.php
+++ b/core/modules/views/tests/src/Kernel/ViewStorageTest.php
@@ -90,12 +90,12 @@ protected function loadTests() {
 
     // Check the displays have been loaded correctly from config display data.
     $expected_displays = ['default', 'block_1', 'page_1'];
-    $this->assertEqual(array_keys($view->get('display')), $expected_displays, 'The correct display names are present.');
+    $this->assertEquals(array_keys($view->get('display')), $expected_displays, 'The correct display names are present.');
 
     // Check each ViewDisplay object and confirm that it has the correct key and
     // property values.
     foreach ($view->get('display') as $key => $display) {
-      $this->assertEqual($key, $display['id'], 'The display has the correct ID assigned.');
+      $this->assertEquals($key, $display['id'], 'The display has the correct ID assigned.');
 
       // Get original display data and confirm that the display options array
       // exists.
@@ -158,7 +158,7 @@ protected function displayTests() {
     $display = $view->get('display');
 
     // Ensure the right display_plugin is created/instantiated.
-    $this->assertEqual($display[$new_id]['display_plugin'], 'page', 'New page display "test" uses the right display plugin.');
+    $this->assertEquals($display[$new_id]['display_plugin'], 'page', 'New page display "test" uses the right display plugin.');
 
     $executable = $view->getExecutable();
     $executable->initDisplay();
@@ -207,19 +207,19 @@ protected function displayMethodTests() {
     $random_title = $this->randomMachineName();
 
     $id = $view->addDisplay('page', $random_title);
-    $this->assertEqual($id, 'page_1', format_string('Make sure the first display (%id_new) has the expected ID (%id)', ['%id_new' => $id, '%id' => 'page_1']));
+    $this->assertEquals($id, 'page_1', format_string('Make sure the first display (%id_new) has the expected ID (%id)', ['%id_new' => $id, '%id' => 'page_1']));
     $display = $view->get('display');
-    $this->assertEqual($display[$id]['display_title'], $random_title);
+    $this->assertEquals($display[$id]['display_title'], $random_title);
 
     $random_title = $this->randomMachineName();
     $id = $view->addDisplay('page', $random_title);
     $display = $view->get('display');
-    $this->assertEqual($id, 'page_2', format_string('Make sure the second display (%id_new) has the expected ID (%id)', ['%id_new' => $id, '%id' => 'page_2']));
-    $this->assertEqual($display[$id]['display_title'], $random_title);
+    $this->assertEquals($id, 'page_2', format_string('Make sure the second display (%id_new) has the expected ID (%id)', ['%id_new' => $id, '%id' => 'page_2']));
+    $this->assertEquals($display[$id]['display_title'], $random_title);
 
     $id = $view->addDisplay('page');
     $display = $view->get('display');
-    $this->assertEqual($display[$id]['display_title'], 'Page 3');
+    $this->assertEquals($display[$id]['display_title'], 'Page 3');
 
     // Ensure the 'default' display always has position zero, regardless of when
     // it was set relative to other displays. Even if the 'default' display
@@ -227,8 +227,8 @@ protected function displayMethodTests() {
     // title.
     $view->addDisplay('default', $random_title);
     $displays = $view->get('display');
-    $this->assertEqual($displays['default']['display_title'], $random_title, 'Default display is defined with the new title');
-    $this->assertEqual($displays['default']['position'], 0, 'Default displays are always in position zero');
+    $this->assertEquals($displays['default']['display_title'], $random_title, 'Default display is defined with the new title');
+    $this->assertEquals($displays['default']['position'], 0, 'Default displays are always in position zero');
 
     // Tests Drupal\views\Entity\View::generateDisplayId(). Since
     // generateDisplayId() is protected, we have to use reflection to unit-test
@@ -236,18 +236,18 @@ protected function displayMethodTests() {
     $view = $this->controller->create([]);
     $ref_generate_display_id = new \ReflectionMethod($view, 'generateDisplayId');
     $ref_generate_display_id->setAccessible(TRUE);
-    $this->assertEqual(
+    $this->assertEquals(
       $ref_generate_display_id->invoke($view, 'default'),
       'default',
       'The plugin ID for default is always default.'
     );
-    $this->assertEqual(
+    $this->assertEquals(
       $ref_generate_display_id->invoke($view, 'feed'),
       'feed_1',
       'The generated ID for the first instance of a plugin type should have an suffix of _1.'
     );
     $view->addDisplay('feed', 'feed title');
-    $this->assertEqual(
+    $this->assertEquals(
       $ref_generate_display_id->invoke($view, 'feed'),
       'feed_2',
       'The generated ID for the first instance of a plugin type should have an suffix of _2.'
@@ -271,7 +271,7 @@ protected function displayMethodTests() {
       'field' => 'id',
       'plugin_id' => 'numeric',
     ];
-    $this->assertEqual($item1, $expected_item);
+    $this->assertEquals($item1, $expected_item);
 
     $options = [
       'alter' => [
@@ -286,10 +286,10 @@ protected function displayMethodTests() {
       'field' => 'name',
       'plugin_id' => 'standard',
     ] + $options;
-    $this->assertEqual($item2, $expected_item);
+    $this->assertEquals($item2, $expected_item);
 
     // Tests the expected fields from the previous additions.
-    $this->assertEqual($view->getHandlers('field', $display_id), $expected_items);
+    $this->assertEquals($view->getHandlers('field', $display_id), $expected_items);
 
     // Alter an existing item via setItem and check the result via getItem
     // and getItems.
@@ -300,13 +300,13 @@ protected function displayMethodTests() {
     ] + $item1;
     $expected_items[$id1] = $item;
     $view->setHandler($display_id, 'field', $id1, $item);
-    $this->assertEqual($view->getHandler($display_id, 'field', 'id'), $item);
-    $this->assertEqual($view->getHandlers('field', $display_id), $expected_items);
+    $this->assertEquals($view->getHandler($display_id, 'field', 'id'), $item);
+    $this->assertEquals($view->getHandlers('field', $display_id), $expected_items);
 
     // Test removeItem method.
     unset($expected_items[$id2]);
     $view->removeHandler($display_id, 'field', $id2);
-    $this->assertEqual($view->getHandlers('field', $display_id), $expected_items);
+    $this->assertEquals($view->getHandlers('field', $display_id), $expected_items);
   }
 
   /**
@@ -344,7 +344,7 @@ public function testCreateDuplicate() {
     $copy_display = $copy->get('display');
     foreach ($view->storage->get('display') as $id => $display) {
       // assertIdentical will not work here.
-      $this->assertEqual($display, $copy_display[$id], format_string('The @display display has been copied correctly.', ['@display' => $id]));
+      $this->assertEquals($display, $copy_display[$id], format_string('The @display display has been copied correctly.', ['@display' => $id]));
     }
   }
 
diff --git a/core/modules/views/tests/src/Kernel/Wizard/WizardPluginBaseKernelTest.php b/core/modules/views/tests/src/Kernel/Wizard/WizardPluginBaseKernelTest.php
index beb7b486d5..03ade71ba4 100644
--- a/core/modules/views/tests/src/Kernel/Wizard/WizardPluginBaseKernelTest.php
+++ b/core/modules/views/tests/src/Kernel/Wizard/WizardPluginBaseKernelTest.php
@@ -64,11 +64,11 @@ public function testCreateView() {
     $this->wizard->validateView($form, $form_state);
     $view = $this->wizard->createView($form, $form_state);
     $this->assertTrue($view instanceof ViewUI, 'The created view is a ViewUI object.');
-    $this->assertEqual($view->get('id'), $random_id);
-    $this->assertEqual($view->get('label'), $random_label);
-    $this->assertEqual($view->get('description'), $random_description);
-    $this->assertEqual($view->get('base_table'), 'views_test_data');
-    $this->assertEqual($view->get('langcode'), 'it');
+    $this->assertEquals($view->get('id'), $random_id);
+    $this->assertEquals($view->get('label'), $random_label);
+    $this->assertEquals($view->get('description'), $random_description);
+    $this->assertEquals($view->get('base_table'), 'views_test_data');
+    $this->assertEquals($view->get('langcode'), 'it');
   }
 
 }
diff --git a/core/modules/views_ui/src/Tests/PreviewTest.php b/core/modules/views_ui/src/Tests/PreviewTest.php
index c723cb3b76..13825eec9a 100644
--- a/core/modules/views_ui/src/Tests/PreviewTest.php
+++ b/core/modules/views_ui/src/Tests/PreviewTest.php
@@ -31,7 +31,7 @@ public function testPreviewContextual() {
     $this->drupalPostForm(NULL, $edit = [], t('Update preview'));
 
     $elements = $this->xpath('//div[@id="views-live-preview"]//ul[contains(@class, :ul-class)]/li[contains(@class, :li-class)]', [':ul-class' => 'contextual-links', ':li-class' => 'filter-add']);
-    $this->assertEqual(count($elements), 1, 'The contextual link to add a new field is shown.');
+    $this->assertEquals(count($elements), 1, 'The contextual link to add a new field is shown.');
 
     $this->drupalPostForm(NULL, $edit = ['view_args' => '100'], t('Update preview'));
 
@@ -52,19 +52,19 @@ public function testPreviewUI() {
     $this->drupalPostForm(NULL, $edit = [], t('Update preview'));
 
     $elements = $this->xpath('//div[@class = "view-content"]/div[contains(@class, views-row)]');
-    $this->assertEqual(count($elements), 5);
+    $this->assertEquals(count($elements), 5);
 
     // Filter just the first result.
     $this->drupalPostForm(NULL, $edit = ['view_args' => '1'], t('Update preview'));
 
     $elements = $this->xpath('//div[@class = "view-content"]/div[contains(@class, views-row)]');
-    $this->assertEqual(count($elements), 1);
+    $this->assertEquals(count($elements), 1);
 
     // Filter for no results.
     $this->drupalPostForm(NULL, $edit = ['view_args' => '100'], t('Update preview'));
 
     $elements = $this->xpath('//div[@class = "view-content"]/div[contains(@class, views-row)]');
-    $this->assertEqual(count($elements), 0);
+    $this->assertEquals(count($elements), 0);
 
     // Test that area text and exposed filters are present and rendered.
     $this->assertFieldByName('id', NULL, 'ID exposed filter field found.');
@@ -119,7 +119,7 @@ public function testPreviewUI() {
     $this->drupalPostForm("admin/structure/views/nojs/display/test_preview/default/title", $edit = ['title' => 'Double & escaped'], t('Apply'));
     $this->drupalPostForm(NULL, [], t('Update preview'));
     $elements = $this->xpath('//div[@id="views-live-preview"]/div[contains(@class, views-query-info)]//td[text()=:text]', [':text' => t('Double & escaped')]);
-    $this->assertEqual(1, count($elements));
+    $this->assertEquals(1, count($elements));
   }
 
   /**
@@ -254,7 +254,7 @@ public function testPreviewAdditionalInfo() {
     // Check for implementation of hook_views_preview_info_alter().
     // @see views_ui_test.module
     $elements = $this->xpath('//div[@id="views-live-preview"]/div[contains(@class, views-query-info)]//td[text()=:text]', [':text' => t('Test row count')]);
-    $this->assertEqual(count($elements), 1, 'Views Query Preview Info area altered.');
+    $this->assertEquals(count($elements), 1, 'Views Query Preview Info area altered.');
     // Check that additional assets are attached.
     $this->assertTrue(strpos($this->getDrupalSettings()['ajaxPageState']['libraries'], 'views_ui_test/views_ui_test.test') !== FALSE, 'Attached library found.');
     $this->assertRaw('css/views_ui_test.test.css', 'Attached CSS asset found.');
@@ -357,7 +357,7 @@ protected function assertPreviewAJAX($result, $row_count) {
 
     // Test if preview contains the expected number of rows.
     $elements = $this->xpath('//div[@class = "view-content"]/div[contains(@class, views-row)]');
-    $this->assertEqual(count($elements), $row_count, 'Expected items found on page.');
+    $this->assertEquals(count($elements), $row_count, 'Expected items found on page.');
   }
 
   /**
diff --git a/core/modules/views_ui/src/Tests/RowUITest.php b/core/modules/views_ui/src/Tests/RowUITest.php
index 5689009783..a84fe4b57e 100644
--- a/core/modules/views_ui/src/Tests/RowUITest.php
+++ b/core/modules/views_ui/src/Tests/RowUITest.php
@@ -52,8 +52,8 @@ public function testRowUI() {
     $view = Views::getView($view_name);
     $view->initDisplay();
     $row = $view->display_handler->getOption('row');
-    $this->assertEqual($row['type'], 'test_row', 'Make sure that the test_row got saved as used row plugin.');
-    $this->assertEqual($row['options']['test_option'], $random_name, 'Make sure that the custom settings field got saved as expected.');
+    $this->assertEquals($row['type'], 'test_row', 'Make sure that the test_row got saved as used row plugin.');
+    $this->assertEquals($row['options']['test_option'], $random_name, 'Make sure that the custom settings field got saved as expected.');
 
     // Change the row plugin to fields using ajax.
     // Note: this is the best approximation we can achieve, because we cannot
diff --git a/core/modules/views_ui/tests/src/Functional/AreaEntityUITest.php b/core/modules/views_ui/tests/src/Functional/AreaEntityUITest.php
index d74575fd46..6489bf30e2 100644
--- a/core/modules/views_ui/tests/src/Functional/AreaEntityUITest.php
+++ b/core/modules/views_ui/tests/src/Functional/AreaEntityUITest.php
@@ -50,10 +50,10 @@ public function testUI() {
     // Confirm the correct target identifiers were saved for both entities.
     $view = View::load($id);
     $header = $view->getDisplay('default')['display_options']['header'];
-    $this->assertEqual(['entity_block', 'entity_entity_test'], array_keys($header));
+    $this->assertEquals(['entity_block', 'entity_entity_test'], array_keys($header));
 
-    $this->assertEqual($block->id(), $header['entity_block']['target']);
-    $this->assertEqual($entity_test->uuid(), $header['entity_entity_test']['target']);
+    $this->assertEquals($block->id(), $header['entity_block']['target']);
+    $this->assertEquals($entity_test->uuid(), $header['entity_entity_test']['target']);
 
     // Confirm that the correct serial ID (for the entity_test) and config ID
     // (for the block) are displayed in the form.
@@ -71,10 +71,10 @@ public function testUI() {
     // Confirm that the argument placeholders are saved.
     $view = View::load($id);
     $header = $view->getDisplay('default')['display_options']['header'];
-    $this->assertEqual(['entity_block', 'entity_entity_test'], array_keys($header));
+    $this->assertEquals(['entity_block', 'entity_entity_test'], array_keys($header));
 
-    $this->assertEqual('{{ raw_arguments.null }}', $header['entity_block']['target']);
-    $this->assertEqual('{{ raw_arguments.null }}', $header['entity_entity_test']['target']);
+    $this->assertEquals('{{ raw_arguments.null }}', $header['entity_block']['target']);
+    $this->assertEquals('{{ raw_arguments.null }}', $header['entity_entity_test']['target']);
 
     // Confirm that the argument placeholders are still displayed in the form.
     $this->drupalGet("admin/structure/views/nojs/handler/$id/page_1/header/entity_block");
@@ -92,10 +92,10 @@ public function testUI() {
     // the previous form value.
     $view = View::load($id);
     $header = $view->getDisplay('default')['display_options']['header'];
-    $this->assertEqual(['entity_block', 'entity_entity_test'], array_keys($header));
+    $this->assertEquals(['entity_block', 'entity_entity_test'], array_keys($header));
 
-    $this->assertEqual($block->id(), $header['entity_block']['target']);
-    $this->assertEqual($entity_test->uuid(), $header['entity_entity_test']['target']);
+    $this->assertEquals($block->id(), $header['entity_block']['target']);
+    $this->assertEquals($entity_test->uuid(), $header['entity_entity_test']['target']);
   }
 
 }
diff --git a/core/modules/views_ui/tests/src/Functional/ArgumentValidatorTest.php b/core/modules/views_ui/tests/src/Functional/ArgumentValidatorTest.php
index 5a33970f7b..8743d7e350 100644
--- a/core/modules/views_ui/tests/src/Functional/ArgumentValidatorTest.php
+++ b/core/modules/views_ui/tests/src/Functional/ArgumentValidatorTest.php
@@ -28,7 +28,7 @@ public function testSpecifyValidation() {
     $view = Views::getView('test_argument');
     $handler = $view->getHandler('default', 'argument', 'id');
     $this->assertTrue($handler['specify_validation'], 'Validation for this argument has been turned on.');
-    $this->assertEqual('entity:node', $handler['validate']['type'], 'Validation for the argument is based on the node.');
+    $this->assertEquals('entity:node', $handler['validate']['type'], 'Validation for the argument is based on the node.');
 
     // Uncheck the 'Specify validation criteria' checkbox and expect the
     // validation type to be reset back to 'none'.
@@ -36,7 +36,7 @@ public function testSpecifyValidation() {
     $view = Views::getView('test_argument');
     $handler = $view->getHandler('default', 'argument', 'id');
     $this->assertFalse($handler['specify_validation'], 'Validation for this argument has been turned off.');
-    $this->assertEqual('none', $handler['validate']['type'], 'Validation for the argument has been reverted to Basic Validation.');
+    $this->assertEquals('none', $handler['validate']['type'], 'Validation for the argument has been reverted to Basic Validation.');
   }
 
   /**
diff --git a/core/modules/views_ui/tests/src/Functional/CachedDataUITest.php b/core/modules/views_ui/tests/src/Functional/CachedDataUITest.php
index 51e489d93e..84fec803ea 100644
--- a/core/modules/views_ui/tests/src/Functional/CachedDataUITest.php
+++ b/core/modules/views_ui/tests/src/Functional/CachedDataUITest.php
@@ -24,23 +24,23 @@ public function testCacheData() {
 
     $temp_store = $this->container->get('user.shared_tempstore')->get('views');
     // The view should not be locked.
-    $this->assertEqual($temp_store->getMetadata('test_view'), NULL, 'The view is not locked.');
+    $this->assertEquals($temp_store->getMetadata('test_view'), NULL, 'The view is not locked.');
 
     $this->drupalGet('admin/structure/views/view/test_view/edit');
     // Make sure we have 'changes' to the view.
     $this->drupalPostForm('admin/structure/views/nojs/display/test_view/default/title', [], t('Apply'));
     $this->assertText('You have unsaved changes.');
-    $this->assertEqual($temp_store->getMetadata('test_view')->owner, $views_admin_user_uid, 'View cache has been saved.');
+    $this->assertEquals($temp_store->getMetadata('test_view')->owner, $views_admin_user_uid, 'View cache has been saved.');
 
     $view_cache = $temp_store->get('test_view');
     // The view should be enabled.
     $this->assertTrue($view_cache->status(), 'The view is enabled.');
     // The view should now be locked.
-    $this->assertEqual($temp_store->getMetadata('test_view')->owner, $views_admin_user_uid, 'The view is locked.');
+    $this->assertEquals($temp_store->getMetadata('test_view')->owner, $views_admin_user_uid, 'The view is locked.');
 
     // Cancel the view edit and make sure the cache is deleted.
     $this->drupalPostForm(NULL, [], t('Cancel'));
-    $this->assertEqual($temp_store->getMetadata('test_view'), NULL, 'User tempstore data has been removed.');
+    $this->assertEquals($temp_store->getMetadata('test_view'), NULL, 'User tempstore data has been removed.');
     // Test we are redirected to the view listing page.
     $this->assertUrl('admin/structure/views', [], 'Redirected back to the view listing page.');
 
@@ -68,7 +68,7 @@ public function testCacheData() {
     $this->drupalPostForm('admin/structure/views/nojs/display/test_view/default/title', [], t('Apply'));
     $this->drupalPostForm('admin/structure/views/view/test_view/delete', [], t('Delete'));
     // No view tempstore data should be returned for this view after deletion.
-    $this->assertEqual($temp_store->getMetadata('test_view'), NULL, 'View tempstore data has been removed after deletion.');
+    $this->assertEquals($temp_store->getMetadata('test_view'), NULL, 'View tempstore data has been removed after deletion.');
   }
 
 }
diff --git a/core/modules/views_ui/tests/src/Functional/CustomBooleanTest.php b/core/modules/views_ui/tests/src/Functional/CustomBooleanTest.php
index 95f6d566c4..ec01dc4120 100644
--- a/core/modules/views_ui/tests/src/Functional/CustomBooleanTest.php
+++ b/core/modules/views_ui/tests/src/Functional/CustomBooleanTest.php
@@ -113,7 +113,7 @@ public function testCustomOptionTemplate() {
     $this->config('system.theme')
       ->set('default', 'views_test_theme')
       ->save();
-    $this->assertEqual($this->config('system.theme')->get('default'), 'views_test_theme');
+    $this->assertEquals($this->config('system.theme')->get('default'), 'views_test_theme');
 
     // Add the boolean field handler to the test view.
     $view = Views::getView('test_view');
diff --git a/core/modules/views_ui/tests/src/Functional/DisplayAttachmentTest.php b/core/modules/views_ui/tests/src/Functional/DisplayAttachmentTest.php
index 057a785c2a..8892665e58 100644
--- a/core/modules/views_ui/tests/src/Functional/DisplayAttachmentTest.php
+++ b/core/modules/views_ui/tests/src/Functional/DisplayAttachmentTest.php
@@ -42,21 +42,21 @@ public function testAttachmentUI() {
     $this->assertEscaped('<em>Page</em>');
     $this->assertNoRaw('<em>Page</em>');
     $result = $this->xpath('//a[@id = :id]', [':id' => 'views-attachment-1-displays']);
-    $this->assertEqual($result[0]->getAttribute('title'), t('Page'));
+    $this->assertEquals($result[0]->getAttribute('title'), t('Page'));
     $this->drupalPostForm(NULL, [], t('Save'));
 
     $view = Views::getView('test_attachment_ui');
     $view->initDisplay();
-    $this->assertEqual(array_keys(array_filter($view->displayHandlers->get('attachment_1')->getOption('displays'))), ['page_1'], 'The attached displays got saved as expected');
+    $this->assertEquals(array_keys(array_filter($view->displayHandlers->get('attachment_1')->getOption('displays'))), ['page_1'], 'The attached displays got saved as expected');
 
     $this->drupalPostForm($attachment_display_url, ['displays[default]' => 1, 'displays[page_1]' => 1], t('Apply'));
     $result = $this->xpath('//a[@id = :id]', [':id' => 'views-attachment-1-displays']);
-    $this->assertEqual($result[0]->getAttribute('title'), t('Multiple displays'));
+    $this->assertEquals($result[0]->getAttribute('title'), t('Multiple displays'));
     $this->drupalPostForm(NULL, [], t('Save'));
 
     $view = Views::getView('test_attachment_ui');
     $view->initDisplay();
-    $this->assertEqual(array_keys($view->displayHandlers->get('attachment_1')->getOption('displays')), ['default', 'page_1'], 'The attached displays got saved as expected');
+    $this->assertEquals(array_keys($view->displayHandlers->get('attachment_1')->getOption('displays')), ['default', 'page_1'], 'The attached displays got saved as expected');
   }
 
   /**
diff --git a/core/modules/views_ui/tests/src/Functional/DisplayCRUDTest.php b/core/modules/views_ui/tests/src/Functional/DisplayCRUDTest.php
index 1e53c71108..037cb36d32 100644
--- a/core/modules/views_ui/tests/src/Functional/DisplayCRUDTest.php
+++ b/core/modules/views_ui/tests/src/Functional/DisplayCRUDTest.php
@@ -99,7 +99,7 @@ public function testRemoveDisplay() {
   public function testDefaultDisplay() {
     $this->drupalGet('admin/structure/views/view/test_display');
     $elements = $this->xpath('//*[@id="views-page-1-display-title"]');
-    $this->assertEqual(count($elements), 1, 'The page display is loaded as the default display.');
+    $this->assertEquals(count($elements), 1, 'The page display is loaded as the default display.');
   }
 
   /**
@@ -134,15 +134,15 @@ public function testDuplicateDisplay() {
 
     $page_2 = $view->displayHandlers->get('page_2');
     $this->assertTrue($page_2, 'The new page display got saved.');
-    $this->assertEqual($page_2->display['display_title'], 'Page');
-    $this->assertEqual($page_2->display['display_options']['path'], $path);
+    $this->assertEquals($page_2->display['display_title'], 'Page');
+    $this->assertEquals($page_2->display['display_options']['path'], $path);
     $block_1 = $view->displayHandlers->get('block_1');
     $this->assertTrue($block_1, 'The new block display got saved.');
-    $this->assertEqual($block_1->display['display_plugin'], 'block');
-    $this->assertEqual($block_1->display['display_title'], 'Block', 'The new display title got generated as expected.');
+    $this->assertEquals($block_1->display['display_plugin'], 'block');
+    $this->assertEquals($block_1->display['display_title'], 'Block', 'The new display title got generated as expected.');
     $this->assertFalse(isset($block_1->display['display_options']['path']));
-    $this->assertEqual($block_1->getOption('title'), $random_title, 'The overridden title option from the display got copied into the duplicate');
-    $this->assertEqual($block_1->getOption('css_class'), $random_css, 'The overridden css_class option from the display got copied into the duplicate');
+    $this->assertEquals($block_1->getOption('title'), $random_title, 'The overridden title option from the display got copied into the duplicate');
+    $this->assertEquals($block_1->getOption('css_class'), $random_css, 'The overridden css_class option from the display got copied into the duplicate');
   }
 
 }
diff --git a/core/modules/views_ui/tests/src/Functional/DisplayExtenderUITest.php b/core/modules/views_ui/tests/src/Functional/DisplayExtenderUITest.php
index b222f15d7a..6e992a4724 100644
--- a/core/modules/views_ui/tests/src/Functional/DisplayExtenderUITest.php
+++ b/core/modules/views_ui/tests/src/Functional/DisplayExtenderUITest.php
@@ -38,7 +38,7 @@ public function testDisplayExtenderUI() {
     $view = Views::getView($view->storage->id());
     $view->initDisplay();
     $display_extender_options = $view->display_handler->getOption('display_extenders');
-    $this->assertEqual($display_extender_options['display_extender_test']['test_extender_test_option'], $random_text, 'Make sure that the display extender option got saved.');
+    $this->assertEquals($display_extender_options['display_extender_test']['test_extender_test_option'], $random_text, 'Make sure that the display extender option got saved.');
   }
 
 }
diff --git a/core/modules/views_ui/tests/src/Functional/DisplayFeedTest.php b/core/modules/views_ui/tests/src/Functional/DisplayFeedTest.php
index 9dba45010f..1ccc4bc0f1 100644
--- a/core/modules/views_ui/tests/src/Functional/DisplayFeedTest.php
+++ b/core/modules/views_ui/tests/src/Functional/DisplayFeedTest.php
@@ -63,7 +63,7 @@ protected function checkFeedViewUi($view_name) {
       }
     }
 
-    $this->assertEqual($options, ['default', 'page'], 'Make sure all displays appears as expected.');
+    $this->assertEquals($options, ['default', 'page'], 'Make sure all displays appears as expected.');
 
     // Post and save this and check the output.
     $this->drupalPostForm('admin/structure/views/nojs/display/' . $view_name . '/feed_1/displays', ['displays[page]' => 'page'], t('Apply'));
diff --git a/core/modules/views_ui/tests/src/Functional/DisplayPathTest.php b/core/modules/views_ui/tests/src/Functional/DisplayPathTest.php
index 7291dc2e8d..f937ec9cbc 100644
--- a/core/modules/views_ui/tests/src/Functional/DisplayPathTest.php
+++ b/core/modules/views_ui/tests/src/Functional/DisplayPathTest.php
@@ -170,7 +170,7 @@ public function testMenuOptions() {
       return $element->getText();
     }, $menu_options);
 
-    $this->assertEqual([
+    $this->assertEquals([
       '<User account menu>',
       '-- My account',
       '-- Log out',
@@ -233,7 +233,7 @@ public function testDefaultMenuTabRegression() {
     $parameters->addCondition('id', $menu_link_content->getPluginId());
     $result = \Drupal::menuTree()->load('admin', $parameters);
     $plugin_definition = end($result)->link->getPluginDefinition();
-    $this->assertEqual('view.' . $view_id . '.page_1', $plugin_definition['route_name']);
+    $this->assertEquals('view.' . $view_id . '.page_1', $plugin_definition['route_name']);
 
     $this->clickLink(t('No menu'));
 
diff --git a/core/modules/views_ui/tests/src/Functional/DisplayTest.php b/core/modules/views_ui/tests/src/Functional/DisplayTest.php
index 44724b4211..c99cde693e 100644
--- a/core/modules/views_ui/tests/src/Functional/DisplayTest.php
+++ b/core/modules/views_ui/tests/src/Functional/DisplayTest.php
@@ -56,7 +56,7 @@ public function testReorderDisplay() {
 
     // Ensure the view displays are in the expected order in configuration.
     $expected_display_order = ['default', 'block_1', 'page_1'];
-    $this->assertEqual(array_keys(Views::getView($view['id'])->storage->get('display')), $expected_display_order, 'The correct display names are present.');
+    $this->assertEquals(array_keys(Views::getView($view['id'])->storage->get('display')), $expected_display_order, 'The correct display names are present.');
     // Put the block display in front of the page display.
     $edit = [
       'displays[page_1][weight]' => 2,
@@ -67,12 +67,12 @@ public function testReorderDisplay() {
 
     $view = Views::getView($view['id']);
     $displays = $view->storage->get('display');
-    $this->assertEqual($displays['default']['position'], 0, 'Make sure the master display comes first.');
-    $this->assertEqual($displays['block_1']['position'], 1, 'Make sure the block display comes before the page display.');
-    $this->assertEqual($displays['page_1']['position'], 2, 'Make sure the page display comes after the block display.');
+    $this->assertEquals($displays['default']['position'], 0, 'Make sure the master display comes first.');
+    $this->assertEquals($displays['block_1']['position'], 1, 'Make sure the block display comes before the page display.');
+    $this->assertEquals($displays['page_1']['position'], 2, 'Make sure the page display comes after the block display.');
 
     // Ensure the view displays are in the expected order in configuration.
-    $this->assertEqual(array_keys($view->storage->get('display')), $expected_display_order, 'The correct display names are present.');
+    $this->assertEquals(array_keys($view->storage->get('display')), $expected_display_order, 'The correct display names are present.');
   }
 
   /**
@@ -136,7 +136,7 @@ public function testDisplayAreas() {
     // Assert that the expected text is found in each area category.
     foreach ($areas as $type) {
       $element = $this->xpath('//div[contains(@class, :class)]/div', [':class' => $type]);
-      $this->assertEqual($element[0]->getHtml(), SafeMarkup::format('The selected display type does not use @type plugins', ['@type' => $type]));
+      $this->assertEquals($element[0]->getHtml(), SafeMarkup::format('The selected display type does not use @type plugins', ['@type' => $type]));
     }
   }
 
@@ -151,7 +151,7 @@ public function testLinkDisplay() {
     // Test the link text displays 'None' and not 'Block 1'
     $this->drupalGet($path);
     $result = $this->xpath("//a[contains(@href, :path)]", [':path' => $link_display_path]);
-    $this->assertEqual($result[0]->getHtml(), t('None'), 'Make sure that the link option summary shows "None" by default.');
+    $this->assertEquals($result[0]->getHtml(), t('None'), 'Make sure that the link option summary shows "None" by default.');
 
     $this->drupalGet($link_display_path);
     $this->assertFieldChecked('edit-link-display-0');
@@ -162,7 +162,7 @@ public function testLinkDisplay() {
     $this->drupalGet($path);
 
     $result = $this->xpath("//a[contains(@href, :path)]", [':path' => $link_display_path]);
-    $this->assertEqual($result[0]->getHtml(), 'Page', 'Make sure that the link option summary shows the right linked display.');
+    $this->assertEquals($result[0]->getHtml(), 'Page', 'Make sure that the link option summary shows the right linked display.');
 
     $this->drupalPostForm($link_display_path, ['link_display' => 'custom_url', 'link_url' => 'a-custom-url'], t('Apply'));
     // The form redirects to the master display.
diff --git a/core/modules/views_ui/tests/src/Functional/ExposedFormUITest.php b/core/modules/views_ui/tests/src/Functional/ExposedFormUITest.php
index 0822eb833c..8d86d06317 100644
--- a/core/modules/views_ui/tests/src/Functional/ExposedFormUITest.php
+++ b/core/modules/views_ui/tests/src/Functional/ExposedFormUITest.php
@@ -127,8 +127,8 @@ public function testExposedAdminUi() {
     // Check that the values were saved.
     $display = View::load($view_id)->getDisplay('default');
     $this->assertTrue($display['display_options']['sorts']['created']['exposed']);
-    $this->assertEqual($display['display_options']['sorts']['created']['expose'], ['label' => $edit['options[expose][label]']]);
-    $this->assertEqual($display['display_options']['sorts']['created']['order'], 'DESC');
+    $this->assertEquals($display['display_options']['sorts']['created']['expose'], ['label' => $edit['options[expose][label]']]);
+    $this->assertEquals($display['display_options']['sorts']['created']['order'], 'DESC');
   }
 
   /**
diff --git a/core/modules/views_ui/tests/src/Functional/FieldUITest.php b/core/modules/views_ui/tests/src/Functional/FieldUITest.php
index dc3081f650..7e8798ef47 100644
--- a/core/modules/views_ui/tests/src/Functional/FieldUITest.php
+++ b/core/modules/views_ui/tests/src/Functional/FieldUITest.php
@@ -39,23 +39,23 @@ public function testFieldUI() {
     $edit_handler_url = 'admin/structure/views/nojs/handler/test_view/default/field/age';
     $this->drupalGet($edit_handler_url);
     $result = $this->xpath('//details[@id="edit-options-alter-help"]/div[@class="details-wrapper"]/div[@class="item-list"]/ul/li');
-    $this->assertEqual($result[0]->getHtml(), '{{ age }} == Age');
+    $this->assertEquals($result[0]->getHtml(), '{{ age }} == Age');
 
     $edit_handler_url = 'admin/structure/views/nojs/handler/test_view/default/field/id';
     $this->drupalGet($edit_handler_url);
     $result = $this->xpath('//details[@id="edit-options-alter-help"]/div[@class="details-wrapper"]/div[@class="item-list"]/ul/li');
-    $this->assertEqual(trim($result[0]->getHtml()), '{{ age }} == Age');
-    $this->assertEqual(trim($result[1]->getHtml()), '{{ id }} == ID');
+    $this->assertEquals(trim($result[0]->getHtml()), '{{ age }} == Age');
+    $this->assertEquals(trim($result[1]->getHtml()), '{{ id }} == ID');
 
     $edit_handler_url = 'admin/structure/views/nojs/handler/test_view/default/field/name';
     $this->drupalGet($edit_handler_url);
     $result = $this->xpath('//details[@id="edit-options-alter-help"]/div[@class="details-wrapper"]/div[@class="item-list"]/ul/li');
-    $this->assertEqual(trim($result[0]->getHtml()), '{{ age }} == Age');
-    $this->assertEqual(trim($result[1]->getHtml()), '{{ id }} == ID');
-    $this->assertEqual(trim($result[2]->getHtml()), '{{ name }} == Name');
+    $this->assertEquals(trim($result[0]->getHtml()), '{{ age }} == Age');
+    $this->assertEquals(trim($result[1]->getHtml()), '{{ id }} == ID');
+    $this->assertEquals(trim($result[2]->getHtml()), '{{ name }} == Name');
 
     $result = $this->xpath('//details[@id="edit-options-more"]');
-    $this->assertEqual(empty($result), TRUE, "Container 'more' is empty and should not be displayed.");
+    $this->assertEquals(empty($result), TRUE, "Container 'more' is empty and should not be displayed.");
 
     // Ensure that dialog titles are not escaped.
     $edit_groupby_url = 'admin/structure/views/nojs/handler/test_view/default/field/name';
@@ -72,7 +72,7 @@ public function testFieldUI() {
     $edit_handler_url = '/admin/structure/views/ajax/handler-group/test_view/default/field/name';
     $this->drupalGet($edit_handler_url);
     $data = Json::decode($this->getSession()->getPage()->getContent());
-    $this->assertEqual($data[3]['dialogOptions']['title'], 'Configure aggregation settings for field Views test: Name');
+    $this->assertEquals($data[3]['dialogOptions']['title'], 'Configure aggregation settings for field Views test: Name');
   }
 
   /**
@@ -94,7 +94,7 @@ public function testFieldLabel() {
 
     $view = Views::getView($view['id']);
     $view->initHandlers();
-    $this->assertEqual($view->field['title']->options['label'], '', 'The field label for normal styles are empty.');
+    $this->assertEquals($view->field['title']->options['label'], '', 'The field label for normal styles are empty.');
   }
 
 }
diff --git a/core/modules/views_ui/tests/src/Functional/FilterBooleanWebTest.php b/core/modules/views_ui/tests/src/Functional/FilterBooleanWebTest.php
index e6adfeea71..fda04fdd40 100644
--- a/core/modules/views_ui/tests/src/Functional/FilterBooleanWebTest.php
+++ b/core/modules/views_ui/tests/src/Functional/FilterBooleanWebTest.php
@@ -25,7 +25,7 @@ public function testFilterBooleanUI() {
 
     // Check the field widget label. 'title' should be used as a fallback.
     $result = $this->cssSelect('#edit-options-value--wrapper legend span');
-    $this->assertEqual($result[0]->getHtml(), 'Status');
+    $this->assertEquals($result[0]->getHtml(), 'Status');
 
     $this->drupalPostForm(NULL, [], t('Expose filter'));
     $this->drupalPostForm(NULL, [], t('Grouped filters'));
@@ -46,14 +46,14 @@ public function testFilterBooleanUI() {
     $this->drupalGet('admin/structure/views/nojs/handler/test_view/default/filter/status');
 
     $result = $this->xpath('//input[@name="options[group_info][group_items][1][value]"]');
-    $this->assertEqual($result[1]->getAttribute('checked'), 'checked');
+    $this->assertEquals($result[1]->getAttribute('checked'), 'checked');
     $result = $this->xpath('//input[@name="options[group_info][group_items][2][value]"]');
-    $this->assertEqual($result[2]->getAttribute('checked'), 'checked');
+    $this->assertEquals($result[2]->getAttribute('checked'), 'checked');
     $result = $this->xpath('//input[@name="options[group_info][group_items][3][value]"]');
-    $this->assertEqual($result[1]->getAttribute('checked'), 'checked');
+    $this->assertEquals($result[1]->getAttribute('checked'), 'checked');
 
     // Test that there is a remove link for each group.
-    $this->assertEqual(count($this->cssSelect('a.views-remove-link')), 3);
+    $this->assertEquals(count($this->cssSelect('a.views-remove-link')), 3);
 
     // Test selecting a default and removing an item.
     $edit = [];
diff --git a/core/modules/views_ui/tests/src/Functional/FilterNumericWebTest.php b/core/modules/views_ui/tests/src/Functional/FilterNumericWebTest.php
index 8dc568de9b..2c72a0a296 100644
--- a/core/modules/views_ui/tests/src/Functional/FilterNumericWebTest.php
+++ b/core/modules/views_ui/tests/src/Functional/FilterNumericWebTest.php
@@ -112,7 +112,7 @@ public function testFilterNumericUI() {
     $this->assertRaw('<label for="edit-age-max">And</label>', 'Max field label found');
     $this->assertRaw('<label for="edit-age-min">Age between</label>', 'Min field label found');
     // Check that the description is shown in the right place.
-    $this->assertEqual(trim($this->cssSelect('.form-item-age-min .description')[0]->getText()), 'Description of the exposed filter');
+    $this->assertEquals(trim($this->cssSelect('.form-item-age-min .description')[0]->getText()), 'Description of the exposed filter');
   }
 
 }
diff --git a/core/modules/views_ui/tests/src/Functional/GroupByTest.php b/core/modules/views_ui/tests/src/Functional/GroupByTest.php
index 4a45d85fee..cf070e1842 100644
--- a/core/modules/views_ui/tests/src/Functional/GroupByTest.php
+++ b/core/modules/views_ui/tests/src/Functional/GroupByTest.php
@@ -44,7 +44,7 @@ public function testGroupBySave() {
     $view = $this->container->get('entity.manager')->getStorage('view')->load('test_views_groupby_save');
     $display = $view->getDisplay('default');
     $this->assertTrue($display['display_options']['group_by'], 'The groupby setting was saved on the view.');
-    $this->assertEqual($display['display_options']['fields']['id']['group_type'], 'count', 'Count groupby_type was saved on the view.');
+    $this->assertEquals($display['display_options']['fields']['id']['group_type'], 'count', 'Count groupby_type was saved on the view.');
   }
 
 }
diff --git a/core/modules/views_ui/tests/src/Functional/HandlerTest.php b/core/modules/views_ui/tests/src/Functional/HandlerTest.php
index 31829941fc..45f8592000 100644
--- a/core/modules/views_ui/tests/src/Functional/HandlerTest.php
+++ b/core/modules/views_ui/tests/src/Functional/HandlerTest.php
@@ -206,7 +206,7 @@ public function testBrokenHandlers() {
       $href = "admin/structure/views/nojs/handler/test_view_broken/default/$type/id_broken";
 
       $result = $this->xpath('//a[contains(@href, :href)]', [':href' => $href]);
-      $this->assertEqual(count($result), 1, SafeMarkup::format('Handler (%type) edit link found.', ['%type' => $type]));
+      $this->assertEquals(count($result), 1, SafeMarkup::format('Handler (%type) edit link found.', ['%type' => $type]));
 
       $text = 'Broken/missing handler';
 
@@ -278,7 +278,7 @@ public function testErrorMissingHelp() {
    */
   public function assertNoDuplicateField($field_name, $entity_type) {
     $elements = $this->xpath('//td[.=:entity_type]/preceding-sibling::td[@class="title" and .=:title]', [':title' => $field_name, ':entity_type' => $entity_type]);
-    $this->assertEqual(1, count($elements), $field_name . ' appears just once in ' . $entity_type . '.');
+    $this->assertEquals(1, count($elements), $field_name . ' appears just once in ' . $entity_type . '.');
   }
 
 }
diff --git a/core/modules/views_ui/tests/src/Functional/QueryTest.php b/core/modules/views_ui/tests/src/Functional/QueryTest.php
index 0eb58ce710..70cababf7b 100644
--- a/core/modules/views_ui/tests/src/Functional/QueryTest.php
+++ b/core/modules/views_ui/tests/src/Functional/QueryTest.php
@@ -48,7 +48,7 @@ public function testQueryUI() {
     $view = Views::getView('test_view');
     $view->initDisplay();
     $view->initQuery();
-    $this->assertEqual($random_value, $view->query->options['test_setting'], 'Query settings got saved');
+    $this->assertEquals($random_value, $view->query->options['test_setting'], 'Query settings got saved');
   }
 
 }
diff --git a/core/modules/views_ui/tests/src/Functional/RearrangeFieldsTest.php b/core/modules/views_ui/tests/src/Functional/RearrangeFieldsTest.php
index 125a7e928b..d71ee04b96 100644
--- a/core/modules/views_ui/tests/src/Functional/RearrangeFieldsTest.php
+++ b/core/modules/views_ui/tests/src/Functional/RearrangeFieldsTest.php
@@ -72,7 +72,7 @@ public function testRearrangeFields() {
     $this->assertFieldOrder($view_name, $reversedFields);
 
     // Checks that there is a remove link for each field.
-    $this->assertEqual(count($this->cssSelect('a.views-remove-link')), count($fields));
+    $this->assertEquals(count($this->cssSelect('a.views-remove-link')), count($fields));
   }
 
 }
diff --git a/core/modules/views_ui/tests/src/Functional/SettingsTest.php b/core/modules/views_ui/tests/src/Functional/SettingsTest.php
index 1ac98c6e63..63f1869681 100644
--- a/core/modules/views_ui/tests/src/Functional/SettingsTest.php
+++ b/core/modules/views_ui/tests/src/Functional/SettingsTest.php
@@ -103,7 +103,7 @@ public function testEditUI() {
 
     $this->drupalPostForm(NULL, [], t('Update preview'));
     $xpath = $this->xpath('//div[@class="views-query-info"]/pre');
-    $this->assertEqual(count($xpath), 0, 'The views sql is hidden.');
+    $this->assertEquals(count($xpath), 0, 'The views sql is hidden.');
 
     $edit = [
       'ui_show_sql_query_enabled' => TRUE,
@@ -115,7 +115,7 @@ public function testEditUI() {
 
     $this->drupalPostForm(NULL, [], t('Update preview'));
     $xpath = $this->xpath('//div[@class="views-query-info"]//pre');
-    $this->assertEqual(count($xpath), 1, 'The views sql is shown.');
+    $this->assertEquals(count($xpath), 1, 'The views sql is shown.');
     $this->assertFalse(strpos($xpath[0]->getText(), 'db_condition_placeholder') !== FALSE, 'No placeholders are shown in the views sql.');
     $this->assertTrue(strpos($xpath[0]->getText(), "node_field_data.status = '1'") !== FALSE, 'The placeholders in the views sql is replace by the actual value.');
 
diff --git a/core/modules/views_ui/tests/src/Functional/StorageTest.php b/core/modules/views_ui/tests/src/Functional/StorageTest.php
index df3d030e70..147bc08866 100644
--- a/core/modules/views_ui/tests/src/Functional/StorageTest.php
+++ b/core/modules/views_ui/tests/src/Functional/StorageTest.php
@@ -49,7 +49,7 @@ public function testDetails() {
     $view = Views::getView($view_name);
 
     foreach (['label', 'tag', 'description', 'langcode'] as $property) {
-      $this->assertEqual($view->storage->get($property), $edit[$property], format_string('Make sure the property @property got probably saved.', ['@property' => $property]));
+      $this->assertEquals($view->storage->get($property), $edit[$property], format_string('Make sure the property @property got probably saved.', ['@property' => $property]));
     }
   }
 
diff --git a/core/modules/views_ui/tests/src/Functional/StyleTableTest.php b/core/modules/views_ui/tests/src/Functional/StyleTableTest.php
index d00df33022..6ea7191794 100644
--- a/core/modules/views_ui/tests/src/Functional/StyleTableTest.php
+++ b/core/modules/views_ui/tests/src/Functional/StyleTableTest.php
@@ -29,7 +29,7 @@ public function testWizard() {
 
     $view = Views::getView($view['id']);
     $view->initHandlers();
-    $this->assertEqual($view->field['title']->options['label'], 'Title', 'The field label for table styles is not empty.');
+    $this->assertEquals($view->field['title']->options['label'], 'Title', 'The field label for table styles is not empty.');
   }
 
 }
diff --git a/core/modules/views_ui/tests/src/Functional/ViewEditTest.php b/core/modules/views_ui/tests/src/Functional/ViewEditTest.php
index 94f9da8144..5472b0ea5e 100644
--- a/core/modules/views_ui/tests/src/Functional/ViewEditTest.php
+++ b/core/modules/views_ui/tests/src/Functional/ViewEditTest.php
@@ -176,7 +176,7 @@ public function testEditFormLanguageOptions() {
         $elements = $this->xpath('//select[@id="edit-rendering-language"]/option');
         // Compare values inside the option elements with expected values.
         for ($i = 0; $i < count($elements); $i++) {
-          $this->assertEqual($elements[$i]->getAttribute('value'), $expected_elements[$i]);
+          $this->assertEquals($elements[$i]->getAttribute('value'), $expected_elements[$i]);
         }
 
         // Check that the selected values are respected even we they are not
@@ -228,7 +228,7 @@ public function testEditFormLanguageOptions() {
         $elements = $this->xpath('//div[@id="edit-options-value"]//input');
         // Compare values inside the option elements with expected values.
         for ($i = 0; $i < count($elements); $i++) {
-          $this->assertEqual($elements[$i]->getAttribute('value'), $expected_elements[$i]);
+          $this->assertEquals($elements[$i]->getAttribute('value'), $expected_elements[$i]);
         }
       }
     }
diff --git a/core/modules/views_ui/tests/src/Functional/ViewsListTest.php b/core/modules/views_ui/tests/src/Functional/ViewsListTest.php
index 956ab9bc0c..7795dfb15b 100644
--- a/core/modules/views_ui/tests/src/Functional/ViewsListTest.php
+++ b/core/modules/views_ui/tests/src/Functional/ViewsListTest.php
@@ -62,7 +62,7 @@ public function testViewsListLimit() {
     $this->drupalGet('admin/structure/views');
 
     // Check that all the rows are listed.
-    $this->assertEqual(count($this->xpath('//tbody/tr[contains(@class,"views-ui-list-enabled")]')), $limit);
+    $this->assertEquals(count($this->xpath('//tbody/tr[contains(@class,"views-ui-list-enabled")]')), $limit);
   }
 
 }
diff --git a/core/modules/views_ui/tests/src/Kernel/TagTest.php b/core/modules/views_ui/tests/src/Kernel/TagTest.php
index 44d341776d..b330d49558 100644
--- a/core/modules/views_ui/tests/src/Kernel/TagTest.php
+++ b/core/modules/views_ui/tests/src/Kernel/TagTest.php
@@ -42,7 +42,7 @@ public function testViewsUiAutocompleteTag() {
     $request->query->set('q', 'autocomplete_tag_test');
     $result = $controller->autocompleteTag($request);
     $matches = (array) json_decode($result->getContent(), TRUE);
-    $this->assertEqual(count($matches), 10, 'Make sure the maximum amount of tag results is 10.');
+    $this->assertEquals(count($matches), 10, 'Make sure the maximum amount of tag results is 10.');
 
     // Make sure the returned array has the proper format.
     $suggestions = array_map(function ($tag) {
@@ -56,7 +56,7 @@ public function testViewsUiAutocompleteTag() {
     $request->query->set('q', 'autocomplete_tag_test_even');
     $result = $controller->autocompleteTag($request);
     $matches = (array) json_decode($result->getContent(), TRUE);
-    $this->assertEqual(count($matches), 8, 'Make sure that only a subset is returned.');
+    $this->assertEquals(count($matches), 8, 'Make sure that only a subset is returned.');
     foreach ($matches as $tag) {
       $this->assertTrue(array_search($tag['value'], $tags) !== FALSE, format_string('Make sure the returned tag @tag actually exists.', ['@tag' => $tag['value']]));
     }
@@ -65,7 +65,7 @@ public function testViewsUiAutocompleteTag() {
     $request->query->set('q', $this->randomMachineName());
     $result = $controller->autocompleteTag($request);
     $matches = (array) json_decode($result->getContent());
-    $this->assertEqual(count($matches), 0, "Make sure an invalid tag doesn't return anything.");
+    $this->assertEquals(count($matches), 0, "Make sure an invalid tag doesn't return anything.");
   }
 
 }
diff --git a/core/profiles/standard/tests/src/Functional/StandardTest.php b/core/profiles/standard/tests/src/Functional/StandardTest.php
index f449c10a12..b25234c8e6 100644
--- a/core/profiles/standard/tests/src/Functional/StandardTest.php
+++ b/core/profiles/standard/tests/src/Functional/StandardTest.php
@@ -64,14 +64,14 @@ public function testStandard() {
       ':id' => 'block-bartik-help',
     ]);
 
-    $this->assertEqual(count($elements), 1, 'Found complementary role on help block.');
+    $this->assertEquals(count($elements), 1, 'Found complementary role on help block.');
 
     $this->drupalGet('');
     $elements = $this->xpath('//div[@role=:role and @id=:id]', [
       ':role' => 'complementary',
       ':id' => 'block-bartik-powered',
     ]);
-    $this->assertEqual(count($elements), 1, 'Found complementary role on powered by block.');
+    $this->assertEquals(count($elements), 1, 'Found complementary role on powered by block.');
 
     // Verify anonymous user can see the block.
     $this->drupalLogout();
@@ -137,7 +137,7 @@ public function testStandard() {
     /** @var \Drupal\contact\ContactFormInterface $contact_form */
     $contact_form = ContactForm::load('feedback');
     $recipients = $contact_form->getRecipients();
-    $this->assertEqual(['simpletest@example.com'], $recipients);
+    $this->assertEquals(['simpletest@example.com'], $recipients);
 
     $role = Role::create([
       'id' => 'admin_theme',
@@ -181,22 +181,22 @@ public function testStandard() {
     $this->drupalLogin($this->adminUser);
     $url = Url::fromRoute('contact.site_page');
     $this->drupalGet($url);
-    $this->assertEqual('UNCACHEABLE', $this->drupalGetHeader(DynamicPageCacheSubscriber::HEADER), 'Site-wide contact page cannot be cached by Dynamic Page Cache.');
+    $this->assertEquals('UNCACHEABLE', $this->drupalGetHeader(DynamicPageCacheSubscriber::HEADER), 'Site-wide contact page cannot be cached by Dynamic Page Cache.');
 
     $url = Url::fromRoute('<front>');
     $this->drupalGet($url);
     $this->drupalGet($url);
-    $this->assertEqual('HIT', $this->drupalGetHeader(DynamicPageCacheSubscriber::HEADER), 'Frontpage is cached by Dynamic Page Cache.');
+    $this->assertEquals('HIT', $this->drupalGetHeader(DynamicPageCacheSubscriber::HEADER), 'Frontpage is cached by Dynamic Page Cache.');
 
     $url = Url::fromRoute('entity.node.canonical', ['node' => 1]);
     $this->drupalGet($url);
     $this->drupalGet($url);
-    $this->assertEqual('HIT', $this->drupalGetHeader(DynamicPageCacheSubscriber::HEADER), 'Full node page is cached by Dynamic Page Cache.');
+    $this->assertEquals('HIT', $this->drupalGetHeader(DynamicPageCacheSubscriber::HEADER), 'Full node page is cached by Dynamic Page Cache.');
 
     $url = Url::fromRoute('entity.user.canonical', ['user' => 1]);
     $this->drupalGet($url);
     $this->drupalGet($url);
-    $this->assertEqual('HIT', $this->drupalGetHeader(DynamicPageCacheSubscriber::HEADER), 'User profile page is cached by Dynamic Page Cache.');
+    $this->assertEquals('HIT', $this->drupalGetHeader(DynamicPageCacheSubscriber::HEADER), 'User profile page is cached by Dynamic Page Cache.');
   }
 
 }
diff --git a/core/tests/Drupal/FunctionalTests/Image/ToolkitSetupFormTest.php b/core/tests/Drupal/FunctionalTests/Image/ToolkitSetupFormTest.php
index d501f1d98c..1fb62f3101 100644
--- a/core/tests/Drupal/FunctionalTests/Image/ToolkitSetupFormTest.php
+++ b/core/tests/Drupal/FunctionalTests/Image/ToolkitSetupFormTest.php
@@ -49,12 +49,12 @@ public function testToolkitSetupForm() {
     // Test changing the jpeg image quality.
     $edit = ['gd[image_jpeg_quality]' => '70'];
     $this->drupalPostForm(NULL, $edit, 'Save configuration');
-    $this->assertEqual($this->config('system.image.gd')->get('jpeg_quality'), '70');
+    $this->assertEquals($this->config('system.image.gd')->get('jpeg_quality'), '70');
 
     // Test changing the toolkit.
     $edit = ['image_toolkit' => 'test'];
     $this->drupalPostForm(NULL, $edit, 'Save configuration');
-    $this->assertEqual($this->config('system.image')->get('toolkit'), 'test');
+    $this->assertEquals($this->config('system.image')->get('toolkit'), 'test');
     $this->assertFieldByName('test[test_parameter]', '10');
 
     // Test changing the test toolkit parameter.
@@ -63,7 +63,7 @@ public function testToolkitSetupForm() {
     $this->assertText(t('Test parameter should be different from 0.'), 'Validation error displayed.');
     $edit = ['test[test_parameter]' => '20'];
     $this->drupalPostForm(NULL, $edit, 'Save configuration');
-    $this->assertEqual($this->config('system.image.test_toolkit')->get('test_parameter'), '20');
+    $this->assertEquals($this->config('system.image.test_toolkit')->get('test_parameter'), '20');
 
     // Test access without the permission 'administer site configuration'.
     $this->drupalLogin($this->drupalCreateUser(['access administration pages']));
diff --git a/core/tests/Drupal/FunctionalTests/Image/ToolkitTest.php b/core/tests/Drupal/FunctionalTests/Image/ToolkitTest.php
index 789369ceeb..147b75e67d 100644
--- a/core/tests/Drupal/FunctionalTests/Image/ToolkitTest.php
+++ b/core/tests/Drupal/FunctionalTests/Image/ToolkitTest.php
@@ -27,7 +27,7 @@ public function testGetAvailableToolkits() {
   public function testLoad() {
     $image = $this->getImage();
     $this->assertTrue(is_object($image), 'Returned an object.');
-    $this->assertEqual($image->getToolkitId(), 'test', 'Image had toolkit set.');
+    $this->assertEquals($image->getToolkitId(), 'test', 'Image had toolkit set.');
     $this->assertToolkitOperationsCalled(['parseFile']);
   }
 
@@ -49,10 +49,10 @@ public function testApply() {
     // Check that apply was called and with the correct parameters.
     $this->assertToolkitOperationsCalled(['apply']);
     $calls = $this->imageTestGetAllCalls();
-    $this->assertEqual($calls['apply'][0][0], 'my_operation', "'my_operation' was passed correctly as operation");
-    $this->assertEqual($calls['apply'][0][1]['p1'], 1, 'integer parameter p1 was passed correctly');
-    $this->assertEqual($calls['apply'][0][1]['p2'], TRUE, 'boolean parameter p2 was passed correctly');
-    $this->assertEqual($calls['apply'][0][1]['p3'], 'text', 'string parameter p3 was passed correctly');
+    $this->assertEquals($calls['apply'][0][0], 'my_operation', "'my_operation' was passed correctly as operation");
+    $this->assertEquals($calls['apply'][0][1]['p1'], 1, 'integer parameter p1 was passed correctly');
+    $this->assertEquals($calls['apply'][0][1]['p2'], TRUE, 'boolean parameter p2 was passed correctly');
+    $this->assertEquals($calls['apply'][0][1]['p3'], 'text', 'string parameter p3 was passed correctly');
   }
 
   /**
@@ -64,8 +64,8 @@ public function testApplyNoParameters() {
     // Check that apply was called and with the correct parameters.
     $this->assertToolkitOperationsCalled(['apply']);
     $calls = $this->imageTestGetAllCalls();
-    $this->assertEqual($calls['apply'][0][0], 'my_operation', "'my_operation' was passed correctly as operation");
-    $this->assertEqual($calls['apply'][0][1], [], 'passing no parameters was handled correctly');
+    $this->assertEquals($calls['apply'][0][0], 'my_operation', "'my_operation' was passed correctly as operation");
+    $this->assertEquals($calls['apply'][0][1], [], 'passing no parameters was handled correctly');
   }
 
   /**
diff --git a/core/tests/Drupal/FunctionalTests/Update/UpdatePathTestBaseTest.php b/core/tests/Drupal/FunctionalTests/Update/UpdatePathTestBaseTest.php
index a375db7e8c..e635d99237 100644
--- a/core/tests/Drupal/FunctionalTests/Update/UpdatePathTestBaseTest.php
+++ b/core/tests/Drupal/FunctionalTests/Update/UpdatePathTestBaseTest.php
@@ -32,7 +32,7 @@ protected function setDatabaseDumpFiles() {
    */
   public function testDatabaseLoaded() {
     foreach (['user', 'node', 'system', 'update_test_schema'] as $module) {
-      $this->assertEqual(drupal_get_installed_schema_version($module), 8000, SafeMarkup::format('Module @module schema is 8000', ['@module' => $module]));
+      $this->assertEquals(drupal_get_installed_schema_version($module), 8000, SafeMarkup::format('Module @module schema is 8000', ['@module' => $module]));
     }
 
     // Ensure that all {router} entries can be unserialized. If they cannot be
@@ -57,7 +57,7 @@ public function testDatabaseLoaded() {
     // Before accessing the site we need to run updates first or the site might
     // be broken.
     $this->runUpdates();
-    $this->assertEqual(\Drupal::config('system.site')->get('name'), 'Site-Install');
+    $this->assertEquals(\Drupal::config('system.site')->get('name'), 'Site-Install');
     $this->drupalGet('<front>');
     $this->assertText('Site-Install');
 
@@ -65,8 +65,8 @@ public function testDatabaseLoaded() {
     // nor SQLite make changes that are testable.
     $database = $this->container->get('database');
     if ($database->driver() == 'pgsql') {
-      $this->assertEqual('on', $database->query("SHOW standard_conforming_strings")->fetchField());
-      $this->assertEqual('escape', $database->query("SHOW bytea_output")->fetchField());
+      $this->assertEquals('on', $database->query("SHOW standard_conforming_strings")->fetchField());
+      $this->assertEquals('escape', $database->query("SHOW bytea_output")->fetchField());
     }
   }
 
@@ -86,10 +86,10 @@ public function testUpdateHookN() {
     $container_cannot_be_saved_messages = array_filter(iterator_to_array($select->execute()), function ($row) {
       return strpos($row->message, 'Container cannot be saved to cache.') !== FALSE;
     });
-    $this->assertEqual([], $container_cannot_be_saved_messages);
+    $this->assertEquals([], $container_cannot_be_saved_messages);
 
     // Ensure schema has changed.
-    $this->assertEqual(drupal_get_installed_schema_version('update_test_schema', TRUE), 8001);
+    $this->assertEquals(drupal_get_installed_schema_version('update_test_schema', TRUE), 8001);
     // Ensure the index was added for column a.
     $this->assertTrue(db_index_exists('update_test_schema_table', 'test'), 'Version 8001 of the update_test_schema module is installed.');
   }
diff --git a/core/tests/Drupal/KernelTests/Core/Asset/AttachedAssetsTest.php b/core/tests/Drupal/KernelTests/Core/Asset/AttachedAssetsTest.php
index 1e1c6fd8fa..12772a45dc 100644
--- a/core/tests/Drupal/KernelTests/Core/Asset/AttachedAssetsTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Asset/AttachedAssetsTest.php
@@ -57,10 +57,10 @@ protected function setUp() {
    */
   public function testDefault() {
     $assets = new AttachedAssets();
-    $this->assertEqual([], $this->assetResolver->getCssAssets($assets, FALSE), 'Default CSS is empty.');
+    $this->assertEquals([], $this->assetResolver->getCssAssets($assets, FALSE), 'Default CSS is empty.');
     list($js_assets_header, $js_assets_footer) = $this->assetResolver->getJsAssets($assets, FALSE);
-    $this->assertEqual([], $js_assets_header, 'Default header JavaScript is empty.');
-    $this->assertEqual([], $js_assets_footer, 'Default footer JavaScript is empty.');
+    $this->assertEquals([], $js_assets_header, 'Default header JavaScript is empty.');
+    $this->assertEquals([], $js_assets_footer, 'Default footer JavaScript is empty.');
   }
 
   /**
@@ -102,15 +102,15 @@ public function testAddJsSettings() {
     $build['#attached']['library'][] = 'core/drupalSettings';
     $assets = AttachedAssets::createFromRenderArray($build);
 
-    $this->assertEqual([], $assets->getSettings(), 'JavaScript settings on $assets are empty.');
+    $this->assertEquals([], $assets->getSettings(), 'JavaScript settings on $assets are empty.');
     $javascript = $this->assetResolver->getJsAssets($assets, FALSE)[1];
     $this->assertTrue(array_key_exists('currentPath', $javascript['drupalSettings']['data']['path']), 'The current path JavaScript setting is set correctly.');
     $this->assertTrue(array_key_exists('currentPath', $assets->getSettings()['path']), 'JavaScript settings on $assets are resolved after retrieving JavaScript assets, and are equal to the returned JavaScript settings.');
 
     $assets->setSettings(['drupal' => 'rocks', 'dries' => 280342800]);
     $javascript = $this->assetResolver->getJsAssets($assets, FALSE)[1];
-    $this->assertEqual(280342800, $javascript['drupalSettings']['data']['dries'], 'JavaScript setting is set correctly.');
-    $this->assertEqual('rocks', $javascript['drupalSettings']['data']['drupal'], 'The other JavaScript setting is set correctly.');
+    $this->assertEquals(280342800, $javascript['drupalSettings']['data']['dries'], 'JavaScript setting is set correctly.');
+    $this->assertEquals('rocks', $javascript['drupalSettings']['data']['drupal'], 'The other JavaScript setting is set correctly.');
   }
 
   /**
@@ -173,14 +173,14 @@ public function testAggregation() {
     $build['#attached']['library'][] = 'core/drupal.vertical-tabs';
     $assets = AttachedAssets::createFromRenderArray($build);
 
-    $this->assertEqual(1, count($this->assetResolver->getCssAssets($assets, TRUE)), 'There is a sole aggregated CSS asset.');
+    $this->assertEquals(1, count($this->assetResolver->getCssAssets($assets, TRUE)), 'There is a sole aggregated CSS asset.');
 
     list($header_js, $footer_js) = $this->assetResolver->getJsAssets($assets, TRUE);
-    $this->assertEqual([], \Drupal::service('asset.js.collection_renderer')->render($header_js), 'There are 0 JavaScript assets in the header.');
+    $this->assertEquals([], \Drupal::service('asset.js.collection_renderer')->render($header_js), 'There are 0 JavaScript assets in the header.');
     $rendered_footer_js = \Drupal::service('asset.js.collection_renderer')->render($footer_js);
-    $this->assertEqual(2, count($rendered_footer_js), 'There are 2 JavaScript assets in the footer.');
-    $this->assertEqual('drupal-settings-json', $rendered_footer_js[0]['#attributes']['data-drupal-selector'], 'The first of the two JavaScript assets in the footer has drupal settings.');
-    $this->assertEqual(0, strpos($rendered_footer_js[1]['#attributes']['src'], base_path()), 'The second of the two JavaScript assets in the footer has the sole aggregated JavaScript asset.');
+    $this->assertEquals(2, count($rendered_footer_js), 'There are 2 JavaScript assets in the footer.');
+    $this->assertEquals('drupal-settings-json', $rendered_footer_js[0]['#attributes']['data-drupal-selector'], 'The first of the two JavaScript assets in the footer has drupal settings.');
+    $this->assertEquals(0, strpos($rendered_footer_js[1]['#attributes']['src'], base_path()), 'The second of the two JavaScript assets in the footer has the sole aggregated JavaScript asset.');
   }
 
   /**
@@ -412,7 +412,7 @@ public function testLibraryAlter() {
     /** @var \Drupal\Core\Asset\LibraryDiscoveryInterface $library_discovery */
     $library_discovery = \Drupal::service('library.discovery');
     $library = $library_discovery->getLibraryByName('core', 'jquery.farbtastic');
-    $this->assertEqual($library['version'], '0.0', 'Registered libraries were altered.');
+    $this->assertEquals($library['version'], '0.0', 'Registered libraries were altered.');
 
     // common_test_library_info_alter() also added a dependency on jQuery Form.
     $build['#attached']['library'][] = 'core/jquery.farbtastic';
@@ -454,7 +454,7 @@ public function testLibraryNameConflicts() {
     /** @var \Drupal\Core\Asset\LibraryDiscoveryInterface $library_discovery */
     $library_discovery = \Drupal::service('library.discovery');
     $farbtastic = $library_discovery->getLibraryByName('common_test', 'jquery.farbtastic');
-    $this->assertEqual($farbtastic['version'], '0.1', 'Alternative libraries can be added to the page.');
+    $this->assertEquals($farbtastic['version'], '0.1', 'Alternative libraries can be added to the page.');
   }
 
   /**
diff --git a/core/tests/Drupal/KernelTests/Core/Asset/LibraryDiscoveryIntegrationTest.php b/core/tests/Drupal/KernelTests/Core/Asset/LibraryDiscoveryIntegrationTest.php
index a77adfcdc1..70b436e22e 100644
--- a/core/tests/Drupal/KernelTests/Core/Asset/LibraryDiscoveryIntegrationTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Asset/LibraryDiscoveryIntegrationTest.php
@@ -63,7 +63,7 @@ public function testLibrariesOverride() {
     $this->activateTheme('test_theme');
 
     // Assert that entire library was correctly overridden.
-    $this->assertEqual($this->libraryDiscovery->getLibraryByName('core', 'drupal.collapse'), $this->libraryDiscovery->getLibraryByName('test_theme', 'collapse'), 'Entire library correctly overridden.');
+    $this->assertEquals($this->libraryDiscovery->getLibraryByName('core', 'drupal.collapse'), $this->libraryDiscovery->getLibraryByName('test_theme', 'collapse'), 'Entire library correctly overridden.');
 
     // Assert that classy library assets were correctly overridden or removed.
     $this->assertNoAssetInLibrary('core/themes/classy/css/components/button.css', 'classy', 'base', 'css');
@@ -104,7 +104,7 @@ public function testLibrariesOverrideDrupalSettings() {
     }
     catch (InvalidLibrariesOverrideSpecificationException $e) {
       $expected_message = 'drupalSettings may not be overridden in libraries-override. Trying to override core/drupal.ajax/drupalSettings. Use hook_library_info_alter() instead.';
-      $this->assertEqual($e->getMessage(), $expected_message, 'Throw Exception when trying to override drupalSettings');
+      $this->assertEquals($e->getMessage(), $expected_message, 'Throw Exception when trying to override drupalSettings');
     }
   }
 
@@ -122,7 +122,7 @@ public function testLibrariesOverrideMalformedAsset() {
     }
     catch (InvalidLibrariesOverrideSpecificationException $e) {
       $expected_message = 'Library asset core/drupal.dialog/css is not correctly specified. It should be in the form "extension/library_name/sub_key/path/to/asset.js".';
-      $this->assertEqual($e->getMessage(), $expected_message, 'Throw Exception when specifying invalid override');
+      $this->assertEquals($e->getMessage(), $expected_message, 'Throw Exception when specifying invalid override');
     }
   }
 
@@ -193,7 +193,7 @@ public function testLibrariesExtend() {
     }
     catch (InvalidLibrariesExtendSpecificationException $e) {
       $expected_message = 'The specified library "test_theme_libraries_extend/non_existent_library" does not exist.';
-      $this->assertEqual($e->getMessage(), $expected_message, 'Throw Exception when specifying non-existent libraries-extend.');
+      $this->assertEquals($e->getMessage(), $expected_message, 'Throw Exception when specifying non-existent libraries-extend.');
     }
 
     // Also, test non-string libraries-extend. An exception should be thrown.
@@ -204,7 +204,7 @@ public function testLibrariesExtend() {
     }
     catch (InvalidLibrariesExtendSpecificationException $e) {
       $expected_message = 'The libraries-extend specification for each library must be a list of strings.';
-      $this->assertEqual($e->getMessage(), $expected_message, 'Throw Exception when specifying non-string libraries-extend.');
+      $this->assertEquals($e->getMessage(), $expected_message, 'Throw Exception when specifying non-string libraries-extend.');
     }
   }
 
diff --git a/core/tests/Drupal/KernelTests/Core/Asset/ResolvedLibraryDefinitionsFilesMatchTest.php b/core/tests/Drupal/KernelTests/Core/Asset/ResolvedLibraryDefinitionsFilesMatchTest.php
index 4836e16f3a..ed1c29572b 100644
--- a/core/tests/Drupal/KernelTests/Core/Asset/ResolvedLibraryDefinitionsFilesMatchTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Asset/ResolvedLibraryDefinitionsFilesMatchTest.php
@@ -178,13 +178,13 @@ protected function getAllLibraries() {
     $extensions = $modules;
     $module_list = array_keys($modules);
     sort($module_list);
-    $this->assertEqual($this->allModules, $module_list, 'All core modules are installed.');
+    $this->assertEquals($this->allModules, $module_list, 'All core modules are installed.');
 
     $themes = $this->themeHandler->listInfo();
     $extensions += $themes;
     $theme_list = array_keys($themes);
     sort($theme_list);
-    $this->assertEqual($this->allThemes, $theme_list, 'All core themes are installed.');
+    $this->assertEquals($this->allThemes, $theme_list, 'All core themes are installed.');
 
     $libraries['core'] = $this->libraryDiscovery->getLibrariesByExtension('core');
 
diff --git a/core/tests/Drupal/KernelTests/Core/Bootstrap/ResettableStaticTest.php b/core/tests/Drupal/KernelTests/Core/Bootstrap/ResettableStaticTest.php
index a2a7a85b8c..4dd7b6ec49 100644
--- a/core/tests/Drupal/KernelTests/Core/Bootstrap/ResettableStaticTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Bootstrap/ResettableStaticTest.php
@@ -20,22 +20,22 @@ class ResettableStaticTest extends KernelTestBase {
   public function testDrupalStatic() {
     $name = __CLASS__ . '_' . __METHOD__;
     $var = &drupal_static($name, 'foo');
-    $this->assertEqual($var, 'foo', 'Variable returned by drupal_static() was set to its default.');
+    $this->assertEquals($var, 'foo', 'Variable returned by drupal_static() was set to its default.');
 
     // Call the specific reset and the global reset each twice to ensure that
     // multiple resets can be issued without odd side effects.
     $var = 'bar';
     drupal_static_reset($name);
-    $this->assertEqual($var, 'foo', 'Variable was reset after first invocation of name-specific reset.');
+    $this->assertEquals($var, 'foo', 'Variable was reset after first invocation of name-specific reset.');
     $var = 'bar';
     drupal_static_reset($name);
-    $this->assertEqual($var, 'foo', 'Variable was reset after second invocation of name-specific reset.');
+    $this->assertEquals($var, 'foo', 'Variable was reset after second invocation of name-specific reset.');
     $var = 'bar';
     drupal_static_reset();
-    $this->assertEqual($var, 'foo', 'Variable was reset after first invocation of global reset.');
+    $this->assertEquals($var, 'foo', 'Variable was reset after first invocation of global reset.');
     $var = 'bar';
     drupal_static_reset();
-    $this->assertEqual($var, 'foo', 'Variable was reset after second invocation of global reset.');
+    $this->assertEquals($var, 'foo', 'Variable was reset after second invocation of global reset.');
   }
 
 }
diff --git a/core/tests/Drupal/KernelTests/Core/Cache/ApcuBackendTest.php b/core/tests/Drupal/KernelTests/Core/Cache/ApcuBackendTest.php
index 0161d2c2bf..0d3e90fc31 100644
--- a/core/tests/Drupal/KernelTests/Core/Cache/ApcuBackendTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Cache/ApcuBackendTest.php
@@ -98,7 +98,7 @@ public function testSetGet() {
     }
 
     foreach ($iterator as $item) {
-      $this->assertEqual(0, $item['ttl']);
+      $this->assertEquals(0, $item['ttl']);
       $found = TRUE;
     }
     $this->assertTrue($found);
diff --git a/core/tests/Drupal/KernelTests/Core/Cache/CacheContextOptimizationTest.php b/core/tests/Drupal/KernelTests/Core/Cache/CacheContextOptimizationTest.php
index 0ae0230535..e306ca99b0 100644
--- a/core/tests/Drupal/KernelTests/Core/Cache/CacheContextOptimizationTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Cache/CacheContextOptimizationTest.php
@@ -37,7 +37,7 @@ protected function setUp() {
    */
   public function testUserPermissionCacheContextOptimization() {
     $user1 = $this->createUser();
-    $this->assertEqual($user1->id(), 1);
+    $this->assertEquals($user1->id(), 1);
 
     $authenticated_user = $this->createUser(['administer permissions']);
     $role = $authenticated_user->getRoles()[1];
@@ -52,14 +52,14 @@ public function testUserPermissionCacheContextOptimization() {
     $element = $test_element;
     $element['#markup'] = 'content for authenticated users';
     $output = \Drupal::service('renderer')->renderRoot($element);
-    $this->assertEqual($output, 'content for authenticated users');
+    $this->assertEquals($output, 'content for authenticated users');
 
     // Verify that the render caching is working so that other tests can be
     // trusted.
     $element = $test_element;
     $element['#markup'] = 'this should not be visible';
     $output = \Drupal::service('renderer')->renderRoot($element);
-    $this->assertEqual($output, 'content for authenticated users');
+    $this->assertEquals($output, 'content for authenticated users');
 
     // Even though the cache contexts have been optimized to only include 'user'
     // cache context, the element should have been changed because
@@ -72,7 +72,7 @@ public function testUserPermissionCacheContextOptimization() {
     $element = $test_element;
     $element['#markup'] = 'this should be visible';
     $output = \Drupal::service('renderer')->renderRoot($element);
-    $this->assertEqual($output, 'this should be visible');
+    $this->assertEquals($output, 'this should be visible');
   }
 
   /**
@@ -80,7 +80,7 @@ public function testUserPermissionCacheContextOptimization() {
    */
   public function testUserRolesCacheContextOptimization() {
     $root_user = $this->createUser();
-    $this->assertEqual($root_user->id(), 1);
+    $this->assertEquals($root_user->id(), 1);
 
     $authenticated_user = $this->createUser(['administer permissions']);
     $role = $authenticated_user->getRoles()[1];
@@ -95,14 +95,14 @@ public function testUserRolesCacheContextOptimization() {
     $element = $test_element;
     $element['#markup'] = 'content for authenticated users';
     $output = \Drupal::service('renderer')->renderRoot($element);
-    $this->assertEqual($output, 'content for authenticated users');
+    $this->assertEquals($output, 'content for authenticated users');
 
     // Verify that the render caching is working so that other tests can be
     // trusted.
     $element = $test_element;
     $element['#markup'] = 'this should not be visible';
     $output = \Drupal::service('renderer')->renderRoot($element);
-    $this->assertEqual($output, 'content for authenticated users');
+    $this->assertEquals($output, 'content for authenticated users');
 
     // Even though the cache contexts have been optimized to only include 'user'
     // cache context, the element should have been changed because 'user.roles'
@@ -113,7 +113,7 @@ public function testUserRolesCacheContextOptimization() {
     $element = $test_element;
     $element['#markup'] = 'this should be visible';
     $output = \Drupal::service('renderer')->renderRoot($element);
-    $this->assertEqual($output, 'this should be visible');
+    $this->assertEquals($output, 'this should be visible');
   }
 
 }
diff --git a/core/tests/Drupal/KernelTests/Core/Cache/DatabaseBackendTagTest.php b/core/tests/Drupal/KernelTests/Core/Cache/DatabaseBackendTagTest.php
index 0fefc390f4..245136cdea 100644
--- a/core/tests/Drupal/KernelTests/Core/Cache/DatabaseBackendTagTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Cache/DatabaseBackendTagTest.php
@@ -54,7 +54,7 @@ public function testTagInvalidations() {
 
     // Test that only one tag invalidation has occurred.
     $invalidations_after = intval(db_select('cachetags')->fields('cachetags', ['invalidations'])->condition('tag', 'test_tag:2')->execute()->fetchField());
-    $this->assertEqual($invalidations_after, $invalidations_before + 1, 'Only one addition cache tag invalidation has occurred after invalidating a tag used in multiple bins.');
+    $this->assertEquals($invalidations_after, $invalidations_before + 1, 'Only one addition cache tag invalidation has occurred after invalidating a tag used in multiple bins.');
   }
 
 }
diff --git a/core/tests/Drupal/KernelTests/Core/Cache/GenericCacheBackendUnitTestBase.php b/core/tests/Drupal/KernelTests/Core/Cache/GenericCacheBackendUnitTestBase.php
index ce5b28c91c..459239422f 100644
--- a/core/tests/Drupal/KernelTests/Core/Cache/GenericCacheBackendUnitTestBase.php
+++ b/core/tests/Drupal/KernelTests/Core/Cache/GenericCacheBackendUnitTestBase.php
@@ -139,7 +139,7 @@ public function testSetGet() {
     $this->assertTrue($cached->valid, 'Item is marked as valid.');
     // We need to round because microtime may be rounded up in the backend.
     $this->assertTrue($cached->created >= REQUEST_TIME && $cached->created <= round(microtime(TRUE), 3), 'Created time is correct.');
-    $this->assertEqual($cached->expire, Cache::PERMANENT, 'Expire time is correct.');
+    $this->assertEquals($cached->expire, Cache::PERMANENT, 'Expire time is correct.');
 
     $this->assertSame(FALSE, $backend->get('test2'), "Backend does not contain data for cache id test2.");
     $backend->set('test2', ['value' => 3], REQUEST_TIME + 3);
@@ -148,7 +148,7 @@ public function testSetGet() {
     $this->assertSame(['value' => 3], $cached->data);
     $this->assertTrue($cached->valid, 'Item is marked as valid.');
     $this->assertTrue($cached->created >= REQUEST_TIME && $cached->created <= round(microtime(TRUE), 3), 'Created time is correct.');
-    $this->assertEqual($cached->expire, REQUEST_TIME + 3, 'Expire time is correct.');
+    $this->assertEquals($cached->expire, REQUEST_TIME + 3, 'Expire time is correct.');
 
     $backend->set('test3', 'foobar', REQUEST_TIME - 3);
     $this->assertFalse($backend->get('test3'), 'Invalid item not returned.');
@@ -156,7 +156,7 @@ public function testSetGet() {
     $this->assert(is_object($cached), 'Backend returned an object for cache id test3.');
     $this->assertFalse($cached->valid, 'Item is marked as valid.');
     $this->assertTrue($cached->created >= REQUEST_TIME && $cached->created <= round(microtime(TRUE), 3), 'Created time is correct.');
-    $this->assertEqual($cached->expire, REQUEST_TIME - 3, 'Expire time is correct.');
+    $this->assertEquals($cached->expire, REQUEST_TIME - 3, 'Expire time is correct.');
 
     $this->assertSame(FALSE, $backend->get('test4'), "Backend does not contain data for cache id test4.");
     $with_eof = ['foo' => "\nEOF\ndata"];
@@ -166,7 +166,7 @@ public function testSetGet() {
     $this->assertSame($with_eof, $cached->data);
     $this->assertTrue($cached->valid, 'Item is marked as valid.');
     $this->assertTrue($cached->created >= REQUEST_TIME && $cached->created <= round(microtime(TRUE), 3), 'Created time is correct.');
-    $this->assertEqual($cached->expire, Cache::PERMANENT, 'Expire time is correct.');
+    $this->assertEquals($cached->expire, Cache::PERMANENT, 'Expire time is correct.');
 
     $this->assertSame(FALSE, $backend->get('test5'), "Backend does not contain data for cache id test5.");
     $with_eof_and_semicolon = ['foo' => "\nEOF;\ndata"];
@@ -176,7 +176,7 @@ public function testSetGet() {
     $this->assertSame($with_eof_and_semicolon, $cached->data);
     $this->assertTrue($cached->valid, 'Item is marked as valid.');
     $this->assertTrue($cached->created >= REQUEST_TIME && $cached->created <= round(microtime(TRUE), 3), 'Created time is correct.');
-    $this->assertEqual($cached->expire, Cache::PERMANENT, 'Expire time is correct.');
+    $this->assertEquals($cached->expire, Cache::PERMANENT, 'Expire time is correct.');
 
     $with_variable = ['foo' => '$bar'];
     $backend->set('test6', $with_variable);
@@ -195,7 +195,7 @@ public function testSetGet() {
     $data->this_should_not_be_in_the_cache = TRUE;
     $cached = $backend->get('test7');
     $this->assert(is_object($cached), "Backend returned an object for cache id test7.");
-    $this->assertEqual($expected_data, $cached->data);
+    $this->assertEquals($expected_data, $cached->data);
     $this->assertFalse(isset($cached->data->this_should_not_be_in_the_cache));
     // Add a property to the cache data. It should not appear when we fetch
     // the data from cache again.
@@ -206,11 +206,11 @@ public function testSetGet() {
     // Check with a long key.
     $cid = str_repeat('a', 300);
     $backend->set($cid, 'test');
-    $this->assertEqual('test', $backend->get($cid)->data);
+    $this->assertEquals('test', $backend->get($cid)->data);
 
     // Check that the cache key is case sensitive.
     $backend->set('TEST8', 'value');
-    $this->assertEqual('value', $backend->get('TEST8')->data);
+    $this->assertEquals('value', $backend->get('TEST8')->data);
     $this->assertFalse($backend->get('test8'));
 
     // Calling ::set() with invalid cache tags. This should fail an assertion.
@@ -318,7 +318,7 @@ public function testGetMultiple() {
     // Test return - ensure that objects has expected properties.
     $this->assertTrue($ret['test2']->valid, 'Item is marked as valid.');
     $this->assertTrue($ret['test2']->created >= REQUEST_TIME && $ret['test2']->created <= round(microtime(TRUE), 3), 'Created time is correct.');
-    $this->assertEqual($ret['test2']->expire, Cache::PERMANENT, 'Expire time is correct.');
+    $this->assertEquals($ret['test2']->expire, Cache::PERMANENT, 'Expire time is correct.');
     // Test return - ensure it does not contain nonexistent cache ids.
     $this->assertFalse(isset($ret['test19']), "Nonexistent cache id test19 is not set.");
     $this->assertFalse(isset($ret['test21']), "Nonexistent cache id test21 is not set.");
@@ -368,7 +368,7 @@ public function testGetMultiple() {
     // Test with a long $cid and non-numeric array key.
     $cids = ['key:key' => $long_cid];
     $return = $backend->getMultiple($cids);
-    $this->assertEqual(300, $return[$long_cid]->data);
+    $this->assertEquals(300, $return[$long_cid]->data);
     $this->assertTrue(empty($cids));
   }
 
@@ -393,21 +393,21 @@ public function testSetMultiple() {
     $cids = array_keys($items);
     $cached = $backend->getMultiple($cids);
 
-    $this->assertEqual($cached['cid_1']->data, $items['cid_1']['data'], 'Over-written cache item set correctly.');
+    $this->assertEquals($cached['cid_1']->data, $items['cid_1']['data'], 'Over-written cache item set correctly.');
     $this->assertTrue($cached['cid_1']->valid, 'Item is marked as valid.');
     $this->assertTrue($cached['cid_1']->created >= REQUEST_TIME && $cached['cid_1']->created <= round(microtime(TRUE), 3), 'Created time is correct.');
-    $this->assertEqual($cached['cid_1']->expire, CacheBackendInterface::CACHE_PERMANENT, 'Cache expiration defaults to permanent.');
+    $this->assertEquals($cached['cid_1']->expire, CacheBackendInterface::CACHE_PERMANENT, 'Cache expiration defaults to permanent.');
 
-    $this->assertEqual($cached['cid_2']->data, $items['cid_2']['data'], 'New cache item set correctly.');
-    $this->assertEqual($cached['cid_2']->expire, CacheBackendInterface::CACHE_PERMANENT, 'Cache expiration defaults to permanent.');
+    $this->assertEquals($cached['cid_2']->data, $items['cid_2']['data'], 'New cache item set correctly.');
+    $this->assertEquals($cached['cid_2']->expire, CacheBackendInterface::CACHE_PERMANENT, 'Cache expiration defaults to permanent.');
 
-    $this->assertEqual($cached['cid_3']->data, $items['cid_3']['data'], 'New cache item with serialized data set correctly.');
-    $this->assertEqual($cached['cid_3']->expire, CacheBackendInterface::CACHE_PERMANENT, 'Cache expiration defaults to permanent.');
+    $this->assertEquals($cached['cid_3']->data, $items['cid_3']['data'], 'New cache item with serialized data set correctly.');
+    $this->assertEquals($cached['cid_3']->expire, CacheBackendInterface::CACHE_PERMANENT, 'Cache expiration defaults to permanent.');
 
-    $this->assertEqual($cached['cid_4']->data, $items['cid_4']['data'], 'New cache item set correctly.');
-    $this->assertEqual($cached['cid_4']->expire, $future_expiration, 'Cache expiration has been correctly set.');
+    $this->assertEquals($cached['cid_4']->data, $items['cid_4']['data'], 'New cache item set correctly.');
+    $this->assertEquals($cached['cid_4']->expire, $future_expiration, 'Cache expiration has been correctly set.');
 
-    $this->assertEqual($cached['cid_5']->data, $items['cid_5']['data'], 'New cache item set correctly.');
+    $this->assertEquals($cached['cid_5']->data, $items['cid_5']['data'], 'New cache item set correctly.');
 
     // Calling ::setMultiple() with invalid cache tags. This should fail an
     // assertion.
@@ -507,18 +507,18 @@ public function testInvalidate() {
 
     $cids = $reference;
     $ret = $backend->getMultiple($cids);
-    $this->assertEqual(count($ret), 4, 'Four items returned.');
+    $this->assertEquals(count($ret), 4, 'Four items returned.');
 
     $backend->invalidate('test1');
     $backend->invalidateMultiple(['test2', 'test3']);
 
     $cids = $reference;
     $ret = $backend->getMultiple($cids);
-    $this->assertEqual(count($ret), 1, 'Only one item element returned.');
+    $this->assertEquals(count($ret), 1, 'Only one item element returned.');
 
     $cids = $reference;
     $ret = $backend->getMultiple($cids, TRUE);
-    $this->assertEqual(count($ret), 4, 'Four items returned.');
+    $this->assertEquals(count($ret), 4, 'Four items returned.');
 
     // Calling invalidateMultiple() with an empty array should not cause an
     // error.
diff --git a/core/tests/Drupal/KernelTests/Core/Common/SizeTest.php b/core/tests/Drupal/KernelTests/Core/Common/SizeTest.php
index 1ff31b951b..aa775e3810 100644
--- a/core/tests/Drupal/KernelTests/Core/Common/SizeTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Common/SizeTest.php
@@ -48,7 +48,7 @@ protected function setUp() {
   public function testCommonFormatSize() {
     foreach ([$this->exactTestCases, $this->roundedTestCases] as $test_cases) {
       foreach ($test_cases as $expected => $input) {
-        $this->assertEqual(
+        $this->assertEquals(
           ($result = format_size($input, NULL)),
           $expected,
           $expected . ' == ' . $result . ' (' . $input . ' bytes)'
@@ -62,7 +62,7 @@ public function testCommonFormatSize() {
    */
   public function testCommonParseSizeFormatSize() {
     foreach ($this->exactTestCases as $size) {
-      $this->assertEqual(
+      $this->assertEquals(
         $size,
         ($parsed_size = Bytes::toInt($string = format_size($size, NULL))),
         $size . ' == ' . $parsed_size . ' (' . $string . ')'
diff --git a/core/tests/Drupal/KernelTests/Core/Common/XssUnitTest.php b/core/tests/Drupal/KernelTests/Core/Common/XssUnitTest.php
index 23754879eb..f05f5783d4 100644
--- a/core/tests/Drupal/KernelTests/Core/Common/XssUnitTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Common/XssUnitTest.php
@@ -30,11 +30,11 @@ protected function setUp() {
    */
   public function testT() {
     $text = t('Simple text');
-    $this->assertEqual($text, 'Simple text', 't leaves simple text alone.');
+    $this->assertEquals($text, 'Simple text', 't leaves simple text alone.');
     $text = t('Escaped text: @value', ['@value' => '<script>']);
-    $this->assertEqual($text, 'Escaped text: &lt;script&gt;', 't replaces and escapes string.');
+    $this->assertEquals($text, 'Escaped text: &lt;script&gt;', 't replaces and escapes string.');
     $text = t('Placeholder text: %value', ['%value' => '<script>']);
-    $this->assertEqual($text, 'Placeholder text: <em class="placeholder">&lt;script&gt;</em>', 't replaces, escapes and themes string.');
+    $this->assertEquals($text, 'Placeholder text: <em class="placeholder">&lt;script&gt;</em>', 't replaces, escapes and themes string.');
   }
 
   /**
diff --git a/core/tests/Drupal/KernelTests/Core/Config/CacheabilityMetadataConfigOverrideTest.php b/core/tests/Drupal/KernelTests/Core/Config/CacheabilityMetadataConfigOverrideTest.php
index c52e3ea853..c89b052486 100644
--- a/core/tests/Drupal/KernelTests/Core/Config/CacheabilityMetadataConfigOverrideTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Config/CacheabilityMetadataConfigOverrideTest.php
@@ -45,12 +45,12 @@ public function testConfigOverride() {
 
     // Check that we are using the Pirate theme.
     $theme = $config->get('default');
-    $this->assertEqual('pirate', $theme);
+    $this->assertEquals('pirate', $theme);
 
     // Check that the cacheability metadata is correct.
-    $this->assertEqual(['pirate_day'], $config->getCacheContexts());
-    $this->assertEqual(['config:system.theme', 'pirate-day-tag'], $config->getCacheTags());
-    $this->assertEqual(PirateDayCacheContext::PIRATE_DAY_MAX_AGE, $config->getCacheMaxAge());
+    $this->assertEquals(['pirate_day'], $config->getCacheContexts());
+    $this->assertEquals(['config:system.theme', 'pirate-day-tag'], $config->getCacheTags());
+    $this->assertEquals(PirateDayCacheContext::PIRATE_DAY_MAX_AGE, $config->getCacheMaxAge());
   }
 
   /**
@@ -68,23 +68,23 @@ public function testConfigEntityOverride() {
     $block = $entity_manager->getStorage('block')->load('call_to_action');
 
     // Check that our call to action message is appealing to filibusters.
-    $this->assertEqual($block->label(), 'Draw yer cutlasses!');
+    $this->assertEquals($block->label(), 'Draw yer cutlasses!');
 
     // Check that the cacheability metadata is correct.
-    $this->assertEqual(['pirate_day'], $block->getCacheContexts());
-    $this->assertEqual(['config:block.block.call_to_action', 'pirate-day-tag'], $block->getCacheTags());
-    $this->assertEqual(PirateDayCacheContext::PIRATE_DAY_MAX_AGE, $block->getCacheMaxAge());
+    $this->assertEquals(['pirate_day'], $block->getCacheContexts());
+    $this->assertEquals(['config:block.block.call_to_action', 'pirate-day-tag'], $block->getCacheTags());
+    $this->assertEquals(PirateDayCacheContext::PIRATE_DAY_MAX_AGE, $block->getCacheMaxAge());
 
     // Check that duplicating a config entity does not have the original config
     // entity's cache tag.
-    $this->assertEqual(['config:block.block.', 'pirate-day-tag'], $block->createDuplicate()->getCacheTags());
+    $this->assertEquals(['config:block.block.', 'pirate-day-tag'], $block->createDuplicate()->getCacheTags());
 
     // Check that renaming a config entity does not have the original config
     // entity's cache tag.
     $block->set('id', 'call_to_looting')->save();
-    $this->assertEqual(['pirate_day'], $block->getCacheContexts());
-    $this->assertEqual(['config:block.block.call_to_looting', 'pirate-day-tag'], $block->getCacheTags());
-    $this->assertEqual(PirateDayCacheContext::PIRATE_DAY_MAX_AGE, $block->getCacheMaxAge());
+    $this->assertEquals(['pirate_day'], $block->getCacheContexts());
+    $this->assertEquals(['config:block.block.call_to_looting', 'pirate-day-tag'], $block->getCacheTags());
+    $this->assertEquals(PirateDayCacheContext::PIRATE_DAY_MAX_AGE, $block->getCacheMaxAge());
   }
 
 }
diff --git a/core/tests/Drupal/KernelTests/Core/Config/ConfigCRUDTest.php b/core/tests/Drupal/KernelTests/Core/Config/ConfigCRUDTest.php
index 9f2a1a75ff..ee7b4bcd39 100644
--- a/core/tests/Drupal/KernelTests/Core/Config/ConfigCRUDTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Config/ConfigCRUDTest.php
@@ -151,7 +151,7 @@ public function testCRUD() {
     // previously accessed with get()
     $new_config = $config_factory->get('non_existing_key');
     $this->assertTrue($new_config->isNew());
-    $this->assertEqual(0, count($config_factory->loadMultiple(['non_existing_key'])), 'loadMultiple() does not return new objects');
+    $this->assertEquals(0, count($config_factory->loadMultiple(['non_existing_key'])), 'loadMultiple() does not return new objects');
   }
 
   /**
diff --git a/core/tests/Drupal/KernelTests/Core/Config/ConfigDependencyTest.php b/core/tests/Drupal/KernelTests/Core/Config/ConfigDependencyTest.php
index a9cd9f1902..31e8049890 100644
--- a/core/tests/Drupal/KernelTests/Core/Config/ConfigDependencyTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Config/ConfigDependencyTest.php
@@ -159,7 +159,7 @@ public function testDependencyManagement() {
 
     // Test the ability to find missing content dependencies.
     $missing_dependencies = $config_manager->findMissingContentDependencies();
-    $this->assertEqual([], $missing_dependencies);
+    $this->assertEquals([], $missing_dependencies);
 
     $expected = [
       $entity_test->uuid() => [
@@ -171,7 +171,7 @@ public function testDependencyManagement() {
     // Delete the content entity so that is it now missing.
     $entity_test->delete();
     $missing_dependencies = $config_manager->findMissingContentDependencies();
-    $this->assertEqual($expected, $missing_dependencies);
+    $this->assertEquals($expected, $missing_dependencies);
 
     // Add a fake missing dependency to ensure multiple missing dependencies
     // work.
@@ -182,7 +182,7 @@ public function testDependencyManagement() {
       'uuid' => 'uuid',
     ];
     $missing_dependencies = $config_manager->findMissingContentDependencies();
-    $this->assertEqual($expected, $missing_dependencies);
+    $this->assertEquals($expected, $missing_dependencies);
   }
 
   /**
@@ -353,11 +353,11 @@ public function testConfigEntityUninstallComplex(array $entity_id_suffixes) {
     $this->assertSame(['config' => [$entity_1->getConfigDependencyName()], 'content' => [], 'module' => ['node'], 'theme' => []], $called[$entity_4->id()]);
     $this->assertSame(['config' => [$entity_1->getConfigDependencyName()], 'content' => [], 'module' => [], 'theme' => []], $called[$entity_5->id()]);
 
-    $this->assertEqual($entity_1->uuid(), $config_entities['delete'][1]->uuid(), 'Entity 1 will be deleted.');
-    $this->assertEqual($entity_2->uuid(), $config_entities['update'][0]->uuid(), 'Entity 2 will be updated.');
-    $this->assertEqual($entity_3->uuid(), reset($config_entities['unchanged'])->uuid(), 'Entity 3 is not changed.');
-    $this->assertEqual($entity_4->uuid(), $config_entities['delete'][0]->uuid(), 'Entity 4 will be deleted.');
-    $this->assertEqual($entity_5->uuid(), $config_entities['update'][1]->uuid(), 'Entity 5 is updated.');
+    $this->assertEquals($entity_1->uuid(), $config_entities['delete'][1]->uuid(), 'Entity 1 will be deleted.');
+    $this->assertEquals($entity_2->uuid(), $config_entities['update'][0]->uuid(), 'Entity 2 will be updated.');
+    $this->assertEquals($entity_3->uuid(), reset($config_entities['unchanged'])->uuid(), 'Entity 3 is not changed.');
+    $this->assertEquals($entity_4->uuid(), $config_entities['delete'][0]->uuid(), 'Entity 4 will be deleted.');
+    $this->assertEquals($entity_5->uuid(), $config_entities['update'][1]->uuid(), 'Entity 5 is updated.');
 
     // Perform a module rebuild so we can know where the node module is located
     // and uninstall it.
@@ -370,10 +370,10 @@ public function testConfigEntityUninstallComplex(array $entity_id_suffixes) {
     $this->assertFalse($storage->load($entity_1->id()), 'Entity 1 deleted');
     $entity_2 = $storage->load($entity_2->id());
     $this->assertTrue($entity_2, 'Entity 2 not deleted');
-    $this->assertEqual($entity_2->calculateDependencies()->getDependencies()['config'], [], 'Entity 2 dependencies updated to remove dependency on entity 1.');
+    $this->assertEquals($entity_2->calculateDependencies()->getDependencies()['config'], [], 'Entity 2 dependencies updated to remove dependency on entity 1.');
     $entity_3 = $storage->load($entity_3->id());
     $this->assertTrue($entity_3, 'Entity 3 not deleted');
-    $this->assertEqual($entity_3->calculateDependencies()->getDependencies()['config'], [$entity_2->getConfigDependencyName()], 'Entity 3 still depends on entity 2.');
+    $this->assertEquals($entity_3->calculateDependencies()->getDependencies()['config'], [$entity_2->getConfigDependencyName()], 'Entity 3 still depends on entity 2.');
     $this->assertFalse($storage->load($entity_4->id()), 'Entity 4 deleted');
   }
 
@@ -527,7 +527,7 @@ public function testConfigEntityDelete() {
     // Do a dry run using
     // \Drupal\Core\Config\ConfigManager::getConfigEntitiesToChangeOnDependencyRemoval().
     $config_entities = $config_manager->getConfigEntitiesToChangeOnDependencyRemoval('config', [$entity1->getConfigDependencyName()]);
-    $this->assertEqual($entity2->uuid(), reset($config_entities['delete'])->uuid(), 'Entity 2 will be deleted.');
+    $this->assertEquals($entity2->uuid(), reset($config_entities['delete'])->uuid(), 'Entity 2 will be deleted.');
     $this->assertTrue(empty($config_entities['update']), 'No dependent configuration entities will be updated.');
     $this->assertTrue(empty($config_entities['unchanged']), 'No dependent configuration entities will be unchanged.');
 
@@ -581,8 +581,8 @@ public function testConfigEntityDelete() {
     // \Drupal\Core\Config\ConfigManager::getConfigEntitiesToChangeOnDependencyRemoval().
     $config_entities = $config_manager->getConfigEntitiesToChangeOnDependencyRemoval('config', [$entity1->getConfigDependencyName()]);
     $this->assertTrue(empty($config_entities['delete']), 'No dependent configuration entities will be deleted.');
-    $this->assertEqual($entity2->uuid(), reset($config_entities['update'])->uuid(), 'Entity 2 will be updated.');
-    $this->assertEqual($entity3->uuid(), reset($config_entities['unchanged'])->uuid(), 'Entity 3 is not changed.');
+    $this->assertEquals($entity2->uuid(), reset($config_entities['update'])->uuid(), 'Entity 2 will be updated.');
+    $this->assertEquals($entity3->uuid(), reset($config_entities['unchanged'])->uuid(), 'Entity 3 is not changed.');
 
     // Perform the uninstall.
     $entity1->delete();
@@ -591,10 +591,10 @@ public function testConfigEntityDelete() {
     $this->assertFalse($storage->load('entity1'), 'Entity 1 deleted');
     $entity2 = $storage->load('entity2');
     $this->assertTrue($entity2, 'Entity 2 not deleted');
-    $this->assertEqual($entity2->calculateDependencies()->getDependencies()['config'], [], 'Entity 2 dependencies updated to remove dependency on Entity1.');
+    $this->assertEquals($entity2->calculateDependencies()->getDependencies()['config'], [], 'Entity 2 dependencies updated to remove dependency on Entity1.');
     $entity3 = $storage->load('entity3');
     $this->assertTrue($entity3, 'Entity 3 not deleted');
-    $this->assertEqual($entity3->calculateDependencies()->getDependencies()['config'], [$entity2->getConfigDependencyName()], 'Entity 3 still depends on Entity 2.');
+    $this->assertEquals($entity3->calculateDependencies()->getDependencies()['config'], [$entity2->getConfigDependencyName()], 'Entity 3 still depends on Entity 2.');
   }
 
   /**
@@ -644,8 +644,8 @@ public function testContentEntityDelete() {
     $entity3->save();
 
     $config_entities = $config_manager->getConfigEntitiesToChangeOnDependencyRemoval('content', [$content_entity->getConfigDependencyName()]);
-    $this->assertEqual($entity1->uuid(), $config_entities['delete'][1]->uuid(), 'Entity 1 will be deleted.');
-    $this->assertEqual($entity2->uuid(), $config_entities['delete'][0]->uuid(), 'Entity 2 will be deleted.');
+    $this->assertEquals($entity1->uuid(), $config_entities['delete'][1]->uuid(), 'Entity 1 will be deleted.');
+    $this->assertEquals($entity2->uuid(), $config_entities['delete'][0]->uuid(), 'Entity 2 will be deleted.');
     $this->assertTrue(empty($config_entities['update']), 'No dependencies of the content entity will be updated.');
     $this->assertTrue(empty($config_entities['unchanged']), 'No dependencies of the content entity will be unchanged.');
   }
diff --git a/core/tests/Drupal/KernelTests/Core/Config/ConfigEventsTest.php b/core/tests/Drupal/KernelTests/Core/Config/ConfigEventsTest.php
index 74bb7984e6..3342ad6eec 100644
--- a/core/tests/Drupal/KernelTests/Core/Config/ConfigEventsTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Config/ConfigEventsTest.php
@@ -68,7 +68,7 @@ public function testConfigRenameEvent() {
     $this->assertIdentical($event['current_config_data'], ['key' => 'initial']);
 
     // Override applies when getting runtime config.
-    $this->assertEqual($GLOBALS['config'][$name], \Drupal::config($name)->get());
+    $this->assertEquals($GLOBALS['config'][$name], \Drupal::config($name)->get());
 
     \Drupal::configFactory()->rename($name, $new_name);
     $event = \Drupal::state()->get('config_events_test.event', []);
diff --git a/core/tests/Drupal/KernelTests/Core/Config/ConfigFileContentTest.php b/core/tests/Drupal/KernelTests/Core/Config/ConfigFileContentTest.php
index b449064e04..1aec965777 100644
--- a/core/tests/Drupal/KernelTests/Core/Config/ConfigFileContentTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Config/ConfigFileContentTest.php
@@ -54,11 +54,11 @@ public function testReadWriteConfig() {
     $config = $this->config($name);
 
     // Verify a configuration object is returned.
-    $this->assertEqual($config->getName(), $name);
+    $this->assertEquals($config->getName(), $name);
     $this->assertTrue($config, 'Config object created.');
 
     // Verify the configuration object is empty.
-    $this->assertEqual($config->get(), [], 'New config object is empty.');
+    $this->assertEquals($config->get(), [], 'New config object is empty.');
 
     // Verify nothing was saved.
     $data = $storage->read($name);
@@ -96,18 +96,18 @@ public function testReadWriteConfig() {
 
     // Read top level value.
     $config = $this->config($name);
-    $this->assertEqual($config->getName(), $name);
+    $this->assertEquals($config->getName(), $name);
     $this->assertTrue($config, 'Config object created.');
-    $this->assertEqual($config->get($key), 'bar', 'Top level configuration value found.');
+    $this->assertEquals($config->get($key), 'bar', 'Top level configuration value found.');
 
     // Read nested value.
-    $this->assertEqual($config->get($nested_key), $nested_value, 'Nested configuration value found.');
+    $this->assertEquals($config->get($nested_key), $nested_value, 'Nested configuration value found.');
 
     // Read array.
-    $this->assertEqual($config->get($array_key), $array_value, 'Top level array configuration value found.');
+    $this->assertEquals($config->get($array_key), $array_value, 'Top level array configuration value found.');
 
     // Read nested array.
-    $this->assertEqual($config->get($nested_array_key), $array_value, 'Nested array configuration value found.');
+    $this->assertEquals($config->get($nested_array_key), $array_value, 'Nested array configuration value found.');
 
     // Read a top level value that doesn't exist.
     $this->assertNull($config->get('i_dont_exist'), 'Non-existent top level value returned NULL.');
@@ -153,27 +153,27 @@ public function testReadWriteConfig() {
 
     // Verify the database entry exists from a chained save.
     $data = $storage->read($chained_name);
-    $this->assertEqual($data, $config->get());
+    $this->assertEquals($data, $config->get());
 
     // Get file listing for all files starting with 'foo'. Should return
     // two elements.
     $files = $storage->listAll('foo');
-    $this->assertEqual(count($files), 2, 'Two files listed with the prefix \'foo\'.');
+    $this->assertEquals(count($files), 2, 'Two files listed with the prefix \'foo\'.');
 
     // Get file listing for all files starting with 'biff'. Should return
     // one element.
     $files = $storage->listAll('biff');
-    $this->assertEqual(count($files), 1, 'One file listed with the prefix \'biff\'.');
+    $this->assertEquals(count($files), 1, 'One file listed with the prefix \'biff\'.');
 
     // Get file listing for all files starting with 'foo.bar'. Should return
     // one element.
     $files = $storage->listAll('foo.bar');
-    $this->assertEqual(count($files), 1, 'One file listed with the prefix \'foo.bar\'.');
+    $this->assertEquals(count($files), 1, 'One file listed with the prefix \'foo.bar\'.');
 
     // Get file listing for all files starting with 'bar'. Should return
     // an empty array.
     $files = $storage->listAll('bar');
-    $this->assertEqual($files, [], 'No files listed with the prefix \'bar\'.');
+    $this->assertEquals($files, [], 'No files listed with the prefix \'bar\'.');
 
     // Delete the configuration.
     $config = $this->config($name);
diff --git a/core/tests/Drupal/KernelTests/Core/Config/ConfigImportRecreateTest.php b/core/tests/Drupal/KernelTests/Core/Config/ConfigImportRecreateTest.php
index c69f9febb4..fc6cc12506 100644
--- a/core/tests/Drupal/KernelTests/Core/Config/ConfigImportRecreateTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Config/ConfigImportRecreateTest.php
@@ -89,9 +89,9 @@ public function testRecreateEntity() {
     // will be recreated.
     $creates = $this->configImporter->getUnprocessedConfiguration('create');
     $deletes = $this->configImporter->getUnprocessedConfiguration('delete');
-    $this->assertEqual(5, count($creates), 'There are 5 configuration items to create.');
-    $this->assertEqual(5, count($deletes), 'There are 5 configuration items to delete.');
-    $this->assertEqual(0, count($this->configImporter->getUnprocessedConfiguration('update')), 'There are no configuration items to update.');
+    $this->assertEquals(5, count($creates), 'There are 5 configuration items to create.');
+    $this->assertEquals(5, count($deletes), 'There are 5 configuration items to delete.');
+    $this->assertEquals(0, count($this->configImporter->getUnprocessedConfiguration('update')), 'There are no configuration items to update.');
     $this->assertSame($creates, array_reverse($deletes), 'Deletes and creates contain the same configuration names in opposite orders due to dependencies.');
 
     $this->configImporter->import();
@@ -99,7 +99,7 @@ public function testRecreateEntity() {
     // Verify that there is nothing more to import.
     $this->assertFalse($this->configImporter->reset()->hasUnprocessedConfigurationChanges());
     $content_type = NodeType::load($type_name);
-    $this->assertEqual('Node type one', $content_type->label());
+    $this->assertEquals('Node type one', $content_type->label());
   }
 
 }
diff --git a/core/tests/Drupal/KernelTests/Core/Config/ConfigImportRenameValidationTest.php b/core/tests/Drupal/KernelTests/Core/Config/ConfigImportRenameValidationTest.php
index 9c1875c85d..96210e4646 100644
--- a/core/tests/Drupal/KernelTests/Core/Config/ConfigImportRenameValidationTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Config/ConfigImportRenameValidationTest.php
@@ -108,7 +108,7 @@ public function testRenameValidation() {
       $expected = [
         SafeMarkup::format('Entity type mismatch on rename. @old_type not equal to @new_type for existing configuration @old_name and staged configuration @new_name.', ['@old_type' => 'node_type', '@new_type' => 'config_test', '@old_name' => 'node.type.' . $content_type->id(), '@new_name' => 'config_test.dynamic.' . $test_entity_id])
       ];
-      $this->assertEqual($expected, $this->configImporter->getErrors());
+      $this->assertEquals($expected, $this->configImporter->getErrors());
     }
   }
 
@@ -151,7 +151,7 @@ public function testRenameSimpleConfigValidation() {
       $expected = [
         SafeMarkup::format('Rename operation for simple configuration. Existing configuration @old_name and staged configuration @new_name.', ['@old_name' => 'config_test.old', '@new_name' => 'config_test.new'])
       ];
-      $this->assertEqual($expected, $this->configImporter->getErrors());
+      $this->assertEquals($expected, $this->configImporter->getErrors());
     }
   }
 
diff --git a/core/tests/Drupal/KernelTests/Core/Config/ConfigImporterMissingContentTest.php b/core/tests/Drupal/KernelTests/Core/Config/ConfigImporterMissingContentTest.php
index 59f9cb2ed7..7ed0462d3b 100644
--- a/core/tests/Drupal/KernelTests/Core/Config/ConfigImporterMissingContentTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Config/ConfigImporterMissingContentTest.php
@@ -91,11 +91,11 @@ public function testMissingContent() {
 
     // Import.
     $this->configImporter->reset()->import();
-    $this->assertEqual([], $this->configImporter->getErrors(), 'There were no errors during the import.');
-    $this->assertEqual($entity_one->uuid(), \Drupal::state()->get('config_import_test.config_import_missing_content_one'), 'The missing content event is fired during configuration import.');
-    $this->assertEqual($entity_two->uuid(), \Drupal::state()->get('config_import_test.config_import_missing_content_two'), 'The missing content event is fired during configuration import.');
+    $this->assertEquals([], $this->configImporter->getErrors(), 'There were no errors during the import.');
+    $this->assertEquals($entity_one->uuid(), \Drupal::state()->get('config_import_test.config_import_missing_content_one'), 'The missing content event is fired during configuration import.');
+    $this->assertEquals($entity_two->uuid(), \Drupal::state()->get('config_import_test.config_import_missing_content_two'), 'The missing content event is fired during configuration import.');
     $original_dynamic_data = $storage->read($dynamic_name);
-    $this->assertEqual([$entity_one->getConfigDependencyName(), $entity_two->getConfigDependencyName(), $entity_three->getConfigDependencyName()], $original_dynamic_data['dependencies']['content'], 'The imported configuration entity has the missing content entity dependency.');
+    $this->assertEquals([$entity_one->getConfigDependencyName(), $entity_two->getConfigDependencyName(), $entity_three->getConfigDependencyName()], $original_dynamic_data['dependencies']['content'], 'The imported configuration entity has the missing content entity dependency.');
   }
 
 }
diff --git a/core/tests/Drupal/KernelTests/Core/Config/ConfigImporterTest.php b/core/tests/Drupal/KernelTests/Core/Config/ConfigImporterTest.php
index 9d3989cf18..b5710b3caf 100644
--- a/core/tests/Drupal/KernelTests/Core/Config/ConfigImporterTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Config/ConfigImporterTest.php
@@ -104,10 +104,10 @@ public function testSiteUuidValidate() {
       $this->fail('ConfigImporterException not thrown, invalid import was not stopped due to mis-matching site UUID.');
     }
     catch (ConfigImporterException $e) {
-      $this->assertEqual($e->getMessage(), 'There were errors validating the config synchronization.');
+      $this->assertEquals($e->getMessage(), 'There were errors validating the config synchronization.');
       $error_log = $this->configImporter->getErrors();
       $expected = ['Site UUID in source storage does not match the target storage.'];
-      $this->assertEqual($expected, $error_log);
+      $this->assertEquals($expected, $error_log);
     }
   }
 
@@ -145,7 +145,7 @@ public function testDeleted() {
 
     $this->assertFalse($this->configImporter->hasUnprocessedConfigurationChanges());
     $logs = $this->configImporter->getErrors();
-    $this->assertEqual(count($logs), 0);
+    $this->assertEquals(count($logs), 0);
   }
 
   /**
@@ -199,7 +199,7 @@ public function testNew() {
     // Verify that there is nothing more to import.
     $this->assertFalse($this->configImporter->hasUnprocessedConfigurationChanges());
     $logs = $this->configImporter->getErrors();
-    $this->assertEqual(count($logs), 0);
+    $this->assertEquals(count($logs), 0);
   }
 
   /**
@@ -235,17 +235,17 @@ public function testSecondaryWritePrimaryFirst() {
 
     $entity_storage = \Drupal::entityManager()->getStorage('config_test');
     $primary = $entity_storage->load('primary');
-    $this->assertEqual($primary->id(), 'primary');
-    $this->assertEqual($primary->uuid(), $values_primary['uuid']);
-    $this->assertEqual($primary->label(), $values_primary['label']);
+    $this->assertEquals($primary->id(), 'primary');
+    $this->assertEquals($primary->uuid(), $values_primary['uuid']);
+    $this->assertEquals($primary->label(), $values_primary['label']);
     $secondary = $entity_storage->load('secondary');
-    $this->assertEqual($secondary->id(), 'secondary');
-    $this->assertEqual($secondary->uuid(), $values_secondary['uuid']);
-    $this->assertEqual($secondary->label(), $values_secondary['label']);
+    $this->assertEquals($secondary->id(), 'secondary');
+    $this->assertEquals($secondary->uuid(), $values_secondary['uuid']);
+    $this->assertEquals($secondary->label(), $values_secondary['label']);
 
     $logs = $this->configImporter->getErrors();
-    $this->assertEqual(count($logs), 1);
-    $this->assertEqual($logs[0], SafeMarkup::format('Deleted and replaced configuration entity "@name"', ['@name' => $name_secondary]));
+    $this->assertEquals(count($logs), 1);
+    $this->assertEquals($logs[0], SafeMarkup::format('Deleted and replaced configuration entity "@name"', ['@name' => $name_secondary]));
   }
 
   /**
@@ -281,17 +281,17 @@ public function testSecondaryWriteSecondaryFirst() {
 
     $entity_storage = \Drupal::entityManager()->getStorage('config_test');
     $primary = $entity_storage->load('primary');
-    $this->assertEqual($primary->id(), 'primary');
-    $this->assertEqual($primary->uuid(), $values_primary['uuid']);
-    $this->assertEqual($primary->label(), $values_primary['label']);
+    $this->assertEquals($primary->id(), 'primary');
+    $this->assertEquals($primary->uuid(), $values_primary['uuid']);
+    $this->assertEquals($primary->label(), $values_primary['label']);
     $secondary = $entity_storage->load('secondary');
-    $this->assertEqual($secondary->id(), 'secondary');
-    $this->assertEqual($secondary->uuid(), $values_secondary['uuid']);
-    $this->assertEqual($secondary->label(), $values_secondary['label']);
+    $this->assertEquals($secondary->id(), 'secondary');
+    $this->assertEquals($secondary->uuid(), $values_secondary['uuid']);
+    $this->assertEquals($secondary->label(), $values_secondary['label']);
 
     $logs = $this->configImporter->getErrors();
-    $this->assertEqual(count($logs), 1);
-    $this->assertEqual($logs[0], Html::escape("Unexpected error during import with operation create for $name_primary: 'config_test' entity with ID 'secondary' already exists."));
+    $this->assertEquals(count($logs), 1);
+    $this->assertEquals($logs[0], Html::escape("Unexpected error during import with operation create for $name_primary: 'config_test' entity with ID 'secondary' already exists."));
   }
 
   /**
@@ -358,22 +358,22 @@ public function testSecondaryUpdateDeletedDeleterFirst() {
 
     $entity_storage = \Drupal::entityManager()->getStorage('config_test');
     $deleter = $entity_storage->load('deleter');
-    $this->assertEqual($deleter->id(), 'deleter');
-    $this->assertEqual($deleter->uuid(), $values_deleter['uuid']);
-    $this->assertEqual($deleter->label(), $values_deleter['label']);
+    $this->assertEquals($deleter->id(), 'deleter');
+    $this->assertEquals($deleter->uuid(), $values_deleter['uuid']);
+    $this->assertEquals($deleter->label(), $values_deleter['label']);
 
     // The deletee was deleted in
     // \Drupal\config_test\Entity\ConfigTest::postSave().
     $this->assertFalse($entity_storage->load('deletee'));
 
     $other = $entity_storage->load('other');
-    $this->assertEqual($other->id(), 'other');
-    $this->assertEqual($other->uuid(), $values_other['uuid']);
-    $this->assertEqual($other->label(), $values_other['label']);
+    $this->assertEquals($other->id(), 'other');
+    $this->assertEquals($other->uuid(), $values_other['uuid']);
+    $this->assertEquals($other->label(), $values_other['label']);
 
     $logs = $this->configImporter->getErrors();
-    $this->assertEqual(count($logs), 1);
-    $this->assertEqual($logs[0], SafeMarkup::format('Update target "@name" is missing.', ['@name' => $name_deletee]));
+    $this->assertEquals(count($logs), 1);
+    $this->assertEquals($logs[0], SafeMarkup::format('Update target "@name" is missing.', ['@name' => $name_deletee]));
   }
 
   /**
@@ -423,7 +423,7 @@ public function testSecondaryUpdateDeletedDeleteeFirst() {
     $this->assertFalse($entity_storage->load('deleter'));
     $this->assertFalse($entity_storage->load('deletee'));
     $logs = $this->configImporter->getErrors();
-    $this->assertEqual(count($logs), 0);
+    $this->assertEquals(count($logs), 0);
   }
 
   /**
@@ -465,7 +465,7 @@ public function testSecondaryDeletedDeleteeSecond() {
     // delete occurred in \Drupal\config_test\Entity\ConfigTest::postDelete()
     // this does not matter.
     $logs = $this->configImporter->getErrors();
-    $this->assertEqual(count($logs), 0);
+    $this->assertEquals(count($logs), 0);
   }
 
   /**
@@ -522,7 +522,7 @@ public function testUpdated() {
     // Verify that there is nothing more to import.
     $this->assertFalse($this->configImporter->hasUnprocessedConfigurationChanges());
     $logs = $this->configImporter->getErrors();
-    $this->assertEqual(count($logs), 0);
+    $this->assertEquals(count($logs), 0);
   }
 
   /**
@@ -580,7 +580,7 @@ public function testUnmetDependency() {
       $this->fail('ConfigImporterException not thrown; an invalid import was not stopped due to missing dependencies.');
     }
     catch (ConfigImporterException $e) {
-      $this->assertEqual($e->getMessage(), 'There were errors validating the config synchronization.');
+      $this->assertEquals($e->getMessage(), 'There were errors validating the config synchronization.');
       $error_log = $this->configImporter->getErrors();
       $expected = [
         'Unable to install the <em class="placeholder">unknown_module</em> module since it does not exist.',
@@ -611,7 +611,7 @@ public function testUnmetDependency() {
       $this->fail('ConfigImporterException not thrown, invalid import was not stopped due to missing dependencies.');
     }
     catch (ConfigImporterException $e) {
-      $this->assertEqual($e->getMessage(), 'There were errors validating the config synchronization.');
+      $this->assertEquals($e->getMessage(), 'There were errors validating the config synchronization.');
       $error_log = $this->configImporter->getErrors();
       $expected = [
         'Configuration <em class="placeholder">config_test.dynamic.dotted.config</em> depends on configuration (<em class="placeholder">unknown, unknown2</em>) that will not exist after import.',
@@ -637,9 +637,9 @@ public function testMissingCoreExtension() {
       $this->fail('ConfigImporterException not thrown, invalid import was not stopped due to missing dependencies.');
     }
     catch (ConfigImporterException $e) {
-      $this->assertEqual($e->getMessage(), 'There were errors validating the config synchronization.');
+      $this->assertEquals($e->getMessage(), 'There were errors validating the config synchronization.');
       $error_log = $this->configImporter->getErrors();
-      $this->assertEqual(['The core.extension configuration does not exist.'], $error_log);
+      $this->assertEquals(['The core.extension configuration does not exist.'], $error_log);
     }
   }
 
@@ -661,10 +661,10 @@ public function testInstallProfile() {
       $this->fail('ConfigImporterException not thrown; an invalid import was not stopped due to missing dependencies.');
     }
     catch (ConfigImporterException $e) {
-      $this->assertEqual($e->getMessage(), 'There were errors validating the config synchronization.');
+      $this->assertEquals($e->getMessage(), 'There were errors validating the config synchronization.');
       $error_log = $this->configImporter->getErrors();
       // Install profiles should not even be scanned at this point.
-      $this->assertEqual(['Unable to install the <em class="placeholder">standard</em> module since it does not exist.'], $error_log);
+      $this->assertEquals(['Unable to install the <em class="placeholder">standard</em> module since it does not exist.'], $error_log);
     }
   }
 
@@ -686,13 +686,13 @@ public function testInstallProfileMisMatch() {
       $this->fail('ConfigImporterException not thrown; an invalid import was not stopped due to missing dependencies.');
     }
     catch (ConfigImporterException $e) {
-      $this->assertEqual($e->getMessage(), 'There were errors validating the config synchronization.');
+      $this->assertEquals($e->getMessage(), 'There were errors validating the config synchronization.');
       $error_log = $this->configImporter->getErrors();
       // Install profiles can not be changed. Note that KernelTestBase currently
       // does not use an install profile. This situation should be impossible
       // to get in but site's can removed the install profile setting from
       // settings.php so the test is valid.
-      $this->assertEqual(['Cannot change the install profile from <em class="placeholder">this_will_not_work</em> to <em class="placeholder"></em> once Drupal is installed.'], $error_log);
+      $this->assertEquals(['Cannot change the install profile from <em class="placeholder">this_will_not_work</em> to <em class="placeholder"></em> once Drupal is installed.'], $error_log);
     }
   }
 
@@ -702,7 +702,7 @@ public function testInstallProfileMisMatch() {
   public function testConfigGetConfigDirectory() {
     global $config_directories;
     $directory = config_get_config_directory(CONFIG_SYNC_DIRECTORY);
-    $this->assertEqual($config_directories[CONFIG_SYNC_DIRECTORY], $directory);
+    $this->assertEquals($config_directories[CONFIG_SYNC_DIRECTORY], $directory);
 
     $message = 'Calling config_get_config_directory() with CONFIG_ACTIVE_DIRECTORY results in an exception.';
     try {
diff --git a/core/tests/Drupal/KernelTests/Core/Config/ConfigInstallTest.php b/core/tests/Drupal/KernelTests/Core/Config/ConfigInstallTest.php
index 9e473c29ff..85d0687eab 100644
--- a/core/tests/Drupal/KernelTests/Core/Config/ConfigInstallTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Config/ConfigInstallTest.php
@@ -90,7 +90,7 @@ public function testCollectionInstallationNoCollections() {
     $this->installConfig(['config_collection_install_test']);
     /** @var \Drupal\Core\Config\StorageInterface $active_storage */
     $active_storage = \Drupal::service('config.storage');
-    $this->assertEqual([], $active_storage->getAllCollectionNames());
+    $this->assertEquals([], $active_storage->getAllCollectionNames());
   }
 
   /**
@@ -110,11 +110,11 @@ public function testCollectionInstallationCollections() {
     $this->installConfig(['config_collection_install_test']);
     /** @var \Drupal\Core\Config\StorageInterface $active_storage */
     $active_storage = \Drupal::service('config.storage');
-    $this->assertEqual($collections, $active_storage->getAllCollectionNames());
+    $this->assertEquals($collections, $active_storage->getAllCollectionNames());
     foreach ($collections as $collection) {
       $collection_storage = $active_storage->createCollection($collection);
       $data = $collection_storage->read('config_collection_install_test.test');
-      $this->assertEqual($collection, $data['collection']);
+      $this->assertEquals($collection, $data['collection']);
     }
 
     // Tests that clashing configuration in collections is detected.
@@ -123,13 +123,13 @@ public function testCollectionInstallationCollections() {
       $this->fail('Expected PreExistingConfigException not thrown.');
     }
     catch (PreExistingConfigException $e) {
-      $this->assertEqual($e->getExtension(), 'config_collection_clash_install_test');
-      $this->assertEqual($e->getConfigObjects(), [
+      $this->assertEquals($e->getExtension(), 'config_collection_clash_install_test');
+      $this->assertEquals($e->getConfigObjects(), [
         'another_collection' => ['config_collection_install_test.test'],
         'collection.test1' => ['config_collection_install_test.test'],
         'collection.test2' => ['config_collection_install_test.test'],
       ]);
-      $this->assertEqual($e->getMessage(), 'Configuration objects (another_collection/config_collection_install_test.test, collection/test1/config_collection_install_test.test, collection/test2/config_collection_install_test.test) provided by config_collection_clash_install_test already exist in active configuration');
+      $this->assertEquals($e->getMessage(), 'Configuration objects (another_collection/config_collection_install_test.test, collection/test1/config_collection_install_test.test, collection/test2/config_collection_install_test.test) provided by config_collection_clash_install_test already exist in active configuration');
     }
 
     // Test that the we can use the config installer to install all the
@@ -138,12 +138,12 @@ public function testCollectionInstallationCollections() {
     \Drupal::service('config.installer')->installCollectionDefaultConfig('entity');
     // The 'entity' collection will not exist because the 'config_test' module
     // is not enabled.
-    $this->assertEqual($collections, $active_storage->getAllCollectionNames());
+    $this->assertEquals($collections, $active_storage->getAllCollectionNames());
     // Enable the 'config_test' module and try again.
     $this->enableModules(['config_test']);
     \Drupal::service('config.installer')->installCollectionDefaultConfig('entity');
     $collections[] = 'entity';
-    $this->assertEqual($collections, $active_storage->getAllCollectionNames());
+    $this->assertEquals($collections, $active_storage->getAllCollectionNames());
     $collection_storage = $active_storage->createCollection('entity');
     $data = $collection_storage->read('config_test.dynamic.dotted.default');
     $this->assertSame(['label' => 'entity'], $data);
@@ -151,9 +151,9 @@ public function testCollectionInstallationCollections() {
     // Test that the config manager uninstalls configuration from collections
     // as expected.
     \Drupal::service('config.manager')->uninstall('module', 'config_collection_install_test');
-    $this->assertEqual(['entity'], $active_storage->getAllCollectionNames());
+    $this->assertEquals(['entity'], $active_storage->getAllCollectionNames());
     \Drupal::service('config.manager')->uninstall('module', 'config_test');
-    $this->assertEqual([], $active_storage->getAllCollectionNames());
+    $this->assertEquals([], $active_storage->getAllCollectionNames());
   }
 
   /**
@@ -173,7 +173,7 @@ public function testCollectionInstallationCollectionConfigEntity() {
     $this->installModules(['config_test', 'config_collection_install_test']);
     /** @var \Drupal\Core\Config\StorageInterface $active_storage */
     $active_storage = \Drupal::service('config.storage');
-    $this->assertEqual($collections, $active_storage->getAllCollectionNames());
+    $this->assertEquals($collections, $active_storage->getAllCollectionNames());
     $collection_storage = $active_storage->createCollection('entity');
 
     // The config_test.dynamic.dotted.default configuration object saved in the
@@ -198,9 +198,9 @@ public function testDependencyChecking() {
       $this->fail('Expected UnmetDependenciesException not thrown.');
     }
     catch (UnmetDependenciesException $e) {
-      $this->assertEqual($e->getExtension(), 'config_install_dependency_test');
-      $this->assertEqual($e->getConfigObjects(), ['config_test.dynamic.other_module_test_with_dependency' => ['config_other_module_config_test', 'config_test.dynamic.dotted.english']]);
-      $this->assertEqual($e->getMessage(), 'Configuration objects provided by <em class="placeholder">config_install_dependency_test</em> have unmet dependencies: <em class="placeholder">config_test.dynamic.other_module_test_with_dependency (config_other_module_config_test, config_test.dynamic.dotted.english)</em>');
+      $this->assertEquals($e->getExtension(), 'config_install_dependency_test');
+      $this->assertEquals($e->getConfigObjects(), ['config_test.dynamic.other_module_test_with_dependency' => ['config_other_module_config_test', 'config_test.dynamic.dotted.english']]);
+      $this->assertEquals($e->getMessage(), 'Configuration objects provided by <em class="placeholder">config_install_dependency_test</em> have unmet dependencies: <em class="placeholder">config_test.dynamic.other_module_test_with_dependency (config_other_module_config_test, config_test.dynamic.dotted.english)</em>');
     }
     try {
       $this->installModules(['config_install_double_dependency_test']);
@@ -217,9 +217,9 @@ public function testDependencyChecking() {
       $this->fail('Expected UnmetDependenciesException not thrown.');
     }
     catch (UnmetDependenciesException $e) {
-      $this->assertEqual($e->getExtension(), 'config_install_dependency_test');
-      $this->assertEqual($e->getConfigObjects(), ['config_test.dynamic.other_module_test_with_dependency' => ['config_other_module_config_test']]);
-      $this->assertEqual($e->getMessage(), 'Configuration objects provided by <em class="placeholder">config_install_dependency_test</em> have unmet dependencies: <em class="placeholder">config_test.dynamic.other_module_test_with_dependency (config_other_module_config_test)</em>');
+      $this->assertEquals($e->getExtension(), 'config_install_dependency_test');
+      $this->assertEquals($e->getConfigObjects(), ['config_test.dynamic.other_module_test_with_dependency' => ['config_other_module_config_test']]);
+      $this->assertEquals($e->getMessage(), 'Configuration objects provided by <em class="placeholder">config_install_dependency_test</em> have unmet dependencies: <em class="placeholder">config_test.dynamic.other_module_test_with_dependency (config_other_module_config_test)</em>');
     }
     $this->installModules(['config_other_module_config_test']);
     $this->installModules(['config_install_dependency_test']);
@@ -239,15 +239,15 @@ public function testLanguage() {
     $storage = new InstallStorage();
     $data = $storage->read('config_test.dynamic.dotted.english');
     $this->assertTrue(!isset($data['langcode']));
-    $this->assertEqual(
+    $this->assertEquals(
       $this->config('config_test.dynamic.dotted.english')->get('langcode'),
       'en'
     );
 
     // Test imported configuration with explicit language code.
     $data = $storage->read('config_test.dynamic.dotted.french');
-    $this->assertEqual($data['langcode'], 'fr');
-    $this->assertEqual(
+    $this->assertEquals($data['langcode'], 'fr');
+    $this->assertEquals(
       $this->config('config_test.dynamic.dotted.french')->get('langcode'),
       'fr'
     );
diff --git a/core/tests/Drupal/KernelTests/Core/Config/ConfigLanguageOverrideTest.php b/core/tests/Drupal/KernelTests/Core/Config/ConfigLanguageOverrideTest.php
index 5bf6f0ec47..3ede084985 100644
--- a/core/tests/Drupal/KernelTests/Core/Config/ConfigLanguageOverrideTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Config/ConfigLanguageOverrideTest.php
@@ -88,33 +88,33 @@ public function testConfigLanguageOverride() {
     \Drupal::languageManager()->setConfigOverrideLanguage(\Drupal::languageManager()->getLanguage('en'));
     \Drupal::configFactory()->rename('config_test.foo', 'config_test.bar');
     $config = \Drupal::config('config_test.bar');
-    $this->assertEqual($config->get('value'), ['key' => 'original']);
+    $this->assertEquals($config->get('value'), ['key' => 'original']);
     $override = \Drupal::languageManager()->getLanguageConfigOverride('de', 'config_test.foo');
     $this->assertTrue($override->isNew());
-    $this->assertEqual($override->get('value'), NULL);
+    $this->assertEquals($override->get('value'), NULL);
     $override = \Drupal::languageManager()->getLanguageConfigOverride('de', 'config_test.bar');
     $this->assertFalse($override->isNew());
-    $this->assertEqual($override->get('value'), ['key' => 'override']);
+    $this->assertEquals($override->get('value'), ['key' => 'override']);
     $override = \Drupal::languageManager()->getLanguageConfigOverride('fr', 'config_test.bar');
     $this->assertFalse($override->isNew());
-    $this->assertEqual($override->get('value'), ['key' => 'override']);
+    $this->assertEquals($override->get('value'), ['key' => 'override']);
 
     // Ensure changing data in the config will update the overrides.
     $config = \Drupal::configFactory()->getEditable('config_test.bar')->clear('value.key')->save();
-    $this->assertEqual($config->get('value'), []);
+    $this->assertEquals($config->get('value'), []);
     $override = \Drupal::languageManager()->getLanguageConfigOverride('de', 'config_test.bar');
     $this->assertFalse($override->isNew());
-    $this->assertEqual($override->get('value'), NULL);
+    $this->assertEquals($override->get('value'), NULL);
     // The French override will become empty and therefore removed.
     $override = \Drupal::languageManager()->getLanguageConfigOverride('fr', 'config_test.bar');
     $this->assertTrue($override->isNew());
-    $this->assertEqual($override->get('value'), NULL);
+    $this->assertEquals($override->get('value'), NULL);
 
     // Ensure deleting the config will delete the override.
     \Drupal::configFactory()->getEditable('config_test.bar')->delete();
     $override = \Drupal::languageManager()->getLanguageConfigOverride('de', 'config_test.bar');
     $this->assertTrue($override->isNew());
-    $this->assertEqual($override->get('value'), NULL);
+    $this->assertEquals($override->get('value'), NULL);
   }
 
 }
diff --git a/core/tests/Drupal/KernelTests/Core/Config/ConfigModuleOverridesTest.php b/core/tests/Drupal/KernelTests/Core/Config/ConfigModuleOverridesTest.php
index a94123d4cb..4e8d163429 100644
--- a/core/tests/Drupal/KernelTests/Core/Config/ConfigModuleOverridesTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Config/ConfigModuleOverridesTest.php
@@ -32,10 +32,10 @@ public function testSimpleModuleOverrides() {
       ->set('slogan', $non_overridden_slogan)
       ->save();
 
-    $this->assertEqual($non_overridden_name, $config_factory->get('system.site')->getOriginal('name', FALSE));
-    $this->assertEqual($non_overridden_slogan, $config_factory->get('system.site')->getOriginal('slogan', FALSE));
-    $this->assertEqual($overridden_name, $config_factory->get('system.site')->get('name'));
-    $this->assertEqual($overridden_slogan, $config_factory->get('system.site')->get('slogan'));
+    $this->assertEquals($non_overridden_name, $config_factory->get('system.site')->getOriginal('name', FALSE));
+    $this->assertEquals($non_overridden_slogan, $config_factory->get('system.site')->getOriginal('slogan', FALSE));
+    $this->assertEquals($overridden_name, $config_factory->get('system.site')->get('name'));
+    $this->assertEquals($overridden_slogan, $config_factory->get('system.site')->get('slogan'));
 
     // Test overrides of completely new configuration objects. In normal runtime
     // this should only happen for configuration entities as we should not be
diff --git a/core/tests/Drupal/KernelTests/Core/Config/ConfigOverridesPriorityTest.php b/core/tests/Drupal/KernelTests/Core/Config/ConfigOverridesPriorityTest.php
index 6c568b8417..eccf16c051 100644
--- a/core/tests/Drupal/KernelTests/Core/Config/ConfigOverridesPriorityTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Config/ConfigOverridesPriorityTest.php
@@ -44,10 +44,10 @@ public function testOverridePriorities() {
       ->save();
 
     // Ensure that no overrides are applying.
-    $this->assertEqual($non_overridden_name, $config_factory->get('system.site')->get('name'));
-    $this->assertEqual($non_overridden_slogan, $config_factory->get('system.site')->get('slogan'));
-    $this->assertEqual($non_overridden_mail, $config_factory->get('system.site')->get('mail'));
-    $this->assertEqual(50, $config_factory->get('system.site')->get('weight_select_max'));
+    $this->assertEquals($non_overridden_name, $config_factory->get('system.site')->get('name'));
+    $this->assertEquals($non_overridden_slogan, $config_factory->get('system.site')->get('slogan'));
+    $this->assertEquals($non_overridden_mail, $config_factory->get('system.site')->get('mail'));
+    $this->assertEquals(50, $config_factory->get('system.site')->get('weight_select_max'));
 
     // Override using language.
     $language = new Language([
@@ -61,34 +61,34 @@ public function testOverridePriorities() {
       ->set('mail', $language_overridden_mail)
       ->save();
 
-    $this->assertEqual($language_overridden_name, $config_factory->get('system.site')->get('name'));
-    $this->assertEqual($non_overridden_slogan, $config_factory->get('system.site')->get('slogan'));
-    $this->assertEqual($language_overridden_mail, $config_factory->get('system.site')->get('mail'));
-    $this->assertEqual(50, $config_factory->get('system.site')->get('weight_select_max'));
+    $this->assertEquals($language_overridden_name, $config_factory->get('system.site')->get('name'));
+    $this->assertEquals($non_overridden_slogan, $config_factory->get('system.site')->get('slogan'));
+    $this->assertEquals($language_overridden_mail, $config_factory->get('system.site')->get('mail'));
+    $this->assertEquals(50, $config_factory->get('system.site')->get('weight_select_max'));
 
     // Enable module overrides. Do not override system.site:mail to prove that
     // the language override still applies.
     $GLOBALS['config_test_run_module_overrides'] = TRUE;
     $config_factory->reset('system.site');
-    $this->assertEqual($module_overridden_name, $config_factory->get('system.site')->get('name'));
-    $this->assertEqual($module_overridden_slogan, $config_factory->get('system.site')->get('slogan'));
-    $this->assertEqual($language_overridden_mail, $config_factory->get('system.site')->get('mail'));
-    $this->assertEqual(50, $config_factory->get('system.site')->get('weight_select_max'));
+    $this->assertEquals($module_overridden_name, $config_factory->get('system.site')->get('name'));
+    $this->assertEquals($module_overridden_slogan, $config_factory->get('system.site')->get('slogan'));
+    $this->assertEquals($language_overridden_mail, $config_factory->get('system.site')->get('mail'));
+    $this->assertEquals(50, $config_factory->get('system.site')->get('weight_select_max'));
 
     // Configure a global override to simulate overriding using settings.php. Do
     // not override system.site:mail or system.site:slogan to prove that the
     // language and module overrides still apply.
     $GLOBALS['config']['system.site']['name'] = 'Site name global conf override';
     $config_factory->reset('system.site');
-    $this->assertEqual('Site name global conf override', $config_factory->get('system.site')->get('name'));
-    $this->assertEqual($module_overridden_slogan, $config_factory->get('system.site')->get('slogan'));
-    $this->assertEqual($language_overridden_mail, $config_factory->get('system.site')->get('mail'));
-    $this->assertEqual(50, $config_factory->get('system.site')->get('weight_select_max'));
-
-    $this->assertEqual($non_overridden_name, $config_factory->get('system.site')->getOriginal('name', FALSE));
-    $this->assertEqual($non_overridden_slogan, $config_factory->get('system.site')->getOriginal('slogan', FALSE));
-    $this->assertEqual($non_overridden_mail, $config_factory->get('system.site')->getOriginal('mail', FALSE));
-    $this->assertEqual(50, $config_factory->get('system.site')->getOriginal('weight_select_max', FALSE));
+    $this->assertEquals('Site name global conf override', $config_factory->get('system.site')->get('name'));
+    $this->assertEquals($module_overridden_slogan, $config_factory->get('system.site')->get('slogan'));
+    $this->assertEquals($language_overridden_mail, $config_factory->get('system.site')->get('mail'));
+    $this->assertEquals(50, $config_factory->get('system.site')->get('weight_select_max'));
+
+    $this->assertEquals($non_overridden_name, $config_factory->get('system.site')->getOriginal('name', FALSE));
+    $this->assertEquals($non_overridden_slogan, $config_factory->get('system.site')->getOriginal('slogan', FALSE));
+    $this->assertEquals($non_overridden_mail, $config_factory->get('system.site')->getOriginal('mail', FALSE));
+    $this->assertEquals(50, $config_factory->get('system.site')->getOriginal('weight_select_max', FALSE));
 
     unset($GLOBALS['config_test_run_module_overrides']);
   }
diff --git a/core/tests/Drupal/KernelTests/Core/Config/ConfigSchemaTest.php b/core/tests/Drupal/KernelTests/Core/Config/ConfigSchemaTest.php
index b2859a0bbf..9d55459133 100644
--- a/core/tests/Drupal/KernelTests/Core/Config/ConfigSchemaTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Config/ConfigSchemaTest.php
@@ -48,12 +48,12 @@ public function testSchemaMapping() {
     $expected['type'] = 'undefined';
     $expected['definition_class'] = '\Drupal\Core\TypedData\DataDefinition';
     $expected['unwrap_for_canonical_representation'] = TRUE;
-    $this->assertEqual($definition, $expected, 'Retrieved the right metadata for nonexistent configuration.');
+    $this->assertEquals($definition, $expected, 'Retrieved the right metadata for nonexistent configuration.');
 
     // Configuration file without schema will return Undefined as well.
     $this->assertSame(FALSE, \Drupal::service('config.typed')->hasConfigSchema('config_schema_test.noschema'));
     $definition = \Drupal::service('config.typed')->getDefinition('config_schema_test.noschema');
-    $this->assertEqual($definition, $expected, 'Retrieved the right metadata for configuration with no schema.');
+    $this->assertEquals($definition, $expected, 'Retrieved the right metadata for configuration with no schema.');
 
     // Configuration file with only some schema.
     $this->assertSame(TRUE, \Drupal::service('config.typed')->hasConfigSchema('config_schema_test.someschema'));
@@ -69,7 +69,7 @@ public function testSchemaMapping() {
     $expected['type'] = 'config_schema_test.someschema';
     $expected['definition_class'] = '\Drupal\Core\TypedData\MapDataDefinition';
     $expected['unwrap_for_canonical_representation'] = TRUE;
-    $this->assertEqual($definition, $expected, 'Retrieved the right metadata for configuration with only some schema.');
+    $this->assertEquals($definition, $expected, 'Retrieved the right metadata for configuration with only some schema.');
 
     // Check type detection on elements with undefined types.
     $config = \Drupal::service('config.typed')->get('config_schema_test.someschema');
@@ -80,7 +80,7 @@ public function testSchemaMapping() {
     $expected['type'] = 'undefined';
     $expected['definition_class'] = '\Drupal\Core\TypedData\DataDefinition';
     $expected['unwrap_for_canonical_representation'] = TRUE;
-    $this->assertEqual($definition, $expected, 'Automatic type detected for a scalar is undefined.');
+    $this->assertEquals($definition, $expected, 'Automatic type detected for a scalar is undefined.');
     $definition = $config->get('testlist')->getDataDefinition()->toArray();
     $expected = [];
     $expected['label'] = 'Test list';
@@ -88,7 +88,7 @@ public function testSchemaMapping() {
     $expected['type'] = 'undefined';
     $expected['definition_class'] = '\Drupal\Core\TypedData\DataDefinition';
     $expected['unwrap_for_canonical_representation'] = TRUE;
-    $this->assertEqual($definition, $expected, 'Automatic type detected for a list is undefined.');
+    $this->assertEquals($definition, $expected, 'Automatic type detected for a list is undefined.');
     $definition = $config->get('testnoschema')->getDataDefinition()->toArray();
     $expected = [];
     $expected['label'] = 'Undefined';
@@ -96,7 +96,7 @@ public function testSchemaMapping() {
     $expected['type'] = 'undefined';
     $expected['definition_class'] = '\Drupal\Core\TypedData\DataDefinition';
     $expected['unwrap_for_canonical_representation'] = TRUE;
-    $this->assertEqual($definition, $expected, 'Automatic type detected for an undefined integer is undefined.');
+    $this->assertEquals($definition, $expected, 'Automatic type detected for an undefined integer is undefined.');
 
     // Simple case, straight metadata.
     $definition = \Drupal::service('config.typed')->getDefinition('system.maintenance');
@@ -115,7 +115,7 @@ public function testSchemaMapping() {
     $expected['type'] = 'system.maintenance';
     $expected['definition_class'] = '\Drupal\Core\TypedData\MapDataDefinition';
     $expected['unwrap_for_canonical_representation'] = TRUE;
-    $this->assertEqual($definition, $expected, 'Retrieved the right metadata for system.maintenance');
+    $this->assertEquals($definition, $expected, 'Retrieved the right metadata for system.maintenance');
 
     // Mixed schema with ignore elements.
     $definition = \Drupal::service('config.typed')->getDefinition('config_schema_test.ignore');
@@ -147,7 +147,7 @@ public function testSchemaMapping() {
     $expected['type'] = 'config_schema_test.ignore';
     $expected['unwrap_for_canonical_representation'] = TRUE;
 
-    $this->assertEqual($definition, $expected);
+    $this->assertEquals($definition, $expected);
 
     // The ignore elements themselves.
     $definition = \Drupal::service('config.typed')->get('config_schema_test.ignore')->get('irrelevant')->getDataDefinition()->toArray();
@@ -157,10 +157,10 @@ public function testSchemaMapping() {
     $expected['class'] = Ignore::class;
     $expected['definition_class'] = '\Drupal\Core\TypedData\DataDefinition';
     $expected['unwrap_for_canonical_representation'] = TRUE;
-    $this->assertEqual($definition, $expected);
+    $this->assertEquals($definition, $expected);
     $definition = \Drupal::service('config.typed')->get('config_schema_test.ignore')->get('indescribable')->getDataDefinition()->toArray();
     $expected['label'] = 'Indescribable';
-    $this->assertEqual($definition, $expected);
+    $this->assertEquals($definition, $expected);
 
     // More complex case, generic type. Metadata for image style.
     $definition = \Drupal::service('config.typed')->getDefinition('image.style.large');
@@ -193,7 +193,7 @@ public function testSchemaMapping() {
     $expected['mapping']['_core']['type'] = '_core_config_info';
     $expected['type'] = 'image.style.*';
 
-    $this->assertEqual($definition, $expected);
+    $this->assertEquals($definition, $expected);
 
     // More complex, type based on a complex one.
     $definition = \Drupal::service('config.typed')->getDefinition('image.effect.image_scale');
@@ -211,7 +211,7 @@ public function testSchemaMapping() {
     $expected['mapping']['upscale']['label'] = 'Upscale';
     $expected['type'] = 'image.effect.image_scale';
 
-    $this->assertEqual($definition, $expected, 'Retrieved the right metadata for image.effect.image_scale');
+    $this->assertEquals($definition, $expected, 'Retrieved the right metadata for image.effect.image_scale');
 
     // Most complex case, get metadata for actual configuration element.
     $effects = \Drupal::service('config.typed')->get('image.style.medium')->get('effects');
@@ -219,7 +219,7 @@ public function testSchemaMapping() {
     // This should be the schema for image.effect.image_scale, reuse previous one.
     $expected['type'] = 'image.effect.image_scale';
 
-    $this->assertEqual($definition, $expected, 'Retrieved the right metadata for the first effect of image.style.medium');
+    $this->assertEquals($definition, $expected, 'Retrieved the right metadata for the first effect of image.style.medium');
 
     $a = \Drupal::config('config_test.dynamic.third_party');
     $test = \Drupal::service('config.typed')->get('config_test.dynamic.third_party')->get('third_party_settings.config_schema_test');
@@ -234,7 +234,7 @@ public function testSchemaMapping() {
       'integer' => ['type' => 'integer'],
       'string' => ['type' => 'string'],
     ];
-    $this->assertEqual($definition, $expected, 'Retrieved the right metadata for config_test.dynamic.third_party:third_party_settings.config_schema_test');
+    $this->assertEquals($definition, $expected, 'Retrieved the right metadata for config_test.dynamic.third_party:third_party_settings.config_schema_test');
 
     // More complex, several level deep test.
     $definition = \Drupal::service('config.typed')->getDefinition('config_schema_test.someschema.somemodule.section_one.subsection');
@@ -253,11 +253,11 @@ public function testSchemaMapping() {
     $expected['definition_class'] = '\Drupal\Core\TypedData\MapDataDefinition';
     $expected['unwrap_for_canonical_representation'] = TRUE;
 
-    $this->assertEqual($definition, $expected, 'Retrieved the right metadata for config_schema_test.someschema.somemodule.section_one.subsection');
+    $this->assertEquals($definition, $expected, 'Retrieved the right metadata for config_schema_test.someschema.somemodule.section_one.subsection');
 
     $definition = \Drupal::service('config.typed')->getDefinition('config_schema_test.someschema.somemodule.section_two.subsection');
     // The other file should have the same schema.
-    $this->assertEqual($definition, $expected, 'Retrieved the right metadata for config_schema_test.someschema.somemodule.section_two.subsection');
+    $this->assertEquals($definition, $expected, 'Retrieved the right metadata for config_schema_test.someschema.somemodule.section_two.subsection');
   }
 
   /**
@@ -276,7 +276,7 @@ public function testSchemaMappingWithParents() {
       'definition_class' => '\Drupal\Core\TypedData\DataDefinition',
       'unwrap_for_canonical_representation' => TRUE,
     ];
-    $this->assertEqual($definition, $expected);
+    $this->assertEquals($definition, $expected);
 
     // Test fetching parent two levels up.
     $entry = $config_data->get('two_levels');
@@ -288,7 +288,7 @@ public function testSchemaMappingWithParents() {
       'definition_class' => '\Drupal\Core\TypedData\DataDefinition',
       'unwrap_for_canonical_representation' => TRUE,
     ];
-    $this->assertEqual($definition, $expected);
+    $this->assertEquals($definition, $expected);
 
     // Test fetching parent three levels up.
     $entry = $config_data->get('three_levels');
@@ -300,7 +300,7 @@ public function testSchemaMappingWithParents() {
       'definition_class' => '\Drupal\Core\TypedData\DataDefinition',
       'unwrap_for_canonical_representation' => TRUE,
     ];
-    $this->assertEqual($definition, $expected);
+    $this->assertEquals($definition, $expected);
   }
 
   /**
@@ -311,15 +311,15 @@ public function testSchemaData() {
     $meta = \Drupal::service('config.typed')->get('system.site');
     $property = $meta->get('page')->get('front');
     $this->assertTrue($property instanceof StringInterface, 'Got the right wrapper fo the page.front property.');
-    $this->assertEqual($property->getValue(), '/user/login', 'Got the right value for page.front data.');
+    $this->assertEquals($property->getValue(), '/user/login', 'Got the right value for page.front data.');
     $definition = $property->getDataDefinition();
     $this->assertTrue(empty($definition['translatable']), 'Got the right translatability setting for page.front data.');
 
     // Check nested array of properties.
     $list = $meta->get('page')->getElements();
-    $this->assertEqual(count($list), 3, 'Got a list with the right number of properties for site page data');
+    $this->assertEquals(count($list), 3, 'Got a list with the right number of properties for site page data');
     $this->assertTrue(isset($list['front']) && isset($list['403']) && isset($list['404']), 'Got a list with the right properties for site page data.');
-    $this->assertEqual($list['front']->getValue(), '/user/login', 'Got the right value for page.front data from the list.');
+    $this->assertEquals($list['front']->getValue(), '/user/login', 'Got the right value for page.front data from the list.');
 
     // And test some TypedConfigInterface methods.
     $properties = $list;
@@ -335,7 +335,7 @@ public function testSchemaData() {
     $effect = $effects->get($uuid)->getElements();
     $this->assertTrue(!$effect['data']->isEmpty() && $effect['id']->getValue() == 'image_scale', 'Got data for the image scale effect from metadata.');
     $this->assertTrue($effect['data']->get('width') instanceof IntegerInterface, 'Got the right type for the scale effect width.');
-    $this->assertEqual($effect['data']->get('width')->getValue(), 480, 'Got the right value for the scale effect width.');
+    $this->assertEquals($effect['data']->get('width')->getValue(), 480, 'Got the right value for the scale effect width.');
   }
 
   /**
@@ -499,7 +499,7 @@ public function testSchemaFallback() {
     $expected['mapping']['testdescription']['label'] = 'Description';
     $expected['type'] = 'config_schema_test.wildcard_fallback.*';
 
-    $this->assertEqual($definition, $expected, 'Retrieved the right metadata for config_schema_test.wildcard_fallback.something');
+    $this->assertEquals($definition, $expected, 'Retrieved the right metadata for config_schema_test.wildcard_fallback.something');
 
     $definition2 = \Drupal::service('config.typed')->getDefinition('config_schema_test.wildcard_fallback.something.something');
     // This should be the schema of config_schema_test.wildcard_fallback.* as
@@ -515,29 +515,29 @@ public function testSchemaFallback() {
   public function testColonsInSchemaTypeDetermination() {
     $tests = \Drupal::service('config.typed')->get('config_schema_test.plugin_types')->get('tests')->getElements();
     $definition = $tests[0]->getDataDefinition()->toArray();
-    $this->assertEqual($definition['type'], 'test.plugin_types.boolean');
+    $this->assertEquals($definition['type'], 'test.plugin_types.boolean');
 
     $definition = $tests[1]->getDataDefinition()->toArray();
-    $this->assertEqual($definition['type'], 'test.plugin_types.boolean:*');
+    $this->assertEquals($definition['type'], 'test.plugin_types.boolean:*');
 
     $definition = $tests[2]->getDataDefinition()->toArray();
-    $this->assertEqual($definition['type'], 'test.plugin_types.*');
+    $this->assertEquals($definition['type'], 'test.plugin_types.*');
 
     $definition = $tests[3]->getDataDefinition()->toArray();
-    $this->assertEqual($definition['type'], 'test.plugin_types.*');
+    $this->assertEquals($definition['type'], 'test.plugin_types.*');
 
     $tests = \Drupal::service('config.typed')->get('config_schema_test.plugin_types')->get('test_with_parents')->getElements();
     $definition = $tests[0]->get('settings')->getDataDefinition()->toArray();
-    $this->assertEqual($definition['type'], 'test_with_parents.plugin_types.boolean');
+    $this->assertEquals($definition['type'], 'test_with_parents.plugin_types.boolean');
 
     $definition = $tests[1]->get('settings')->getDataDefinition()->toArray();
-    $this->assertEqual($definition['type'], 'test_with_parents.plugin_types.boolean:*');
+    $this->assertEquals($definition['type'], 'test_with_parents.plugin_types.boolean:*');
 
     $definition = $tests[2]->get('settings')->getDataDefinition()->toArray();
-    $this->assertEqual($definition['type'], 'test_with_parents.plugin_types.*');
+    $this->assertEquals($definition['type'], 'test_with_parents.plugin_types.*');
 
     $definition = $tests[3]->get('settings')->getDataDefinition()->toArray();
-    $this->assertEqual($definition['type'], 'test_with_parents.plugin_types.*');
+    $this->assertEquals($definition['type'], 'test_with_parents.plugin_types.*');
   }
 
   /**
@@ -558,7 +558,7 @@ public function testConfigSchemaInfoAlter() {
     }
     catch (ConfigSchemaAlterException $e) {
       $this->pass($message);
-      $this->assertEqual($e->getMessage(), 'Invoking hook_config_schema_info_alter() has removed (config_schema_test.hook) schema definitions');
+      $this->assertEquals($e->getMessage(), 'Invoking hook_config_schema_info_alter() has removed (config_schema_test.hook) schema definitions');
     }
 
     \Drupal::state()->set('config_schema_test_exception_add', TRUE);
@@ -569,7 +569,7 @@ public function testConfigSchemaInfoAlter() {
     }
     catch (ConfigSchemaAlterException $e) {
       $this->pass($message);
-      $this->assertEqual($e->getMessage(), 'Invoking hook_config_schema_info_alter() has added (config_schema_test.hook_added_defintion) and removed (config_schema_test.hook) schema definitions');
+      $this->assertEquals($e->getMessage(), 'Invoking hook_config_schema_info_alter() has added (config_schema_test.hook_added_defintion) and removed (config_schema_test.hook) schema definitions');
     }
 
     \Drupal::state()->set('config_schema_test_exception_remove', FALSE);
@@ -580,14 +580,14 @@ public function testConfigSchemaInfoAlter() {
     }
     catch (ConfigSchemaAlterException $e) {
       $this->pass($message);
-      $this->assertEqual($e->getMessage(), 'Invoking hook_config_schema_info_alter() has added (config_schema_test.hook_added_defintion) schema definitions');
+      $this->assertEquals($e->getMessage(), 'Invoking hook_config_schema_info_alter() has added (config_schema_test.hook_added_defintion) schema definitions');
     }
 
     // Tests that hook_config_schema_info_alter() can add additional metadata to
     // existing configuration schema.
     \Drupal::state()->set('config_schema_test_exception_add', FALSE);
     $definitions = $typed_config->getDefinitions();
-    $this->assertEqual($definitions['config_schema_test.hook']['additional_metadata'], 'new schema info');
+    $this->assertEquals($definitions['config_schema_test.hook']['additional_metadata'], 'new schema info');
   }
 
   /**
@@ -659,7 +659,7 @@ public function testConfigSaveWithWrappingSchemaDoubleBrackets() {
 
     $tests = \Drupal::service('config.typed')->get('wrapping.config_schema_test.double_brackets')->get('tests')->getElements();
     $definition = $tests[0]->getDataDefinition()->toArray();
-    $this->assertEqual($definition['type'], 'wrapping.test.double_brackets.*||test.double_brackets.turtle.horse');
+    $this->assertEquals($definition['type'], 'wrapping.test.double_brackets.*||test.double_brackets.turtle.horse');
 
     $untyped_values = [
       'tests' => [
@@ -693,7 +693,7 @@ public function testConfigSaveWithWrappingSchemaDoubleBrackets() {
 
     $tests = \Drupal::service('config.typed')->get('wrapping.config_schema_test.double_brackets')->get('tests')->getElements();
     $definition = $tests[0]->getDataDefinition()->toArray();
-    $this->assertEqual($definition['type'], 'wrapping.test.double_brackets.*||test.double_brackets.cat.dog');
+    $this->assertEquals($definition['type'], 'wrapping.test.double_brackets.*||test.double_brackets.cat.dog');
 
     // Combine everything in a single save.
     $typed_values = [
@@ -717,9 +717,9 @@ public function testConfigSaveWithWrappingSchemaDoubleBrackets() {
       ->save();
     $tests = \Drupal::service('config.typed')->get('wrapping.config_schema_test.double_brackets')->get('tests')->getElements();
     $definition = $tests[0]->getDataDefinition()->toArray();
-    $this->assertEqual($definition['type'], 'wrapping.test.double_brackets.*||test.double_brackets.cat.dog');
+    $this->assertEquals($definition['type'], 'wrapping.test.double_brackets.*||test.double_brackets.cat.dog');
     $definition = $tests[1]->getDataDefinition()->toArray();
-    $this->assertEqual($definition['type'], 'wrapping.test.double_brackets.*||test.double_brackets.turtle.horse');
+    $this->assertEquals($definition['type'], 'wrapping.test.double_brackets.*||test.double_brackets.turtle.horse');
 
     $typed_values = [
       'tests' => [
@@ -738,9 +738,9 @@ public function testConfigSaveWithWrappingSchemaDoubleBrackets() {
     $tests = \Drupal::service('config.typed')->get('wrapping.config_schema_test.other_double_brackets')->get('tests')->getElements();
     $definition = $tests[0]->getDataDefinition()->toArray();
     // Check that definition type is a merge of the expected types.
-    $this->assertEqual($definition['type'], 'wrapping.test.other_double_brackets.*||test.double_brackets.cat:*.*');
+    $this->assertEquals($definition['type'], 'wrapping.test.other_double_brackets.*||test.double_brackets.cat:*.*');
     // Check that breed was inherited from parent definition.
-    $this->assertEqual($definition['mapping']['breed'], ['type' => 'string']);
+    $this->assertEquals($definition['mapping']['breed'], ['type' => 'string']);
   }
 
 }
diff --git a/core/tests/Drupal/KernelTests/Core/Config/SchemaCheckTraitTest.php b/core/tests/Drupal/KernelTests/Core/Config/SchemaCheckTraitTest.php
index a11bcb6592..1b90628c44 100644
--- a/core/tests/Drupal/KernelTests/Core/Config/SchemaCheckTraitTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Config/SchemaCheckTraitTest.php
@@ -60,7 +60,7 @@ public function testTrait() {
       'config_test.types:new_array' => 'missing schema',
       'config_test.types:boolean' => 'non-scalar value but not defined as an array (such as mapping or sequence)',
     ];
-    $this->assertEqual($ret, $expected);
+    $this->assertEquals($ret, $expected);
   }
 
 }
diff --git a/core/tests/Drupal/KernelTests/Core/Config/Storage/ConfigStorageTestBase.php b/core/tests/Drupal/KernelTests/Core/Config/Storage/ConfigStorageTestBase.php
index 5bdbc74deb..4b9e85a87a 100644
--- a/core/tests/Drupal/KernelTests/Core/Config/Storage/ConfigStorageTestBase.php
+++ b/core/tests/Drupal/KernelTests/Core/Config/Storage/ConfigStorageTestBase.php
@@ -194,11 +194,11 @@ public function testCollection() {
     // Create configuration in a new collection.
     $new_storage = $this->storage->createCollection('collection.sub.new');
     $this->assertFalse($new_storage->exists($name));
-    $this->assertEqual([], $new_storage->listAll());
+    $this->assertEquals([], $new_storage->listAll());
     $new_storage->write($name, $data);
     $this->assertIdentical($result, TRUE);
     $this->assertSame($data, $new_storage->read($name));
-    $this->assertEqual([$name], $new_storage->listAll());
+    $this->assertEquals([$name], $new_storage->listAll());
     $this->assertTrue($new_storage->exists($name));
     $new_data = ['foo' => 'baz'];
     $new_storage->write($name, $new_data);
@@ -208,11 +208,11 @@ public function testCollection() {
     // Create configuration in another collection.
     $another_storage = $this->storage->createCollection('collection.sub.another');
     $this->assertFalse($another_storage->exists($name));
-    $this->assertEqual([], $another_storage->listAll());
+    $this->assertEquals([], $another_storage->listAll());
     $another_storage->write($name, $new_data);
     $this->assertIdentical($result, TRUE);
     $this->assertSame($new_data, $another_storage->read($name));
-    $this->assertEqual([$name], $another_storage->listAll());
+    $this->assertEquals([$name], $another_storage->listAll());
     $this->assertTrue($another_storage->exists($name));
 
     // Create configuration in yet another collection.
@@ -237,11 +237,11 @@ public function testCollection() {
     // subdirectories.
     $parent_storage = $this->storage->createCollection('collection');
     $this->assertFalse($parent_storage->exists($name));
-    $this->assertEqual([], $parent_storage->listAll());
+    $this->assertEquals([], $parent_storage->listAll());
     $parent_storage->write($name, $new_data);
     $this->assertIdentical($result, TRUE);
     $this->assertSame($new_data, $parent_storage->read($name));
-    $this->assertEqual([$name], $parent_storage->listAll());
+    $this->assertEquals([$name], $parent_storage->listAll());
     $this->assertTrue($parent_storage->exists($name));
     $this->assertSame(['collection', 'collection.sub.another', 'collection.sub.new'], $this->storage->getAllCollectionNames());
     $parent_storage->deleteAll();
diff --git a/core/tests/Drupal/KernelTests/Core/Database/AlterTest.php b/core/tests/Drupal/KernelTests/Core/Database/AlterTest.php
index e2a6589d7b..18f18f401e 100644
--- a/core/tests/Drupal/KernelTests/Core/Database/AlterTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Database/AlterTest.php
@@ -21,7 +21,7 @@ public function testSimpleAlter() {
 
     $result = $query->execute()->fetchAll();
 
-    $this->assertEqual(count($result), 2, 'Returned the correct number of rows.');
+    $this->assertEquals(count($result), 2, 'Returned the correct number of rows.');
   }
 
   /**
@@ -38,14 +38,14 @@ public function testAlterWithJoin() {
 
     $records = $result->fetchAll();
 
-    $this->assertEqual(count($records), 2, 'Returned the correct number of rows.');
+    $this->assertEquals(count($records), 2, 'Returned the correct number of rows.');
 
-    $this->assertEqual($records[0]->name, 'George', 'Correct data retrieved.');
-    $this->assertEqual($records[0]->$tid_field, 4, 'Correct data retrieved.');
-    $this->assertEqual($records[0]->$task_field, 'sing', 'Correct data retrieved.');
-    $this->assertEqual($records[1]->name, 'George', 'Correct data retrieved.');
-    $this->assertEqual($records[1]->$tid_field, 5, 'Correct data retrieved.');
-    $this->assertEqual($records[1]->$task_field, 'sleep', 'Correct data retrieved.');
+    $this->assertEquals($records[0]->name, 'George', 'Correct data retrieved.');
+    $this->assertEquals($records[0]->$tid_field, 4, 'Correct data retrieved.');
+    $this->assertEquals($records[0]->$task_field, 'sing', 'Correct data retrieved.');
+    $this->assertEquals($records[1]->name, 'George', 'Correct data retrieved.');
+    $this->assertEquals($records[1]->$tid_field, 5, 'Correct data retrieved.');
+    $this->assertEquals($records[1]->$task_field, 'sleep', 'Correct data retrieved.');
   }
 
   /**
@@ -66,11 +66,11 @@ public function testAlterChangeConditional() {
 
     $records = $result->fetchAll();
 
-    $this->assertEqual(count($records), 1, 'Returned the correct number of rows.');
-    $this->assertEqual($records[0]->$name_field, 'John', 'Correct data retrieved.');
-    $this->assertEqual($records[0]->$tid_field, 2, 'Correct data retrieved.');
-    $this->assertEqual($records[0]->$pid_field, 1, 'Correct data retrieved.');
-    $this->assertEqual($records[0]->$task_field, 'sleep', 'Correct data retrieved.');
+    $this->assertEquals(count($records), 1, 'Returned the correct number of rows.');
+    $this->assertEquals($records[0]->$name_field, 'John', 'Correct data retrieved.');
+    $this->assertEquals($records[0]->$tid_field, 2, 'Correct data retrieved.');
+    $this->assertEquals($records[0]->$pid_field, 1, 'Correct data retrieved.');
+    $this->assertEquals($records[0]->$task_field, 'sleep', 'Correct data retrieved.');
   }
 
   /**
@@ -84,7 +84,7 @@ public function testAlterChangeFields() {
     $query->addTag('database_test_alter_change_fields');
 
     $record = $query->execute()->fetch();
-    $this->assertEqual($record->$name_field, 'George', 'Correct data retrieved.');
+    $this->assertEquals($record->$name_field, 'George', 'Correct data retrieved.');
     $this->assertFalse(isset($record->$age_field), 'Age field not found, as intended.');
   }
 
@@ -102,8 +102,8 @@ public function testAlterExpression() {
     // Ensure that we got the right record.
     $record = $result->fetch();
 
-    $this->assertEqual($record->$name_field, 'George', 'Fetched name is correct.');
-    $this->assertEqual($record->$age_field, 27 * 3, 'Fetched age expression is correct.');
+    $this->assertEquals($record->$name_field, 'George', 'Fetched name is correct.');
+    $this->assertEquals($record->$age_field, 27 * 3, 'Fetched age expression is correct.');
   }
 
   /**
@@ -120,7 +120,7 @@ public function testAlterRemoveRange() {
 
     $num_records = count($query->execute()->fetchAll());
 
-    $this->assertEqual($num_records, 4, 'Returned the correct number of rows.');
+    $this->assertEquals($num_records, 4, 'Returned the correct number of rows.');
   }
 
   /**
@@ -144,8 +144,8 @@ public function testSimpleAlterSubquery() {
     $name_field = $query->addField('pq', 'name');
 
     $record = $query->execute()->fetch();
-    $this->assertEqual($record->$name_field, 'George', 'Fetched name is correct.');
-    $this->assertEqual($record->$age_field, 27 * 3, 'Fetched age expression is correct.');
+    $this->assertEquals($record->$name_field, 'George', 'Fetched name is correct.');
+    $this->assertEquals($record->$age_field, 27 * 3, 'Fetched age expression is correct.');
   }
 
 }
diff --git a/core/tests/Drupal/KernelTests/Core/Database/ConnectionTest.php b/core/tests/Drupal/KernelTests/Core/Database/ConnectionTest.php
index 47e11dadf9..fba8563732 100644
--- a/core/tests/Drupal/KernelTests/Core/Database/ConnectionTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Database/ConnectionTest.php
@@ -91,8 +91,8 @@ public function testConnectionOptions() {
 
     // In the MySQL driver, the port can be different, so check individual
     // options.
-    $this->assertEqual($connection_info['default']['driver'], $connectionOptions['driver'], 'The default connection info driver matches the current connection options driver.');
-    $this->assertEqual($connection_info['default']['database'], $connectionOptions['database'], 'The default connection info database matches the current connection options database.');
+    $this->assertEquals($connection_info['default']['driver'], $connectionOptions['driver'], 'The default connection info driver matches the current connection options driver.');
+    $this->assertEquals($connection_info['default']['database'], $connectionOptions['database'], 'The default connection info database matches the current connection options database.');
 
     // Set up identical replica and confirm connection options are identical.
     Database::addConnectionInfo('default', 'replica', $connection_info['default']);
diff --git a/core/tests/Drupal/KernelTests/Core/Database/ConnectionUnitTest.php b/core/tests/Drupal/KernelTests/Core/Database/ConnectionUnitTest.php
index f73f4155fb..5d87e893fb 100644
--- a/core/tests/Drupal/KernelTests/Core/Database/ConnectionUnitTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Database/ConnectionUnitTest.php
@@ -229,7 +229,7 @@ public function testConnectionOpen() {
     }
     $error_mode = $connection_property->getValue($connection)
       ->getAttribute(\PDO::ATTR_ERRMODE);
-    $this->assertEqual($error_mode, \PDO::ERRMODE_EXCEPTION, 'Ensure the default error mode is set to exception.');
+    $this->assertEquals($error_mode, \PDO::ERRMODE_EXCEPTION, 'Ensure the default error mode is set to exception.');
 
     $connection = Database::getConnectionInfo('default');
     $connection['default']['pdo'][\PDO::ATTR_ERRMODE] = \PDO::ERRMODE_SILENT;
@@ -241,7 +241,7 @@ public function testConnectionOpen() {
     $connection_property->setAccessible(TRUE);
     $error_mode = $connection_property->getValue($connection)
       ->getAttribute(\PDO::ATTR_ERRMODE);
-    $this->assertEqual($error_mode, \PDO::ERRMODE_SILENT, 'Ensure PDO connection options can be overridden.');
+    $this->assertEquals($error_mode, \PDO::ERRMODE_SILENT, 'Ensure PDO connection options can be overridden.');
 
     Database::removeConnection('test');
   }
diff --git a/core/tests/Drupal/KernelTests/Core/Database/DeleteTruncateTest.php b/core/tests/Drupal/KernelTests/Core/Database/DeleteTruncateTest.php
index 8d736613c6..6638f13c24 100644
--- a/core/tests/Drupal/KernelTests/Core/Database/DeleteTruncateTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Database/DeleteTruncateTest.php
@@ -32,10 +32,10 @@ public function testSubselectDelete() {
       ->condition('pid', $subquery, 'IN');
 
     $num_deleted = $delete->execute();
-    $this->assertEqual($num_deleted, 1, 'Deleted 1 record.');
+    $this->assertEquals($num_deleted, 1, 'Deleted 1 record.');
 
     $num_records_after = db_query('SELECT COUNT(*) FROM {test_task}')->fetchField();
-    $this->assertEqual($num_records_before, $num_records_after + $num_deleted, 'Deletion adds up.');
+    $this->assertEquals($num_records_before, $num_records_after + $num_deleted, 'Deletion adds up.');
   }
 
   /**
@@ -50,7 +50,7 @@ public function testSimpleDelete() {
     $this->assertIdentical($num_deleted, 1, 'Deleted 1 record.');
 
     $num_records_after = db_query('SELECT COUNT(*) FROM {test}')->fetchField();
-    $this->assertEqual($num_records_before, $num_records_after + $num_deleted, 'Deletion adds up.');
+    $this->assertEquals($num_records_before, $num_records_after + $num_deleted, 'Deletion adds up.');
   }
 
   /**
@@ -63,7 +63,7 @@ public function testTruncate() {
     db_truncate('test')->execute();
 
     $num_records_after = db_query("SELECT COUNT(*) FROM {test}")->fetchField();
-    $this->assertEqual(0, $num_records_after, 'Truncate really deletes everything.');
+    $this->assertEquals(0, $num_records_after, 'Truncate really deletes everything.');
   }
 
   /**
@@ -78,7 +78,7 @@ public function testSpecialColumnDelete() {
     $this->assertIdentical($num_deleted, 1, 'Deleted 1 special column record.');
 
     $num_records_after = db_query('SELECT COUNT(*) FROM {test_special_columns}')->fetchField();
-    $this->assertEqual($num_records_before, $num_records_after + $num_deleted, 'Deletion adds up.');
+    $this->assertEquals($num_records_before, $num_records_after + $num_deleted, 'Deletion adds up.');
   }
 
 }
diff --git a/core/tests/Drupal/KernelTests/Core/Database/FetchTest.php b/core/tests/Drupal/KernelTests/Core/Database/FetchTest.php
index d0439c5f10..2c2c008d39 100644
--- a/core/tests/Drupal/KernelTests/Core/Database/FetchTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Database/FetchTest.php
@@ -123,7 +123,7 @@ public function testQueryFetchAllColumn() {
     $query_result = $query->execute()->fetchAll(\PDO::FETCH_COLUMN);
 
     $expected_result = ['George', 'John', 'Paul', 'Ringo'];
-    $this->assertEqual($query_result, $expected_result, 'Returned the correct result.');
+    $this->assertEquals($query_result, $expected_result, 'Returned the correct result.');
   }
 
   /**
diff --git a/core/tests/Drupal/KernelTests/Core/Database/InsertDefaultsTest.php b/core/tests/Drupal/KernelTests/Core/Database/InsertDefaultsTest.php
index b5963cf420..c921fabed5 100644
--- a/core/tests/Drupal/KernelTests/Core/Database/InsertDefaultsTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Database/InsertDefaultsTest.php
@@ -21,7 +21,7 @@ public function testDefaultInsert() {
     $schema = drupal_get_module_schema('database_test', 'test');
 
     $job = db_query('SELECT job FROM {test} WHERE id = :id', [':id' => $id])->fetchField();
-    $this->assertEqual($job, $schema['fields']['job']['default'], 'Default field value is set.');
+    $this->assertEquals($job, $schema['fields']['job']['default'], 'Default field value is set.');
   }
 
   /**
@@ -55,7 +55,7 @@ public function testDefaultInsertWithFields() {
     $schema = drupal_get_module_schema('database_test', 'test');
 
     $job = db_query('SELECT job FROM {test} WHERE id = :id', [':id' => $id])->fetchField();
-    $this->assertEqual($job, $schema['fields']['job']['default'], 'Default field value is set.');
+    $this->assertEquals($job, $schema['fields']['job']['default'], 'Default field value is set.');
   }
 
 }
diff --git a/core/tests/Drupal/KernelTests/Core/Database/LargeQueryTest.php b/core/tests/Drupal/KernelTests/Core/Database/LargeQueryTest.php
index a93d1fc801..8c63c28ad3 100644
--- a/core/tests/Drupal/KernelTests/Core/Database/LargeQueryTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Database/LargeQueryTest.php
@@ -37,7 +37,7 @@ public function testMaxAllowedPacketQueryTruncating() {
           // 2006 "MySQL server had gone away" afterwards.
           Database::closeConnection();
           Database::getConnection();
-          $this->assertEqual($e->getPrevious()->errorInfo[1], 1153, "Got a packet bigger than 'max_allowed_packet' bytes exception thrown.");
+          $this->assertEquals($e->getPrevious()->errorInfo[1], 1153, "Got a packet bigger than 'max_allowed_packet' bytes exception thrown.");
           // Use strlen() to count the bytes exactly, not the unicode chars.
           $this->assertTrue(strlen($e->getMessage()) <= $max_allowed_packet, "'max_allowed_packet' exception message truncated.");
         }
diff --git a/core/tests/Drupal/KernelTests/Core/Database/LoggingTest.php b/core/tests/Drupal/KernelTests/Core/Database/LoggingTest.php
index 28d9ff2bd8..19dc64326f 100644
--- a/core/tests/Drupal/KernelTests/Core/Database/LoggingTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Database/LoggingTest.php
@@ -25,10 +25,10 @@ public function testEnableLogging() {
 
     $queries = Database::getLog('testing', 'default');
 
-    $this->assertEqual(count($queries), 3, 'Correct number of queries recorded.');
+    $this->assertEquals(count($queries), 3, 'Correct number of queries recorded.');
 
     foreach ($queries as $query) {
-      $this->assertEqual($query['caller']['function'], __FUNCTION__, 'Correct function in query log.');
+      $this->assertEquals($query['caller']['function'], __FUNCTION__, 'Correct function in query log.');
     }
   }
 
@@ -47,8 +47,8 @@ public function testEnableMultiLogging() {
     $queries1 = Database::getLog('testing1');
     $queries2 = Database::getLog('testing2');
 
-    $this->assertEqual(count($queries1), 2, 'Correct number of queries recorded for log 1.');
-    $this->assertEqual(count($queries2), 1, 'Correct number of queries recorded for log 2.');
+    $this->assertEquals(count($queries1), 2, 'Correct number of queries recorded for log 1.');
+    $this->assertEquals(count($queries2), 1, 'Correct number of queries recorded for log 2.');
   }
 
   /**
@@ -68,9 +68,9 @@ public function testEnableTargetLogging() {
 
     $queries1 = Database::getLog('testing1');
 
-    $this->assertEqual(count($queries1), 2, 'Recorded queries from all targets.');
-    $this->assertEqual($queries1[0]['target'], 'default', 'First query used default target.');
-    $this->assertEqual($queries1[1]['target'], 'replica', 'Second query used replica target.');
+    $this->assertEquals(count($queries1), 2, 'Recorded queries from all targets.');
+    $this->assertEquals($queries1[0]['target'], 'default', 'First query used default target.');
+    $this->assertEquals($queries1[1]['target'], 'replica', 'Second query used replica target.');
   }
 
   /**
@@ -94,9 +94,9 @@ public function testEnableTargetLoggingNoTarget() {
 
     $queries1 = Database::getLog('testing1');
 
-    $this->assertEqual(count($queries1), 2, 'Recorded queries from all targets.');
-    $this->assertEqual($queries1[0]['target'], 'default', 'First query used default target.');
-    $this->assertEqual($queries1[1]['target'], 'default', 'Second query used default target as fallback.');
+    $this->assertEquals(count($queries1), 2, 'Recorded queries from all targets.');
+    $this->assertEquals($queries1[0]['target'], 'default', 'First query used default target.');
+    $this->assertEquals($queries1[1]['target'], 'default', 'Second query used default target as fallback.');
   }
 
   /**
@@ -122,8 +122,8 @@ public function testEnableMultiConnectionLogging() {
     $queries1 = Database::getLog('testing1');
     $queries2 = Database::getLog('testing1', 'test2');
 
-    $this->assertEqual(count($queries1), 1, 'Correct number of queries recorded for first connection.');
-    $this->assertEqual(count($queries2), 1, 'Correct number of queries recorded for second connection.');
+    $this->assertEquals(count($queries1), 1, 'Correct number of queries recorded for first connection.');
+    $this->assertEquals(count($queries2), 1, 'Correct number of queries recorded for second connection.');
   }
 
   /**
@@ -132,7 +132,7 @@ public function testEnableMultiConnectionLogging() {
   public function testGetLoggingWrongKey() {
     $result = Database::getLog('wrong');
 
-    $this->assertEqual($result, [], 'The function getLog with a wrong key returns an empty array.');
+    $this->assertEquals($result, [], 'The function getLog with a wrong key returns an empty array.');
   }
 
 }
diff --git a/core/tests/Drupal/KernelTests/Core/Database/MergeTest.php b/core/tests/Drupal/KernelTests/Core/Database/MergeTest.php
index 9a5688c5df..2c324a66c3 100644
--- a/core/tests/Drupal/KernelTests/Core/Database/MergeTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Database/MergeTest.php
@@ -26,15 +26,15 @@ public function testMergeInsert() {
       ])
       ->execute();
 
-    $this->assertEqual($result, Merge::STATUS_INSERT, 'Insert status returned.');
+    $this->assertEquals($result, Merge::STATUS_INSERT, 'Insert status returned.');
 
     $num_records_after = db_query('SELECT COUNT(*) FROM {test_people}')->fetchField();
-    $this->assertEqual($num_records_before + 1, $num_records_after, 'Merge inserted properly.');
+    $this->assertEquals($num_records_before + 1, $num_records_after, 'Merge inserted properly.');
 
     $person = db_query('SELECT * FROM {test_people} WHERE job = :job', [':job' => 'Presenter'])->fetch();
-    $this->assertEqual($person->name, 'Tiffany', 'Name set correctly.');
-    $this->assertEqual($person->age, 31, 'Age set correctly.');
-    $this->assertEqual($person->job, 'Presenter', 'Job set correctly.');
+    $this->assertEquals($person->name, 'Tiffany', 'Name set correctly.');
+    $this->assertEquals($person->age, 31, 'Age set correctly.');
+    $this->assertEquals($person->job, 'Presenter', 'Job set correctly.');
   }
 
   /**
@@ -51,15 +51,15 @@ public function testMergeUpdate() {
       ])
       ->execute();
 
-    $this->assertEqual($result, Merge::STATUS_UPDATE, 'Update status returned.');
+    $this->assertEquals($result, Merge::STATUS_UPDATE, 'Update status returned.');
 
     $num_records_after = db_query('SELECT COUNT(*) FROM {test_people}')->fetchField();
-    $this->assertEqual($num_records_before, $num_records_after, 'Merge updated properly.');
+    $this->assertEquals($num_records_before, $num_records_after, 'Merge updated properly.');
 
     $person = db_query('SELECT * FROM {test_people} WHERE job = :job', [':job' => 'Speaker'])->fetch();
-    $this->assertEqual($person->name, 'Tiffany', 'Name set correctly.');
-    $this->assertEqual($person->age, 31, 'Age set correctly.');
-    $this->assertEqual($person->job, 'Speaker', 'Job set correctly.');
+    $this->assertEquals($person->name, 'Tiffany', 'Name set correctly.');
+    $this->assertEquals($person->age, 31, 'Age set correctly.');
+    $this->assertEquals($person->job, 'Speaker', 'Job set correctly.');
   }
 
   /**
@@ -78,12 +78,12 @@ public function testMergeUpdateExcept() {
       ->execute();
 
     $num_records_after = db_query('SELECT COUNT(*) FROM {test_people}')->fetchField();
-    $this->assertEqual($num_records_before, $num_records_after, 'Merge updated properly.');
+    $this->assertEquals($num_records_before, $num_records_after, 'Merge updated properly.');
 
     $person = db_query('SELECT * FROM {test_people} WHERE job = :job', [':job' => 'Speaker'])->fetch();
-    $this->assertEqual($person->name, 'Tiffany', 'Name set correctly.');
-    $this->assertEqual($person->age, 30, 'Age skipped correctly.');
-    $this->assertEqual($person->job, 'Speaker', 'Job set correctly.');
+    $this->assertEquals($person->name, 'Tiffany', 'Name set correctly.');
+    $this->assertEquals($person->age, 30, 'Age skipped correctly.');
+    $this->assertEquals($person->job, 'Speaker', 'Job set correctly.');
   }
 
   /**
@@ -104,12 +104,12 @@ public function testMergeUpdateExplicit() {
       ->execute();
 
     $num_records_after = db_query('SELECT COUNT(*) FROM {test_people}')->fetchField();
-    $this->assertEqual($num_records_before, $num_records_after, 'Merge updated properly.');
+    $this->assertEquals($num_records_before, $num_records_after, 'Merge updated properly.');
 
     $person = db_query('SELECT * FROM {test_people} WHERE job = :job', [':job' => 'Speaker'])->fetch();
-    $this->assertEqual($person->name, 'Joe', 'Name set correctly.');
-    $this->assertEqual($person->age, 30, 'Age skipped correctly.');
-    $this->assertEqual($person->job, 'Speaker', 'Job set correctly.');
+    $this->assertEquals($person->name, 'Joe', 'Name set correctly.');
+    $this->assertEquals($person->age, 30, 'Age skipped correctly.');
+    $this->assertEquals($person->job, 'Speaker', 'Job set correctly.');
   }
 
   /**
@@ -133,12 +133,12 @@ public function testMergeUpdateExpression() {
       ->execute();
 
     $num_records_after = db_query('SELECT COUNT(*) FROM {test_people}')->fetchField();
-    $this->assertEqual($num_records_before, $num_records_after, 'Merge updated properly.');
+    $this->assertEquals($num_records_before, $num_records_after, 'Merge updated properly.');
 
     $person = db_query('SELECT * FROM {test_people} WHERE job = :job', [':job' => 'Speaker'])->fetch();
-    $this->assertEqual($person->name, 'Tiffany', 'Name set correctly.');
-    $this->assertEqual($person->age, $age_before + 4, 'Age updated correctly.');
-    $this->assertEqual($person->job, 'Speaker', 'Job set correctly.');
+    $this->assertEquals($person->name, 'Tiffany', 'Name set correctly.');
+    $this->assertEquals($person->age, $age_before + 4, 'Age updated correctly.');
+    $this->assertEquals($person->job, 'Speaker', 'Job set correctly.');
   }
 
   /**
@@ -152,12 +152,12 @@ public function testMergeInsertWithoutUpdate() {
       ->execute();
 
     $num_records_after = db_query('SELECT COUNT(*) FROM {test_people}')->fetchField();
-    $this->assertEqual($num_records_before + 1, $num_records_after, 'Merge inserted properly.');
+    $this->assertEquals($num_records_before + 1, $num_records_after, 'Merge inserted properly.');
 
     $person = db_query('SELECT * FROM {test_people} WHERE job = :job', [':job' => 'Presenter'])->fetch();
-    $this->assertEqual($person->name, '', 'Name set correctly.');
-    $this->assertEqual($person->age, 0, 'Age set correctly.');
-    $this->assertEqual($person->job, 'Presenter', 'Job set correctly.');
+    $this->assertEquals($person->name, '', 'Name set correctly.');
+    $this->assertEquals($person->age, 0, 'Age set correctly.');
+    $this->assertEquals($person->job, 'Presenter', 'Job set correctly.');
   }
 
   /**
@@ -171,12 +171,12 @@ public function testMergeUpdateWithoutUpdate() {
       ->execute();
 
     $num_records_after = db_query('SELECT COUNT(*) FROM {test_people}')->fetchField();
-    $this->assertEqual($num_records_before, $num_records_after, 'Merge skipped properly.');
+    $this->assertEquals($num_records_before, $num_records_after, 'Merge skipped properly.');
 
     $person = db_query('SELECT * FROM {test_people} WHERE job = :job', [':job' => 'Speaker'])->fetch();
-    $this->assertEqual($person->name, 'Meredith', 'Name skipped correctly.');
-    $this->assertEqual($person->age, 30, 'Age skipped correctly.');
-    $this->assertEqual($person->job, 'Speaker', 'Job skipped correctly.');
+    $this->assertEquals($person->name, 'Meredith', 'Name skipped correctly.');
+    $this->assertEquals($person->age, 30, 'Age skipped correctly.');
+    $this->assertEquals($person->job, 'Speaker', 'Job skipped correctly.');
 
     db_merge('test_people')
       ->key('job', 'Speaker')
@@ -184,12 +184,12 @@ public function testMergeUpdateWithoutUpdate() {
       ->execute();
 
     $num_records_after = db_query('SELECT COUNT(*) FROM {test_people}')->fetchField();
-    $this->assertEqual($num_records_before, $num_records_after, 'Merge skipped properly.');
+    $this->assertEquals($num_records_before, $num_records_after, 'Merge skipped properly.');
 
     $person = db_query('SELECT * FROM {test_people} WHERE job = :job', [':job' => 'Speaker'])->fetch();
-    $this->assertEqual($person->name, 'Meredith', 'Name skipped correctly.');
-    $this->assertEqual($person->age, 30, 'Age skipped correctly.');
-    $this->assertEqual($person->job, 'Speaker', 'Job skipped correctly.');
+    $this->assertEquals($person->name, 'Meredith', 'Name skipped correctly.');
+    $this->assertEquals($person->age, 30, 'Age skipped correctly.');
+    $this->assertEquals($person->job, 'Speaker', 'Job skipped correctly.');
   }
 
   /**
diff --git a/core/tests/Drupal/KernelTests/Core/Database/NextIdTest.php b/core/tests/Drupal/KernelTests/Core/Database/NextIdTest.php
index 129d50ba00..d4c2d315e3 100644
--- a/core/tests/Drupal/KernelTests/Core/Database/NextIdTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Database/NextIdTest.php
@@ -31,9 +31,9 @@ public function testDbNextId() {
     // We can test for exact increase in here because we know there is no
     // other process operating on these tables -- normally we could only
     // expect $second > $first.
-    $this->assertEqual($first + 1, $second, 'The second call from a sequence provides a number increased by one.');
+    $this->assertEquals($first + 1, $second, 'The second call from a sequence provides a number increased by one.');
     $result = db_next_id(1000);
-    $this->assertEqual($result, 1001, 'Sequence provides a larger number than the existing ID.');
+    $this->assertEquals($result, 1001, 'Sequence provides a larger number than the existing ID.');
   }
 
 }
diff --git a/core/tests/Drupal/KernelTests/Core/Database/QueryTest.php b/core/tests/Drupal/KernelTests/Core/Database/QueryTest.php
index 04ba8ad135..b5ac3f523c 100644
--- a/core/tests/Drupal/KernelTests/Core/Database/QueryTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Database/QueryTest.php
@@ -14,10 +14,10 @@ class QueryTest extends DatabaseTestBase {
    */
   public function testArraySubstitution() {
     $names = db_query('SELECT name FROM {test} WHERE age IN ( :ages[] ) ORDER BY age', [':ages[]' => [25, 26, 27]])->fetchAll();
-    $this->assertEqual(count($names), 3, 'Correct number of names returned');
+    $this->assertEquals(count($names), 3, 'Correct number of names returned');
 
     $names = db_query('SELECT name FROM {test} WHERE age IN ( :ages[] ) ORDER BY age', [':ages[]' => [25]])->fetchAll();
-    $this->assertEqual(count($names), 1, 'Correct number of names returned');
+    $this->assertEquals(count($names), 1, 'Correct number of names returned');
   }
 
   /**
@@ -137,12 +137,12 @@ public function testConditionOperatorArgumentsSQLInjection() {
    */
   public function testNumericExpressionSubstitution() {
     $count = db_query('SELECT COUNT(*) >= 3 FROM {test}')->fetchField();
-    $this->assertEqual((bool) $count, TRUE);
+    $this->assertEquals((bool) $count, TRUE);
 
     $count = db_query('SELECT COUNT(*) >= :count FROM {test}', [
       ':count' => 3,
     ])->fetchField();
-    $this->assertEqual((bool) $count, TRUE);
+    $this->assertEquals((bool) $count, TRUE);
   }
 
 }
diff --git a/core/tests/Drupal/KernelTests/Core/Database/RangeQueryTest.php b/core/tests/Drupal/KernelTests/Core/Database/RangeQueryTest.php
index b51316b622..86b18d409f 100644
--- a/core/tests/Drupal/KernelTests/Core/Database/RangeQueryTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Database/RangeQueryTest.php
@@ -15,12 +15,12 @@ class RangeQueryTest extends DatabaseTestBase {
   public function testRangeQuery() {
     // Test if return correct number of rows.
     $range_rows = db_query_range("SELECT name FROM {test} ORDER BY name", 1, 3)->fetchAll();
-    $this->assertEqual(count($range_rows), 3, 'Range query work and return correct number of rows.');
+    $this->assertEquals(count($range_rows), 3, 'Range query work and return correct number of rows.');
 
     // Test if return target data.
     $raw_rows = db_query('SELECT name FROM {test} ORDER BY name')->fetchAll();
     $raw_rows = array_slice($raw_rows, 1, 3);
-    $this->assertEqual($range_rows, $raw_rows);
+    $this->assertEquals($range_rows, $raw_rows);
   }
 
 }
diff --git a/core/tests/Drupal/KernelTests/Core/Database/SchemaTest.php b/core/tests/Drupal/KernelTests/Core/Database/SchemaTest.php
index e239098715..ad0bb84e3b 100644
--- a/core/tests/Drupal/KernelTests/Core/Database/SchemaTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Database/SchemaTest.php
@@ -114,7 +114,7 @@ public function testSchema() {
 
     // We should have successfully inserted exactly two rows.
     $count = db_query('SELECT COUNT(*) FROM {test_table2}')->fetchField();
-    $this->assertEqual($count, 2, 'Two fields were successfully inserted.');
+    $this->assertEquals($count, 2, 'Two fields were successfully inserted.');
 
     // Try to drop the table.
     db_drop_table('test_table2');
@@ -141,7 +141,7 @@ public function testSchema() {
     $this->assertTrue($max2 > $max1, 'The serial is monotone.');
 
     $count = db_query('SELECT COUNT(*) FROM {test_table}')->fetchField();
-    $this->assertEqual($count, 2, 'There were two rows.');
+    $this->assertEquals($count, 2, 'There were two rows.');
 
     // Test adding a serial field to an existing table.
     db_drop_table('test_table');
@@ -158,7 +158,7 @@ public function testSchema() {
     $this->assertTrue($max2 > $max1, 'The serial is monotone.');
 
     $count = db_query('SELECT COUNT(*) FROM {test_table}')->fetchField();
-    $this->assertEqual($count, 2, 'There were two rows.');
+    $this->assertEquals($count, 2, 'There were two rows.');
 
     // Test adding a new column and form a composite primary key with it.
     db_add_field('test_table', 'test_composite_primary_key', ['type' => 'int', 'not null' => TRUE, 'default' => 0], ['primary key' => ['test_serial', 'test_composite_primary_key']]);
@@ -233,7 +233,7 @@ public function testSchema() {
       // Get information about new table.
       $info = Database::getConnection()->schema()->queryTableInformation('test_table2');
       $sequence_name = Database::getConnection()->schema()->prefixNonTable('test_table2', 'id', 'seq');
-      $this->assertEqual($sequence_name, current($info->sequences), 'Sequence was renamed.');
+      $this->assertEquals($sequence_name, current($info->sequences), 'Sequence was renamed.');
     }
 
     // Use database specific data type and ensure that table is created.
@@ -325,7 +325,7 @@ public function testIndexLength() {
       $this->fail('SchemaException not thrown when adding index with missing information.');
     }
     catch (SchemaException $e) {
-      $this->assertEqual($expected_exception_message, $e->getMessage());
+      $this->assertEquals($expected_exception_message, $e->getMessage());
     }
 
     // Add a separate index.
@@ -386,10 +386,10 @@ public function testIndexLength() {
     }
     $test_count = 0;
     foreach ($results as $result) {
-      $this->assertEqual($result->Sub_part, $expected_lengths[$result->Key_name][$result->Column_name], 'Index length matches expected value.');
+      $this->assertEquals($result->Sub_part, $expected_lengths[$result->Key_name][$result->Column_name], 'Index length matches expected value.');
       $test_count++;
     }
-    $this->assertEqual($test_count, $column_count, 'Number of tests matches expected value.');
+    $this->assertEquals($test_count, $column_count, 'Number of tests matches expected value.');
   }
 
   /**
@@ -431,7 +431,7 @@ public function checkSchemaComment($description, $table, $column = NULL) {
         $max_length = $column ? 255 : 60;
         $description = Unicode::truncate($description, $max_length, TRUE, TRUE);
       }
-      $this->assertEqual($comment, $description, 'The comment matches the schema description.');
+      $this->assertEquals($comment, $description, 'The comment matches the schema description.');
     }
   }
 
@@ -641,7 +641,7 @@ protected function assertFieldCharacteristics($table_name, $field_name, $field_s
         ->countQuery()
         ->execute()
         ->fetchField();
-      $this->assertEqual($count, 0, 'Initial values filled out.');
+      $this->assertEquals($count, 0, 'Initial values filled out.');
     }
 
     // Check that the initial value from another field has been registered.
@@ -654,7 +654,7 @@ protected function assertFieldCharacteristics($table_name, $field_name, $field_s
         ->countQuery()
         ->execute()
         ->fetchField();
-      $this->assertEqual($count, 0, 'Initial values from another field filled out.');
+      $this->assertEquals($count, 0, 'Initial values from another field filled out.');
     }
 
     // Check that the default value has been registered.
@@ -668,7 +668,7 @@ protected function assertFieldCharacteristics($table_name, $field_name, $field_s
         ->condition('serial_column', $id)
         ->execute()
         ->fetchField();
-      $this->assertEqual($field_value, $field_spec['default'], 'Default value registered.');
+      $this->assertEquals($field_value, $field_spec['default'], 'Default value registered.');
     }
   }
 
@@ -811,7 +811,7 @@ public function testFindTables() {
       'test_2_table',
       'the_third_table',
     ];
-    $this->assertEqual($tables, $expected, 'All tables were found.');
+    $this->assertEquals($tables, $expected, 'All tables were found.');
 
     // Check the restrictive syntax.
     $tables = Database::getConnection()->schema()->findTables('test_%');
@@ -820,7 +820,7 @@ public function testFindTables() {
       'test_1_table',
       'test_2_table',
     ];
-    $this->assertEqual($tables, $expected, 'Two tables were found.');
+    $this->assertEquals($tables, $expected, 'Two tables were found.');
 
     // Go back to the initial connection.
     Database::setActiveConnection('default');
diff --git a/core/tests/Drupal/KernelTests/Core/Database/SelectCloneTest.php b/core/tests/Drupal/KernelTests/Core/Database/SelectCloneTest.php
index 30a4f1b941..b2407bfe38 100644
--- a/core/tests/Drupal/KernelTests/Core/Database/SelectCloneTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Database/SelectCloneTest.php
@@ -30,8 +30,8 @@ public function testSelectConditionSubQueryCloning() {
     $query_result = $query->countQuery()->execute()->fetchField();
 
     // Make sure the cloned query has not been modified
-    $this->assertEqual(3, $clone_result, 'The cloned query returns the expected number of rows');
-    $this->assertEqual(2, $query_result, 'The query returns the expected number of rows');
+    $this->assertEquals(3, $clone_result, 'The cloned query returns the expected number of rows');
+    $this->assertEquals(2, $query_result, 'The query returns the expected number of rows');
   }
 
 }
diff --git a/core/tests/Drupal/KernelTests/Core/Database/SelectComplexTest.php b/core/tests/Drupal/KernelTests/Core/Database/SelectComplexTest.php
index cd3ec4a163..476eb38e9a 100644
--- a/core/tests/Drupal/KernelTests/Core/Database/SelectComplexTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Database/SelectComplexTest.php
@@ -43,7 +43,7 @@ public function testDefaultJoin() {
       $last_priority = $record->$priority_field;
     }
 
-    $this->assertEqual($num_records, 7, 'Returned the correct number of rows.');
+    $this->assertEquals($num_records, 7, 'Returned the correct number of rows.');
   }
 
   /**
@@ -67,7 +67,7 @@ public function testLeftOuterJoin() {
       $this->assertTrue(strcmp($record->$name_field, $last_name) >= 0, 'Results returned in correct order.');
     }
 
-    $this->assertEqual($num_records, 8, 'Returned the correct number of rows.');
+    $this->assertEquals($num_records, 8, 'Returned the correct number of rows.');
   }
 
   /**
@@ -100,10 +100,10 @@ public function testGroupBy() {
     ];
 
     foreach ($correct_results as $task => $count) {
-      $this->assertEqual($records[$task], $count, format_string("Correct number of '@task' records found.", ['@task' => $task]));
+      $this->assertEquals($records[$task], $count, format_string("Correct number of '@task' records found.", ['@task' => $task]));
     }
 
-    $this->assertEqual($num_records, 6, 'Returned the correct number of total rows.');
+    $this->assertEquals($num_records, 6, 'Returned the correct number of total rows.');
   }
 
   /**
@@ -134,10 +134,10 @@ public function testGroupByAndHaving() {
     ];
 
     foreach ($correct_results as $task => $count) {
-      $this->assertEqual($records[$task], $count, format_string("Correct number of '@task' records found.", ['@task' => $task]));
+      $this->assertEquals($records[$task], $count, format_string("Correct number of '@task' records found.", ['@task' => $task]));
     }
 
-    $this->assertEqual($num_records, 1, 'Returned the correct number of total rows.');
+    $this->assertEquals($num_records, 1, 'Returned the correct number of total rows.');
   }
 
   /**
@@ -152,7 +152,7 @@ public function testRange() {
     $query->range(0, 2);
     $query_result = $query->countQuery()->execute()->fetchField();
 
-    $this->assertEqual($query_result, 2, 'Returned the correct number of rows.');
+    $this->assertEquals($query_result, 2, 'Returned the correct number of rows.');
   }
 
   /**
@@ -166,7 +166,7 @@ public function testRangeUndo() {
     $query->range(NULL, NULL);
     $query_result = $query->countQuery()->execute()->fetchField();
 
-    $this->assertEqual($query_result, 4, 'Returned the correct number of rows.');
+    $this->assertEquals($query_result, 4, 'Returned the correct number of rows.');
   }
 
   /**
@@ -178,7 +178,7 @@ public function testDistinct() {
     $query->distinct();
     $query_result = $query->countQuery()->execute()->fetchField();
 
-    $this->assertEqual($query_result, 6, 'Returned the correct number of rows.');
+    $this->assertEquals($query_result, 6, 'Returned the correct number of rows.');
   }
 
   /**
@@ -192,13 +192,13 @@ public function testCountQuery() {
 
     $count = $query->countQuery()->execute()->fetchField();
 
-    $this->assertEqual($count, 4, 'Counted the correct number of records.');
+    $this->assertEquals($count, 4, 'Counted the correct number of records.');
 
     // Now make sure we didn't break the original query!  We should still have
     // all of the fields we asked for.
     $record = $query->execute()->fetch();
-    $this->assertEqual($record->$name_field, 'George', 'Correct data retrieved.');
-    $this->assertEqual($record->$age_field, 27, 'Correct data retrieved.');
+    $this->assertEquals($record->$name_field, 'George', 'Correct data retrieved.');
+    $this->assertEquals($record->$age_field, 27, 'Correct data retrieved.');
   }
 
   /**
@@ -212,7 +212,7 @@ public function testHavingCountQuery() {
     $query->addField('test', 'age');
     $query->addExpression('age + 1');
     $count = count($query->execute()->fetchCol());
-    $this->assertEqual($count, 4, 'Counted the correct number of records.');
+    $this->assertEquals($count, 4, 'Counted the correct number of records.');
   }
 
   /**
@@ -226,7 +226,7 @@ public function testCountQueryRemovals() {
 
     // Check that the 'all_fields' statement is handled properly.
     $tables = $query->getTables();
-    $this->assertEqual($tables['test']['all_fields'], 1, 'Query correctly sets \'all_fields\' statement.');
+    $this->assertEquals($tables['test']['all_fields'], 1, 'Query correctly sets \'all_fields\' statement.');
     $tables = $count->getTables();
     $this->assertFalse(isset($tables['test']['all_fields']), 'Count query correctly unsets \'all_fields\' statement.');
 
@@ -235,14 +235,14 @@ public function testCountQueryRemovals() {
     // The orderby string is different for PostgreSQL.
     // @see Drupal\Core\Database\Driver\pgsql\Select::orderBy()
     $db_type = Database::getConnection()->databaseType();
-    $this->assertEqual($orderby['name'], ($db_type == 'pgsql' ? 'ASC NULLS FIRST' : 'ASC'), 'Query correctly sets ordering clause.');
+    $this->assertEquals($orderby['name'], ($db_type == 'pgsql' ? 'ASC NULLS FIRST' : 'ASC'), 'Query correctly sets ordering clause.');
     $orderby = $count->getOrderBy();
     $this->assertFalse(isset($orderby['name']), 'Count query correctly unsets ordering clause.');
 
     // Make sure that the count query works.
     $count = $count->execute()->fetchField();
 
-    $this->assertEqual($count, 4, 'Counted the correct number of records.');
+    $this->assertEquals($count, 4, 'Counted the correct number of records.');
   }
 
 
@@ -257,11 +257,11 @@ public function testCountQueryFieldRemovals() {
     // records in the {test} table).
     $query = db_select('test');
     $query->fields('test', ['fail']);
-    $this->assertEqual(4, $query->countQuery()->execute()->fetchField(), 'Count Query removed fields');
+    $this->assertEquals(4, $query->countQuery()->execute()->fetchField(), 'Count Query removed fields');
 
     $query = db_select('test');
     $query->addExpression('fail');
-    $this->assertEqual(4, $query->countQuery()->execute()->fetchField(), 'Count Query removed expressions');
+    $this->assertEquals(4, $query->countQuery()->execute()->fetchField(), 'Count Query removed expressions');
   }
 
   /**
@@ -274,7 +274,7 @@ public function testCountQueryDistinct() {
 
     $count = $query->countQuery()->execute()->fetchField();
 
-    $this->assertEqual($count, 6, 'Counted the correct number of records.');
+    $this->assertEquals($count, 6, 'Counted the correct number of records.');
   }
 
   /**
@@ -287,7 +287,7 @@ public function testCountQueryGroupBy() {
 
     $count = $query->countQuery()->execute()->fetchField();
 
-    $this->assertEqual($count, 3, 'Counted the correct number of records.');
+    $this->assertEquals($count, 3, 'Counted the correct number of records.');
 
     // Use a column alias as, without one, the query can succeed for the wrong
     // reason.
@@ -299,7 +299,7 @@ public function testCountQueryGroupBy() {
 
     $count = $query->countQuery()->execute()->fetchField();
 
-    $this->assertEqual($count, 3, 'Counted the correct number of records.');
+    $this->assertEquals($count, 3, 'Counted the correct number of records.');
   }
 
   /**
@@ -316,7 +316,7 @@ public function testNestedConditions() {
     $query->condition((new Condition('OR'))->condition('age', 26)->condition('age', 27));
 
     $job = $query->execute()->fetchField();
-    $this->assertEqual($job, 'Songwriter', 'Correct data retrieved.');
+    $this->assertEquals($job, 'Songwriter', 'Correct data retrieved.');
   }
 
   /**
@@ -329,7 +329,7 @@ public function testJoinTwice() {
     $query->addField($alias, 'job', 'otherjob');
     $query->where("$alias.name <> test.name");
     $crowded_job = $query->execute()->fetch();
-    $this->assertEqual($crowded_job->job, $crowded_job->otherjob, 'Correctly joined same table twice.');
+    $this->assertEquals($crowded_job->job, $crowded_job->otherjob, 'Correctly joined same table twice.');
     $this->assertNotEqual($crowded_job->name, $crowded_job->othername, 'Correctly joined same table twice.');
   }
 
@@ -414,7 +414,7 @@ public function testJoinConditionObject() {
       $last_priority = $record->$priority_field;
     }
 
-    $this->assertEqual($num_records, 7, 'Returned the correct number of rows.');
+    $this->assertEquals($num_records, 7, 'Returned the correct number of rows.');
 
     // Test a condition object that creates placeholders.
     $t1_name = 'John';
@@ -428,11 +428,11 @@ public function testJoinConditionObject() {
     $query->addField('t2', 'name', 't2_name');
 
     $num_records = $query->countQuery()->execute()->fetchField();
-    $this->assertEqual($num_records, 1, 'Query expected to return 1 row. Actual: ' . $num_records);
+    $this->assertEquals($num_records, 1, 'Query expected to return 1 row. Actual: ' . $num_records);
     if ($num_records == 1) {
       $record = $query->execute()->fetchObject();
-      $this->assertEqual($record->t1_name, $t1_name, 'Query expected to retrieve name ' . $t1_name . ' from table t1. Actual: ' . $record->t1_name);
-      $this->assertEqual($record->t2_name, $t2_name, 'Query expected to retrieve name ' . $t2_name . ' from table t2. Actual: ' . $record->t2_name);
+      $this->assertEquals($record->t1_name, $t1_name, 'Query expected to retrieve name ' . $t1_name . ' from table t1. Actual: ' . $record->t1_name);
+      $this->assertEquals($record->t2_name, $t2_name, 'Query expected to retrieve name ' . $t2_name . ' from table t2. Actual: ' . $record->t2_name);
     }
   }
 
diff --git a/core/tests/Drupal/KernelTests/Core/Database/SelectOrderedTest.php b/core/tests/Drupal/KernelTests/Core/Database/SelectOrderedTest.php
index 5e81e08989..f66772ed41 100644
--- a/core/tests/Drupal/KernelTests/Core/Database/SelectOrderedTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Database/SelectOrderedTest.php
@@ -27,7 +27,7 @@ public function testSimpleSelectOrdered() {
       $last_age = $record->age;
     }
 
-    $this->assertEqual($num_records, 4, 'Returned the correct number of rows.');
+    $this->assertEquals($num_records, 4, 'Returned the correct number of rows.');
   }
 
   /**
@@ -58,7 +58,7 @@ public function testSimpleSelectMultiOrdered() {
         }
       }
     }
-    $this->assertEqual($num_records, 4, 'Returned the correct number of rows.');
+    $this->assertEquals($num_records, 4, 'Returned the correct number of rows.');
   }
 
   /**
@@ -79,7 +79,7 @@ public function testSimpleSelectOrderedDesc() {
       $last_age = $record->age;
     }
 
-    $this->assertEqual($num_records, 4, 'Returned the correct number of rows.');
+    $this->assertEquals($num_records, 4, 'Returned the correct number of rows.');
   }
 
 }
diff --git a/core/tests/Drupal/KernelTests/Core/Database/SelectTest.php b/core/tests/Drupal/KernelTests/Core/Database/SelectTest.php
index fb36fe7afe..3354726ed4 100644
--- a/core/tests/Drupal/KernelTests/Core/Database/SelectTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Database/SelectTest.php
@@ -21,7 +21,7 @@ public function testSimpleSelect() {
     $query->addField('test', 'age', 'age');
     $num_records = $query->countQuery()->execute()->fetchField();
 
-    $this->assertEqual($num_records, 4, 'Returned the correct number of rows.');
+    $this->assertEquals($num_records, 4, 'Returned the correct number of rows.');
   }
 
   /**
@@ -38,7 +38,7 @@ public function testSimpleComment() {
     $query = (string) $query;
     $expected = "/* Testing query comments */";
 
-    $this->assertEqual(count($records), 4, 'Returned the correct number of rows.');
+    $this->assertEquals(count($records), 4, 'Returned the correct number of rows.');
     $this->assertNotIdentical(FALSE, strpos($query, $expected), 'The flattened query contains the comment string.');
   }
 
@@ -56,13 +56,13 @@ public function testVulnerableComment() {
     $query = (string) $query;
     $expected = "/* Testing query comments  * / SELECT nid FROM {node}. -- */ SELECT test.name AS name, test.age AS age\nFROM \n{test} test";
 
-    $this->assertEqual(count($records), 4, 'Returned the correct number of rows.');
+    $this->assertEquals(count($records), 4, 'Returned the correct number of rows.');
     $this->assertNotIdentical(FALSE, strpos($query, $expected), 'The flattened query contains the sanitised comment string.');
 
     $connection = Database::getConnection();
     foreach ($this->makeCommentsProvider() as $test_set) {
       list($expected, $comments) = $test_set;
-      $this->assertEqual($expected, $connection->makeComment($comments));
+      $this->assertEquals($expected, $connection->makeComment($comments));
     }
   }
 
@@ -108,13 +108,13 @@ public function testSimpleSelectConditional() {
     $result = $query->execute();
 
     // Check that the aliases are being created the way we want.
-    $this->assertEqual($name_field, 'name', 'Name field alias is correct.');
-    $this->assertEqual($age_field, 'age', 'Age field alias is correct.');
+    $this->assertEquals($name_field, 'name', 'Name field alias is correct.');
+    $this->assertEquals($age_field, 'age', 'Age field alias is correct.');
 
     // Ensure that we got the right record.
     $record = $result->fetch();
-    $this->assertEqual($record->$name_field, 'George', 'Fetched name is correct.');
-    $this->assertEqual($record->$age_field, 27, 'Fetched age is correct.');
+    $this->assertEquals($record->$name_field, 'George', 'Fetched name is correct.');
+    $this->assertEquals($record->$age_field, 27, 'Fetched age is correct.');
   }
 
   /**
@@ -128,13 +128,13 @@ public function testSimpleSelectExpression() {
     $result = $query->execute();
 
     // Check that the aliases are being created the way we want.
-    $this->assertEqual($name_field, 'name', 'Name field alias is correct.');
-    $this->assertEqual($age_field, 'double_age', 'Age field alias is correct.');
+    $this->assertEquals($name_field, 'name', 'Name field alias is correct.');
+    $this->assertEquals($age_field, 'double_age', 'Age field alias is correct.');
 
     // Ensure that we got the right record.
     $record = $result->fetch();
-    $this->assertEqual($record->$name_field, 'George', 'Fetched name is correct.');
-    $this->assertEqual($record->$age_field, 27 * 2, 'Fetched age expression is correct.');
+    $this->assertEquals($record->$name_field, 'George', 'Fetched name is correct.');
+    $this->assertEquals($record->$age_field, 27 * 2, 'Fetched age expression is correct.');
   }
 
   /**
@@ -149,14 +149,14 @@ public function testSimpleSelectExpressionMultiple() {
     $result = $query->execute();
 
     // Check that the aliases are being created the way we want.
-    $this->assertEqual($age_double_field, 'expression', 'Double age field alias is correct.');
-    $this->assertEqual($age_triple_field, 'expression_2', 'Triple age field alias is correct.');
+    $this->assertEquals($age_double_field, 'expression', 'Double age field alias is correct.');
+    $this->assertEquals($age_triple_field, 'expression_2', 'Triple age field alias is correct.');
 
     // Ensure that we got the right record.
     $record = $result->fetch();
-    $this->assertEqual($record->$name_field, 'George', 'Fetched name is correct.');
-    $this->assertEqual($record->$age_double_field, 27 * 2, 'Fetched double age expression is correct.');
-    $this->assertEqual($record->$age_triple_field, 27 * 3, 'Fetched triple age expression is correct.');
+    $this->assertEquals($record->$name_field, 'George', 'Fetched name is correct.');
+    $this->assertEquals($record->$age_double_field, 27 * 2, 'Fetched double age expression is correct.');
+    $this->assertEquals($record->$age_triple_field, 27 * 3, 'Fetched triple age expression is correct.');
   }
 
   /**
@@ -176,10 +176,10 @@ public function testSimpleSelectMultipleFields() {
 
     // Ensure that we got the right record.
     // Check that all fields we asked for are present.
-    $this->assertEqual($record->id, 2, 'ID field has the correct value.');
-    $this->assertEqual($record->name, 'George', 'Name field has the correct value.');
-    $this->assertEqual($record->age, 27, 'Age field has the correct value.');
-    $this->assertEqual($record->job, 'Singer', 'Job field has the correct value.');
+    $this->assertEquals($record->id, 2, 'ID field has the correct value.');
+    $this->assertEquals($record->name, 'George', 'Name field has the correct value.');
+    $this->assertEquals($record->age, 27, 'Age field has the correct value.');
+    $this->assertEquals($record->job, 'Singer', 'Job field has the correct value.');
   }
 
   /**
@@ -199,10 +199,10 @@ public function testSimpleSelectAllFields() {
 
     // Ensure that we got the right record.
     // Check that all fields we asked for are present.
-    $this->assertEqual($record->id, 2, 'ID field has the correct value.');
-    $this->assertEqual($record->name, 'George', 'Name field has the correct value.');
-    $this->assertEqual($record->age, 27, 'Age field has the correct value.');
-    $this->assertEqual($record->job, 'Singer', 'Job field has the correct value.');
+    $this->assertEquals($record->id, 2, 'ID field has the correct value.');
+    $this->assertEquals($record->name, 'George', 'Name field has the correct value.');
+    $this->assertEquals($record->age, 27, 'Age field has the correct value.');
+    $this->assertEquals($record->job, 'Singer', 'Job field has the correct value.');
   }
 
   /**
@@ -216,7 +216,7 @@ public function testNullCondition() {
       ->condition('age', NULL)
       ->execute()->fetchCol();
 
-    $this->assertEqual(count($names), 0, 'No records found when comparing to NULL.');
+    $this->assertEquals(count($names), 0, 'No records found when comparing to NULL.');
   }
 
   /**
@@ -230,8 +230,8 @@ public function testIsNullCondition() {
       ->isNull('age')
       ->execute()->fetchCol();
 
-    $this->assertEqual(count($names), 1, 'Correct number of records found with NULL age.');
-    $this->assertEqual($names[0], 'Fozzie', 'Correct record returned for NULL age.');
+    $this->assertEquals(count($names), 1, 'Correct number of records found with NULL age.');
+    $this->assertEquals($names[0], 'Fozzie', 'Correct record returned for NULL age.');
   }
 
   /**
@@ -246,9 +246,9 @@ public function testIsNotNullCondition() {
       ->orderBy('name')
       ->execute()->fetchCol();
 
-    $this->assertEqual(count($names), 2, 'Correct number of records found withNOT NULL age.');
-    $this->assertEqual($names[0], 'Gonzo', 'Correct record returned for NOT NULL age.');
-    $this->assertEqual($names[1], 'Kermit', 'Correct record returned for NOT NULL age.');
+    $this->assertEquals(count($names), 2, 'Correct number of records found withNOT NULL age.');
+    $this->assertEquals($names[0], 'Gonzo', 'Correct record returned for NOT NULL age.');
+    $this->assertEquals($names[1], 'Kermit', 'Correct record returned for NOT NULL age.');
   }
 
   /**
@@ -271,10 +271,10 @@ public function testUnion() {
     $names = $query_1->execute()->fetchCol();
 
     // Ensure we only get 2 records.
-    $this->assertEqual(count($names), 2, 'UNION correctly discarded duplicates.');
+    $this->assertEquals(count($names), 2, 'UNION correctly discarded duplicates.');
 
-    $this->assertEqual($names[0], 'George', 'First query returned correct name.');
-    $this->assertEqual($names[1], 'Ringo', 'Second query returned correct name.');
+    $this->assertEquals($names[0], 'George', 'First query returned correct name.');
+    $this->assertEquals($names[1], 'Ringo', 'Second query returned correct name.');
   }
 
   /**
@@ -294,11 +294,11 @@ public function testUnionAll() {
     $names = $query_1->execute()->fetchCol();
 
     // Ensure we get all 3 records.
-    $this->assertEqual(count($names), 3, 'UNION ALL correctly preserved duplicates.');
+    $this->assertEquals(count($names), 3, 'UNION ALL correctly preserved duplicates.');
 
-    $this->assertEqual($names[0], 'George', 'First query returned correct first name.');
-    $this->assertEqual($names[1], 'Ringo', 'Second query returned correct second name.');
-    $this->assertEqual($names[2], 'Ringo', 'Third query returned correct name.');
+    $this->assertEquals($names[0], 'George', 'First query returned correct first name.');
+    $this->assertEquals($names[1], 'Ringo', 'Second query returned correct second name.');
+    $this->assertEquals($names[2], 'Ringo', 'Third query returned correct name.');
   }
 
   /**
@@ -320,7 +320,7 @@ public function testUnionCount() {
     $count = $query_3->execute()->fetchField();
 
     // Ensure the counts match.
-    $this->assertEqual(count($names), $count, "The count query's result matched the number of rows in the UNION query.");
+    $this->assertEquals(count($names), $count, "The count query's result matched the number of rows in the UNION query.");
   }
 
   /**
@@ -343,13 +343,13 @@ public function testUnionOrder() {
     $names = $query_1->execute()->fetchCol();
 
     // Ensure we get all 3 records.
-    $this->assertEqual(count($names), 3, 'UNION returned rows from both queries.');
+    $this->assertEquals(count($names), 3, 'UNION returned rows from both queries.');
 
     // Ensure that the names are in the correct reverse alphabetical order,
     // regardless of which query they came from.
-    $this->assertEqual($names[0], 'Ringo', 'First query returned correct name.');
-    $this->assertEqual($names[1], 'Paul', 'Second query returned correct name.');
-    $this->assertEqual($names[2], 'George', 'Third query returned correct name.');
+    $this->assertEquals($names[0], 'Ringo', 'First query returned correct name.');
+    $this->assertEquals($names[1], 'Paul', 'Second query returned correct name.');
+    $this->assertEquals($names[2], 'George', 'Third query returned correct name.');
   }
 
   /**
@@ -373,12 +373,12 @@ public function testUnionOrderLimit() {
     $names = $query_1->execute()->fetchCol();
 
     // Ensure we get all only 2 of the 3 records.
-    $this->assertEqual(count($names), 2, 'UNION with a limit returned rows from both queries.');
+    $this->assertEquals(count($names), 2, 'UNION with a limit returned rows from both queries.');
 
     // Ensure that the names are in the correct reverse alphabetical order,
     // regardless of which query they came from.
-    $this->assertEqual($names[0], 'Ringo', 'First query returned correct name.');
-    $this->assertEqual($names[1], 'Paul', 'Second query returned correct name.');
+    $this->assertEquals($names[0], 'Ringo', 'First query returned correct name.');
+    $this->assertEquals($names[1], 'Paul', 'Second query returned correct name.');
   }
 
   /**
@@ -413,7 +413,7 @@ public function testRandomOrder() {
       ->orderBy('id')
       ->execute()
       ->fetchCol();
-    $this->assertEqual($ordered_ids, $expected_ids, 'A query without random ordering returns IDs in the correct order.');
+    $this->assertEquals($ordered_ids, $expected_ids, 'A query without random ordering returns IDs in the correct order.');
 
     // Now perform the same query, but instead choose a random ordering. We
     // expect this to contain a differently ordered version of the original
@@ -427,7 +427,7 @@ public function testRandomOrder() {
     $this->assertNotEqual($randomized_ids, $ordered_ids, 'A query with random ordering returns an unordered set of IDs.');
     $sorted_ids = $randomized_ids;
     sort($sorted_ids);
-    $this->assertEqual($sorted_ids, $ordered_ids, 'After sorting the random list, the result matches the original query.');
+    $this->assertEquals($sorted_ids, $ordered_ids, 'After sorting the random list, the result matches the original query.');
 
     // Now perform the exact same query again, and make sure the order is
     // different.
@@ -440,7 +440,7 @@ public function testRandomOrder() {
     $this->assertNotEqual($randomized_ids_second_set, $randomized_ids, 'Performing the query with random ordering a second time returns IDs in a different order.');
     $sorted_ids_second_set = $randomized_ids_second_set;
     sort($sorted_ids_second_set);
-    $this->assertEqual($sorted_ids_second_set, $sorted_ids, 'After sorting the second random list, the result matches the sorted version of the first random list.');
+    $this->assertEquals($sorted_ids_second_set, $sorted_ids, 'After sorting the second random list, the result matches the sorted version of the first random list.');
   }
 
   /**
@@ -474,8 +474,8 @@ public function testRegexCondition() {
       $query->condition('t.name', $test_group['regex'], 'REGEXP');
       $result = $query->execute()->fetchCol();
 
-      $this->assertEqual(count($result), count($test_group['expected']), 'Returns the expected number of rows.');
-      $this->assertEqual(sort($result), sort($test_group['expected']), 'Returns the expected rows.');
+      $this->assertEquals(count($result), count($test_group['expected']), 'Returns the expected number of rows.');
+      $this->assertEquals(sort($result), sort($test_group['expected']), 'Returns the expected rows.');
     }
 
     // Ensure that filter by "#" still works due to the quoting.
@@ -505,8 +505,8 @@ public function testRegexCondition() {
       $query->condition('t.job', $test_group['regex'], 'REGEXP');
       $result = $query->execute()->fetchCol();
 
-      $this->assertEqual(count($result), count($test_group['expected']), 'Returns the expected number of rows.');
-      $this->assertEqual(sort($result), sort($test_group['expected']), 'Returns the expected rows.');
+      $this->assertEquals(count($result), count($test_group['expected']), 'Returns the expected number of rows.');
+      $this->assertEquals(sort($result), sort($test_group['expected']), 'Returns the expected rows.');
     }
 
     // Ensure that REGEXP filter still works with no-string type field.
@@ -575,7 +575,7 @@ public function testEmptyInCondition() {
       $this->fail('Expected exception not thrown');
     }
     catch (InvalidQueryException $e) {
-      $this->assertEqual("Query condition 'age IN ()' cannot be empty.", $e->getMessage());
+      $this->assertEquals("Query condition 'age IN ()' cannot be empty.", $e->getMessage());
     }
 
     try {
@@ -587,7 +587,7 @@ public function testEmptyInCondition() {
       $this->fail('Expected exception not thrown');
     }
     catch (InvalidQueryException $e) {
-      $this->assertEqual("Query condition 'age NOT IN ()' cannot be empty.", $e->getMessage());
+      $this->assertEquals("Query condition 'age NOT IN ()' cannot be empty.", $e->getMessage());
     }
   }
 
diff --git a/core/tests/Drupal/KernelTests/Core/Database/SerializeQueryTest.php b/core/tests/Drupal/KernelTests/Core/Database/SerializeQueryTest.php
index 357b39feb2..4b026d9697 100644
--- a/core/tests/Drupal/KernelTests/Core/Database/SerializeQueryTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Database/SerializeQueryTest.php
@@ -19,7 +19,7 @@ public function testSerializeQuery() {
     // assertion.
     $query = unserialize(serialize($query));
     $results = $query->execute()->fetchCol();
-    $this->assertEqual($results[0], 28, 'Query properly executed after unserialization.');
+    $this->assertEquals($results[0], 28, 'Query properly executed after unserialization.');
   }
 
 }
diff --git a/core/tests/Drupal/KernelTests/Core/Database/TaggingTest.php b/core/tests/Drupal/KernelTests/Core/Database/TaggingTest.php
index cab91381fd..35f3691d75 100644
--- a/core/tests/Drupal/KernelTests/Core/Database/TaggingTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Database/TaggingTest.php
@@ -119,7 +119,7 @@ public function testMetaData() {
     $query->addMetaData('test', $data);
 
     $return = $query->getMetaData('test');
-    $this->assertEqual($data, $return, 'Correct metadata returned.');
+    $this->assertEquals($data, $return, 'Correct metadata returned.');
 
     $return = $query->getMetaData('nothere');
     $this->assertNull($return, 'Non-existent key returned NULL.');
diff --git a/core/tests/Drupal/KernelTests/Core/Database/TransactionTest.php b/core/tests/Drupal/KernelTests/Core/Database/TransactionTest.php
index a07045dd53..47372af63e 100644
--- a/core/tests/Drupal/KernelTests/Core/Database/TransactionTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Database/TransactionTest.php
@@ -604,7 +604,7 @@ public function testQueryFailureInTransaction() {
     unset($transaction);
 
     $saved_age = $connection->query('SELECT age FROM {test} WHERE name = :name', [':name' => 'David'])->fetchField();
-    $this->assertEqual('24', $saved_age);
+    $this->assertEquals('24', $saved_age);
   }
 
 }
diff --git a/core/tests/Drupal/KernelTests/Core/Database/UpdateComplexTest.php b/core/tests/Drupal/KernelTests/Core/Database/UpdateComplexTest.php
index 69d5d5d388..a164c451d7 100644
--- a/core/tests/Drupal/KernelTests/Core/Database/UpdateComplexTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Database/UpdateComplexTest.php
@@ -102,9 +102,9 @@ public function testUpdateExpression() {
     $this->assertIdentical($num_matches, '1', 'Updated fields successfully.');
 
     $person = db_query('SELECT * FROM {test} WHERE name = :name', [':name' => 'Ringo'])->fetch();
-    $this->assertEqual($person->name, 'Ringo', 'Name set correctly.');
-    $this->assertEqual($person->age, $before_age + 4, 'Age set correctly.');
-    $this->assertEqual($person->job, 'Musician', 'Job set correctly.');
+    $this->assertEquals($person->name, 'Ringo', 'Name set correctly.');
+    $this->assertEquals($person->age, $before_age + 4, 'Age set correctly.');
+    $this->assertEquals($person->job, 'Musician', 'Job set correctly.');
   }
 
   /**
@@ -119,7 +119,7 @@ public function testUpdateOnlyExpression() {
     $this->assertIdentical($num_updated, 1, 'Updated 1 record.');
 
     $after_age = db_query('SELECT age FROM {test} WHERE name = :name', [':name' => 'Ringo'])->fetchField();
-    $this->assertEqual($before_age + 4, $after_age, 'Age updated correctly');
+    $this->assertEquals($before_age + 4, $after_age, 'Age updated correctly');
   }
 
   /**
@@ -138,8 +138,8 @@ public function testSubSelectUpdate() {
     $num_updated = $query->execute();
     $after_age = db_query('SELECT age FROM {test} WHERE name = :name', [':name' => 'Ringo'])->fetchField();
     $expected_age = $select->execute()->fetchField();
-    $this->assertEqual($after_age, $expected_age);
-    $this->assertEqual(1, $num_updated, t('Expected 1 row to be updated in subselect update query.'));
+    $this->assertEquals($after_age, $expected_age);
+    $this->assertEquals(1, $num_updated, t('Expected 1 row to be updated in subselect update query.'));
   }
 
 }
diff --git a/core/tests/Drupal/KernelTests/Core/Database/UpsertTest.php b/core/tests/Drupal/KernelTests/Core/Database/UpsertTest.php
index 5c62f87f6b..20403b80f5 100644
--- a/core/tests/Drupal/KernelTests/Core/Database/UpsertTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Database/UpsertTest.php
@@ -40,17 +40,17 @@ public function testUpsert() {
     $upsert->execute();
 
     $num_records_after = $connection->query('SELECT COUNT(*) FROM {test_people}')->fetchField();
-    $this->assertEqual($num_records_before + 1, $num_records_after, 'Rows were inserted and updated properly.');
+    $this->assertEquals($num_records_before + 1, $num_records_after, 'Rows were inserted and updated properly.');
 
     $person = $connection->query('SELECT * FROM {test_people} WHERE job = :job', [':job' => 'Presenter'])->fetch();
-    $this->assertEqual($person->job, 'Presenter', 'Job set correctly.');
-    $this->assertEqual($person->age, 31, 'Age set correctly.');
-    $this->assertEqual($person->name, 'Tiffany', 'Name set correctly.');
+    $this->assertEquals($person->job, 'Presenter', 'Job set correctly.');
+    $this->assertEquals($person->age, 31, 'Age set correctly.');
+    $this->assertEquals($person->name, 'Tiffany', 'Name set correctly.');
 
     $person = $connection->query('SELECT * FROM {test_people} WHERE job = :job', [':job' => 'Speaker'])->fetch();
-    $this->assertEqual($person->job, 'Speaker', 'Job was not changed.');
-    $this->assertEqual($person->age, 32, 'Age updated correctly.');
-    $this->assertEqual($person->name, 'Meredith', 'Name was not changed.');
+    $this->assertEquals($person->job, 'Speaker', 'Job was not changed.');
+    $this->assertEquals($person->age, 32, 'Age updated correctly.');
+    $this->assertEquals($person->name, 'Meredith', 'Name was not changed.');
   }
 
 }
diff --git a/core/tests/Drupal/KernelTests/Core/DrupalKernel/DrupalKernelTest.php b/core/tests/Drupal/KernelTests/Core/DrupalKernel/DrupalKernelTest.php
index b5cb96b8cc..02a753164a 100644
--- a/core/tests/Drupal/KernelTests/Core/DrupalKernel/DrupalKernelTest.php
+++ b/core/tests/Drupal/KernelTests/Core/DrupalKernel/DrupalKernelTest.php
@@ -78,7 +78,7 @@ public function testCompileDIC() {
     // Verify that the list of modules is the same for the initial and the
     // compiled container.
     $module_list = array_keys($container->get('module_handler')->getModuleList());
-    $this->assertEqual(array_values($modules_enabled), $module_list);
+    $this->assertEquals(array_values($modules_enabled), $module_list);
 
     // Get the container another time, simulating a "production" environment.
     $container = $this->getTestKernel($request, NULL)
@@ -91,7 +91,7 @@ public function testCompileDIC() {
     // Verify that the list of modules is the same for the initial and the
     // compiled container.
     $module_list = array_keys($container->get('module_handler')->getModuleList());
-    $this->assertEqual(array_values($modules_enabled), $module_list);
+    $this->assertEquals(array_values($modules_enabled), $module_list);
 
     // Test that our synthetic services are there.
     $class_loader = $container->get('class_loader');
@@ -128,7 +128,7 @@ public function testCompileDIC() {
 
     // Check that the location of the new module is registered.
     $modules = $container->getParameter('container.modules');
-    $this->assertEqual($modules['service_provider_test'], [
+    $this->assertEquals($modules['service_provider_test'], [
       'type' => 'module',
       'pathname' => drupal_get_filename('module', 'service_provider_test'),
       'filename' => NULL,
diff --git a/core/tests/Drupal/KernelTests/Core/Element/PathElementFormTest.php b/core/tests/Drupal/KernelTests/Core/Element/PathElementFormTest.php
index b5b9ffd5ec..3e0efcb3a6 100644
--- a/core/tests/Drupal/KernelTests/Core/Element/PathElementFormTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Element/PathElementFormTest.php
@@ -153,8 +153,8 @@ public function testPathElement() {
     $form_builder->submitForm($this, $form_state);
 
     // Valid form state.
-    $this->assertEqual(count($form_state->getErrors()), 0);
-    $this->assertEqual($form_state->getValue('required_validate_route'), [
+    $this->assertEquals(count($form_state->getErrors()), 0);
+    $this->assertEquals($form_state->getValue('required_validate_route'), [
       'route_name' => 'entity.user.canonical',
       'route_parameters' => [
         'user' => $this->testUser->id(),
@@ -163,8 +163,8 @@ public function testPathElement() {
     /** @var \Drupal\Core\Url $url */
     $url = $form_state->getValue('required_validate_url');
     $this->assertTrue($url instanceof Url);
-    $this->assertEqual($url->getRouteName(), 'entity.user.canonical');
-    $this->assertEqual($url->getRouteParameters(), [
+    $this->assertEquals($url->getRouteName(), 'entity.user.canonical');
+    $this->assertEquals($url->getRouteParameters(), [
       'user' => $this->testUser->id(),
     ]);
 
@@ -178,8 +178,8 @@ public function testPathElement() {
     $form_builder->submitForm($this, $form_state);
     $errors = $form_state->getErrors();
     // Should be missing 'required_validate' field.
-    $this->assertEqual(count($errors), 1);
-    $this->assertEqual($errors, ['required_validate' => t('@name field is required.', ['@name' => 'required_validate'])]);
+    $this->assertEquals(count($errors), 1);
+    $this->assertEquals($errors, ['required_validate' => t('@name field is required.', ['@name' => 'required_validate'])]);
 
     // Test invalid parameters.
     $form_state = (new FormState())
@@ -194,8 +194,8 @@ public function testPathElement() {
 
     // Valid form state.
     $errors = $form_state->getErrors();
-    $this->assertEqual(count($errors), 3);
-    $this->assertEqual($errors, [
+    $this->assertEquals(count($errors), 3);
+    $this->assertEquals($errors, [
       'required_validate' => t('This path does not exist or you do not have permission to link to %path.', ['%path' => 'user/74']),
       'required_validate_route' => t('This path does not exist or you do not have permission to link to %path.', ['%path' => 'user/74']),
       'required_validate_url' => t('This path does not exist or you do not have permission to link to %path.', ['%path' => 'user/74']),
diff --git a/core/tests/Drupal/KernelTests/Core/Entity/BundleConstraintValidatorTest.php b/core/tests/Drupal/KernelTests/Core/Entity/BundleConstraintValidatorTest.php
index 613ba4e17d..bbc9f4ad1b 100644
--- a/core/tests/Drupal/KernelTests/Core/Entity/BundleConstraintValidatorTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Entity/BundleConstraintValidatorTest.php
@@ -53,20 +53,20 @@ protected function assertValidation($bundle) {
 
     $typed_data = $this->typedData->create($definition, $node);
     $violations = $typed_data->validate();
-    $this->assertEqual($violations->count(), 0, 'Validation passed for correct value.');
+    $this->assertEquals($violations->count(), 0, 'Validation passed for correct value.');
 
     // Test the validation when an invalid value is passed.
     $page_node = $this->container->get('entity.manager')->getStorage('node')->create(['type' => 'baz']);
 
     $typed_data = $this->typedData->create($definition, $page_node);
     $violations = $typed_data->validate();
-    $this->assertEqual($violations->count(), 1, 'Validation failed for incorrect value.');
+    $this->assertEquals($violations->count(), 1, 'Validation failed for incorrect value.');
 
     // Make sure the information provided by a violation is correct.
     $violation = $violations[0];
-    $this->assertEqual($violation->getMessage(), t('The entity must be of bundle %bundle.', ['%bundle' => implode(', ', (array) $bundle)]), 'The message for invalid value is correct.');
-    $this->assertEqual($violation->getRoot(), $typed_data, 'Violation root is correct.');
-    $this->assertEqual($violation->getInvalidValue(), $page_node, 'The invalid value is set correctly in the violation.');
+    $this->assertEquals($violation->getMessage(), t('The entity must be of bundle %bundle.', ['%bundle' => implode(', ', (array) $bundle)]), 'The message for invalid value is correct.');
+    $this->assertEquals($violation->getRoot(), $typed_data, 'Violation root is correct.');
+    $this->assertEquals($violation->getInvalidValue(), $page_node, 'The invalid value is set correctly in the violation.');
   }
 
 }
diff --git a/core/tests/Drupal/KernelTests/Core/Entity/ConfigEntityQueryTest.php b/core/tests/Drupal/KernelTests/Core/Entity/ConfigEntityQueryTest.php
index 8dc101a465..bd75c42e22 100644
--- a/core/tests/Drupal/KernelTests/Core/Entity/ConfigEntityQueryTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Entity/ConfigEntityQueryTest.php
@@ -637,7 +637,7 @@ public function testLookupKeys() {
     $entity->save();
 
     $expected[] = $entity->getConfigDependencyName();
-    $this->assertEqual($expected, $key_value->get('style:test'));
+    $this->assertEquals($expected, $key_value->get('style:test'));
 
     $entity = $storage->create([
       'label' => $this->randomMachineName(),
@@ -648,7 +648,7 @@ public function testLookupKeys() {
     $entity->enforceIsNew();
     $entity->save();
     $expected[] = $entity->getConfigDependencyName();
-    $this->assertEqual($expected, $key_value->get('style:test'));
+    $this->assertEquals($expected, $key_value->get('style:test'));
 
     $entity = $storage->create([
       'label' => $this->randomMachineName(),
@@ -659,20 +659,20 @@ public function testLookupKeys() {
     $entity->save();
     // Do not add this entity to the list of expected result as it has a
     // different value.
-    $this->assertEqual($expected, $key_value->get('style:test'));
-    $this->assertEqual([$entity->getConfigDependencyName()], $key_value->get('style:blah'));
+    $this->assertEquals($expected, $key_value->get('style:test'));
+    $this->assertEquals([$entity->getConfigDependencyName()], $key_value->get('style:blah'));
 
     // Ensure that a delete clears a key.
     $entity->delete();
-    $this->assertEqual(NULL, $key_value->get('style:blah'));
+    $this->assertEquals(NULL, $key_value->get('style:blah'));
 
     // Ensure that delete only clears one key.
     $entity_id = array_pop($expected);
     $test_entities[$entity_id]->delete();
-    $this->assertEqual($expected, $key_value->get('style:test'));
+    $this->assertEquals($expected, $key_value->get('style:test'));
     $entity_id = array_pop($expected);
     $test_entities[$entity_id]->delete();
-    $this->assertEqual(NULL, $key_value->get('style:test'));
+    $this->assertEquals(NULL, $key_value->get('style:test'));
   }
 
   /**
diff --git a/core/tests/Drupal/KernelTests/Core/Entity/ContentEntityChangedTest.php b/core/tests/Drupal/KernelTests/Core/Entity/ContentEntityChangedTest.php
index aa0044bd8e..8444934596 100644
--- a/core/tests/Drupal/KernelTests/Core/Entity/ContentEntityChangedTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Entity/ContentEntityChangedTest.php
@@ -82,7 +82,7 @@ public function testChanged() {
       'Changed and created time of original language can be assumed to be identical.'
     );
 
-    $this->assertEqual(
+    $this->assertEquals(
       $entity->getChangedTime(), $entity->getChangedTimeAcrossTranslations(),
       'Changed time of original language is the same as changed time across all translations.'
     );
@@ -94,7 +94,7 @@ public function testChanged() {
 
     $entity->save();
 
-    $this->assertEqual(
+    $this->assertEquals(
       $entity->getChangedTime(), $changed_en,
       'Changed time of original language did not change.'
     );
@@ -104,7 +104,7 @@ public function testChanged() {
       'Changed time of the German translation is newer then the original language.'
     );
 
-    $this->assertEqual(
+    $this->assertEquals(
       $german->getChangedTime(), $entity->getChangedTimeAcrossTranslations(),
       'Changed time of the German translation is the newest time across all translations.'
     );
@@ -113,12 +113,12 @@ public function testChanged() {
 
     $entity->save();
 
-    $this->assertEqual(
+    $this->assertEquals(
       $entity->getChangedTime(), $changed_en,
       'Changed time of original language did not change.'
     );
 
-    $this->assertEqual(
+    $this->assertEquals(
       $german->getChangedTime(), $changed_de,
       'Changed time of the German translation did not change.'
     );
@@ -151,7 +151,7 @@ public function testChanged() {
       'Changed time of original language did change.'
     );
 
-    $this->assertEqual(
+    $this->assertEquals(
       $german->getChangedTime(), $changed_de,
       'Changed time of the German translation did not change.'
     );
@@ -161,7 +161,7 @@ public function testChanged() {
       'Changed time of original language is newer then the German translation.'
     );
 
-    $this->assertEqual(
+    $this->assertEquals(
       $entity->getChangedTime(), $entity->getChangedTimeAcrossTranslations(),
       'Changed time of the original language is the newest time across all translations.'
     );
@@ -171,12 +171,12 @@ public function testChanged() {
     // Save entity without any changes.
     $entity->save();
 
-    $this->assertEqual(
+    $this->assertEquals(
       $entity->getChangedTime(), $changed_en,
       'Changed time of original language did not change.'
     );
 
-    $this->assertEqual(
+    $this->assertEquals(
       $german->getChangedTime(), $changed_de,
       'Changed time of the German translation did not change.'
     );
@@ -187,7 +187,7 @@ public function testChanged() {
     $query = $this->mulChangedStorage->getQuery();
     $ids = $query->condition('changed', $changed_en)->execute();
 
-    $this->assertEqual(
+    $this->assertEquals(
       reset($ids), $entity->id(),
       'Entity query can access changed time of original language.'
     );
@@ -195,7 +195,7 @@ public function testChanged() {
     $query = $this->mulChangedStorage->getQuery();
     $ids = $query->condition('changed', $changed_en, '=', 'en')->execute();
 
-    $this->assertEqual(
+    $this->assertEquals(
       reset($ids), $entity->id(),
       'Entity query can access changed time of original language by setting the original language as condition.'
     );
@@ -211,7 +211,7 @@ public function testChanged() {
     $query = $this->mulChangedStorage->getQuery();
     $ids = $query->condition('changed', $changed_en)->condition('default_langcode', '1')->execute();
 
-    $this->assertEqual(
+    $this->assertEquals(
       reset($ids), $entity->id(),
       'Entity query can access changed time of default language.'
     );
@@ -227,7 +227,7 @@ public function testChanged() {
     $query = $this->mulChangedStorage->getQuery();
     $ids = $query->condition('changed', $changed_de)->execute();
 
-    $this->assertEqual(
+    $this->assertEquals(
       reset($ids), $entity->id(),
       'Entity query can access changed time of the German translation.'
     );
@@ -235,7 +235,7 @@ public function testChanged() {
     $query = $this->mulChangedStorage->getQuery();
     $ids = $query->condition('changed', $changed_de, '=', 'de')->execute();
 
-    $this->assertEqual(
+    $this->assertEquals(
       reset($ids), $entity->id(),
       'Entity query can access changed time of the German translation.'
     );
@@ -251,7 +251,7 @@ public function testChanged() {
     $query = $this->mulChangedStorage->getQuery();
     $ids = $query->condition('changed', $changed_de, '>')->execute();
 
-    $this->assertEqual(
+    $this->assertEquals(
       reset($ids), $entity->id(),
       'Entity query can access changed time regardless of translation.'
     );
@@ -259,7 +259,7 @@ public function testChanged() {
     $query = $this->mulChangedStorage->getQuery();
     $ids = $query->condition('changed', $changed_en, '<')->execute();
 
-    $this->assertEqual(
+    $this->assertEquals(
       reset($ids), $entity->id(),
       'Entity query can access changed time regardless of translation.'
     );
@@ -267,7 +267,7 @@ public function testChanged() {
     $query = $this->mulChangedStorage->getQuery();
     $ids = $query->condition('changed', 0, '>')->execute();
 
-    $this->assertEqual(
+    $this->assertEquals(
       reset($ids), $entity->id(),
       'Entity query can access changed time regardless of translation.'
     );
@@ -310,7 +310,7 @@ public function testRevisionChanged() {
       'Changed and created time of original language can be assumed to be identical.'
     );
 
-    $this->assertEqual(
+    $this->assertEquals(
       $entity->getChangedTime(), $entity->getChangedTimeAcrossTranslations(),
       'Changed time of original language is the same as changed time across all translations.'
     );
@@ -326,7 +326,7 @@ public function testRevisionChanged() {
     // Save entity without any changes but create new revision.
     $entity->save();
     // A new revision without any changes should not set a new changed time.
-    $this->assertEqual(
+    $this->assertEquals(
       $entity->getChangedTime(), $changed_en,
       'Changed time of original language did not change.'
     );
@@ -357,7 +357,7 @@ public function testRevisionChanged() {
 
     $entity->save();
 
-    $this->assertEqual(
+    $this->assertEquals(
       $entity->getChangedTime(), $changed_en,
       'Changed time of original language did not change.'
     );
@@ -367,7 +367,7 @@ public function testRevisionChanged() {
       'Changed time of the German translation is newer then the original language.'
     );
 
-    $this->assertEqual(
+    $this->assertEquals(
       $german->getChangedTime(), $entity->getChangedTimeAcrossTranslations(),
       'Changed time of the German translation is the newest time across all translations.'
     );
@@ -388,12 +388,12 @@ public function testRevisionChanged() {
     // Save entity without any changes but create new revision.
     $entity->save();
 
-    $this->assertEqual(
+    $this->assertEquals(
       $entity->getChangedTime(), $changed_en,
       'Changed time of original language did not change.'
     );
 
-    $this->assertEqual(
+    $this->assertEquals(
       $german->getChangedTime(), $changed_de,
       'Changed time of the German translation did not change.'
     );
@@ -412,7 +412,7 @@ public function testRevisionChanged() {
     $german->setOwner($user2);
     $entity->save();
 
-    $this->assertEqual(
+    $this->assertEquals(
       $entity->getChangedTime(), $changed_en,
       'Changed time of original language did not change.'
     );
@@ -422,7 +422,7 @@ public function testRevisionChanged() {
       'Changed time of the German translation did change.'
     );
 
-    $this->assertEqual(
+    $this->assertEquals(
       $german->getChangedTime(), $entity->getChangedTimeAcrossTranslations(),
       'Changed time of the German translation is the newest time across all translations.'
     );
@@ -442,7 +442,7 @@ public function testRevisionChanged() {
     $entity->setNewRevision();
     $entity->save();
 
-    $this->assertEqual(
+    $this->assertEquals(
       $entity->getChangedTime(), $changed_en,
       'Changed time of original language did not change.'
     );
@@ -457,7 +457,7 @@ public function testRevisionChanged() {
       'Changed time of the French translation is newer then the German translation.'
     );
 
-    $this->assertEqual(
+    $this->assertEquals(
       $french->getChangedTime(), $entity->getChangedTimeAcrossTranslations(),
       'Changed time of the French translation is the newest time across all translations.'
     );
diff --git a/core/tests/Drupal/KernelTests/Core/Entity/ContentEntityCloneTest.php b/core/tests/Drupal/KernelTests/Core/Entity/ContentEntityCloneTest.php
index fe9bb4d284..d37eac49f7 100644
--- a/core/tests/Drupal/KernelTests/Core/Entity/ContentEntityCloneTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Entity/ContentEntityCloneTest.php
@@ -54,7 +54,7 @@ public function testFieldEntityReferenceAfterClone() {
 
     $clone = clone $translation;
 
-    $this->assertEqual($entity->getTranslationLanguages(), $clone->getTranslationLanguages(), 'The entity and its clone have the same translation languages.');
+    $this->assertEquals($entity->getTranslationLanguages(), $clone->getTranslationLanguages(), 'The entity and its clone have the same translation languages.');
 
     $default_langcode = $entity->getUntranslated()->language()->getId();
     foreach (array_keys($clone->getTranslationLanguages()) as $langcode) {
@@ -62,12 +62,12 @@ public function testFieldEntityReferenceAfterClone() {
       foreach ($translation->getFields() as $field_name => $field) {
         if ($field->getFieldDefinition()->isTranslatable()) {
           $args = ['%field_name' => $field_name, '%langcode' => $langcode];
-          $this->assertEqual($langcode, $field->getEntity()->language()->getId(), format_string('Translatable field %field_name on translation %langcode has correct entity reference in translation %langcode after cloning.', $args));
+          $this->assertEquals($langcode, $field->getEntity()->language()->getId(), format_string('Translatable field %field_name on translation %langcode has correct entity reference in translation %langcode after cloning.', $args));
           $this->assertSame($translation, $field->getEntity(), new FormattableMarkup('Translatable field %field_name on translation %langcode has correct reference to the cloned entity object.', $args));
         }
         else {
           $args = ['%field_name' => $field_name, '%langcode' => $langcode, '%default_langcode' => $default_langcode];
-          $this->assertEqual($default_langcode, $field->getEntity()->language()->getId(), format_string('Non translatable field %field_name on translation %langcode has correct entity reference in the default translation %default_langcode after cloning.', $args));
+          $this->assertEquals($default_langcode, $field->getEntity()->language()->getId(), format_string('Non translatable field %field_name on translation %langcode has correct entity reference in the default translation %default_langcode after cloning.', $args));
           $this->assertSame($translation->getUntranslated(), $field->getEntity(), new FormattableMarkup('Non translatable field %field_name on translation %langcode has correct reference to the cloned entity object in the default translation %default_langcode.', $args));
         }
       }
diff --git a/core/tests/Drupal/KernelTests/Core/Entity/Element/EntityAutocompleteElementFormTest.php b/core/tests/Drupal/KernelTests/Core/Entity/Element/EntityAutocompleteElementFormTest.php
index c18910e21d..2f37443759 100644
--- a/core/tests/Drupal/KernelTests/Core/Entity/Element/EntityAutocompleteElementFormTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Entity/Element/EntityAutocompleteElementFormTest.php
@@ -211,51 +211,51 @@ public function testValidEntityAutocompleteElement() {
     $form_builder->submitForm($this, $form_state);
 
     // Valid form state.
-    $this->assertEqual(count($form_state->getErrors()), 0);
+    $this->assertEquals(count($form_state->getErrors()), 0);
 
     // Test the 'single' element.
-    $this->assertEqual($form_state->getValue('single'), $this->referencedEntities[0]->id());
+    $this->assertEquals($form_state->getValue('single'), $this->referencedEntities[0]->id());
 
     // Test the 'single_autocreate' element.
     $value = $form_state->getValue('single_autocreate');
-    $this->assertEqual($value['entity']->label(), 'single - autocreated entity label');
-    $this->assertEqual($value['entity']->bundle(), 'entity_test');
-    $this->assertEqual($value['entity']->getOwnerId(), $this->testUser->id());
+    $this->assertEquals($value['entity']->label(), 'single - autocreated entity label');
+    $this->assertEquals($value['entity']->bundle(), 'entity_test');
+    $this->assertEquals($value['entity']->getOwnerId(), $this->testUser->id());
 
     // Test the 'single_autocreate_specific_uid' element.
     $value = $form_state->getValue('single_autocreate_specific_uid');
-    $this->assertEqual($value['entity']->label(), 'single - autocreated entity label with specific uid');
-    $this->assertEqual($value['entity']->bundle(), 'entity_test');
-    $this->assertEqual($value['entity']->getOwnerId(), $this->testAutocreateUser->id());
+    $this->assertEquals($value['entity']->label(), 'single - autocreated entity label with specific uid');
+    $this->assertEquals($value['entity']->bundle(), 'entity_test');
+    $this->assertEquals($value['entity']->getOwnerId(), $this->testAutocreateUser->id());
 
     // Test the 'tags' element.
     $expected = [
       ['target_id' => $this->referencedEntities[0]->id()],
       ['target_id' => $this->referencedEntities[1]->id()],
     ];
-    $this->assertEqual($form_state->getValue('tags'), $expected);
+    $this->assertEquals($form_state->getValue('tags'), $expected);
 
     // Test the 'single_autocreate' element.
     $value = $form_state->getValue('tags_autocreate');
     // First value is an existing entity.
-    $this->assertEqual($value[0]['target_id'], $this->referencedEntities[0]->id());
+    $this->assertEquals($value[0]['target_id'], $this->referencedEntities[0]->id());
     // Second value is an autocreated entity.
     $this->assertTrue(!isset($value[1]['target_id']));
-    $this->assertEqual($value[1]['entity']->label(), 'tags - autocreated entity label');
-    $this->assertEqual($value[1]['entity']->getOwnerId(), $this->testUser->id());
+    $this->assertEquals($value[1]['entity']->label(), 'tags - autocreated entity label');
+    $this->assertEquals($value[1]['entity']->getOwnerId(), $this->testUser->id());
     // Third value is an existing entity.
-    $this->assertEqual($value[2]['target_id'], $this->referencedEntities[1]->id());
+    $this->assertEquals($value[2]['target_id'], $this->referencedEntities[1]->id());
 
     // Test the 'tags_autocreate_specific_uid' element.
     $value = $form_state->getValue('tags_autocreate_specific_uid');
     // First value is an existing entity.
-    $this->assertEqual($value[0]['target_id'], $this->referencedEntities[0]->id());
+    $this->assertEquals($value[0]['target_id'], $this->referencedEntities[0]->id());
     // Second value is an autocreated entity.
     $this->assertTrue(!isset($value[1]['target_id']));
-    $this->assertEqual($value[1]['entity']->label(), 'tags - autocreated entity label with specific uid');
-    $this->assertEqual($value[1]['entity']->getOwnerId(), $this->testAutocreateUser->id());
+    $this->assertEquals($value[1]['entity']->label(), 'tags - autocreated entity label with specific uid');
+    $this->assertEquals($value[1]['entity']->getOwnerId(), $this->testAutocreateUser->id());
     // Third value is an existing entity.
-    $this->assertEqual($value[2]['target_id'], $this->referencedEntities[1]->id());
+    $this->assertEquals($value[2]['target_id'], $this->referencedEntities[1]->id());
 
     // Test the 'single_string_id' element.
     $this->assertEquals($this->referencedEntities[2]->id(), $form_state->getValue('single_string_id'));
@@ -280,8 +280,8 @@ public function testInvalidEntityAutocompleteElement() {
         'single' => 'single - non-existent label',
       ]);
     $form_builder->submitForm($this, $form_state);
-    $this->assertEqual(count($form_state->getErrors()), 1);
-    $this->assertEqual($form_state->getErrors()['single'], t('There are no entities matching "%value".', ['%value' => 'single - non-existent label']));
+    $this->assertEquals(count($form_state->getErrors()), 1);
+    $this->assertEquals($form_state->getErrors()['single'], t('There are no entities matching "%value".', ['%value' => 'single - non-existent label']));
 
     // Test 'single' with a entity ID that doesn't exist.
     $form_state = (new FormState())
@@ -289,8 +289,8 @@ public function testInvalidEntityAutocompleteElement() {
         'single' => 'single - non-existent label (42)',
       ]);
     $form_builder->submitForm($this, $form_state);
-    $this->assertEqual(count($form_state->getErrors()), 1);
-    $this->assertEqual($form_state->getErrors()['single'], t('The referenced entity (%type: %id) does not exist.', ['%type' => 'entity_test', '%id' => 42]));
+    $this->assertEquals(count($form_state->getErrors()), 1);
+    $this->assertEquals($form_state->getErrors()['single'], t('The referenced entity (%type: %id) does not exist.', ['%type' => 'entity_test', '%id' => 42]));
 
     // Do the same tests as above but on an element with '#validate_reference'
     // set to FALSE.
@@ -303,8 +303,8 @@ public function testInvalidEntityAutocompleteElement() {
 
     // The element without 'autocreate' support still has to emit a warning when
     // the input doesn't end with an entity ID enclosed in parentheses.
-    $this->assertEqual(count($form_state->getErrors()), 1);
-    $this->assertEqual($form_state->getErrors()['single_no_validate'], t('There are no entities matching "%value".', ['%value' => 'single - non-existent label']));
+    $this->assertEquals(count($form_state->getErrors()), 1);
+    $this->assertEquals($form_state->getErrors()['single_no_validate'], t('There are no entities matching "%value".', ['%value' => 'single - non-existent label']));
 
     $form_state = (new FormState())
       ->setValues([
@@ -315,7 +315,7 @@ public function testInvalidEntityAutocompleteElement() {
 
     // The input is complete (i.e. contains an entity ID at the end), no errors
     // are triggered.
-    $this->assertEqual(count($form_state->getErrors()), 0);
+    $this->assertEquals(count($form_state->getErrors()), 0);
   }
 
   /**
@@ -327,10 +327,10 @@ public function testEntityAutocompleteAccess() {
 
     // Check that the current user has proper access to view entity labels.
     $expected = $this->referencedEntities[0]->label() . ' (' . $this->referencedEntities[0]->id() . ')';
-    $this->assertEqual($form['single_access']['#value'], $expected);
+    $this->assertEquals($form['single_access']['#value'], $expected);
 
     $expected .= ', ' . $this->referencedEntities[1]->label() . ' (' . $this->referencedEntities[1]->id() . ')';
-    $this->assertEqual($form['tags_access']['#value'], $expected);
+    $this->assertEquals($form['tags_access']['#value'], $expected);
 
     // Set up a non-admin user that is *not* allowed to view test entities.
     \Drupal::currentUser()->setAccount($this->createUser([], []));
@@ -339,10 +339,10 @@ public function testEntityAutocompleteAccess() {
     $form = $form_builder->getForm($this);
 
     $expected = t('- Restricted access -') . ' (' . $this->referencedEntities[0]->id() . ')';
-    $this->assertEqual($form['single_access']['#value'], $expected);
+    $this->assertEquals($form['single_access']['#value'], $expected);
 
     $expected .= ', ' . t('- Restricted access -') . ' (' . $this->referencedEntities[1]->id() . ')';
-    $this->assertEqual($form['tags_access']['#value'], $expected);
+    $this->assertEquals($form['tags_access']['#value'], $expected);
   }
 
   /**
diff --git a/core/tests/Drupal/KernelTests/Core/Entity/EntityAccessControlHandlerTest.php b/core/tests/Drupal/KernelTests/Core/Entity/EntityAccessControlHandlerTest.php
index b3af27fba2..b7ca4b168b 100644
--- a/core/tests/Drupal/KernelTests/Core/Entity/EntityAccessControlHandlerTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Entity/EntityAccessControlHandlerTest.php
@@ -42,7 +42,7 @@ public function assertEntityAccess($ops, AccessibleInterface $object, AccountInt
         '@op' => $op,
       ]);
 
-      $this->assertEqual($result, $object->access($op, $account), $message);
+      $this->assertEquals($result, $object->access($op, $account), $message);
     }
   }
 
@@ -280,17 +280,17 @@ public function testHooks() {
 
     // Test hook_entity_create_access() and hook_ENTITY_TYPE_create_access().
     $entity->access('create');
-    $this->assertEqual($state->get('entity_test_entity_create_access'), TRUE);
+    $this->assertEquals($state->get('entity_test_entity_create_access'), TRUE);
     $this->assertIdentical($state->get('entity_test_entity_create_access_context'), [
       'entity_type_id' => 'entity_test',
       'langcode' => LanguageInterface::LANGCODE_DEFAULT,
     ]);
-    $this->assertEqual($state->get('entity_test_entity_test_create_access'), TRUE);
+    $this->assertEquals($state->get('entity_test_entity_test_create_access'), TRUE);
 
     // Test hook_entity_access() and hook_ENTITY_TYPE_access().
     $entity->access('view');
-    $this->assertEqual($state->get('entity_test_entity_access'), TRUE);
-    $this->assertEqual($state->get('entity_test_entity_test_access'), TRUE);
+    $this->assertEquals($state->get('entity_test_entity_access'), TRUE);
+    $this->assertEquals($state->get('entity_test_entity_test_access'), TRUE);
   }
 
 }
diff --git a/core/tests/Drupal/KernelTests/Core/Entity/EntityApiTest.php b/core/tests/Drupal/KernelTests/Core/Entity/EntityApiTest.php
index b32e78de89..6c696ddfd7 100644
--- a/core/tests/Drupal/KernelTests/Core/Entity/EntityApiTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Entity/EntityApiTest.php
@@ -65,25 +65,25 @@ protected function assertCRUD($entity_type, UserInterface $user1) {
       ->getStorage($entity_type);
 
     $entities = array_values($storage->loadByProperties(['name' => 'test']));
-    $this->assertEqual($entities[0]->name->value, 'test', format_string('%entity_type: Created and loaded entity', ['%entity_type' => $entity_type]));
-    $this->assertEqual($entities[1]->name->value, 'test', format_string('%entity_type: Created and loaded entity', ['%entity_type' => $entity_type]));
+    $this->assertEquals($entities[0]->name->value, 'test', format_string('%entity_type: Created and loaded entity', ['%entity_type' => $entity_type]));
+    $this->assertEquals($entities[1]->name->value, 'test', format_string('%entity_type: Created and loaded entity', ['%entity_type' => $entity_type]));
 
     // Test loading a single entity.
     $loaded_entity = $storage->load($entity->id());
-    $this->assertEqual($loaded_entity->id(), $entity->id(), format_string('%entity_type: Loaded a single entity by id.', ['%entity_type' => $entity_type]));
+    $this->assertEquals($loaded_entity->id(), $entity->id(), format_string('%entity_type: Loaded a single entity by id.', ['%entity_type' => $entity_type]));
 
     // Test deleting an entity.
     $entities = array_values($storage->loadByProperties(['name' => 'test2']));
     $entities[0]->delete();
     $entities = array_values($storage->loadByProperties(['name' => 'test2']));
-    $this->assertEqual($entities, [], format_string('%entity_type: Entity deleted.', ['%entity_type' => $entity_type]));
+    $this->assertEquals($entities, [], format_string('%entity_type: Entity deleted.', ['%entity_type' => $entity_type]));
 
     // Test updating an entity.
     $entities = array_values($storage->loadByProperties(['name' => 'test']));
     $entities[0]->name->value = 'test3';
     $entities[0]->save();
     $entity = $storage->load($entities[0]->id());
-    $this->assertEqual($entity->name->value, 'test3', format_string('%entity_type: Entity updated.', ['%entity_type' => $entity_type]));
+    $this->assertEquals($entity->name->value, 'test3', format_string('%entity_type: Entity updated.', ['%entity_type' => $entity_type]));
 
     // Try deleting multiple test entities by deleting all.
     $ids = array_keys($storage->loadMultiple());
@@ -94,15 +94,15 @@ protected function assertCRUD($entity_type, UserInterface $user1) {
 
     // Verify that all data got deleted.
     $definition = \Drupal::entityManager()->getDefinition($entity_type);
-    $this->assertEqual(0, db_query('SELECT COUNT(*) FROM {' . $definition->getBaseTable() . '}')->fetchField(), 'Base table was emptied');
+    $this->assertEquals(0, db_query('SELECT COUNT(*) FROM {' . $definition->getBaseTable() . '}')->fetchField(), 'Base table was emptied');
     if ($data_table = $definition->getDataTable()) {
-      $this->assertEqual(0, db_query('SELECT COUNT(*) FROM {' . $data_table . '}')->fetchField(), 'Data table was emptied');
+      $this->assertEquals(0, db_query('SELECT COUNT(*) FROM {' . $data_table . '}')->fetchField(), 'Data table was emptied');
     }
     if ($revision_table = $definition->getRevisionTable()) {
-      $this->assertEqual(0, db_query('SELECT COUNT(*) FROM {' . $revision_table . '}')->fetchField(), 'Data table was emptied');
+      $this->assertEquals(0, db_query('SELECT COUNT(*) FROM {' . $revision_table . '}')->fetchField(), 'Data table was emptied');
     }
     if ($revision_data_table = $definition->getRevisionDataTable()) {
-      $this->assertEqual(0, db_query('SELECT COUNT(*) FROM {' . $revision_data_table . '}')->fetchField(), 'Data table was emptied');
+      $this->assertEquals(0, db_query('SELECT COUNT(*) FROM {' . $revision_data_table . '}')->fetchField(), 'Data table was emptied');
     }
 
     // Test deleting a list of entities not indexed by entity id.
@@ -122,15 +122,15 @@ protected function assertCRUD($entity_type, UserInterface $user1) {
 
     // Verify that all data got deleted from the tables.
     $definition = \Drupal::entityManager()->getDefinition($entity_type);
-    $this->assertEqual(0, db_query('SELECT COUNT(*) FROM {' . $definition->getBaseTable() . '}')->fetchField(), 'Base table was emptied');
+    $this->assertEquals(0, db_query('SELECT COUNT(*) FROM {' . $definition->getBaseTable() . '}')->fetchField(), 'Base table was emptied');
     if ($data_table = $definition->getDataTable()) {
-      $this->assertEqual(0, db_query('SELECT COUNT(*) FROM {' . $data_table . '}')->fetchField(), 'Data table was emptied');
+      $this->assertEquals(0, db_query('SELECT COUNT(*) FROM {' . $data_table . '}')->fetchField(), 'Data table was emptied');
     }
     if ($revision_table = $definition->getRevisionTable()) {
-      $this->assertEqual(0, db_query('SELECT COUNT(*) FROM {' . $revision_table . '}')->fetchField(), 'Data table was emptied');
+      $this->assertEquals(0, db_query('SELECT COUNT(*) FROM {' . $revision_table . '}')->fetchField(), 'Data table was emptied');
     }
     if ($revision_data_table = $definition->getRevisionDataTable()) {
-      $this->assertEqual(0, db_query('SELECT COUNT(*) FROM {' . $revision_data_table . '}')->fetchField(), 'Data table was emptied');
+      $this->assertEquals(0, db_query('SELECT COUNT(*) FROM {' . $revision_data_table . '}')->fetchField(), 'Data table was emptied');
     }
   }
 
@@ -145,7 +145,7 @@ public function testEntityStorageExceptionHandling() {
       $this->fail('Entity presave EntityStorageException thrown but not caught.');
     }
     catch (EntityStorageException $e) {
-      $this->assertEqual($e->getcode(), 1, 'Entity presave EntityStorageException caught.');
+      $this->assertEquals($e->getcode(), 1, 'Entity presave EntityStorageException caught.');
     }
 
     $entity = EntityTest::create(['name' => 'test2']);
@@ -166,7 +166,7 @@ public function testEntityStorageExceptionHandling() {
       $this->fail('Entity predelete EntityStorageException not thrown.');
     }
     catch (EntityStorageException $e) {
-      $this->assertEqual($e->getCode(), 2, 'Entity predelete EntityStorageException caught.');
+      $this->assertEquals($e->getCode(), 2, 'Entity predelete EntityStorageException caught.');
     }
 
     unset($GLOBALS['entity_test_throw_exception']);
diff --git a/core/tests/Drupal/KernelTests/Core/Entity/EntityBundleFieldTest.php b/core/tests/Drupal/KernelTests/Core/Entity/EntityBundleFieldTest.php
index 22476d760a..fb593bf504 100644
--- a/core/tests/Drupal/KernelTests/Core/Entity/EntityBundleFieldTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Entity/EntityBundleFieldTest.php
@@ -63,19 +63,19 @@ public function testCustomBundleFieldUsage() {
 
     // Ensure that the field exists in the field map.
     $field_map = \Drupal::entityManager()->getFieldMap();
-    $this->assertEqual($field_map['entity_test']['custom_bundle_field'], ['type' => 'string', 'bundles' => ['custom' => 'custom']]);
+    $this->assertEquals($field_map['entity_test']['custom_bundle_field'], ['type' => 'string', 'bundles' => ['custom' => 'custom']]);
 
     $entity->custom_bundle_field->value = 'swanky';
     $entity->save();
     $storage->resetCache();
     $entity = $storage->load($entity->id());
-    $this->assertEqual($entity->custom_bundle_field->value, 'swanky', 'Entity was saved correctly');
+    $this->assertEquals($entity->custom_bundle_field->value, 'swanky', 'Entity was saved correctly');
 
     $entity->custom_bundle_field->value = 'cozy';
     $entity->save();
     $storage->resetCache();
     $entity = $storage->load($entity->id());
-    $this->assertEqual($entity->custom_bundle_field->value, 'cozy', 'Entity was updated correctly.');
+    $this->assertEquals($entity->custom_bundle_field->value, 'cozy', 'Entity was updated correctly.');
 
     $entity->delete();
     /** @var \Drupal\Core\Entity\Sql\DefaultTableMapping $table_mapping */
@@ -99,7 +99,7 @@ public function testCustomBundleFieldUsage() {
       ->condition('deleted', 1)
       ->countQuery()
       ->execute();
-    $this->assertEqual(1, $result->fetchField(), 'Field data has been deleted');
+    $this->assertEquals(1, $result->fetchField(), 'Field data has been deleted');
 
     // Ensure that the field no longer exists in the field map.
     $field_map = \Drupal::entityManager()->getFieldMap();
diff --git a/core/tests/Drupal/KernelTests/Core/Entity/EntityDefinitionUpdateTest.php b/core/tests/Drupal/KernelTests/Core/Entity/EntityDefinitionUpdateTest.php
index d0f5a1cd7b..f9aa509183 100644
--- a/core/tests/Drupal/KernelTests/Core/Entity/EntityDefinitionUpdateTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Entity/EntityDefinitionUpdateTest.php
@@ -115,7 +115,7 @@ public function testEntityTypeUpdateWithoutData() {
         t('The %field_name field needs to be installed.', ['%field_name' => 'Revision ID']),
       ],
     ];
-    $this->assertEqual($this->entityDefinitionUpdateManager->getChangeSummary(), $expected, 'EntityDefinitionUpdateManager reports the expected change summary.');
+    $this->assertEquals($this->entityDefinitionUpdateManager->getChangeSummary(), $expected, 'EntityDefinitionUpdateManager reports the expected change summary.');
 
     // Run the update and ensure the revision table is created.
     $this->entityDefinitionUpdateManager->applyUpdates();
@@ -154,7 +154,7 @@ public function testBaseFieldCreateUpdateDeleteWithoutData() {
         t('The %field_name field needs to be installed.', ['%field_name' => t('A new base field')]),
       ],
     ];
-    $this->assertEqual($this->entityDefinitionUpdateManager->getChangeSummary(), $expected, 'EntityDefinitionUpdateManager reports the expected change summary.');
+    $this->assertEquals($this->entityDefinitionUpdateManager->getChangeSummary(), $expected, 'EntityDefinitionUpdateManager reports the expected change summary.');
     $this->entityDefinitionUpdateManager->applyUpdates();
     $this->assertTrue($this->database->schema()->fieldExists('entity_test_update', 'new_base_field'), 'Column created in shared table for new_base_field.');
 
@@ -167,7 +167,7 @@ public function testBaseFieldCreateUpdateDeleteWithoutData() {
         t('The %field_name field needs to be updated.', ['%field_name' => t('A new base field')]),
       ],
     ];
-    $this->assertEqual($this->entityDefinitionUpdateManager->getChangeSummary(), $expected, 'EntityDefinitionUpdateManager reports the expected change summary.');
+    $this->assertEquals($this->entityDefinitionUpdateManager->getChangeSummary(), $expected, 'EntityDefinitionUpdateManager reports the expected change summary.');
     $this->entityDefinitionUpdateManager->applyUpdates();
     $this->assertTrue($this->database->schema()->indexExists('entity_test_update', 'entity_test_update_field__new_base_field'), 'Index created.');
 
@@ -180,7 +180,7 @@ public function testBaseFieldCreateUpdateDeleteWithoutData() {
         t('The %field_name field needs to be updated.', ['%field_name' => t('A new base field')]),
       ],
     ];
-    $this->assertEqual($this->entityDefinitionUpdateManager->getChangeSummary(), $expected, 'EntityDefinitionUpdateManager reports the expected change summary.');
+    $this->assertEquals($this->entityDefinitionUpdateManager->getChangeSummary(), $expected, 'EntityDefinitionUpdateManager reports the expected change summary.');
     $this->entityDefinitionUpdateManager->applyUpdates();
     $this->assertFalse($this->database->schema()->indexExists('entity_test_update', 'entity_test_update_field__new_base_field'), 'Index deleted.');
 
@@ -194,7 +194,7 @@ public function testBaseFieldCreateUpdateDeleteWithoutData() {
         t('The %field_name field needs to be updated.', ['%field_name' => t('A new base field')]),
       ],
     ];
-    $this->assertEqual($this->entityDefinitionUpdateManager->getChangeSummary(), $expected, 'EntityDefinitionUpdateManager reports the expected change summary.');
+    $this->assertEquals($this->entityDefinitionUpdateManager->getChangeSummary(), $expected, 'EntityDefinitionUpdateManager reports the expected change summary.');
     $this->entityDefinitionUpdateManager->applyUpdates();
     $this->assertFalse($this->database->schema()->fieldExists('entity_test_update', 'new_base_field'), 'Original column deleted in shared table for new_base_field.');
     $this->assertTrue($this->database->schema()->fieldExists('entity_test_update', 'new_base_field__value'), 'Value column created in shared table for new_base_field.');
@@ -209,7 +209,7 @@ public function testBaseFieldCreateUpdateDeleteWithoutData() {
         t('The %field_name field needs to be uninstalled.', ['%field_name' => t('A new base field')]),
       ],
     ];
-    $this->assertEqual($this->entityDefinitionUpdateManager->getChangeSummary(), $expected, 'EntityDefinitionUpdateManager reports the expected change summary.');
+    $this->assertEquals($this->entityDefinitionUpdateManager->getChangeSummary(), $expected, 'EntityDefinitionUpdateManager reports the expected change summary.');
     $this->entityDefinitionUpdateManager->applyUpdates();
     $this->assertFalse($this->database->schema()->fieldExists('entity_test_update', 'new_base_field_value'), 'Value column deleted from shared table for new_base_field.');
     $this->assertFalse($this->database->schema()->fieldExists('entity_test_update', 'new_base_field_format'), 'Format column deleted from shared table for new_base_field.');
@@ -228,7 +228,7 @@ public function testBundleFieldCreateUpdateDeleteWithoutData() {
         t('The %field_name field needs to be installed.', ['%field_name' => t('A new bundle field')]),
       ],
     ];
-    $this->assertEqual($this->entityDefinitionUpdateManager->getChangeSummary(), $expected, 'EntityDefinitionUpdateManager reports the expected change summary.');
+    $this->assertEquals($this->entityDefinitionUpdateManager->getChangeSummary(), $expected, 'EntityDefinitionUpdateManager reports the expected change summary.');
     $this->entityDefinitionUpdateManager->applyUpdates();
     $this->assertTrue($this->database->schema()->tableExists('entity_test_update__new_bundle_field'), 'Dedicated table created for new_bundle_field.');
 
@@ -242,7 +242,7 @@ public function testBundleFieldCreateUpdateDeleteWithoutData() {
         t('The %field_name field needs to be updated.', ['%field_name' => t('A new bundle field')]),
       ],
     ];
-    $this->assertEqual($this->entityDefinitionUpdateManager->getChangeSummary(), $expected, 'EntityDefinitionUpdateManager reports the expected change summary.');
+    $this->assertEquals($this->entityDefinitionUpdateManager->getChangeSummary(), $expected, 'EntityDefinitionUpdateManager reports the expected change summary.');
     $this->entityDefinitionUpdateManager->applyUpdates();
     $this->assertTrue($this->database->schema()->fieldExists('entity_test_update__new_bundle_field', 'new_bundle_field_format'), 'Format column created in dedicated table for new_base_field.');
 
@@ -255,7 +255,7 @@ public function testBundleFieldCreateUpdateDeleteWithoutData() {
         t('The %field_name field needs to be uninstalled.', ['%field_name' => t('A new bundle field')]),
       ],
     ];
-    $this->assertEqual($this->entityDefinitionUpdateManager->getChangeSummary(), $expected, 'EntityDefinitionUpdateManager reports the expected change summary.');
+    $this->assertEquals($this->entityDefinitionUpdateManager->getChangeSummary(), $expected, 'EntityDefinitionUpdateManager reports the expected change summary.');
     $this->entityDefinitionUpdateManager->applyUpdates();
     $this->assertFalse($this->database->schema()->tableExists('entity_test_update__new_bundle_field'), 'Dedicated table deleted for new_bundle_field.');
   }
@@ -592,7 +592,7 @@ public function testEntityIndexCreateDeleteWithoutData() {
         t('The %entity_type entity type needs to be updated.', ['%entity_type' => $this->entityManager->getDefinition('entity_test_update')->getLabel()]),
       ],
     ];
-    $this->assertEqual($this->entityDefinitionUpdateManager->getChangeSummary(), $expected, 'EntityDefinitionUpdateManager reports the expected change summary.');
+    $this->assertEquals($this->entityDefinitionUpdateManager->getChangeSummary(), $expected, 'EntityDefinitionUpdateManager reports the expected change summary.');
 
     // Run the update and ensure the new index is created.
     $this->entityDefinitionUpdateManager->applyUpdates();
@@ -607,7 +607,7 @@ public function testEntityIndexCreateDeleteWithoutData() {
         t('The %entity_type entity type needs to be updated.', ['%entity_type' => $this->entityManager->getDefinition('entity_test_update')->getLabel()]),
       ],
     ];
-    $this->assertEqual($this->entityDefinitionUpdateManager->getChangeSummary(), $expected, 'EntityDefinitionUpdateManager reports the expected change summary.');
+    $this->assertEquals($this->entityDefinitionUpdateManager->getChangeSummary(), $expected, 'EntityDefinitionUpdateManager reports the expected change summary.');
 
     // Run the update and ensure the index is deleted.
     $this->entityDefinitionUpdateManager->applyUpdates();
@@ -821,7 +821,7 @@ public function testCreateFieldAndIndexOnSharedTable() {
     // Check index size in for MySQL.
     if (Database::getConnection()->driver() == 'mysql') {
       $result = Database::getConnection()->query('SHOW INDEX FROM {entity_test_update} WHERE key_name = \'entity_test_update_field__new_base_field\' and column_name = \'new_base_field\'')->fetchObject();
-      $this->assertEqual(191, $result->Sub_part, 'The index length has been restricted to 191 characters for UTF8MB4 compatibility.');
+      $this->assertEquals(191, $result->Sub_part, 'The index length has been restricted to 191 characters for UTF8MB4 compatibility.');
     }
   }
 
@@ -847,7 +847,7 @@ public function testCreateIndexUsingEntityStorageSchemaWithData() {
     // Check index size in for MySQL.
     if (Database::getConnection()->driver() == 'mysql') {
       $result = Database::getConnection()->query('SHOW INDEX FROM {entity_test_update} WHERE key_name = \'entity_test_update__type_index\' and column_name = \'type\'')->fetchObject();
-      $this->assertEqual(191, $result->Sub_part, 'The index length has been restricted to 191 characters for UTF8MB4 compatibility.');
+      $this->assertEquals(191, $result->Sub_part, 'The index length has been restricted to 191 characters for UTF8MB4 compatibility.');
     }
   }
 
diff --git a/core/tests/Drupal/KernelTests/Core/Entity/EntityFieldDefaultValueTest.php b/core/tests/Drupal/KernelTests/Core/Entity/EntityFieldDefaultValueTest.php
index c300b48e46..bd795833bc 100644
--- a/core/tests/Drupal/KernelTests/Core/Entity/EntityFieldDefaultValueTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Entity/EntityFieldDefaultValueTest.php
@@ -47,9 +47,9 @@ protected function assertDefaultValues($entity_type_id) {
       ->create();
     $definition = $this->entityManager->getDefinition($entity_type_id);
     $langcode_key = $definition->getKey('langcode');
-    $this->assertEqual($entity->{$langcode_key}->value, 'en', SafeMarkup::format('%entity_type: Default language', ['%entity_type' => $entity_type_id]));
+    $this->assertEquals($entity->{$langcode_key}->value, 'en', SafeMarkup::format('%entity_type: Default language', ['%entity_type' => $entity_type_id]));
     $this->assertTrue(Uuid::isValid($entity->uuid->value), SafeMarkup::format('%entity_type: Default UUID', ['%entity_type' => $entity_type_id]));
-    $this->assertEqual($entity->name->getValue(), [], 'Field has one empty value by default.');
+    $this->assertEquals($entity->name->getValue(), [], 'Field has one empty value by default.');
   }
 
   /**
@@ -70,7 +70,7 @@ public function testDefaultValueCallback() {
         'color' => "color:1:$string",
       ],
     ];
-    $this->assertEqual($entity->description->getValue(), $expected);
+    $this->assertEquals($entity->description->getValue(), $expected);
   }
 
 }
diff --git a/core/tests/Drupal/KernelTests/Core/Entity/EntityFieldTest.php b/core/tests/Drupal/KernelTests/Core/Entity/EntityFieldTest.php
index a42a74baae..ce89f6907a 100644
--- a/core/tests/Drupal/KernelTests/Core/Entity/EntityFieldTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Entity/EntityFieldTest.php
@@ -116,38 +116,38 @@ protected function doTestReadWrite($entity_type) {
     $this->assertTrue($entity->name instanceof FieldItemListInterface, format_string('%entity_type: Field implements interface', ['%entity_type' => $entity_type]));
     $this->assertTrue($entity->name[0] instanceof FieldItemInterface, format_string('%entity_type: Field item implements interface', ['%entity_type' => $entity_type]));
 
-    $this->assertEqual($this->entityName, $entity->name->value, format_string('%entity_type: Name value can be read.', ['%entity_type' => $entity_type]));
-    $this->assertEqual($this->entityName, $entity->name[0]->value, format_string('%entity_type: Name value can be read through list access.', ['%entity_type' => $entity_type]));
-    $this->assertEqual($entity->name->getValue(), [0 => ['value' => $this->entityName]], format_string('%entity_type: Plain field value returned.', ['%entity_type' => $entity_type]));
+    $this->assertEquals($this->entityName, $entity->name->value, format_string('%entity_type: Name value can be read.', ['%entity_type' => $entity_type]));
+    $this->assertEquals($this->entityName, $entity->name[0]->value, format_string('%entity_type: Name value can be read through list access.', ['%entity_type' => $entity_type]));
+    $this->assertEquals($entity->name->getValue(), [0 => ['value' => $this->entityName]], format_string('%entity_type: Plain field value returned.', ['%entity_type' => $entity_type]));
 
     // Change the name.
     $new_name = $this->randomMachineName();
     $entity->name->value = $new_name;
-    $this->assertEqual($new_name, $entity->name->value, format_string('%entity_type: Name can be updated and read.', ['%entity_type' => $entity_type]));
-    $this->assertEqual($entity->name->getValue(), [0 => ['value' => $new_name]], format_string('%entity_type: Plain field value reflects the update.', ['%entity_type' => $entity_type]));
+    $this->assertEquals($new_name, $entity->name->value, format_string('%entity_type: Name can be updated and read.', ['%entity_type' => $entity_type]));
+    $this->assertEquals($entity->name->getValue(), [0 => ['value' => $new_name]], format_string('%entity_type: Plain field value reflects the update.', ['%entity_type' => $entity_type]));
 
     $new_name = $this->randomMachineName();
     $entity->name[0]->value = $new_name;
-    $this->assertEqual($new_name, $entity->name->value, format_string('%entity_type: Name can be updated and read through list access.', ['%entity_type' => $entity_type]));
+    $this->assertEquals($new_name, $entity->name->value, format_string('%entity_type: Name can be updated and read through list access.', ['%entity_type' => $entity_type]));
 
     // Access the user field.
     $this->assertTrue($entity->user_id instanceof FieldItemListInterface, format_string('%entity_type: Field implements interface', ['%entity_type' => $entity_type]));
     $this->assertTrue($entity->user_id[0] instanceof FieldItemInterface, format_string('%entity_type: Field item implements interface', ['%entity_type' => $entity_type]));
 
-    $this->assertEqual($this->entityUser->id(), $entity->user_id->target_id, format_string('%entity_type: User id can be read.', ['%entity_type' => $entity_type]));
-    $this->assertEqual($this->entityUser->getUsername(), $entity->user_id->entity->name->value, format_string('%entity_type: User name can be read.', ['%entity_type' => $entity_type]));
+    $this->assertEquals($this->entityUser->id(), $entity->user_id->target_id, format_string('%entity_type: User id can be read.', ['%entity_type' => $entity_type]));
+    $this->assertEquals($this->entityUser->getUsername(), $entity->user_id->entity->name->value, format_string('%entity_type: User name can be read.', ['%entity_type' => $entity_type]));
 
     // Change the assigned user by entity.
     $new_user1 = $this->createUser();
     $entity->user_id->entity = $new_user1;
-    $this->assertEqual($new_user1->id(), $entity->user_id->target_id, format_string('%entity_type: Updated user id can be read.', ['%entity_type' => $entity_type]));
-    $this->assertEqual($new_user1->getUsername(), $entity->user_id->entity->name->value, format_string('%entity_type: Updated username value can be read.', ['%entity_type' => $entity_type]));
+    $this->assertEquals($new_user1->id(), $entity->user_id->target_id, format_string('%entity_type: Updated user id can be read.', ['%entity_type' => $entity_type]));
+    $this->assertEquals($new_user1->getUsername(), $entity->user_id->entity->name->value, format_string('%entity_type: Updated username value can be read.', ['%entity_type' => $entity_type]));
 
     // Change the assigned user by id.
     $new_user2 = $this->createUser();
     $entity->user_id->target_id = $new_user2->id();
-    $this->assertEqual($new_user2->id(), $entity->user_id->target_id, format_string('%entity_type: Updated user id can be read.', ['%entity_type' => $entity_type]));
-    $this->assertEqual($new_user2->getUsername(), $entity->user_id->entity->name->value, format_string('%entity_type: Updated username value can be read.', ['%entity_type' => $entity_type]));
+    $this->assertEquals($new_user2->id(), $entity->user_id->target_id, format_string('%entity_type: Updated user id can be read.', ['%entity_type' => $entity_type]));
+    $this->assertEquals($new_user2->getUsername(), $entity->user_id->entity->name->value, format_string('%entity_type: Updated username value can be read.', ['%entity_type' => $entity_type]));
 
     // Try unsetting a field property.
     $entity->name->value = NULL;
@@ -159,13 +159,13 @@ protected function doTestReadWrite($entity_type) {
     // Test setting the values via the typed data API works as well.
     // Change the assigned user by entity.
     $entity->user_id->first()->get('entity')->setValue($new_user2);
-    $this->assertEqual($new_user2->id(), $entity->user_id->target_id, format_string('%entity_type: Updated user id can be read.', ['%entity_type' => $entity_type]));
-    $this->assertEqual($new_user2->getUsername(), $entity->user_id->entity->name->value, format_string('%entity_type: Updated user name value can be read.', ['%entity_type' => $entity_type]));
+    $this->assertEquals($new_user2->id(), $entity->user_id->target_id, format_string('%entity_type: Updated user id can be read.', ['%entity_type' => $entity_type]));
+    $this->assertEquals($new_user2->getUsername(), $entity->user_id->entity->name->value, format_string('%entity_type: Updated user name value can be read.', ['%entity_type' => $entity_type]));
 
     // Change the assigned user by id.
     $entity->user_id->first()->get('target_id')->setValue($new_user2->id());
-    $this->assertEqual($new_user2->id(), $entity->user_id->target_id, format_string('%entity_type: Updated user id can be read.', ['%entity_type' => $entity_type]));
-    $this->assertEqual($new_user2->getUsername(), $entity->user_id->entity->name->value, format_string('%entity_type: Updated user name value can be read.', ['%entity_type' => $entity_type]));
+    $this->assertEquals($new_user2->id(), $entity->user_id->target_id, format_string('%entity_type: Updated user id can be read.', ['%entity_type' => $entity_type]));
+    $this->assertEquals($new_user2->getUsername(), $entity->user_id->entity->name->value, format_string('%entity_type: Updated user name value can be read.', ['%entity_type' => $entity_type]));
 
     // Try unsetting a field.
     $entity->name->first()->get('value')->setValue(NULL);
@@ -183,8 +183,8 @@ protected function doTestReadWrite($entity_type) {
       ]);
     // Access the property object, and set a value.
     $entity2->user_id->first()->get('target_id')->setValue($new_user2->id());
-    $this->assertEqual($new_user2->id(), $entity2->user_id->target_id, format_string('%entity_type: Updated user id can be read.', ['%entity_type' => $entity_type]));
-    $this->assertEqual($new_user2->name->value, $entity2->user_id->entity->name->value, format_string('%entity_type: Updated user name value can be read.', ['%entity_type' => $entity_type]));
+    $this->assertEquals($new_user2->id(), $entity2->user_id->target_id, format_string('%entity_type: Updated user id can be read.', ['%entity_type' => $entity_type]));
+    $this->assertEquals($new_user2->name->value, $entity2->user_id->entity->name->value, format_string('%entity_type: Updated user name value can be read.', ['%entity_type' => $entity_type]));
 
     // Test using isset(), empty() and unset().
     $entity->name->value = 'test unset';
@@ -233,25 +233,25 @@ protected function doTestReadWrite($entity_type) {
 
     // Access the language field.
     $langcode_key = $this->entityManager->getDefinition($entity_type)->getKey('langcode');
-    $this->assertEqual($langcode, $entity->{$langcode_key}->value, format_string('%entity_type: Language code can be read.', ['%entity_type' => $entity_type]));
-    $this->assertEqual(\Drupal::languageManager()->getLanguage($langcode), $entity->{$langcode_key}->language, format_string('%entity_type: Language object can be read.', ['%entity_type' => $entity_type]));
+    $this->assertEquals($langcode, $entity->{$langcode_key}->value, format_string('%entity_type: Language code can be read.', ['%entity_type' => $entity_type]));
+    $this->assertEquals(\Drupal::languageManager()->getLanguage($langcode), $entity->{$langcode_key}->language, format_string('%entity_type: Language object can be read.', ['%entity_type' => $entity_type]));
 
     // Change the language by code.
     $entity->{$langcode_key}->value = \Drupal::languageManager()->getDefaultLanguage()->getId();
-    $this->assertEqual(\Drupal::languageManager()->getDefaultLanguage()->getId(), $entity->{$langcode_key}->value, format_string('%entity_type: Language code can be read.', ['%entity_type' => $entity_type]));
-    $this->assertEqual(\Drupal::languageManager()->getDefaultLanguage(), $entity->{$langcode_key}->language, format_string('%entity_type: Language object can be read.', ['%entity_type' => $entity_type]));
+    $this->assertEquals(\Drupal::languageManager()->getDefaultLanguage()->getId(), $entity->{$langcode_key}->value, format_string('%entity_type: Language code can be read.', ['%entity_type' => $entity_type]));
+    $this->assertEquals(\Drupal::languageManager()->getDefaultLanguage(), $entity->{$langcode_key}->language, format_string('%entity_type: Language object can be read.', ['%entity_type' => $entity_type]));
 
     // Revert language by code then try setting it by language object.
     $entity->{$langcode_key}->value = $langcode;
     $entity->{$langcode_key}->language = \Drupal::languageManager()->getDefaultLanguage();
-    $this->assertEqual(\Drupal::languageManager()->getDefaultLanguage()->getId(), $entity->{$langcode_key}->value, format_string('%entity_type: Language code can be read.', ['%entity_type' => $entity_type]));
-    $this->assertEqual(\Drupal::languageManager()->getDefaultLanguage(), $entity->{$langcode_key}->language, format_string('%entity_type: Language object can be read.', ['%entity_type' => $entity_type]));
+    $this->assertEquals(\Drupal::languageManager()->getDefaultLanguage()->getId(), $entity->{$langcode_key}->value, format_string('%entity_type: Language code can be read.', ['%entity_type' => $entity_type]));
+    $this->assertEquals(\Drupal::languageManager()->getDefaultLanguage(), $entity->{$langcode_key}->language, format_string('%entity_type: Language object can be read.', ['%entity_type' => $entity_type]));
 
     // Access the text field and test updating.
-    $this->assertEqual($entity->field_test_text->value, $this->entityFieldText, format_string('%entity_type: Text field can be read.', ['%entity_type' => $entity_type]));
+    $this->assertEquals($entity->field_test_text->value, $this->entityFieldText, format_string('%entity_type: Text field can be read.', ['%entity_type' => $entity_type]));
     $new_text = $this->randomMachineName();
     $entity->field_test_text->value = $new_text;
-    $this->assertEqual($entity->field_test_text->value, $new_text, format_string('%entity_type: Updated text field can be read.', ['%entity_type' => $entity_type]));
+    $this->assertEquals($entity->field_test_text->value, $new_text, format_string('%entity_type: Updated text field can be read.', ['%entity_type' => $entity_type]));
 
     // Test creating the entity by passing in plain values.
     $this->entityName = $this->randomMachineName();
@@ -268,10 +268,10 @@ protected function doTestReadWrite($entity_type) {
         'user_id' => $user_item,
         'field_test_text' => $text_item,
       ]);
-    $this->assertEqual($this->entityName, $entity->name->value, format_string('%entity_type: Name value can be read.', ['%entity_type' => $entity_type]));
-    $this->assertEqual($this->entityUser->id(), $entity->user_id->target_id, format_string('%entity_type: User id can be read.', ['%entity_type' => $entity_type]));
-    $this->assertEqual($this->entityUser->getUsername(), $entity->user_id->entity->name->value, format_string('%entity_type: User name can be read.', ['%entity_type' => $entity_type]));
-    $this->assertEqual($this->entityFieldText, $entity->field_test_text->value, format_string('%entity_type: Text field can be read.', ['%entity_type' => $entity_type]));
+    $this->assertEquals($this->entityName, $entity->name->value, format_string('%entity_type: Name value can be read.', ['%entity_type' => $entity_type]));
+    $this->assertEquals($this->entityUser->id(), $entity->user_id->target_id, format_string('%entity_type: User id can be read.', ['%entity_type' => $entity_type]));
+    $this->assertEquals($this->entityUser->getUsername(), $entity->user_id->entity->name->value, format_string('%entity_type: User name can be read.', ['%entity_type' => $entity_type]));
+    $this->assertEquals($this->entityFieldText, $entity->field_test_text->value, format_string('%entity_type: Text field can be read.', ['%entity_type' => $entity_type]));
 
     // Tests copying field values by assigning the TypedData objects.
     $entity2 = $this->createTestEntity($entity_type);
@@ -279,9 +279,9 @@ protected function doTestReadWrite($entity_type) {
     $entity2->user_id = $entity->user_id;
     $entity2->field_test_text = $entity->field_test_text;
     $this->assertFalse($entity->name === $entity2->name, format_string('%entity_type: Copying properties results in a different field object.', ['%entity_type' => $entity_type]));
-    $this->assertEqual($entity->name->value, $entity2->name->value, format_string('%entity_type: Name field copied.', ['%entity_type' => $entity_type]));
-    $this->assertEqual($entity->user_id->target_id, $entity2->user_id->target_id, format_string('%entity_type: User id field copied.', ['%entity_type' => $entity_type]));
-    $this->assertEqual($entity->field_test_text->value, $entity2->field_test_text->value, format_string('%entity_type: Text field copied.', ['%entity_type' => $entity_type]));
+    $this->assertEquals($entity->name->value, $entity2->name->value, format_string('%entity_type: Name field copied.', ['%entity_type' => $entity_type]));
+    $this->assertEquals($entity->user_id->target_id, $entity2->user_id->target_id, format_string('%entity_type: User id field copied.', ['%entity_type' => $entity_type]));
+    $this->assertEquals($entity->field_test_text->value, $entity2->field_test_text->value, format_string('%entity_type: Text field copied.', ['%entity_type' => $entity_type]));
 
     // Tests that assigning TypedData objects to non-field properties keeps the
     // assigned value as is.
@@ -291,21 +291,21 @@ protected function doTestReadWrite($entity_type) {
 
     // Tests adding a value to a field item list.
     $entity->name[] = 'Another name';
-    $this->assertEqual($entity->name[1]->value, 'Another name', format_string('%entity_type: List item added via [] and the first property.', ['%entity_type' => $entity_type]));
+    $this->assertEquals($entity->name[1]->value, 'Another name', format_string('%entity_type: List item added via [] and the first property.', ['%entity_type' => $entity_type]));
     $entity->name[] = ['value' => 'Third name'];
-    $this->assertEqual($entity->name[2]->value, 'Third name', format_string('%entity_type: List item added via [] and an array of properties.', ['%entity_type' => $entity_type]));
+    $this->assertEquals($entity->name[2]->value, 'Third name', format_string('%entity_type: List item added via [] and an array of properties.', ['%entity_type' => $entity_type]));
     $entity->name[3] = ['value' => 'Fourth name'];
-    $this->assertEqual($entity->name[3]->value, 'Fourth name', format_string('%entity_type: List item added via offset and an array of properties.', ['%entity_type' => $entity_type]));
+    $this->assertEquals($entity->name[3]->value, 'Fourth name', format_string('%entity_type: List item added via offset and an array of properties.', ['%entity_type' => $entity_type]));
     unset($entity->name[3]);
 
     // Test removing and empty-ing list items.
-    $this->assertEqual(count($entity->name), 3, format_string('%entity_type: List has 3 items.', ['%entity_type' => $entity_type]));
+    $this->assertEquals(count($entity->name), 3, format_string('%entity_type: List has 3 items.', ['%entity_type' => $entity_type]));
     unset($entity->name[1]);
-    $this->assertEqual(count($entity->name), 2, format_string('%entity_type: Second list item has been removed.', ['%entity_type' => $entity_type]));
-    $this->assertEqual($entity->name[1]->value, 'Third name', format_string('%entity_type: The subsequent items have been shifted up.', ['%entity_type' => $entity_type]));
-    $this->assertEqual($entity->name[1]->getName(), 1, format_string('%entity_type: The items names have been updated to their new delta.', ['%entity_type' => $entity_type]));
+    $this->assertEquals(count($entity->name), 2, format_string('%entity_type: Second list item has been removed.', ['%entity_type' => $entity_type]));
+    $this->assertEquals($entity->name[1]->value, 'Third name', format_string('%entity_type: The subsequent items have been shifted up.', ['%entity_type' => $entity_type]));
+    $this->assertEquals($entity->name[1]->getName(), 1, format_string('%entity_type: The items names have been updated to their new delta.', ['%entity_type' => $entity_type]));
     $entity->name[1] = NULL;
-    $this->assertEqual(count($entity->name), 2, format_string('%entity_type: Assigning NULL does not reduce array count.', ['%entity_type' => $entity_type]));
+    $this->assertEquals(count($entity->name), 2, format_string('%entity_type: Assigning NULL does not reduce array count.', ['%entity_type' => $entity_type]));
     $this->assertTrue($entity->name[1]->isEmpty(), format_string('%entity_type: Assigning NULL empties the item.', ['%entity_type' => $entity_type]));
 
     // Test using isEmpty().
@@ -314,24 +314,24 @@ protected function doTestReadWrite($entity_type) {
     $entity->name->value = NULL;
     $this->assertTrue($entity->name[0]->isEmpty(), format_string('%entity_type: Name item is empty.', ['%entity_type' => $entity_type]));
     $this->assertTrue($entity->name->isEmpty(), format_string('%entity_type: Name field is empty.', ['%entity_type' => $entity_type]));
-    $this->assertEqual(count($entity->name), 1, format_string('%entity_type: Empty item is considered when counting.', ['%entity_type' => $entity_type]));
-    $this->assertEqual(count(iterator_to_array($entity->name->getIterator())), count($entity->name), format_string('%entity_type: Count matches iterator count.', ['%entity_type' => $entity_type]));
+    $this->assertEquals(count($entity->name), 1, format_string('%entity_type: Empty item is considered when counting.', ['%entity_type' => $entity_type]));
+    $this->assertEquals(count(iterator_to_array($entity->name->getIterator())), count($entity->name), format_string('%entity_type: Count matches iterator count.', ['%entity_type' => $entity_type]));
     $this->assertTrue($entity->name->getValue() === [0 => ['value' => NULL]], format_string('%entity_type: Name field value contains a NULL value.', ['%entity_type' => $entity_type]));
 
     // Test using filterEmptyItems().
     $entity->name = [NULL, 'foo'];
-    $this->assertEqual(count($entity->name), 2, format_string('%entity_type: List has 2 items.', ['%entity_type' => $entity_type]));
+    $this->assertEquals(count($entity->name), 2, format_string('%entity_type: List has 2 items.', ['%entity_type' => $entity_type]));
     $entity->name->filterEmptyItems();
-    $this->assertEqual(count($entity->name), 1, format_string('%entity_type: The empty item was removed.', ['%entity_type' => $entity_type]));
-    $this->assertEqual($entity->name[0]->value, 'foo', format_string('%entity_type: The items were renumbered.', ['%entity_type' => $entity_type]));
-    $this->assertEqual($entity->name[0]->getName(), 0, format_string('%entity_type: The deltas were updated in the items.', ['%entity_type' => $entity_type]));
+    $this->assertEquals(count($entity->name), 1, format_string('%entity_type: The empty item was removed.', ['%entity_type' => $entity_type]));
+    $this->assertEquals($entity->name[0]->value, 'foo', format_string('%entity_type: The items were renumbered.', ['%entity_type' => $entity_type]));
+    $this->assertEquals($entity->name[0]->getName(), 0, format_string('%entity_type: The deltas were updated in the items.', ['%entity_type' => $entity_type]));
 
     // Test get and set field values.
     $entity->name = 'foo';
-    $this->assertEqual($entity->name[0]->toArray(), ['value' => 'foo'], format_string('%entity_type: Field value has been retrieved via toArray()', ['%entity_type' => $entity_type]));
+    $this->assertEquals($entity->name[0]->toArray(), ['value' => 'foo'], format_string('%entity_type: Field value has been retrieved via toArray()', ['%entity_type' => $entity_type]));
 
     $values = $entity->toArray();
-    $this->assertEqual($values['name'], [0 => ['value' => 'foo']], format_string('%entity_type: Field value has been retrieved via toArray() from an entity.', ['%entity_type' => $entity_type]));
+    $this->assertEquals($values['name'], [0 => ['value' => 'foo']], format_string('%entity_type: Field value has been retrieved via toArray() from an entity.', ['%entity_type' => $entity_type]));
 
     // Make sure the user id can be set to zero.
     $user_item[0]['target_id'] = 0;
@@ -385,13 +385,13 @@ protected function doTestSave($entity_type) {
     $this->assertTrue((bool) $entity->id(), format_string('%entity_type: Entity loaded.', ['%entity_type' => $entity_type]));
 
     // Access the name field.
-    $this->assertEqual(1, $entity->id->value, format_string('%entity_type: ID value can be read.', ['%entity_type' => $entity_type]));
+    $this->assertEquals(1, $entity->id->value, format_string('%entity_type: ID value can be read.', ['%entity_type' => $entity_type]));
     $this->assertTrue(is_string($entity->uuid->value), format_string('%entity_type: UUID value can be read.', ['%entity_type' => $entity_type]));
-    $this->assertEqual('en', $entity->{$langcode_key}->value, format_string('%entity_type: Language code can be read.', ['%entity_type' => $entity_type]));
-    $this->assertEqual(\Drupal::languageManager()->getLanguage('en'), $entity->{$langcode_key}->language, format_string('%entity_type: Language object can be read.', ['%entity_type' => $entity_type]));
-    $this->assertEqual($this->entityUser->id(), $entity->user_id->target_id, format_string('%entity_type: User id can be read.', ['%entity_type' => $entity_type]));
-    $this->assertEqual($this->entityUser->getUsername(), $entity->user_id->entity->name->value, format_string('%entity_type: User name can be read.', ['%entity_type' => $entity_type]));
-    $this->assertEqual($this->entityFieldText, $entity->field_test_text->value, format_string('%entity_type: Text field can be read.', ['%entity_type' => $entity_type]));
+    $this->assertEquals('en', $entity->{$langcode_key}->value, format_string('%entity_type: Language code can be read.', ['%entity_type' => $entity_type]));
+    $this->assertEquals(\Drupal::languageManager()->getLanguage('en'), $entity->{$langcode_key}->language, format_string('%entity_type: Language object can be read.', ['%entity_type' => $entity_type]));
+    $this->assertEquals($this->entityUser->id(), $entity->user_id->target_id, format_string('%entity_type: User id can be read.', ['%entity_type' => $entity_type]));
+    $this->assertEquals($this->entityUser->getUsername(), $entity->user_id->entity->name->value, format_string('%entity_type: User name can be read.', ['%entity_type' => $entity_type]));
+    $this->assertEquals($this->entityFieldText, $entity->field_test_text->value, format_string('%entity_type: Text field can be read.', ['%entity_type' => $entity_type]));
   }
 
   /**
@@ -414,18 +414,18 @@ protected function doTestIntrospection($entity_type) {
     // Test getting metadata upfront. The entity types used for this test have
     // a default bundle that is the same as the entity type.
     $definitions = \Drupal::entityManager()->getFieldDefinitions($entity_type, $entity_type);
-    $this->assertEqual($definitions['name']->getType(), 'string', $entity_type . ': Name field found.');
-    $this->assertEqual($definitions['user_id']->getType(), 'entity_reference', $entity_type . ': User field found.');
-    $this->assertEqual($definitions['field_test_text']->getType(), 'text', $entity_type . ': Test-text-field field found.');
+    $this->assertEquals($definitions['name']->getType(), 'string', $entity_type . ': Name field found.');
+    $this->assertEquals($definitions['user_id']->getType(), 'entity_reference', $entity_type . ': User field found.');
+    $this->assertEquals($definitions['field_test_text']->getType(), 'text', $entity_type . ': Test-text-field field found.');
 
     // Test deriving further metadata.
     $this->assertTrue($definitions['name'] instanceof FieldDefinitionInterface);
     $field_item_definition = $definitions['name']->getItemDefinition();
     $this->assertTrue($field_item_definition instanceof ComplexDataDefinitionInterface);
-    $this->assertEqual($field_item_definition->getDataType(), 'field_item:string');
+    $this->assertEquals($field_item_definition->getDataType(), 'field_item:string');
     $value_definition = $field_item_definition->getPropertyDefinition('value');
     $this->assertTrue($value_definition instanceof DataDefinitionInterface);
-    $this->assertEqual($value_definition->getDataType(), 'string');
+    $this->assertEquals($value_definition->getDataType(), 'string');
 
     // Test deriving metadata from references.
     $entity_definition = EntityDataDefinition::create($entity_type);
@@ -433,19 +433,19 @@ protected function doTestIntrospection($entity_type) {
     $reference_definition = $entity_definition->getPropertyDefinition($langcode_key)
       ->getPropertyDefinition('language')
       ->getTargetDefinition();
-    $this->assertEqual($reference_definition->getDataType(), 'language');
+    $this->assertEquals($reference_definition->getDataType(), 'language');
 
     $reference_definition = $entity_definition->getPropertyDefinition('user_id')
       ->getPropertyDefinition('entity')
       ->getTargetDefinition();
 
     $this->assertTrue($reference_definition instanceof EntityDataDefinitionInterface, 'Definition of the referenced user retrieved.');
-    $this->assertEqual($reference_definition->getEntityTypeId(), 'user', 'Referenced entity is of type "user".');
+    $this->assertEquals($reference_definition->getEntityTypeId(), 'user', 'Referenced entity is of type "user".');
 
     // Test propagating down.
     $name_definition = $reference_definition->getPropertyDefinition('name');
     $this->assertTrue($name_definition instanceof FieldDefinitionInterface);
-    $this->assertEqual($name_definition->getPropertyDefinition('value')->getDataType(), 'string');
+    $this->assertEquals($name_definition->getPropertyDefinition('value')->getDataType(), 'string');
 
     // Test introspecting an entity object.
     // @todo: Add bundles and test bundles as well.
@@ -454,47 +454,47 @@ protected function doTestIntrospection($entity_type) {
       ->create();
 
     $definitions = $entity->getFieldDefinitions();
-    $this->assertEqual($definitions['name']->getType(), 'string', $entity_type . ': Name field found.');
-    $this->assertEqual($definitions['user_id']->getType(), 'entity_reference', $entity_type . ': User field found.');
-    $this->assertEqual($definitions['field_test_text']->getType(), 'text', $entity_type . ': Test-text-field field found.');
+    $this->assertEquals($definitions['name']->getType(), 'string', $entity_type . ': Name field found.');
+    $this->assertEquals($definitions['user_id']->getType(), 'entity_reference', $entity_type . ': User field found.');
+    $this->assertEquals($definitions['field_test_text']->getType(), 'text', $entity_type . ': Test-text-field field found.');
 
     $name_properties = $entity->name->getFieldDefinition()->getPropertyDefinitions();
-    $this->assertEqual($name_properties['value']->getDataType(), 'string', $entity_type . ': String value property of the name found.');
+    $this->assertEquals($name_properties['value']->getDataType(), 'string', $entity_type . ': String value property of the name found.');
 
     $userref_properties = $entity->user_id->getFieldDefinition()->getPropertyDefinitions();
-    $this->assertEqual($userref_properties['target_id']->getDataType(), 'integer', $entity_type . ': Entity id property of the user found.');
-    $this->assertEqual($userref_properties['entity']->getDataType(), 'entity_reference', $entity_type . ': Entity reference property of the user found.');
+    $this->assertEquals($userref_properties['target_id']->getDataType(), 'integer', $entity_type . ': Entity id property of the user found.');
+    $this->assertEquals($userref_properties['entity']->getDataType(), 'entity_reference', $entity_type . ': Entity reference property of the user found.');
 
     $textfield_properties = $entity->field_test_text->getFieldDefinition()->getFieldStorageDefinition()->getPropertyDefinitions();
-    $this->assertEqual($textfield_properties['value']->getDataType(), 'string', $entity_type . ': String value property of the test-text field found.');
-    $this->assertEqual($textfield_properties['format']->getDataType(), 'filter_format', $entity_type . ': String format field of the test-text field found.');
-    $this->assertEqual($textfield_properties['processed']->getDataType(), 'string', $entity_type . ': String processed property of the test-text field found.');
+    $this->assertEquals($textfield_properties['value']->getDataType(), 'string', $entity_type . ': String value property of the test-text field found.');
+    $this->assertEquals($textfield_properties['format']->getDataType(), 'filter_format', $entity_type . ': String format field of the test-text field found.');
+    $this->assertEquals($textfield_properties['processed']->getDataType(), 'string', $entity_type . ': String processed property of the test-text field found.');
 
     // Make sure provided contextual information is right.
     $entity_adapter = $entity->getTypedData();
     $this->assertSame($entity_adapter->getRoot(), $entity_adapter, 'Entity is root object.');
-    $this->assertEqual($entity_adapter->getPropertyPath(), '');
-    $this->assertEqual($entity_adapter->getName(), '');
-    $this->assertEqual($entity_adapter->getParent(), NULL);
+    $this->assertEquals($entity_adapter->getPropertyPath(), '');
+    $this->assertEquals($entity_adapter->getName(), '');
+    $this->assertEquals($entity_adapter->getParent(), NULL);
 
     $field = $entity->user_id;
     $this->assertSame($field->getRoot()->getValue(), $entity, 'Entity is root object.');
     $this->assertSame($field->getEntity(), $entity, 'getEntity() returns the entity.');
-    $this->assertEqual($field->getPropertyPath(), 'user_id');
-    $this->assertEqual($field->getName(), 'user_id');
+    $this->assertEquals($field->getPropertyPath(), 'user_id');
+    $this->assertEquals($field->getName(), 'user_id');
     $this->assertSame($field->getParent()->getValue(), $entity, 'Parent object matches.');
 
     $field_item = $field[0];
     $this->assertSame($field_item->getRoot()->getValue(), $entity, 'Entity is root object.');
     $this->assertSame($field_item->getEntity(), $entity, 'getEntity() returns the entity.');
-    $this->assertEqual($field_item->getPropertyPath(), 'user_id.0');
-    $this->assertEqual($field_item->getName(), '0');
+    $this->assertEquals($field_item->getPropertyPath(), 'user_id.0');
+    $this->assertEquals($field_item->getName(), '0');
     $this->assertSame($field_item->getParent(), $field, 'Parent object matches.');
 
     $item_value = $field_item->get('entity');
     $this->assertSame($item_value->getRoot()->getValue(), $entity, 'Entity is root object.');
-    $this->assertEqual($item_value->getPropertyPath(), 'user_id.0.entity');
-    $this->assertEqual($item_value->getName(), 'entity');
+    $this->assertEquals($item_value->getPropertyPath(), 'user_id.0.entity');
+    $this->assertEquals($item_value->getName(), 'entity');
     $this->assertSame($item_value->getParent(), $field_item, 'Parent object matches.');
   }
 
@@ -533,8 +533,8 @@ protected function doTestIterator($entity_type) {
     }
 
     $fields = $entity->getFields();
-    $this->assertEqual(array_keys($fields), array_keys($entity->getTypedData()->getDataDefinition()->getPropertyDefinitions()), format_string('%entity_type: All fields returned.', ['%entity_type' => $entity_type]));
-    $this->assertEqual($fields, iterator_to_array($entity->getIterator()), format_string('%entity_type: Entity iterator iterates over all fields.', ['%entity_type' => $entity_type]));
+    $this->assertEquals(array_keys($fields), array_keys($entity->getTypedData()->getDataDefinition()->getPropertyDefinitions()), format_string('%entity_type: All fields returned.', ['%entity_type' => $entity_type]));
+    $this->assertEquals($fields, iterator_to_array($entity->getIterator()), format_string('%entity_type: Entity iterator iterates over all fields.', ['%entity_type' => $entity_type]));
   }
 
   /**
@@ -582,7 +582,7 @@ protected function doTestDataStructureInterfaces($entity_type) {
 
     asort($strings);
     asort($target_strings);
-    $this->assertEqual(array_values($strings), array_values($target_strings), format_string('%entity_type: All contained strings found.', ['%entity_type' => $entity_type]));
+    $this->assertEquals(array_values($strings), array_values($target_strings), format_string('%entity_type: All contained strings found.', ['%entity_type' => $entity_type]));
   }
 
   /**
@@ -656,12 +656,12 @@ public function testFieldOverrideBundleField() {
     // the test entity works.
     entity_test_create_bundle('some_test_bundle', 'Some test bundle', 'entity_test_field_override');
     $field_definitions = $this->entityManager->getFieldDefinitions('entity_test_field_override', 'entity_test_field_override');
-    $this->assertEqual($field_definitions['name']->getDescription(), 'The default description.');
+    $this->assertEquals($field_definitions['name']->getDescription(), 'The default description.');
     $this->assertNull($field_definitions['name']->getTargetBundle());
 
     $field_definitions = $this->entityManager->getFieldDefinitions('entity_test_field_override', 'some_test_bundle');
-    $this->assertEqual($field_definitions['name']->getDescription(), 'Custom description.');
-    $this->assertEqual($field_definitions['name']->getTargetBundle(), 'some_test_bundle');
+    $this->assertEquals($field_definitions['name']->getDescription(), 'Custom description.');
+    $this->assertEquals($field_definitions['name']->getTargetBundle(), 'some_test_bundle');
 
     // Now create a config override of the bundle field.
     $field_config = $field_definitions['name']->getConfig('some_test_bundle');
@@ -671,8 +671,8 @@ public function testFieldOverrideBundleField() {
     // Make sure both overrides are present.
     $this->entityManager->clearCachedFieldDefinitions();
     $field_definitions = $this->entityManager->getFieldDefinitions('entity_test_field_override', 'some_test_bundle');
-    $this->assertEqual($field_definitions['name']->getDescription(), 'Custom description.');
-    $this->assertEqual($field_definitions['name']->getTargetBundle(), 'some_test_bundle');
+    $this->assertEquals($field_definitions['name']->getDescription(), 'Custom description.');
+    $this->assertEquals($field_definitions['name']->getTargetBundle(), 'some_test_bundle');
     $this->assertFalse($field_definitions['name']->isTranslatable());
   }
 
@@ -691,7 +691,7 @@ public function testEntityConstraintValidation() {
 
     // Test validation the typed data object.
     $violations = $reference->validate();
-    $this->assertEqual($violations->count(), 0);
+    $this->assertEquals($violations->count(), 0);
 
     // Test validating an entity of the wrong type.
     $user = $this->createUser();
@@ -703,7 +703,7 @@ public function testEntityConstraintValidation() {
     ]);
     $reference->setValue($node);
     $violations = $reference->validate();
-    $this->assertEqual($violations->count(), 1);
+    $this->assertEquals($violations->count(), 1);
 
     // Test bundle validation.
     NodeType::create(['type' => 'article'])
@@ -715,7 +715,7 @@ public function testEntityConstraintValidation() {
     $reference_field = \Drupal::TypedDataManager()->create($definition);
     $reference_field->appendItem(['entity' => $node]);
     $violations = $reference_field->validate();
-    $this->assertEqual($violations->count(), 1);
+    $this->assertEquals($violations->count(), 1);
 
     $node = Node::create([
       'type' => 'article',
@@ -725,7 +725,7 @@ public function testEntityConstraintValidation() {
     $node->save();
     $reference_field->entity = $node;
     $violations = $reference_field->validate();
-    $this->assertEqual($violations->count(), 0);
+    $this->assertEquals($violations->count(), 0);
   }
 
   /**
@@ -882,14 +882,14 @@ protected function doTestComputedProperties($entity_type) {
     $entity->field_test_text->format = filter_default_format();
 
     $target = "<p>The &lt;strong&gt;text&lt;/strong&gt; text to filter.</p>\n";
-    $this->assertEqual($entity->field_test_text->processed, $target, format_string('%entity_type: Text is processed with the default filter.', ['%entity_type' => $entity_type]));
+    $this->assertEquals($entity->field_test_text->processed, $target, format_string('%entity_type: Text is processed with the default filter.', ['%entity_type' => $entity_type]));
 
     // Save and load entity and make sure it still works.
     $entity->save();
     $entity = $this->container->get('entity_type.manager')
       ->getStorage($entity_type)
       ->load($entity->id());
-    $this->assertEqual($entity->field_test_text->processed, $target, format_string('%entity_type: Text is processed with the default filter.', ['%entity_type' => $entity_type]));
+    $this->assertEquals($entity->field_test_text->processed, $target, format_string('%entity_type: Text is processed with the default filter.', ['%entity_type' => $entity_type]));
   }
 
 }
diff --git a/core/tests/Drupal/KernelTests/Core/Entity/EntityLanguageTestBase.php b/core/tests/Drupal/KernelTests/Core/Entity/EntityLanguageTestBase.php
index 570aa98446..a37dc4a3a1 100644
--- a/core/tests/Drupal/KernelTests/Core/Entity/EntityLanguageTestBase.php
+++ b/core/tests/Drupal/KernelTests/Core/Entity/EntityLanguageTestBase.php
@@ -128,7 +128,7 @@ protected function toggleFieldTranslatability($entity_type, $bundle) {
       $field->set('translatable', $translatable);
       $field->save();
       $field = FieldConfig::loadByName($entity_type, $bundle, $field_name);
-      $this->assertEqual($field->isTranslatable(), $translatable, 'Field translatability changed.');
+      $this->assertEquals($field->isTranslatable(), $translatable, 'Field translatability changed.');
     }
     \Drupal::cache('entity')->deleteAll();
   }
diff --git a/core/tests/Drupal/KernelTests/Core/Entity/EntityQueryAggregateTest.php b/core/tests/Drupal/KernelTests/Core/Entity/EntityQueryAggregateTest.php
index b6362fbcae..8ae3ced4b3 100644
--- a/core/tests/Drupal/KernelTests/Core/Entity/EntityQueryAggregateTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Entity/EntityQueryAggregateTest.php
@@ -142,7 +142,7 @@ public function testAggregation() {
       $this->queryResult = $this->factory->getAggregate('entity_test')
         ->aggregate('id', $aggregation_function)
         ->execute();
-      $this->assertEqual($this->queryResult, $expected);
+      $this->assertEquals($this->queryResult, $expected);
     }
 
     // Apply aggregation and groupby on the same query.
diff --git a/core/tests/Drupal/KernelTests/Core/Entity/EntityQueryRelationshipTest.php b/core/tests/Drupal/KernelTests/Core/Entity/EntityQueryRelationshipTest.php
index 0bb5b16c34..531064b712 100644
--- a/core/tests/Drupal/KernelTests/Core/Entity/EntityQueryRelationshipTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Entity/EntityQueryRelationshipTest.php
@@ -138,7 +138,7 @@ public function testQuery() {
     $this->queryResults = $this->factory->get('entity_test')
       ->notExists("user_id.entity.name")
       ->execute();
-    $this->assertEqual(count($this->queryResults), 0);
+    $this->assertEquals(count($this->queryResults), 0);
     // This returns the 0th entity as that's only one pointing to the 0th
     // term (test without specifying the field column).
     $this->queryResults = $this->factory->get('entity_test')
@@ -177,7 +177,7 @@ public function testQuery() {
     $this->queryResults = $this->factory->get('entity_test')
       ->notExists("user_id.entity:user.name")
       ->execute();
-    $this->assertEqual(count($this->queryResults), 0);
+    $this->assertEquals(count($this->queryResults), 0);
     // This returns the 0th entity as that's only one pointing to the 0th
     // term (test without specifying the field column).
     $this->queryResults = $this->factory->get('entity_test')
@@ -215,10 +215,10 @@ public function testInvalidSpecifier() {
    *   A list of indexes in the $this->entities array.
    */
   protected function assertResults($expected) {
-    $this->assertEqual(count($this->queryResults), count($expected));
+    $this->assertEquals(count($this->queryResults), count($expected));
     foreach ($expected as $key) {
       $id = $this->entities[$key]->id();
-      $this->assertEqual($this->queryResults[$id], $id);
+      $this->assertEquals($this->queryResults[$id], $id);
     }
   }
 
diff --git a/core/tests/Drupal/KernelTests/Core/Entity/EntityQueryTest.php b/core/tests/Drupal/KernelTests/Core/Entity/EntityQueryTest.php
index 9edee5cd21..665fd14c86 100644
--- a/core/tests/Drupal/KernelTests/Core/Entity/EntityQueryTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Entity/EntityQueryTest.php
@@ -169,7 +169,7 @@ public function testEntityQuery() {
       ->condition("$figures.color", 'red')
       ->sort('id');
     $count_query = clone $query;
-    $this->assertEqual(12, $count_query->count()->execute());
+    $this->assertEquals(12, $count_query->count()->execute());
     $this->queryResults = $query->execute();
     // Now bit 0 (1, 3, 5, 7, 9, 11, 13, 15) or bit 2 (4, 5, 6, 7, 12, 13, 14,
     // 15) needs to be set.
@@ -386,7 +386,7 @@ public function testSort() {
     // 13 red  tr
     // 15 red  tr
     $count_query = clone $query;
-    $this->assertEqual(15, $count_query->count()->execute());
+    $this->assertEquals(15, $count_query->count()->execute());
     $this->queryResults = $query->execute();
     $this->assertResult(8, 12, 4, 2, 3, 10, 11, 14, 15, 6, 7, 1, 9, 13, 5);
 
@@ -411,7 +411,7 @@ public function testSort() {
       ->sort("$greetings.format", 'DESC')
       ->sort('id', 'DESC');
     $count_query = clone $query;
-    $this->assertEqual(15, $count_query->count()->execute());
+    $this->assertEquals(15, $count_query->count()->execute());
     $this->queryResults = $query->execute();
     $this->assertResult(15, 13, 7, 5, 11, 9, 3, 1, 14, 6, 10, 2, 12, 4, 8);
   }
@@ -667,7 +667,7 @@ public function testMetaData() {
       ->execute();
 
     global $efq_test_metadata;
-    $this->assertEqual($efq_test_metadata, 'bar', 'Tag and metadata propagated to the SQL query object.');
+    $this->assertEquals($efq_test_metadata, 'bar', 'Tag and metadata propagated to the SQL query object.');
   }
 
   /**
@@ -899,8 +899,8 @@ public function testBaseFieldMultipleColumns() {
       ->condition('description.format', 'format1')
       ->execute();
 
-    $this->assertEqual(count($ids), 1);
-    $this->assertEqual($term1->id(), reset($ids));
+    $this->assertEquals(count($ids), 1);
+    $this->assertEquals($term1->id(), reset($ids));
   }
 
   /**
@@ -911,7 +911,7 @@ public function testPendingRevisions() {
     $result = \Drupal::entityQuery('entity_test_mulrev')
       ->condition('id', [14], 'IN')
       ->execute();
-    $this->assertEqual(count($result), 1);
+    $this->assertEquals(count($result), 1);
 
     // Set a revision on entity 14 that isn't the current default.
     $entity = EntityTestMulRev::load(14);
@@ -929,7 +929,7 @@ public function testPendingRevisions() {
     $result = \Drupal::entityQuery('entity_test_mulrev')
       ->condition('id', [14], 'IN')
       ->execute();
-    $this->assertEqual(count($result), 1);
+    $this->assertEquals(count($result), 1);
 
     // Verify that field conditions on the default and pending revision are
     // work as expected.
@@ -937,13 +937,13 @@ public function testPendingRevisions() {
       ->condition('id', [14], 'IN')
       ->condition("$this->figures.color", $current_values[0]['color'])
       ->execute();
-    $this->assertEqual($result, [14 => '14']);
+    $this->assertEquals($result, [14 => '14']);
     $result = $this->factory->get('entity_test_mulrev')
       ->condition('id', [14], 'IN')
       ->condition("$this->figures.color", 'red')
       ->allRevisions()
       ->execute();
-    $this->assertEqual($result, [16 => '14']);
+    $this->assertEquals($result, [16 => '14']);
 
     // Add another pending revision on the same entity and repeat the checks.
     $entity->setNewRevision(TRUE);
diff --git a/core/tests/Drupal/KernelTests/Core/Entity/EntityReferenceFieldTest.php b/core/tests/Drupal/KernelTests/Core/Entity/EntityReferenceFieldTest.php
index cedf6851a8..8f275c743e 100644
--- a/core/tests/Drupal/KernelTests/Core/Entity/EntityReferenceFieldTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Entity/EntityReferenceFieldTest.php
@@ -98,13 +98,13 @@ public function testEntityReferenceFieldValidation() {
       ->create(['type' => $this->bundle]);
     $entity->{$this->fieldName}->target_id = $referenced_entity->id();
     $violations = $entity->{$this->fieldName}->validate();
-    $this->assertEqual($violations->count(), 0, 'Validation passes.');
+    $this->assertEquals($violations->count(), 0, 'Validation passes.');
 
     // Test an invalid reference.
     $entity->{$this->fieldName}->target_id = 9999;
     $violations = $entity->{$this->fieldName}->validate();
-    $this->assertEqual($violations->count(), 1, 'Validation throws a violation.');
-    $this->assertEqual($violations[0]->getMessage(), t('The referenced entity (%type: %id) does not exist.', ['%type' => $this->referencedEntityType, '%id' => 9999]));
+    $this->assertEquals($violations->count(), 1, 'Validation throws a violation.');
+    $this->assertEquals($violations[0]->getMessage(), t('The referenced entity (%type: %id) does not exist.', ['%type' => $this->referencedEntityType, '%id' => 9999]));
 
     // Test a non-referenceable bundle.
     entity_test_create_bundle('non_referenceable', NULL, $this->referencedEntityType);
@@ -112,8 +112,8 @@ public function testEntityReferenceFieldValidation() {
     $referenced_entity->save();
     $entity->{$this->fieldName}->target_id = $referenced_entity->id();
     $violations = $entity->{$this->fieldName}->validate();
-    $this->assertEqual($violations->count(), 1, 'Validation throws a violation.');
-    $this->assertEqual($violations[0]->getMessage(), t('This entity (%type: %id) cannot be referenced.', ['%type' => $this->referencedEntityType, '%id' => $referenced_entity->id()]));
+    $this->assertEquals($violations->count(), 1, 'Validation throws a violation.');
+    $this->assertEquals($violations[0]->getMessage(), t('This entity (%type: %id) cannot be referenced.', ['%type' => $this->referencedEntityType, '%id' => $referenced_entity->id()]));
   }
 
   /**
@@ -172,12 +172,12 @@ public function testReferencedEntitiesMultipleLoad() {
         if (!$target_entity->isNew()) {
           // There must be an entity in the loaded set having the same id for
           // the same delta.
-          $this->assertEqual($target_entity->id(), $entities[$delta]->id());
+          $this->assertEquals($target_entity->id(), $entities[$delta]->id());
         }
         else {
           // For entities that were not yet saved, there must an entity in the
           // loaded set having the same label for the same delta.
-          $this->assertEqual($target_entity->label(), $entities[$delta]->label());
+          $this->assertEquals($target_entity->label(), $entities[$delta]->label());
         }
       }
       else {
@@ -221,7 +221,7 @@ public function testReferencedEntitiesStringId() {
 
     // Load the target entities using EntityReferenceField::referencedEntities().
     $entities = $entity->{$field_name}->referencedEntities();
-    $this->assertEqual($entities[0]->id(), $target_entity->id());
+    $this->assertEquals($entities[0]->id(), $target_entity->id());
 
     // Test that a string ID works as a default value and the field's config
     // schema is correct.
@@ -235,7 +235,7 @@ public function testReferencedEntitiesStringId() {
       ->getStorage($this->entityType)
       ->create(['type' => $this->bundle]);
     $entities = $entity->{$field_name}->referencedEntities();
-    $this->assertEqual($entities[0]->id(), $target_entity->id());
+    $this->assertEquals($entities[0]->id(), $target_entity->id());
   }
 
   /**
@@ -321,7 +321,7 @@ public function testAutocreateApi() {
     $entity->user_id = $user;
     $user->save();
     $entity->save();
-    $this->assertEqual($entity->user_id->target_id, $user->id());
+    $this->assertEquals($entity->user_id->target_id, $user->id());
   }
 
   /**
@@ -343,7 +343,7 @@ protected function assertUserAutocreate(EntityInterface $entity, $setter_callbac
     $entity->save();
     $storage->resetCache();
     $user = User::load($user_id);
-    return $this->assertEqual($entity->user_id->target_id, $user->id());
+    return $this->assertEquals($entity->user_id->target_id, $user->id());
   }
 
   /**
@@ -365,7 +365,7 @@ protected function assertUserRoleAutocreate(EntityInterface $entity, $setter_cal
     $entity->save();
     $storage->resetCache();
     $role = Role::load($role_id);
-    return $this->assertEqual($entity->user_role->target_id, $role->id());
+    return $this->assertEquals($entity->user_role->target_id, $role->id());
   }
 
   /**
@@ -392,7 +392,7 @@ public function testTargetEntityNoLoad() {
     $target_id = $this->generateRandomEntityId();
     $target = $storage->create(['id' => $target_id, 'name' => $this->randomString()]);
     $target->save();
-    $this->assertEqual($target_id, $target->id(), 'The target entity has a random identifier.');
+    $this->assertEquals($target_id, $target->id(), 'The target entity has a random identifier.');
 
     // Check that populating the reference with an existing target id does not
     // trigger a load operation.
@@ -436,7 +436,7 @@ public function testEntityReferenceFieldDependencies() {
       ],
     ]);
     $field_storage->save();
-    $this->assertEqual(['module' => ['entity_test', 'user']], $field_storage->getDependencies());
+    $this->assertEquals(['module' => ['entity_test', 'user']], $field_storage->getDependencies());
 
     $field = FieldConfig::create([
       'field_name' => $field_name,
@@ -448,7 +448,7 @@ public function testEntityReferenceFieldDependencies() {
       ],
     ]);
     $field->save();
-    $this->assertEqual(['config' => ['field.storage.entity_test.user_reference_field'], 'module' => ['entity_test']], $field->getDependencies());
+    $this->assertEquals(['config' => ['field.storage.entity_test.user_reference_field'], 'module' => ['entity_test']], $field->getDependencies());
   }
 
 }
diff --git a/core/tests/Drupal/KernelTests/Core/Entity/EntitySchemaTest.php b/core/tests/Drupal/KernelTests/Core/Entity/EntitySchemaTest.php
index 3e285ff69b..3e4910da6e 100644
--- a/core/tests/Drupal/KernelTests/Core/Entity/EntitySchemaTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Entity/EntitySchemaTest.php
@@ -86,7 +86,7 @@ public function testEntitySchemaUpdate() {
     // Initially only the base table and the dedicated field data table should
     // exist.
     foreach ($tables as $index => $table) {
-      $this->assertEqual($schema_handler->tableExists($table), !$index, SafeMarkup::format('Entity schema correct for the @table table.', ['@table' => $table]));
+      $this->assertEquals($schema_handler->tableExists($table), !$index, SafeMarkup::format('Entity schema correct for the @table table.', ['@table' => $table]));
     }
     $this->assertTrue($schema_handler->tableExists($dedicated_tables[0]), SafeMarkup::format('Field schema correct for the @table table.', ['@table' => $table]));
 
@@ -104,7 +104,7 @@ public function testEntitySchemaUpdate() {
     // neither translations nor revisions.
     $this->updateEntityType(FALSE);
     foreach ($tables as $index => $table) {
-      $this->assertEqual($schema_handler->tableExists($table), !$index, SafeMarkup::format('Entity schema correct for the @table table.', ['@table' => $table]));
+      $this->assertEquals($schema_handler->tableExists($table), !$index, SafeMarkup::format('Entity schema correct for the @table table.', ['@table' => $table]));
     }
     $this->assertTrue($schema_handler->tableExists($dedicated_tables[0]), SafeMarkup::format('Field schema correct for the @table table.', ['@table' => $table]));
   }
@@ -185,7 +185,7 @@ public function testCleanUpStorageDefinition() {
     }
 
     // Ensure that all storage definitions have been removed from the schema.
-    $this->assertEqual($entity_type_id_count, 0, 'After uninstalling entity_test module the schema should not contains fields from entities provided by the module.');
+    $this->assertEquals($entity_type_id_count, 0, 'After uninstalling entity_test module the schema should not contains fields from entities provided by the module.');
   }
 
 }
diff --git a/core/tests/Drupal/KernelTests/Core/Entity/EntityTranslationTest.php b/core/tests/Drupal/KernelTests/Core/Entity/EntityTranslationTest.php
index bcd702ae02..6beeb38104 100644
--- a/core/tests/Drupal/KernelTests/Core/Entity/EntityTranslationTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Entity/EntityTranslationTest.php
@@ -41,7 +41,7 @@ protected function doTestEntityLanguageMethods($entity_type) {
         'name' => 'test',
         'user_id' => $this->container->get('current_user')->id(),
       ]);
-    $this->assertEqual($entity->language()->getId(), $this->languageManager->getDefaultLanguage()->getId(), format_string('%entity_type: Entity created with API has default language.', ['%entity_type' => $entity_type]));
+    $this->assertEquals($entity->language()->getId(), $this->languageManager->getDefaultLanguage()->getId(), format_string('%entity_type: Entity created with API has default language.', ['%entity_type' => $entity_type]));
     $entity = $this->container->get('entity_type.manager')
       ->getStorage($entity_type)
       ->create([
@@ -50,15 +50,15 @@ protected function doTestEntityLanguageMethods($entity_type) {
         $langcode_key => LanguageInterface::LANGCODE_NOT_SPECIFIED,
       ]);
 
-    $this->assertEqual($entity->language()->getId(), LanguageInterface::LANGCODE_NOT_SPECIFIED, format_string('%entity_type: Entity language not specified.', ['%entity_type' => $entity_type]));
+    $this->assertEquals($entity->language()->getId(), LanguageInterface::LANGCODE_NOT_SPECIFIED, format_string('%entity_type: Entity language not specified.', ['%entity_type' => $entity_type]));
     $this->assertFalse($entity->getTranslationLanguages(FALSE), format_string('%entity_type: No translations are available', ['%entity_type' => $entity_type]));
 
     // Set the value in default language.
     $entity->set($this->fieldName, [0 => ['value' => 'default value']]);
     // Get the value.
     $field = $entity->getTranslation(LanguageInterface::LANGCODE_DEFAULT)->get($this->fieldName);
-    $this->assertEqual($field->value, 'default value', format_string('%entity_type: Untranslated value retrieved.', ['%entity_type' => $entity_type]));
-    $this->assertEqual($field->getLangcode(), LanguageInterface::LANGCODE_NOT_SPECIFIED, format_string('%entity_type: Field object has the expected langcode.', ['%entity_type' => $entity_type]));
+    $this->assertEquals($field->value, 'default value', format_string('%entity_type: Untranslated value retrieved.', ['%entity_type' => $entity_type]));
+    $this->assertEquals($field->getLangcode(), LanguageInterface::LANGCODE_NOT_SPECIFIED, format_string('%entity_type: Field object has the expected langcode.', ['%entity_type' => $entity_type]));
 
     // Try to get add a translation to language neutral entity.
     $message = 'Adding a translation to a language-neutral entity results in an error.';
@@ -75,29 +75,29 @@ protected function doTestEntityLanguageMethods($entity_type) {
     $default_langcode = $this->langcodes[0];
     $entity->{$langcode_key}->value = $default_langcode;
     $entity->{$this->fieldName} = [];
-    $this->assertEqual($entity->language(), \Drupal::languageManager()->getLanguage($this->langcodes[0]), format_string('%entity_type: Entity language retrieved.', ['%entity_type' => $entity_type]));
+    $this->assertEquals($entity->language(), \Drupal::languageManager()->getLanguage($this->langcodes[0]), format_string('%entity_type: Entity language retrieved.', ['%entity_type' => $entity_type]));
     $this->assertFalse($entity->getTranslationLanguages(FALSE), format_string('%entity_type: No translations are available', ['%entity_type' => $entity_type]));
 
     // Set the value in default language.
     $entity->set($this->fieldName, [0 => ['value' => 'default value']]);
     // Get the value.
     $field = $entity->get($this->fieldName);
-    $this->assertEqual($field->value, 'default value', format_string('%entity_type: Untranslated value retrieved.', ['%entity_type' => $entity_type]));
-    $this->assertEqual($field->getLangcode(), $default_langcode, format_string('%entity_type: Field object has the expected langcode.', ['%entity_type' => $entity_type]));
+    $this->assertEquals($field->value, 'default value', format_string('%entity_type: Untranslated value retrieved.', ['%entity_type' => $entity_type]));
+    $this->assertEquals($field->getLangcode(), $default_langcode, format_string('%entity_type: Field object has the expected langcode.', ['%entity_type' => $entity_type]));
 
     // Set a translation.
     $entity->addTranslation($this->langcodes[1])->set($this->fieldName, [0 => ['value' => 'translation 1']]);
     $field = $entity->getTranslation($this->langcodes[1])->{$this->fieldName};
-    $this->assertEqual($field->value, 'translation 1', format_string('%entity_type: Translated value set.', ['%entity_type' => $entity_type]));
-    $this->assertEqual($field->getLangcode(), $this->langcodes[1], format_string('%entity_type: Field object has the expected langcode.', ['%entity_type' => $entity_type]));
+    $this->assertEquals($field->value, 'translation 1', format_string('%entity_type: Translated value set.', ['%entity_type' => $entity_type]));
+    $this->assertEquals($field->getLangcode(), $this->langcodes[1], format_string('%entity_type: Field object has the expected langcode.', ['%entity_type' => $entity_type]));
 
     // Make sure the untranslated value stays.
     $field = $entity->get($this->fieldName);
-    $this->assertEqual($field->value, 'default value', 'Untranslated value stays.');
-    $this->assertEqual($field->getLangcode(), $default_langcode, 'Untranslated value has the expected langcode.');
+    $this->assertEquals($field->value, 'default value', 'Untranslated value stays.');
+    $this->assertEquals($field->getLangcode(), $default_langcode, 'Untranslated value has the expected langcode.');
 
     $translations[$this->langcodes[1]] = \Drupal::languageManager()->getLanguage($this->langcodes[1]);
-    $this->assertEqual($entity->getTranslationLanguages(FALSE), $translations, 'Translations retrieved.');
+    $this->assertEquals($entity->getTranslationLanguages(FALSE), $translations, 'Translations retrieved.');
 
     // Try to get a value using a language code for a non-existing translation.
     $message = 'Getting a non existing translation results in an error.';
@@ -136,8 +136,8 @@ protected function doTestEntityLanguageMethods($entity_type) {
     $entity->getTranslation($this->langcodes[1])->set($field_name, [0 => ['value' => 'default value2']]);
     // Get the value.
     $field = $entity->get($field_name);
-    $this->assertEqual($field->value, 'default value2', format_string('%entity_type: Untranslated value set into a translation in non-strict mode.', ['%entity_type' => $entity_type]));
-    $this->assertEqual($field->getLangcode(), $default_langcode, format_string('%entity_type: Field object has the expected langcode.', ['%entity_type' => $entity_type]));
+    $this->assertEquals($field->value, 'default value2', format_string('%entity_type: Untranslated value set into a translation in non-strict mode.', ['%entity_type' => $entity_type]));
+    $this->assertEquals($field->getLangcode(), $default_langcode, format_string('%entity_type: Field object has the expected langcode.', ['%entity_type' => $entity_type]));
   }
 
   /**
@@ -171,21 +171,21 @@ protected function doTestMultilingualProperties($entity_type) {
     $entity->save();
     $entity = $storage->load($entity->id());
     $default_langcode = $entity->language()->getId();
-    $this->assertEqual($default_langcode, LanguageInterface::LANGCODE_NOT_SPECIFIED, format_string('%entity_type: Entity created as language neutral.', ['%entity_type' => $entity_type]));
+    $this->assertEquals($default_langcode, LanguageInterface::LANGCODE_NOT_SPECIFIED, format_string('%entity_type: Entity created as language neutral.', ['%entity_type' => $entity_type]));
     $field = $entity->getTranslation(LanguageInterface::LANGCODE_DEFAULT)->get('name');
-    $this->assertEqual($name, $field->value, format_string('%entity_type: The entity name has been correctly stored as language neutral.', ['%entity_type' => $entity_type]));
-    $this->assertEqual($default_langcode, $field->getLangcode(), format_string('%entity_type: The field object has the expect langcode.', ['%entity_type' => $entity_type]));
-    $this->assertEqual($uid, $entity->getTranslation(LanguageInterface::LANGCODE_DEFAULT)->get('user_id')->target_id, format_string('%entity_type: The entity author has been correctly stored as language neutral.', ['%entity_type' => $entity_type]));
+    $this->assertEquals($name, $field->value, format_string('%entity_type: The entity name has been correctly stored as language neutral.', ['%entity_type' => $entity_type]));
+    $this->assertEquals($default_langcode, $field->getLangcode(), format_string('%entity_type: The field object has the expect langcode.', ['%entity_type' => $entity_type]));
+    $this->assertEquals($uid, $entity->getTranslation(LanguageInterface::LANGCODE_DEFAULT)->get('user_id')->target_id, format_string('%entity_type: The entity author has been correctly stored as language neutral.', ['%entity_type' => $entity_type]));
 
     $translation = $entity->getTranslation(LanguageInterface::LANGCODE_DEFAULT);
     $field = $translation->get('name');
-    $this->assertEqual($name, $field->value, format_string('%entity_type: The entity name defaults to neutral language.', ['%entity_type' => $entity_type]));
-    $this->assertEqual($default_langcode, $field->getLangcode(), format_string('%entity_type: The field object has the expect langcode.', ['%entity_type' => $entity_type]));
-    $this->assertEqual($uid, $translation->get('user_id')->target_id, format_string('%entity_type: The entity author defaults to neutral language.', ['%entity_type' => $entity_type]));
+    $this->assertEquals($name, $field->value, format_string('%entity_type: The entity name defaults to neutral language.', ['%entity_type' => $entity_type]));
+    $this->assertEquals($default_langcode, $field->getLangcode(), format_string('%entity_type: The field object has the expect langcode.', ['%entity_type' => $entity_type]));
+    $this->assertEquals($uid, $translation->get('user_id')->target_id, format_string('%entity_type: The entity author defaults to neutral language.', ['%entity_type' => $entity_type]));
     $field = $entity->get('name');
-    $this->assertEqual($name, $field->value, format_string('%entity_type: The entity name can be retrieved without specifying a language.', ['%entity_type' => $entity_type]));
-    $this->assertEqual($default_langcode, $field->getLangcode(), format_string('%entity_type: The field object has the expect langcode.', ['%entity_type' => $entity_type]));
-    $this->assertEqual($uid, $entity->get('user_id')->target_id, format_string('%entity_type: The entity author can be retrieved without specifying a language.', ['%entity_type' => $entity_type]));
+    $this->assertEquals($name, $field->value, format_string('%entity_type: The entity name can be retrieved without specifying a language.', ['%entity_type' => $entity_type]));
+    $this->assertEquals($default_langcode, $field->getLangcode(), format_string('%entity_type: The field object has the expect langcode.', ['%entity_type' => $entity_type]));
+    $this->assertEquals($uid, $entity->get('user_id')->target_id, format_string('%entity_type: The entity author can be retrieved without specifying a language.', ['%entity_type' => $entity_type]));
 
     // Create a language-aware entity and check that properties are stored
     // as language-aware.
@@ -195,11 +195,11 @@ protected function doTestMultilingualProperties($entity_type) {
     $entity->save();
     $entity = $storage->load($entity->id());
     $default_langcode = $entity->language()->getId();
-    $this->assertEqual($default_langcode, $langcode, format_string('%entity_type: Entity created as language specific.', ['%entity_type' => $entity_type]));
+    $this->assertEquals($default_langcode, $langcode, format_string('%entity_type: Entity created as language specific.', ['%entity_type' => $entity_type]));
     $field = $entity->getTranslation($langcode)->get('name');
-    $this->assertEqual($name, $field->value, format_string('%entity_type: The entity name has been correctly stored as a language-aware property.', ['%entity_type' => $entity_type]));
-    $this->assertEqual($default_langcode, $field->getLangcode(), format_string('%entity_type: The field object has the expect langcode.', ['%entity_type' => $entity_type]));
-    $this->assertEqual($uid, $entity->getTranslation($langcode)->get('user_id')->target_id, format_string('%entity_type: The entity author has been correctly stored as a language-aware property.', ['%entity_type' => $entity_type]));
+    $this->assertEquals($name, $field->value, format_string('%entity_type: The entity name has been correctly stored as a language-aware property.', ['%entity_type' => $entity_type]));
+    $this->assertEquals($default_langcode, $field->getLangcode(), format_string('%entity_type: The field object has the expect langcode.', ['%entity_type' => $entity_type]));
+    $this->assertEquals($uid, $entity->getTranslation($langcode)->get('user_id')->target_id, format_string('%entity_type: The entity author has been correctly stored as a language-aware property.', ['%entity_type' => $entity_type]));
 
     // Create property translations.
     $properties = [];
@@ -232,10 +232,10 @@ protected function doTestMultilingualProperties($entity_type) {
         '%langcode' => $langcode,
       ];
       $field = $entity->getTranslation($langcode)->get('name');
-      $this->assertEqual($properties[$langcode]['name'][0], $field->value, format_string('%entity_type: The entity name has been correctly stored for language %langcode.', $args));
+      $this->assertEquals($properties[$langcode]['name'][0], $field->value, format_string('%entity_type: The entity name has been correctly stored for language %langcode.', $args));
       $field_langcode = ($langcode == $entity->language()->getId()) ? $default_langcode : $langcode;
-      $this->assertEqual($field_langcode, $field->getLangcode(), format_string('%entity_type: The field object has the expected langcode  %langcode.', $args));
-      $this->assertEqual($properties[$langcode]['user_id'][0], $entity->getTranslation($langcode)->get('user_id')->target_id, format_string('%entity_type: The entity author has been correctly stored for language %langcode.', $args));
+      $this->assertEquals($field_langcode, $field->getLangcode(), format_string('%entity_type: The field object has the expected langcode  %langcode.', $args));
+      $this->assertEquals($properties[$langcode]['user_id'][0], $entity->getTranslation($langcode)->get('user_id')->target_id, format_string('%entity_type: The entity author has been correctly stored for language %langcode.', $args));
     }
 
     // Test query conditions (cache is reset at each call).
@@ -254,24 +254,24 @@ protected function doTestMultilingualProperties($entity_type) {
       ->save();
 
     $entities = $storage->loadMultiple();
-    $this->assertEqual(count($entities), 3, format_string('%entity_type: Three entities were created.', ['%entity_type' => $entity_type]));
+    $this->assertEquals(count($entities), 3, format_string('%entity_type: Three entities were created.', ['%entity_type' => $entity_type]));
     $entities = $storage->loadMultiple([$translated_id]);
-    $this->assertEqual(count($entities), 1, format_string('%entity_type: One entity correctly loaded by id.', ['%entity_type' => $entity_type]));
+    $this->assertEquals(count($entities), 1, format_string('%entity_type: One entity correctly loaded by id.', ['%entity_type' => $entity_type]));
     $entities = $storage->loadByProperties(['name' => $name]);
-    $this->assertEqual(count($entities), 2, format_string('%entity_type: Two entities correctly loaded by name.', ['%entity_type' => $entity_type]));
+    $this->assertEquals(count($entities), 2, format_string('%entity_type: Two entities correctly loaded by name.', ['%entity_type' => $entity_type]));
     // @todo The default language condition should go away in favor of an
     // explicit parameter.
     $entities = $storage->loadByProperties(['name' => $properties[$langcode]['name'][0], $default_langcode_key => 0]);
-    $this->assertEqual(count($entities), 1, format_string('%entity_type: One entity correctly loaded by name translation.', ['%entity_type' => $entity_type]));
+    $this->assertEquals(count($entities), 1, format_string('%entity_type: One entity correctly loaded by name translation.', ['%entity_type' => $entity_type]));
     $entities = $storage->loadByProperties([$langcode_key => $default_langcode, 'name' => $name]);
-    $this->assertEqual(count($entities), 1, format_string('%entity_type: One entity correctly loaded by name and language.', ['%entity_type' => $entity_type]));
+    $this->assertEquals(count($entities), 1, format_string('%entity_type: One entity correctly loaded by name and language.', ['%entity_type' => $entity_type]));
 
     $entities = $storage->loadByProperties([$langcode_key => $langcode, 'name' => $properties[$langcode]['name'][0]]);
-    $this->assertEqual(count($entities), 0, format_string('%entity_type: No entity loaded by name translation specifying the translation language.', ['%entity_type' => $entity_type]));
+    $this->assertEquals(count($entities), 0, format_string('%entity_type: No entity loaded by name translation specifying the translation language.', ['%entity_type' => $entity_type]));
     $entities = $storage->loadByProperties([$langcode_key => $langcode, 'name' => $properties[$langcode]['name'][0], $default_langcode_key => 0]);
-    $this->assertEqual(count($entities), 1, format_string('%entity_type: One entity loaded by name translation and language specifying to look for translations.', ['%entity_type' => $entity_type]));
+    $this->assertEquals(count($entities), 1, format_string('%entity_type: One entity loaded by name translation and language specifying to look for translations.', ['%entity_type' => $entity_type]));
     $entities = $storage->loadByProperties(['user_id' => $properties[$langcode]['user_id'][0], $default_langcode_key => NULL]);
-    $this->assertEqual(count($entities), 2, format_string('%entity_type: Two entities loaded by uid without caring about property translatability.', ['%entity_type' => $entity_type]));
+    $this->assertEquals(count($entities), 2, format_string('%entity_type: Two entities loaded by uid without caring about property translatability.', ['%entity_type' => $entity_type]));
 
     // Test property conditions and orders with multiple languages in the same
     // query.
@@ -283,7 +283,7 @@ protected function doTestMultilingualProperties($entity_type) {
       ->condition($group)
       ->condition('name', $properties[$langcode]['name'][0], '=', $langcode)
       ->execute();
-    $this->assertEqual(count($result), 1, format_string('%entity_type: One entity loaded by name and uid using different language meta conditions.', ['%entity_type' => $entity_type]));
+    $this->assertEquals(count($result), 1, format_string('%entity_type: One entity loaded by name and uid using different language meta conditions.', ['%entity_type' => $entity_type]));
 
     // Test mixed property and field conditions.
     $storage->resetCache($result);
@@ -303,7 +303,7 @@ protected function doTestMultilingualProperties($entity_type) {
       ->condition($default_langcode_group)
       ->condition($langcode_group)
       ->execute();
-    $this->assertEqual(count($result), 1, format_string('%entity_type: One entity loaded by name, uid and field value using different language meta conditions.', ['%entity_type' => $entity_type]));
+    $this->assertEquals(count($result), 1, format_string('%entity_type: One entity loaded by name, uid and field value using different language meta conditions.', ['%entity_type' => $entity_type]));
   }
 
   /**
@@ -369,24 +369,24 @@ protected function doTestEntityTranslationAPI($entity_type) {
     $this->assertTrue($translation->isNewTranslation(), 'Newly added translations are marked as new.');
     $this->assertNotIdentical($entity, $translation, 'The entity and the translation object differ from one another.');
     $this->assertTrue($entity->hasTranslation($langcode), 'The new translation exists.');
-    $this->assertEqual($translation->language()->getId(), $langcode, 'The translation language matches the specified one.');
-    $this->assertEqual($translation->{$langcode_key}->value, $langcode, 'The translation field language value matches the specified one.');
+    $this->assertEquals($translation->language()->getId(), $langcode, 'The translation language matches the specified one.');
+    $this->assertEquals($translation->{$langcode_key}->value, $langcode, 'The translation field language value matches the specified one.');
     $this->assertFalse($translation->{$default_langcode_key}->value, 'The translation object is not the default one.');
-    $this->assertEqual($translation->getUntranslated()->language()->getId(), $default_langcode, 'The original language can still be retrieved.');
+    $this->assertEquals($translation->getUntranslated()->language()->getId(), $default_langcode, 'The original language can still be retrieved.');
     $translation->name->value = $name_translated;
-    $this->assertEqual($entity->name->value, $name, 'The original name is retained after setting a translated value.');
+    $this->assertEquals($entity->name->value, $name, 'The original name is retained after setting a translated value.');
     $entity->name->value = $name;
-    $this->assertEqual($translation->name->value, $name_translated, 'The translated name is retained after setting the original value.');
+    $this->assertEquals($translation->name->value, $name_translated, 'The translated name is retained after setting the original value.');
 
     // Save the translation and check that the expected hooks are fired.
     $translation->save();
     $hooks = $this->getHooksInfo();
 
-    $this->assertEqual($hooks['entity_translation_create'], $langcode, 'The generic entity translation creation hook has fired.');
-    $this->assertEqual($hooks[$entity_type . '_translation_create'], $langcode, 'The entity-type-specific entity translation creation hook has fired.');
+    $this->assertEquals($hooks['entity_translation_create'], $langcode, 'The generic entity translation creation hook has fired.');
+    $this->assertEquals($hooks[$entity_type . '_translation_create'], $langcode, 'The entity-type-specific entity translation creation hook has fired.');
 
-    $this->assertEqual($hooks['entity_translation_insert'], $langcode, 'The generic entity translation insertion hook has fired.');
-    $this->assertEqual($hooks[$entity_type . '_translation_insert'], $langcode, 'The entity-type-specific entity translation insertion hook has fired.');
+    $this->assertEquals($hooks['entity_translation_insert'], $langcode, 'The generic entity translation insertion hook has fired.');
+    $this->assertEquals($hooks[$entity_type . '_translation_insert'], $langcode, 'The entity-type-specific entity translation insertion hook has fired.');
 
     // Verify that changing translation language causes an exception to be
     // thrown.
@@ -433,12 +433,12 @@ protected function doTestEntityTranslationAPI($entity_type) {
         $this->pass($message);
       }
 
-      $this->assertEqual($translation->{$default_langcode_key}->value, $default);
+      $this->assertEquals($translation->{$default_langcode_key}->value, $default);
     }
 
     // Check that after loading an entity the language is the default one.
     $entity = $this->reloadEntity($entity);
-    $this->assertEqual($entity->language()->getId(), $default_langcode, 'The loaded entity is the original one.');
+    $this->assertEquals($entity->language()->getId(), $default_langcode, 'The loaded entity is the original one.');
 
     // Add another translation and check that everything works as expected. A
     // new translation object can be obtained also by just specifying a valid
@@ -447,15 +447,15 @@ protected function doTestEntityTranslationAPI($entity_type) {
     $translation = $entity->addTranslation($langcode2);
     $value = $entity !== $translation && $translation->language()->getId() == $langcode2 && $entity->hasTranslation($langcode2);
     $this->assertTrue($value, 'A new translation object can be obtained also by specifying a valid language.');
-    $this->assertEqual($entity->language()->getId(), $default_langcode, 'The original language has been preserved.');
+    $this->assertEquals($entity->language()->getId(), $default_langcode, 'The original language has been preserved.');
     $translation->save();
     $hooks = $this->getHooksInfo();
 
-    $this->assertEqual($hooks['entity_translation_create'], $langcode2, 'The generic entity translation creation hook has fired.');
-    $this->assertEqual($hooks[$entity_type . '_translation_create'], $langcode2, 'The entity-type-specific entity translation creation hook has fired.');
+    $this->assertEquals($hooks['entity_translation_create'], $langcode2, 'The generic entity translation creation hook has fired.');
+    $this->assertEquals($hooks[$entity_type . '_translation_create'], $langcode2, 'The entity-type-specific entity translation creation hook has fired.');
 
-    $this->assertEqual($hooks['entity_translation_insert'], $langcode2, 'The generic entity translation insertion hook has fired.');
-    $this->assertEqual($hooks[$entity_type . '_translation_insert'], $langcode2, 'The entity-type-specific entity translation insertion hook has fired.');
+    $this->assertEquals($hooks['entity_translation_insert'], $langcode2, 'The generic entity translation insertion hook has fired.');
+    $this->assertEquals($hooks[$entity_type . '_translation_insert'], $langcode2, 'The entity-type-specific entity translation insertion hook has fired.');
 
     // Verify that trying to manipulate a translation object referring to a
     // removed translation results in exceptions being thrown.
@@ -477,8 +477,8 @@ protected function doTestEntityTranslationAPI($entity_type) {
     // translation.
     $entity->save();
     $hooks = $this->getHooksInfo();
-    $this->assertEqual($hooks['entity_translation_delete'], $langcode2, 'The generic entity translation deletion hook has fired.');
-    $this->assertEqual($hooks[$entity_type . '_translation_delete'], $langcode2, 'The entity-type-specific entity translation deletion hook has fired.');
+    $this->assertEquals($hooks['entity_translation_delete'], $langcode2, 'The generic entity translation deletion hook has fired.');
+    $this->assertEquals($hooks[$entity_type . '_translation_delete'], $langcode2, 'The entity-type-specific entity translation deletion hook has fired.');
     $entity = $this->reloadEntity($entity);
     $this->assertFalse($entity->hasTranslation($langcode2), 'The translation does not appear among available translations after saving the entity.');
 
@@ -530,11 +530,11 @@ protected function doTestEntityTranslationAPI($entity_type) {
     $entity->name->value = $this->randomMachineName();
     $name = $default_langcode . '_' . $this->randomMachineName();
     $entity->getTranslation($default_langcode)->name->value = $name;
-    $this->assertEqual($entity->name->value, $name, 'No stale reference for the translation object corresponding to the original language.');
+    $this->assertEquals($entity->name->value, $name, 'No stale reference for the translation object corresponding to the original language.');
     $translation2 = $entity->getTranslation($langcode);
     $translation2->name->value .= $this->randomMachineName();
     $this->assertNotEqual($translation->name->value, $translation2->name->value, 'No stale reference for the actual translation object.');
-    $this->assertEqual($entity, $translation2->getUntranslated(), 'No stale reference in the actual translation object.');
+    $this->assertEquals($entity, $translation2->getUntranslated(), 'No stale reference in the actual translation object.');
 
     // Verify that deep-cloning is still available when we are not instantiating
     // a translation object, which instead relies on shallow cloning.
@@ -556,7 +556,7 @@ protected function doTestEntityTranslationAPI($entity_type) {
     $cloned = clone $entity;
     $translation = $cloned->getTranslation($langcode);
     $translation->type->value = strrev($type);
-    $this->assertEqual($cloned->type->value, $translation->type->value, 'Untranslatable field references keep working after serializing and cloning the entity.');
+    $this->assertEquals($cloned->type->value, $translation->type->value, 'Untranslatable field references keep working after serializing and cloning the entity.');
 
     // Check that per-language defaults are properly populated. The
     // 'entity_test_mul_default_value' entity type is translatable and uses
@@ -576,8 +576,8 @@ protected function doTestEntityTranslationAPI($entity_type) {
         'color' => "color:1:description_$langcode2",
       ],
     ];
-    $this->assertEqual($translation->description->getValue(), $expected, 'Language-aware default values correctly populated.');
-    $this->assertEqual($translation->description->getLangcode(), $langcode2, 'Field object has the expected langcode.');
+    $this->assertEquals($translation->description->getValue(), $expected, 'Language-aware default values correctly populated.');
+    $this->assertEquals($translation->description->getLangcode(), $langcode2, 'Field object has the expected langcode.');
 
     // Reset hook firing information.
     $this->getHooksInfo();
@@ -632,21 +632,21 @@ protected function doTestLanguageFallback($entity_type) {
     // Check that retrieving the current translation works as expected.
     $entity = $this->reloadEntity($entity);
     $translation = $this->entityManager->getTranslationFromContext($entity, $langcode2);
-    $this->assertEqual($translation->language()->getId(), $default_langcode, 'The current translation language matches the expected one.');
+    $this->assertEquals($translation->language()->getId(), $default_langcode, 'The current translation language matches the expected one.');
 
     // Check that language fallback respects language weight by default.
     $language = ConfigurableLanguage::load($languages[$langcode]->getId());
     $language->set('weight', -1);
     $language->save();
     $translation = $this->entityManager->getTranslationFromContext($entity, $langcode2);
-    $this->assertEqual($translation->language()->getId(), $langcode, 'The current translation language matches the expected one.');
+    $this->assertEquals($translation->language()->getId(), $langcode, 'The current translation language matches the expected one.');
 
     // Check that the current translation is properly returned.
     $translation = $this->entityManager->getTranslationFromContext($entity);
-    $this->assertEqual($langcode, $translation->language()->getId(), 'The current translation language matches the topmost language fallback candidate.');
+    $this->assertEquals($langcode, $translation->language()->getId(), 'The current translation language matches the topmost language fallback candidate.');
     $entity->addTranslation($current_langcode, $values[$current_langcode]);
     $translation = $this->entityManager->getTranslationFromContext($entity);
-    $this->assertEqual($current_langcode, $translation->language()->getId(), 'The current translation language matches the current language.');
+    $this->assertEquals($current_langcode, $translation->language()->getId(), 'The current translation language matches the current language.');
 
     // Check that if the entity has no translation no fallback is applied.
     $entity2 = $controller->create([$langcode_key => $default_langcode]);
@@ -663,7 +663,7 @@ protected function doTestLanguageFallback($entity_type) {
     $controller = $this->entityManager->getViewBuilder($entity_type);
     $build = $controller->view($entity);
     $renderer->renderRoot($build);
-    $this->assertEqual($build['label']['#markup'], $values[$current_langcode]['name'], 'By default the entity is rendered in the current language.');
+    $this->assertEquals($build['label']['#markup'], $values[$current_langcode]['name'], 'By default the entity is rendered in the current language.');
 
     $langcodes = array_combine($this->langcodes, $this->langcodes);
     // We have no translation for the $langcode2 language, hence the expected
@@ -675,7 +675,7 @@ protected function doTestLanguageFallback($entity_type) {
       // making the renderable array keys available to compare.
       unset($build['#cache']);
       $renderer->renderRoot($build);
-      $this->assertEqual($build['label']['#markup'], $values[$expected]['name'], 'The entity is rendered in the expected language.');
+      $this->assertEquals($build['label']['#markup'], $values[$expected]['name'], 'The entity is rendered in the expected language.');
     }
   }
 
@@ -754,7 +754,7 @@ protected function doTestLanguageChange($entity_type) {
     ];
     $entity = $controller->create($values);
     foreach ([$this->fieldName, $this->untranslatableFieldName] as $field_name) {
-      $this->assertEqual($entity->get($field_name)->getLangcode(), $langcode, 'Field language works as expected.');
+      $this->assertEquals($entity->get($field_name)->getLangcode(), $langcode, 'Field language works as expected.');
     }
 
     // Check that field languages keep matching entity language even after
@@ -762,7 +762,7 @@ protected function doTestLanguageChange($entity_type) {
     $langcode = $this->langcodes[1];
     $entity->{$langcode_key}->value = $langcode;
     foreach ([$this->fieldName, $this->untranslatableFieldName] as $field_name) {
-      $this->assertEqual($entity->get($field_name)->getLangcode(), $langcode, 'Field language works as expected after changing entity language.');
+      $this->assertEquals($entity->get($field_name)->getLangcode(), $langcode, 'Field language works as expected after changing entity language.');
     }
 
     // Check that entity translation does not affect the language of original
@@ -771,7 +771,7 @@ protected function doTestLanguageChange($entity_type) {
     $entity->addTranslation($this->langcodes[2], [$this->fieldName => $this->randomMachineName()]);
     $entity->{$langcode_key}->value = $langcode;
     foreach ([$this->fieldName, $this->untranslatableFieldName] as $field_name) {
-      $this->assertEqual($entity->get($field_name)->getLangcode(), $langcode, 'Field language works as expected after translating the entity and changing language.');
+      $this->assertEquals($entity->get($field_name)->getLangcode(), $langcode, 'Field language works as expected after translating the entity and changing language.');
     }
 
     // Check that setting the default language to an existing translation
@@ -806,7 +806,7 @@ public function testEntityAdapter() {
     foreach ($langcodes as $langcode) {
       $adapter = $entity->getTranslation($langcode)->getTypedData();
       $name = $adapter->get('name')->value;
-      $this->assertEqual($name, $values[$langcode]['name'], SafeMarkup::format('Name correctly retrieved from "@langcode" adapter', ['@langcode' => $langcode]));
+      $this->assertEquals($name, $values[$langcode]['name'], SafeMarkup::format('Name correctly retrieved from "@langcode" adapter', ['@langcode' => $langcode]));
     }
   }
 
@@ -829,11 +829,11 @@ public function testFieldEntityReference() {
       foreach ($translation->getFields() as $field_name => $field) {
         if ($field->getFieldDefinition()->isTranslatable()) {
           $args = ['%field_name' => $field_name, '%langcode' => $langcode];
-          $this->assertEqual($langcode, $field->getEntity()->language()->getId(), format_string('Translatable field %field_name on translation %langcode has correct entity reference in translation %langcode.', $args));
+          $this->assertEquals($langcode, $field->getEntity()->language()->getId(), format_string('Translatable field %field_name on translation %langcode has correct entity reference in translation %langcode.', $args));
         }
         else {
           $args = ['%field_name' => $field_name, '%langcode' => $langcode, '%default_langcode' => $default_langcode];
-          $this->assertEqual($default_langcode, $field->getEntity()->language()->getId(), format_string('Non translatable field %field_name on translation %langcode has correct entity reference in the default translation %default_langcode.', $args));
+          $this->assertEquals($default_langcode, $field->getEntity()->language()->getId(), format_string('Non translatable field %field_name on translation %langcode has correct entity reference in the default translation %default_langcode.', $args));
         }
       }
     }
@@ -908,7 +908,7 @@ public function testDeleteEntityTranslation() {
     $expected_translatable = ['l1', 'l2'];
     sort($actual);
     sort($expected_translatable);
-    $this->assertEqual($actual, $expected_translatable);
+    $this->assertEquals($actual, $expected_translatable);
     // Ensure that the untranslatable test field is untouched.
     $this->assertNull(\Drupal::state()->get('entity_test.delete.untranslatable_test_field'));
 
@@ -921,7 +921,7 @@ public function testDeleteEntityTranslation() {
     $expected_translatable[] = 'l0';
     sort($actual);
     sort($expected_translatable);
-    $this->assertEqual($actual, $expected_translatable);
+    $this->assertEquals($actual, $expected_translatable);
 
     // The untranslatable field is shared and only deleted once, for the
     // default langcode.
@@ -929,7 +929,7 @@ public function testDeleteEntityTranslation() {
     $expected_untranslatable = ['en'];
     sort($actual);
     sort($expected_untranslatable);
-    $this->assertEqual($actual, $expected_untranslatable);
+    $this->assertEquals($actual, $expected_untranslatable);
   }
 
   /**
diff --git a/core/tests/Drupal/KernelTests/Core/Entity/EntityTypeConstraintValidatorTest.php b/core/tests/Drupal/KernelTests/Core/Entity/EntityTypeConstraintValidatorTest.php
index 3671d6d408..333389b367 100644
--- a/core/tests/Drupal/KernelTests/Core/Entity/EntityTypeConstraintValidatorTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Entity/EntityTypeConstraintValidatorTest.php
@@ -41,7 +41,7 @@ public function testValidation() {
     $node = $this->container->get('entity.manager')->getStorage('node')->create(['type' => 'page']);
     $typed_data = $this->typedData->create($definition, $node);
     $violations = $typed_data->validate();
-    $this->assertEqual($violations->count(), 0, 'Validation passed for correct value.');
+    $this->assertEquals($violations->count(), 0, 'Validation passed for correct value.');
 
     // Test the validation when an invalid value (in this case a user entity)
     // is passed.
@@ -49,13 +49,13 @@ public function testValidation() {
 
     $typed_data = $this->typedData->create($definition, $account);
     $violations = $typed_data->validate();
-    $this->assertEqual($violations->count(), 1, 'Validation failed for incorrect value.');
+    $this->assertEquals($violations->count(), 1, 'Validation failed for incorrect value.');
 
     // Make sure the information provided by a violation is correct.
     $violation = $violations[0];
-    $this->assertEqual($violation->getMessage(), t('The entity must be of type %type.', ['%type' => $entity_type]), 'The message for invalid value is correct.');
-    $this->assertEqual($violation->getRoot(), $typed_data, 'Violation root is correct.');
-    $this->assertEqual($violation->getInvalidValue(), $account, 'The invalid value is set correctly in the violation.');
+    $this->assertEquals($violation->getMessage(), t('The entity must be of type %type.', ['%type' => $entity_type]), 'The message for invalid value is correct.');
+    $this->assertEquals($violation->getRoot(), $typed_data, 'Violation root is correct.');
+    $this->assertEquals($violation->getInvalidValue(), $account, 'The invalid value is set correctly in the violation.');
   }
 
 }
diff --git a/core/tests/Drupal/KernelTests/Core/Entity/EntityTypeConstraintsTest.php b/core/tests/Drupal/KernelTests/Core/Entity/EntityTypeConstraintsTest.php
index a58b47c1ce..d5d795cc1e 100644
--- a/core/tests/Drupal/KernelTests/Core/Entity/EntityTypeConstraintsTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Entity/EntityTypeConstraintsTest.php
@@ -25,7 +25,7 @@ public function testConstraintDefinition() {
     // constraint and the automatically added EntityChanged constraint.
     $entity_type = $this->entityManager->getDefinition('entity_test_constraints');
     $default_constraints = ['NotNull' => [], 'EntityChanged' => NULL];
-    $this->assertEqual($default_constraints, $entity_type->getConstraints());
+    $this->assertEquals($default_constraints, $entity_type->getConstraints());
 
     // Enable our test module and test extending constraints.
     $this->enableModules(['entity_test_constraints']);
@@ -38,7 +38,7 @@ public function testConstraintDefinition() {
     $this->entityManager = $this->container->get('entity.manager');
     $this->entityManager->clearCachedDefinitions();
     $entity_type = $this->entityManager->getDefinition('entity_test_constraints');
-    $this->assertEqual($default_constraints + $extra_constraints, $entity_type->getConstraints());
+    $this->assertEquals($default_constraints + $extra_constraints, $entity_type->getConstraints());
 
     // Test altering constraints.
     $altered_constraints = ['Test' => ['some_setting' => TRUE]];
@@ -48,7 +48,7 @@ public function testConstraintDefinition() {
     \Drupal::state()->resetCache();
     $this->entityManager->clearCachedDefinitions();
     $entity_type = $this->entityManager->getDefinition('entity_test_constraints');
-    $this->assertEqual($altered_constraints, $entity_type->getConstraints());
+    $this->assertEquals($altered_constraints, $entity_type->getConstraints());
   }
 
   /**
@@ -58,12 +58,12 @@ public function testConstraintValidation() {
     $entity = $this->entityManager->getStorage('entity_test_constraints')->create();
     $entity->user_id->target_id = 0;
     $violations = $entity->validate();
-    $this->assertEqual($violations->count(), 0, 'Validation passed.');
+    $this->assertEquals($violations->count(), 0, 'Validation passed.');
     $entity->save();
     $entity->changed->value = REQUEST_TIME - 86400;
     $violations = $entity->validate();
-    $this->assertEqual($violations->count(), 1, 'Validation failed.');
-    $this->assertEqual($violations[0]->getMessage(), t('The content has either been modified by another user, or you have already submitted modifications. As a result, your changes cannot be saved.'));
+    $this->assertEquals($violations->count(), 1, 'Validation failed.');
+    $this->assertEquals($violations[0]->getMessage(), t('The content has either been modified by another user, or you have already submitted modifications. As a result, your changes cannot be saved.'));
   }
 
 }
diff --git a/core/tests/Drupal/KernelTests/Core/Entity/EntityTypedDataDefinitionTest.php b/core/tests/Drupal/KernelTests/Core/Entity/EntityTypedDataDefinitionTest.php
index 5e755d9584..1710472001 100644
--- a/core/tests/Drupal/KernelTests/Core/Entity/EntityTypedDataDefinitionTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Entity/EntityTypedDataDefinitionTest.php
@@ -51,16 +51,16 @@ public function testFields() {
     $this->assertTrue($field_item_definition instanceof ComplexDataDefinitionInterface);
 
     // Derive metadata about field item properties.
-    $this->assertEqual(array_keys($field_item_definition->getPropertyDefinitions()), ['value']);
-    $this->assertEqual($field_item_definition->getPropertyDefinition('value')->getDataType(), 'integer');
-    $this->assertEqual($field_item_definition->getMainPropertyName(), 'value');
+    $this->assertEquals(array_keys($field_item_definition->getPropertyDefinitions()), ['value']);
+    $this->assertEquals($field_item_definition->getPropertyDefinition('value')->getDataType(), 'integer');
+    $this->assertEquals($field_item_definition->getMainPropertyName(), 'value');
     $this->assertNull($field_item_definition->getPropertyDefinition('invalid'));
 
     // Test accessing field item property metadata via the field definition.
     $this->assertTrue($field_definition instanceof FieldDefinitionInterface);
-    $this->assertEqual(array_keys($field_definition->getPropertyDefinitions()), ['value']);
-    $this->assertEqual($field_definition->getPropertyDefinition('value')->getDataType(), 'integer');
-    $this->assertEqual($field_definition->getMainPropertyName(), 'value');
+    $this->assertEquals(array_keys($field_definition->getPropertyDefinitions()), ['value']);
+    $this->assertEquals($field_definition->getPropertyDefinition('value')->getDataType(), 'integer');
+    $this->assertEquals($field_definition->getMainPropertyName(), 'value');
     $this->assertNull($field_definition->getPropertyDefinition('invalid'));
 
     // Test using the definition factory for field item lists and field items.
@@ -69,12 +69,12 @@ public function testFields() {
     $this->assertTrue($field_item instanceof ComplexDataDefinitionInterface);
     // Comparison should ignore the internal static cache, so compare the
     // serialized objects instead.
-    $this->assertEqual(serialize($field_item_definition), serialize($field_item));
+    $this->assertEquals(serialize($field_item_definition), serialize($field_item));
 
     $field_definition2 = $this->typedDataManager->createListDataDefinition('field_item:integer');
     $this->assertTrue($field_definition2 instanceof ListDataDefinitionInterface);
     $this->assertFalse($field_definition2 instanceof ComplexDataDefinitionInterface);
-    $this->assertEqual(serialize($field_definition), serialize($field_definition2));
+    $this->assertEquals(serialize($field_definition), serialize($field_definition2));
   }
 
   /**
@@ -89,24 +89,24 @@ public function testEntities() {
     $field_definitions = $entity_definition->getPropertyDefinitions();
     // Comparison should ignore the internal static cache, so compare the
     // serialized objects instead.
-    $this->assertEqual(serialize($field_definitions), serialize(\Drupal::entityManager()->getBaseFieldDefinitions('node')));
-    $this->assertEqual($entity_definition->getPropertyDefinition('title')->getItemDefinition()->getDataType(), 'field_item:string');
+    $this->assertEquals(serialize($field_definitions), serialize(\Drupal::entityManager()->getBaseFieldDefinitions('node')));
+    $this->assertEquals($entity_definition->getPropertyDefinition('title')->getItemDefinition()->getDataType(), 'field_item:string');
     $this->assertNull($entity_definition->getMainPropertyName());
     $this->assertNull($entity_definition->getPropertyDefinition('invalid'));
 
     $entity_definition2 = $this->typedDataManager->createDataDefinition('entity:node');
     $this->assertFalse($entity_definition2 instanceof ListDataDefinitionInterface);
     $this->assertTrue($entity_definition2 instanceof ComplexDataDefinitionInterface);
-    $this->assertEqual(serialize($entity_definition), serialize($entity_definition2));
+    $this->assertEquals(serialize($entity_definition), serialize($entity_definition2));
 
     // Test that the definition factory creates the right definitions for all
     // entity data types variants.
-    $this->assertEqual(serialize($this->typedDataManager->createDataDefinition('entity')), serialize(EntityDataDefinition::create()));
-    $this->assertEqual(serialize($this->typedDataManager->createDataDefinition('entity:node')), serialize(EntityDataDefinition::create('node')));
+    $this->assertEquals(serialize($this->typedDataManager->createDataDefinition('entity')), serialize(EntityDataDefinition::create()));
+    $this->assertEquals(serialize($this->typedDataManager->createDataDefinition('entity:node')), serialize(EntityDataDefinition::create('node')));
 
     // Config entities don't support typed data.
     $entity_definition = EntityDataDefinition::create('node_type');
-    $this->assertEqual([], $entity_definition->getPropertyDefinitions());
+    $this->assertEquals([], $entity_definition->getPropertyDefinitions());
   }
 
   /**
@@ -117,13 +117,13 @@ public function testEntityReferences() {
     $this->assertTrue($reference_definition instanceof DataReferenceDefinitionInterface);
 
     // Test retrieving metadata about the referenced data.
-    $this->assertEqual($reference_definition->getTargetDefinition()->getDataType(), 'entity');
+    $this->assertEquals($reference_definition->getTargetDefinition()->getDataType(), 'entity');
     $this->assertTrue($reference_definition->getTargetDefinition() instanceof EntityDataDefinitionInterface);
 
     // Test that the definition factory creates the right definition object.
     $reference_definition2 = $this->typedDataManager->createDataDefinition('entity_reference');
     $this->assertTrue($reference_definition2 instanceof DataReferenceDefinitionInterface);
-    $this->assertEqual(serialize($reference_definition2), serialize($reference_definition));
+    $this->assertEquals(serialize($reference_definition2), serialize($reference_definition));
   }
 
 }
diff --git a/core/tests/Drupal/KernelTests/Core/Entity/EntityUUIDTest.php b/core/tests/Drupal/KernelTests/Core/Entity/EntityUUIDTest.php
index a3466a4967..7bdd143ba9 100644
--- a/core/tests/Drupal/KernelTests/Core/Entity/EntityUUIDTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Entity/EntityUUIDTest.php
@@ -75,7 +75,7 @@ protected function assertCRUD($entity_type) {
     // Verify that \Drupal::entityManager()->loadEntityByUuid() loads the same entity.
     $entity_loaded_by_uuid = \Drupal::entityManager()->loadEntityByUuid($entity_type, $uuid, TRUE);
     $this->assertIdentical($entity_loaded_by_uuid->uuid(), $uuid);
-    $this->assertEqual($entity_loaded_by_uuid->id(), $entity_loaded->id());
+    $this->assertEquals($entity_loaded_by_uuid->id(), $entity_loaded->id());
 
     // Creating a duplicate needs to result in a new UUID.
     $entity_duplicate = $entity->createDuplicate();
@@ -98,7 +98,7 @@ protected function assertCRUD($entity_type) {
           $this->assertNotEqual($entity_duplicate->{$property}->getValue(), $entity->{$property}->getValue());
           break;
         default:
-          $this->assertEqual($entity_duplicate->{$property}->getValue(), $entity->{$property}->getValue());
+          $this->assertEquals($entity_duplicate->{$property}->getValue(), $entity->{$property}->getValue());
       }
     }
     $entity_duplicate->save();
diff --git a/core/tests/Drupal/KernelTests/Core/Entity/EntityValidationTest.php b/core/tests/Drupal/KernelTests/Core/Entity/EntityValidationTest.php
index c6461943ec..0b35ef4d6c 100644
--- a/core/tests/Drupal/KernelTests/Core/Entity/EntityValidationTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Entity/EntityValidationTest.php
@@ -116,65 +116,65 @@ public function testValidation() {
   protected function checkValidation($entity_type) {
     $entity = $this->createTestEntity($entity_type);
     $violations = $entity->validate();
-    $this->assertEqual($violations->count(), 0, 'Validation passes.');
+    $this->assertEquals($violations->count(), 0, 'Validation passes.');
 
     // Test triggering a fail for each of the constraints specified.
     $test_entity = clone $entity;
     $test_entity->id->value = -1;
     $violations = $test_entity->validate();
-    $this->assertEqual($violations->count(), 1, 'Validation failed.');
-    $this->assertEqual($violations[0]->getMessage(), t('%name: The integer must be larger or equal to %min.', ['%name' => 'ID', '%min' => 0]));
+    $this->assertEquals($violations->count(), 1, 'Validation failed.');
+    $this->assertEquals($violations[0]->getMessage(), t('%name: The integer must be larger or equal to %min.', ['%name' => 'ID', '%min' => 0]));
 
     $test_entity = clone $entity;
     $test_entity->uuid->value = $this->randomString(129);
     $violations = $test_entity->validate();
-    $this->assertEqual($violations->count(), 1, 'Validation failed.');
-    $this->assertEqual($violations[0]->getMessage(), t('%name: may not be longer than @max characters.', ['%name' => 'UUID', '@max' => 128]));
+    $this->assertEquals($violations->count(), 1, 'Validation failed.');
+    $this->assertEquals($violations[0]->getMessage(), t('%name: may not be longer than @max characters.', ['%name' => 'UUID', '@max' => 128]));
 
     $test_entity = clone $entity;
     $langcode_key = $this->entityManager->getDefinition($entity_type)->getKey('langcode');
     $test_entity->{$langcode_key}->value = $this->randomString(13);
     $violations = $test_entity->validate();
     // This should fail on AllowedValues and Length constraints.
-    $this->assertEqual($violations->count(), 2, 'Validation failed.');
-    $this->assertEqual($violations[0]->getMessage(), t('This value is too long. It should have %limit characters or less.', ['%limit' => '12']));
-    $this->assertEqual($violations[1]->getMessage(), t('The value you selected is not a valid choice.'));
+    $this->assertEquals($violations->count(), 2, 'Validation failed.');
+    $this->assertEquals($violations[0]->getMessage(), t('This value is too long. It should have %limit characters or less.', ['%limit' => '12']));
+    $this->assertEquals($violations[1]->getMessage(), t('The value you selected is not a valid choice.'));
 
     $test_entity = clone $entity;
     $test_entity->type->value = NULL;
     $violations = $test_entity->validate();
-    $this->assertEqual($violations->count(), 1, 'Validation failed.');
-    $this->assertEqual($violations[0]->getMessage(), t('This value should not be null.'));
+    $this->assertEquals($violations->count(), 1, 'Validation failed.');
+    $this->assertEquals($violations[0]->getMessage(), t('This value should not be null.'));
 
     $test_entity = clone $entity;
     $test_entity->name->value = $this->randomString(33);
     $violations = $test_entity->validate();
-    $this->assertEqual($violations->count(), 1, 'Validation failed.');
-    $this->assertEqual($violations[0]->getMessage(), t('%name: may not be longer than @max characters.', ['%name' => 'Name', '@max' => 32]));
+    $this->assertEquals($violations->count(), 1, 'Validation failed.');
+    $this->assertEquals($violations[0]->getMessage(), t('%name: may not be longer than @max characters.', ['%name' => 'Name', '@max' => 32]));
 
     // Make sure the information provided by a violation is correct.
     $violation = $violations[0];
-    $this->assertEqual($violation->getRoot()->getValue(), $test_entity, 'Violation root is entity.');
-    $this->assertEqual($violation->getPropertyPath(), 'name.0.value', 'Violation property path is correct.');
-    $this->assertEqual($violation->getInvalidValue(), $test_entity->name->value, 'Violation contains invalid value.');
+    $this->assertEquals($violation->getRoot()->getValue(), $test_entity, 'Violation root is entity.');
+    $this->assertEquals($violation->getPropertyPath(), 'name.0.value', 'Violation property path is correct.');
+    $this->assertEquals($violation->getInvalidValue(), $test_entity->name->value, 'Violation contains invalid value.');
 
     $test_entity = clone $entity;
     $test_entity->set('user_id', 9999);
     $violations = $test_entity->validate();
-    $this->assertEqual($violations->count(), 1, 'Validation failed.');
-    $this->assertEqual($violations[0]->getMessage(), t('The referenced entity (%type: %id) does not exist.', ['%type' => 'user', '%id' => 9999]));
+    $this->assertEquals($violations->count(), 1, 'Validation failed.');
+    $this->assertEquals($violations[0]->getMessage(), t('The referenced entity (%type: %id) does not exist.', ['%type' => 'user', '%id' => 9999]));
 
     $test_entity = clone $entity;
     $test_entity->field_test_text->format = $this->randomString(33);
     $violations = $test_entity->validate();
-    $this->assertEqual($violations->count(), 1, 'Validation failed.');
-    $this->assertEqual($violations[0]->getMessage(), t('The value you selected is not a valid choice.'));
+    $this->assertEquals($violations->count(), 1, 'Validation failed.');
+    $this->assertEquals($violations[0]->getMessage(), t('The value you selected is not a valid choice.'));
 
     // Make sure the information provided by a violation is correct.
     $violation = $violations[0];
-    $this->assertEqual($violation->getRoot()->getValue(), $test_entity, 'Violation root is entity.');
-    $this->assertEqual($violation->getPropertyPath(), 'field_test_text.0.format', 'Violation property path is correct.');
-    $this->assertEqual($violation->getInvalidValue(), $test_entity->field_test_text->format, 'Violation contains invalid value.');
+    $this->assertEquals($violation->getRoot()->getValue(), $test_entity, 'Violation root is entity.');
+    $this->assertEquals($violation->getPropertyPath(), 'field_test_text.0.format', 'Violation property path is correct.');
+    $this->assertEquals($violation->getInvalidValue(), $test_entity->field_test_text->format, 'Violation contains invalid value.');
   }
 
   /**
@@ -183,21 +183,21 @@ protected function checkValidation($entity_type) {
   public function testCompositeConstraintValidation() {
     $entity = $this->createTestEntity('entity_test_composite_constraint');
     $violations = $entity->validate();
-    $this->assertEqual($violations->count(), 0);
+    $this->assertEquals($violations->count(), 0);
 
     // Trigger violation condition.
     $entity->name->value = 'test';
     $entity->type->value = 'test2';
     $violations = $entity->validate();
-    $this->assertEqual($violations->count(), 1);
+    $this->assertEquals($violations->count(), 1);
 
     // Make sure we can determine this is composite constraint.
     $constraint = $violations[0]->getConstraint();
     $this->assertTrue($constraint instanceof CompositeConstraintBase, 'Constraint is composite constraint.');
-    $this->assertEqual('type', $violations[0]->getPropertyPath());
+    $this->assertEquals('type', $violations[0]->getPropertyPath());
 
     /** @var \Drupal\Core\Entity\Plugin\Validation\Constraint\CompositeConstraintBase $constraint */
-    $this->assertEqual($constraint->coversFields(), ['name', 'type'], 'Information about covered fields can be retrieved.');
+    $this->assertEquals($constraint->coversFields(), ['name', 'type'], 'Information about covered fields can be retrieved.');
   }
 
 }
diff --git a/core/tests/Drupal/KernelTests/Core/Entity/EntityViewBuilderTest.php b/core/tests/Drupal/KernelTests/Core/Entity/EntityViewBuilderTest.php
index e1537bc809..0538b0f9b5 100644
--- a/core/tests/Drupal/KernelTests/Core/Entity/EntityViewBuilderTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Entity/EntityViewBuilderTest.php
@@ -191,7 +191,7 @@ public function testEntityViewBuilderWeight() {
     $renderer->renderRoot($view);
 
     // Check that the weight is respected.
-    $this->assertEqual($view['label']['#weight'], 20, 'The weight of a display component is respected.');
+    $this->assertEquals($view['label']['#weight'], 20, 'The weight of a display component is respected.');
   }
 
   /**
diff --git a/core/tests/Drupal/KernelTests/Core/Entity/FieldSqlStorageTest.php b/core/tests/Drupal/KernelTests/Core/Entity/FieldSqlStorageTest.php
index 7ff6caf2b1..a44dbc168b 100644
--- a/core/tests/Drupal/KernelTests/Core/Entity/FieldSqlStorageTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Entity/FieldSqlStorageTest.php
@@ -145,7 +145,7 @@ public function testFieldLoad() {
       $entity = $storage->loadRevision($revision_id);
       foreach ($values[$revision_id] as $delta => $value) {
         if ($delta < $this->fieldCardinality) {
-          $this->assertEqual($entity->{$this->fieldName}[$delta]->value, $value);
+          $this->assertEquals($entity->{$this->fieldName}[$delta]->value, $value);
         }
         else {
           $this->assertFalse(array_key_exists($delta, $entity->{$this->fieldName}));
@@ -157,7 +157,7 @@ public function testFieldLoad() {
     $entity = $storage->load($entity->id());
     foreach ($values[$revision_id] as $delta => $value) {
       if ($delta < $this->fieldCardinality) {
-        $this->assertEqual($entity->{$this->fieldName}[$delta]->value, $value);
+        $this->assertEquals($entity->{$this->fieldName}[$delta]->value, $value);
       }
       else {
         $this->assertFalse(array_key_exists($delta, $entity->{$this->fieldName}));
@@ -195,7 +195,7 @@ public function testFieldWrite() {
 
     // Read the tables and check the correct values have been stored.
     $rows = db_select($this->table, 't')->fields('t')->execute()->fetchAllAssoc('delta', \PDO::FETCH_ASSOC);
-    $this->assertEqual(count($rows), $this->fieldCardinality);
+    $this->assertEquals(count($rows), $this->fieldCardinality);
     foreach ($rows as $delta => $row) {
       $expected = [
         'bundle' => $bundle,
@@ -206,7 +206,7 @@ public function testFieldWrite() {
         'delta' => $delta,
         $this->fieldName . '_value' => $values[$delta]['value'],
       ];
-      $this->assertEqual($row, $expected, "Row $delta was stored as expected.");
+      $this->assertEquals($row, $expected, "Row $delta was stored as expected.");
     }
 
     // Test update. Add less values and check that the previous values did not
@@ -218,7 +218,7 @@ public function testFieldWrite() {
     $entity->{$this->fieldName} = $values;
     $entity->save();
     $rows = db_select($this->table, 't')->fields('t')->execute()->fetchAllAssoc('delta', \PDO::FETCH_ASSOC);
-    $this->assertEqual(count($rows), count($values));
+    $this->assertEquals(count($rows), count($values));
     foreach ($rows as $delta => $row) {
       $expected = [
         'bundle' => $bundle,
@@ -229,7 +229,7 @@ public function testFieldWrite() {
         'delta' => $delta,
         $this->fieldName . '_value' => $values[$delta]['value'],
       ];
-      $this->assertEqual($row, $expected, "Row $delta was stored as expected.");
+      $this->assertEquals($row, $expected, "Row $delta was stored as expected.");
     }
 
     // Create a new revision.
@@ -246,7 +246,7 @@ public function testFieldWrite() {
     // Check that data for both revisions are in the revision table.
     foreach ($revision_values as $revision_id => $values) {
       $rows = db_select($this->revisionTable, 't')->fields('t')->condition('revision_id', $revision_id)->execute()->fetchAllAssoc('delta', \PDO::FETCH_ASSOC);
-      $this->assertEqual(count($rows), min(count($values), $this->fieldCardinality));
+      $this->assertEquals(count($rows), min(count($values), $this->fieldCardinality));
       foreach ($rows as $delta => $row) {
         $expected = [
           'bundle' => $bundle,
@@ -257,7 +257,7 @@ public function testFieldWrite() {
           'delta' => $delta,
           $this->fieldName . '_value' => $values[$delta]['value'],
         ];
-        $this->assertEqual($row, $expected, "Row $delta was stored as expected.");
+        $this->assertEquals($row, $expected, "Row $delta was stored as expected.");
       }
     }
 
@@ -265,7 +265,7 @@ public function testFieldWrite() {
     $entity->{$this->fieldName} = NULL;
     $entity->save();
     $rows = db_select($this->table, 't')->fields('t')->execute()->fetchAllAssoc('delta', \PDO::FETCH_ASSOC);
-    $this->assertEqual(count($rows), 0);
+    $this->assertEquals(count($rows), 0);
   }
 
   /**
@@ -305,7 +305,7 @@ public function testLongNames() {
     // Load the entity back and check the values.
     $entity = $storage->load($entity->id());
     foreach ($field_names as $field_name) {
-      $this->assertEqual($entity->get($field_name)->value, $values[$field_name]);
+      $this->assertEquals($entity->get($field_name)->value, $values[$field_name]);
     }
   }
 
@@ -439,7 +439,7 @@ public function testFieldUpdateIndexesWithData() {
 
     // Verify that the tables were not dropped in the process.
     $entity = $this->container->get('entity.manager')->getStorage($entity_type)->load(1);
-    $this->assertEqual($entity->$field_name->value, 'field data', t("Index changes performed without dropping the tables"));
+    $this->assertEquals($entity->$field_name->value, 'field data', t("Index changes performed without dropping the tables"));
   }
 
   /**
@@ -461,8 +461,8 @@ public function testFieldSqlStorageForeignKeys() {
     $schema = $field_storage->getSchema();
 
     // Retrieve the field definition and check that the foreign key is in place.
-    $this->assertEqual($schema['foreign keys'][$foreign_key_name]['table'], $foreign_key_name, 'Foreign key table name preserved through CRUD');
-    $this->assertEqual($schema['foreign keys'][$foreign_key_name]['columns'][$foreign_key_name], 'id', 'Foreign key column name preserved through CRUD');
+    $this->assertEquals($schema['foreign keys'][$foreign_key_name]['table'], $foreign_key_name, 'Foreign key table name preserved through CRUD');
+    $this->assertEquals($schema['foreign keys'][$foreign_key_name]['columns'][$foreign_key_name], 'id', 'Foreign key column name preserved through CRUD');
 
     // Update the field settings, it should update the foreign key definition too.
     $foreign_key_name = 'color';
@@ -472,8 +472,8 @@ public function testFieldSqlStorageForeignKeys() {
     $schema = $field_storage->getSchema();
 
     // Check that the foreign key is in place.
-    $this->assertEqual($schema['foreign keys'][$foreign_key_name]['table'], $foreign_key_name, 'Foreign key table name modified after update');
-    $this->assertEqual($schema['foreign keys'][$foreign_key_name]['columns'][$foreign_key_name], 'id', 'Foreign key column name modified after update');
+    $this->assertEquals($schema['foreign keys'][$foreign_key_name]['table'], $foreign_key_name, 'Foreign key table name modified after update');
+    $this->assertEquals($schema['foreign keys'][$foreign_key_name]['columns'][$foreign_key_name], 'id', 'Foreign key column name modified after update');
   }
 
   /**
@@ -493,9 +493,9 @@ public function testTableNames() {
       'type' => 'test_field',
     ]);
     $expected = 'short_entity_type__short_field_name';
-    $this->assertEqual($this->tableMapping->getDedicatedDataTableName($field_storage), $expected);
+    $this->assertEquals($this->tableMapping->getDedicatedDataTableName($field_storage), $expected);
     $expected = 'short_entity_type_revision__short_field_name';
-    $this->assertEqual($this->tableMapping->getDedicatedRevisionTableName($field_storage), $expected);
+    $this->assertEquals($this->tableMapping->getDedicatedRevisionTableName($field_storage), $expected);
 
     // Short entity type, long field name
     $entity_type = 'short_entity_type';
@@ -506,9 +506,9 @@ public function testTableNames() {
       'type' => 'test_field',
     ]);
     $expected = 'short_entity_type__' . substr(hash('sha256', $field_storage->uuid()), 0, 10);
-    $this->assertEqual($this->tableMapping->getDedicatedDataTableName($field_storage), $expected);
+    $this->assertEquals($this->tableMapping->getDedicatedDataTableName($field_storage), $expected);
     $expected = 'short_entity_type_r__' . substr(hash('sha256', $field_storage->uuid()), 0, 10);
-    $this->assertEqual($this->tableMapping->getDedicatedRevisionTableName($field_storage), $expected);
+    $this->assertEquals($this->tableMapping->getDedicatedRevisionTableName($field_storage), $expected);
 
     // Long entity type, short field name
     $entity_type = 'long_entity_type_abcdefghijklmnopqrstuvwxyz';
@@ -519,9 +519,9 @@ public function testTableNames() {
       'type' => 'test_field',
     ]);
     $expected = 'long_entity_type_abcdefghijklmnopq__' . substr(hash('sha256', $field_storage->uuid()), 0, 10);
-    $this->assertEqual($this->tableMapping->getDedicatedDataTableName($field_storage), $expected);
+    $this->assertEquals($this->tableMapping->getDedicatedDataTableName($field_storage), $expected);
     $expected = 'long_entity_type_abcdefghijklmnopq_r__' . substr(hash('sha256', $field_storage->uuid()), 0, 10);
-    $this->assertEqual($this->tableMapping->getDedicatedRevisionTableName($field_storage), $expected);
+    $this->assertEquals($this->tableMapping->getDedicatedRevisionTableName($field_storage), $expected);
 
     // Long entity type and field name.
     $entity_type = 'long_entity_type_abcdefghijklmnopqrstuvwxyz';
@@ -532,9 +532,9 @@ public function testTableNames() {
       'type' => 'test_field',
     ]);
     $expected = 'long_entity_type_abcdefghijklmnopq__' . substr(hash('sha256', $field_storage->uuid()), 0, 10);
-    $this->assertEqual($this->tableMapping->getDedicatedDataTableName($field_storage), $expected);
+    $this->assertEquals($this->tableMapping->getDedicatedDataTableName($field_storage), $expected);
     $expected = 'long_entity_type_abcdefghijklmnopq_r__' . substr(hash('sha256', $field_storage->uuid()), 0, 10);
-    $this->assertEqual($this->tableMapping->getDedicatedRevisionTableName($field_storage), $expected);
+    $this->assertEquals($this->tableMapping->getDedicatedRevisionTableName($field_storage), $expected);
     // Try creating a second field and check there are no clashes.
     $field_storage2 = FieldStorageConfig::create([
       'entity_type' => $entity_type,
@@ -552,9 +552,9 @@ public function testTableNames() {
       'deleted' => TRUE,
     ]);
     $expected = 'field_deleted_data_' . substr(hash('sha256', $field_storage->uuid()), 0, 10);
-    $this->assertEqual($this->tableMapping->getDedicatedDataTableName($field_storage, TRUE), $expected);
+    $this->assertEquals($this->tableMapping->getDedicatedDataTableName($field_storage, TRUE), $expected);
     $expected = 'field_deleted_revision_' . substr(hash('sha256', $field_storage->uuid()), 0, 10);
-    $this->assertEqual($this->tableMapping->getDedicatedRevisionTableName($field_storage, TRUE), $expected);
+    $this->assertEquals($this->tableMapping->getDedicatedRevisionTableName($field_storage, TRUE), $expected);
   }
 
 }
diff --git a/core/tests/Drupal/KernelTests/Core/Entity/FieldTranslationSqlStorageTest.php b/core/tests/Drupal/KernelTests/Core/Entity/FieldTranslationSqlStorageTest.php
index c398732f3c..9275af9b58 100644
--- a/core/tests/Drupal/KernelTests/Core/Entity/FieldTranslationSqlStorageTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Entity/FieldTranslationSqlStorageTest.php
@@ -46,7 +46,7 @@ public function testFieldSqlStorage() {
     $this->toggleFieldTranslatability($entity_type, $entity_type);
     $entity = $this->reloadEntity($entity);
     foreach ([$this->fieldName, $this->untranslatableFieldName] as $field_name) {
-      $this->assertEqual($entity->get($field_name)->value, $values[$field_name], 'Field language works as expected after switching translatability.');
+      $this->assertEquals($entity->get($field_name)->value, $values[$field_name], 'Field language works as expected after switching translatability.');
     }
 
     // Test that after disabling field translatability translated values are not
@@ -60,7 +60,7 @@ public function testFieldSqlStorage() {
     $translation->save();
     $this->toggleFieldTranslatability($entity_type, $entity_type);
     $entity = $this->reloadEntity($entity);
-    $this->assertEqual($entity->getTranslation($this->langcodes[1])->get($this->fieldName)->value, $values[$this->fieldName], 'Existing field translations are not loaded for untranslatable fields.');
+    $this->assertEquals($entity->getTranslation($this->langcodes[1])->get($this->fieldName)->value, $values[$this->fieldName], 'Existing field translations are not loaded for untranslatable fields.');
   }
 
   /**
diff --git a/core/tests/Drupal/KernelTests/Core/Entity/FieldWidgetConstraintValidatorTest.php b/core/tests/Drupal/KernelTests/Core/Entity/FieldWidgetConstraintValidatorTest.php
index 041b062f45..d857748559 100644
--- a/core/tests/Drupal/KernelTests/Core/Entity/FieldWidgetConstraintValidatorTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Entity/FieldWidgetConstraintValidatorTest.php
@@ -54,7 +54,7 @@ public function testValidation() {
     $display->validateFormValues($entity, $form, $form_state);
 
     $errors = $form_state->getErrors();
-    $this->assertEqual($errors['name'], 'Widget constraint has failed.', 'Constraint violation is generated correctly');
+    $this->assertEquals($errors['name'], 'Widget constraint has failed.', 'Constraint violation is generated correctly');
   }
 
   /**
@@ -135,7 +135,7 @@ public function testValidationWithCompositeConstraint() {
     $errors = $this->getErrorsForEntity($entity, ['name']);
     $this->assertFalse(isset($errors['name']));
     $this->assertTrue(isset($errors['type']));
-    $this->assertEqual($errors['type'], SafeMarkup::format('The validation failed because the value conflicts with the value in %field_name, which you cannot access.', ['%field_name' => 'name']));
+    $this->assertEquals($errors['type'], SafeMarkup::format('The validation failed because the value conflicts with the value in %field_name, which you cannot access.', ['%field_name' => 'name']));
   }
 
   /**
@@ -148,11 +148,11 @@ public function testEntityLevelConstraintValidation() {
     $entity->save();
 
     $errors = $this->getErrorsForEntity($entity);
-    $this->assertEqual($errors[''], 'Entity level validation');
+    $this->assertEquals($errors[''], 'Entity level validation');
 
     $entity->name->value = 'entity-level-violation-with-path';
     $errors = $this->getErrorsForEntity($entity);
-    $this->assertEqual($errors['test][form][element'], 'Entity level validation');
+    $this->assertEquals($errors['test][form][element'], 'Entity level validation');
   }
 
 }
diff --git a/core/tests/Drupal/KernelTests/Core/Entity/RevisionableContentEntityBaseTest.php b/core/tests/Drupal/KernelTests/Core/Entity/RevisionableContentEntityBaseTest.php
index 73b3254630..9fb92b02aa 100644
--- a/core/tests/Drupal/KernelTests/Core/Entity/RevisionableContentEntityBaseTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Entity/RevisionableContentEntityBaseTest.php
@@ -78,7 +78,7 @@ public function testRevisionableContentEntity() {
     }
     $this->assertItemsTableCount(6, $definition);
 
-    $this->assertEqual(6, count($revision_ids));
+    $this->assertEquals(6, count($revision_ids));
 
     // Delete the first 3 revisions.
     foreach (range(0, 2) as $key) {
@@ -98,10 +98,10 @@ public function testRevisionableContentEntity() {
    *   The definition and metada of the entity being tested.
    */
   protected function assertItemsTableCount($count, EntityTypeInterface $definition) {
-    $this->assertEqual(1, db_query('SELECT COUNT(*) FROM {' . $definition->getBaseTable() . '}')->fetchField());
-    $this->assertEqual(1, db_query('SELECT COUNT(*) FROM {' . $definition->getDataTable() . '}')->fetchField());
-    $this->assertEqual($count, db_query('SELECT COUNT(*) FROM {' . $definition->getRevisionTable() . '}')->fetchField());
-    $this->assertEqual($count, db_query('SELECT COUNT(*) FROM {' . $definition->getRevisionDataTable() . '}')->fetchField());
+    $this->assertEquals(1, db_query('SELECT COUNT(*) FROM {' . $definition->getBaseTable() . '}')->fetchField());
+    $this->assertEquals(1, db_query('SELECT COUNT(*) FROM {' . $definition->getDataTable() . '}')->fetchField());
+    $this->assertEquals($count, db_query('SELECT COUNT(*) FROM {' . $definition->getRevisionTable() . '}')->fetchField());
+    $this->assertEquals($count, db_query('SELECT COUNT(*) FROM {' . $definition->getRevisionDataTable() . '}')->fetchField());
   }
 
   /**
diff --git a/core/tests/Drupal/KernelTests/Core/Entity/ValidReferenceConstraintValidatorTest.php b/core/tests/Drupal/KernelTests/Core/Entity/ValidReferenceConstraintValidatorTest.php
index 3f182c91e8..6e6b964038 100644
--- a/core/tests/Drupal/KernelTests/Core/Entity/ValidReferenceConstraintValidatorTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Entity/ValidReferenceConstraintValidatorTest.php
@@ -76,11 +76,11 @@ public function testValidation() {
 
     // Make sure the information provided by a violation is correct.
     $violation = $violations[0];
-    $this->assertEqual($violation->getMessage(), t('The referenced entity (%type: %id) does not exist.', [
+    $this->assertEquals($violation->getMessage(), t('The referenced entity (%type: %id) does not exist.', [
       '%type' => 'user',
       '%id' => $entity->id(),
     ]), 'The message for invalid value is correct.');
-    $this->assertEqual($violation->getRoot(), $typed_data, 'Violation root is correct.');
+    $this->assertEquals($violation->getRoot(), $typed_data, 'Violation root is correct.');
   }
 
   /**
diff --git a/core/tests/Drupal/KernelTests/Core/Extension/ModuleImplementsAlterTest.php b/core/tests/Drupal/KernelTests/Core/Extension/ModuleImplementsAlterTest.php
index 7d29a26124..7c9ac9cfd1 100644
--- a/core/tests/Drupal/KernelTests/Core/Extension/ModuleImplementsAlterTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Extension/ModuleImplementsAlterTest.php
@@ -85,7 +85,7 @@ public function testModuleImplementsAlterNonExistingImplementation() {
     }
     catch (\RuntimeException $e) {
       $this->pass('An exception should be thrown for the non-existing implementation.');
-      $this->assertEqual($e->getMessage(), 'An invalid implementation module_test_unimplemented_test_hook was added by hook_module_implements_alter()');
+      $this->assertEquals($e->getMessage(), 'An invalid implementation module_test_unimplemented_test_hook was added by hook_module_implements_alter()');
     }
   }
 
diff --git a/core/tests/Drupal/KernelTests/Core/Field/FieldAccessTest.php b/core/tests/Drupal/KernelTests/Core/Field/FieldAccessTest.php
index f273029bf2..ed1d23e66f 100644
--- a/core/tests/Drupal/KernelTests/Core/Field/FieldAccessTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Field/FieldAccessTest.php
@@ -65,15 +65,15 @@ public function testFieldAccess() {
 
     $this->assertFalse($entity->field_test_text->access('view', $account), 'Access to the field was denied.');
     $expected = AccessResult::forbidden()->addCacheableDependency($entity);
-    $this->assertEqual($expected, $entity->field_test_text->access('view', $account, TRUE), 'Access to the field was denied.');
+    $this->assertEquals($expected, $entity->field_test_text->access('view', $account, TRUE), 'Access to the field was denied.');
 
     $entity->field_test_text = 'access alter value';
     $this->assertFalse($entity->field_test_text->access('view', $account), 'Access to the field was denied.');
-    $this->assertEqual($expected, $entity->field_test_text->access('view', $account, TRUE), 'Access to the field was denied.');
+    $this->assertEquals($expected, $entity->field_test_text->access('view', $account, TRUE), 'Access to the field was denied.');
 
     $entity->field_test_text = 'standard value';
     $this->assertTrue($entity->field_test_text->access('view', $account), 'Access to the field was granted.');
-    $this->assertEqual(AccessResult::allowed(), $entity->field_test_text->access('view', $account, TRUE), 'Access to the field was granted.');
+    $this->assertEquals(AccessResult::allowed(), $entity->field_test_text->access('view', $account, TRUE), 'Access to the field was granted.');
   }
 
 }
diff --git a/core/tests/Drupal/KernelTests/Core/Field/FieldItemTest.php b/core/tests/Drupal/KernelTests/Core/Field/FieldItemTest.php
index e14fc63711..86be84e27e 100644
--- a/core/tests/Drupal/KernelTests/Core/Field/FieldItemTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Field/FieldItemTest.php
@@ -94,11 +94,11 @@ protected function assertSavedFieldItemValue(EntityTest $entity, $expected_value
     $entity->setNewRevision(TRUE);
     $entity->save();
     $base_field_expected_value = str_replace($this->fieldName, 'field_test_item', $expected_value);
-    $result = $this->assertEqual($entity->field_test_item->value, $base_field_expected_value);
-    $result = $result && $this->assertEqual($entity->{$this->fieldName}->value, $expected_value);
+    $result = $this->assertEquals($entity->field_test_item->value, $base_field_expected_value);
+    $result = $result && $this->assertEquals($entity->{$this->fieldName}->value, $expected_value);
     $entity = $this->reloadEntity($entity);
-    $result = $result && $this->assertEqual($entity->field_test_item->value, $base_field_expected_value);
-    $result = $result && $this->assertEqual($entity->{$this->fieldName}->value, $expected_value);
+    $result = $result && $this->assertEquals($entity->field_test_item->value, $base_field_expected_value);
+    $result = $result && $this->assertEquals($entity->{$this->fieldName}->value, $expected_value);
     return $result;
   }
 
diff --git a/core/tests/Drupal/KernelTests/Core/Field/FieldSettingsTest.php b/core/tests/Drupal/KernelTests/Core/Field/FieldSettingsTest.php
index 590a96cd5f..cdaf85eece 100644
--- a/core/tests/Drupal/KernelTests/Core/Field/FieldSettingsTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Field/FieldSettingsTest.php
@@ -37,13 +37,13 @@ public function testBaseFieldSettings() {
       'test_field_setting' => 'dummy test string',
       'translatable_field_setting' => 'a translatable field setting',
     ];
-    $this->assertEqual($base_field->getSettings(), $expected_settings);
+    $this->assertEquals($base_field->getSettings(), $expected_settings);
 
     // Change one single setting using setSettings(), and check that the other
     // expected settings are still present.
     $expected_settings['test_field_setting'] = 'another test string';
     $base_field->setSettings(['test_field_setting' => $expected_settings['test_field_setting']]);
-    $this->assertEqual($base_field->getSettings(), $expected_settings);
+    $this->assertEquals($base_field->getSettings(), $expected_settings);
   }
 
   /**
@@ -92,13 +92,13 @@ public function testConfigurableFieldStorageSettings() {
       'unchangeable' => 'an unchangeable field storage setting',
       'translatable_storage_setting' => 'a translatable field storage setting',
     ];
-    $this->assertEqual($field_storage->getSettings(), $expected_settings);
+    $this->assertEquals($field_storage->getSettings(), $expected_settings);
 
     // Change one single setting using setSettings(), and check that the other
     // expected settings are still present.
     $expected_settings['test_field_storage_setting'] = 'another test string';
     $field_storage->setSettings(['test_field_storage_setting' => $expected_settings['test_field_storage_setting']]);
-    $this->assertEqual($field_storage->getSettings(), $expected_settings);
+    $this->assertEquals($field_storage->getSettings(), $expected_settings);
   }
 
   /**
@@ -131,13 +131,13 @@ public function testConfigurableFieldSettings() {
       'translatable_field_setting' => 'a translatable field setting',
       'field_setting_from_config_data' => 'TRUE',
     ];
-    $this->assertEqual($field->getSettings(), $expected_settings);
+    $this->assertEquals($field->getSettings(), $expected_settings);
 
     // Change one single setting using setSettings(), and check that the other
     // expected settings are still present.
     $expected_settings['test_field_setting'] = 'another test string';
     $field->setSettings(['test_field_setting' => $expected_settings['test_field_setting']]);
-    $this->assertEqual($field->getSettings(), $expected_settings);
+    $this->assertEquals($field->getSettings(), $expected_settings);
   }
 
 }
diff --git a/core/tests/Drupal/KernelTests/Core/File/DirectoryTest.php b/core/tests/Drupal/KernelTests/Core/File/DirectoryTest.php
index 467d9262e1..6f3cb84d94 100644
--- a/core/tests/Drupal/KernelTests/Core/File/DirectoryTest.php
+++ b/core/tests/Drupal/KernelTests/Core/File/DirectoryTest.php
@@ -92,7 +92,7 @@ public function testFileCheckDirectoryHandling() {
     $this->assertTrue(is_file(file_default_scheme() . '://.htaccess'), 'Successfully re-created the .htaccess file in the files directory.', 'File');
     // Verify contents of .htaccess file.
     $file = file_get_contents(file_default_scheme() . '://.htaccess');
-    $this->assertEqual($file, FileStorage::htaccessLines(FALSE), 'The .htaccess file contains the proper content.', 'File');
+    $this->assertEquals($file, FileStorage::htaccessLines(FALSE), 'The .htaccess file contains the proper content.', 'File');
   }
 
   /**
@@ -106,14 +106,14 @@ public function testFileCreateNewFilepath() {
     $directory = 'core/misc';
     $original = $directory . '/' . $basename;
     $path = file_create_filename($basename, $directory);
-    $this->assertEqual($path, $original, format_string('New filepath %new equals %original.', ['%new' => $path, '%original' => $original]), 'File');
+    $this->assertEquals($path, $original, format_string('New filepath %new equals %original.', ['%new' => $path, '%original' => $original]), 'File');
 
     // Then we test against a file that already exists within that directory.
     $basename = 'druplicon.png';
     $original = $directory . '/' . $basename;
     $expected = $directory . '/druplicon_0.png';
     $path = file_create_filename($basename, $directory);
-    $this->assertEqual($path, $expected, format_string('Creating a new filepath from %original equals %new (expected %expected).', ['%new' => $path, '%original' => $original, '%expected' => $expected]), 'File');
+    $this->assertEquals($path, $expected, format_string('Creating a new filepath from %original equals %new (expected %expected).', ['%new' => $path, '%original' => $original, '%expected' => $expected]), 'File');
 
     // @TODO: Finally we copy a file into a directory several times, to ensure a properly iterating filename suffix.
   }
@@ -134,19 +134,19 @@ public function testFileDestination() {
     // First test for non-existent file.
     $destination = 'core/misc/xyz.txt';
     $path = file_destination($destination, FILE_EXISTS_REPLACE);
-    $this->assertEqual($path, $destination, 'Non-existing filepath destination is correct with FILE_EXISTS_REPLACE.', 'File');
+    $this->assertEquals($path, $destination, 'Non-existing filepath destination is correct with FILE_EXISTS_REPLACE.', 'File');
     $path = file_destination($destination, FILE_EXISTS_RENAME);
-    $this->assertEqual($path, $destination, 'Non-existing filepath destination is correct with FILE_EXISTS_RENAME.', 'File');
+    $this->assertEquals($path, $destination, 'Non-existing filepath destination is correct with FILE_EXISTS_RENAME.', 'File');
     $path = file_destination($destination, FILE_EXISTS_ERROR);
-    $this->assertEqual($path, $destination, 'Non-existing filepath destination is correct with FILE_EXISTS_ERROR.', 'File');
+    $this->assertEquals($path, $destination, 'Non-existing filepath destination is correct with FILE_EXISTS_ERROR.', 'File');
 
     $destination = 'core/misc/druplicon.png';
     $path = file_destination($destination, FILE_EXISTS_REPLACE);
-    $this->assertEqual($path, $destination, 'Existing filepath destination remains the same with FILE_EXISTS_REPLACE.', 'File');
+    $this->assertEquals($path, $destination, 'Existing filepath destination remains the same with FILE_EXISTS_REPLACE.', 'File');
     $path = file_destination($destination, FILE_EXISTS_RENAME);
     $this->assertNotEqual($path, $destination, 'A new filepath destination is created when filepath destination already exists with FILE_EXISTS_RENAME.', 'File');
     $path = file_destination($destination, FILE_EXISTS_ERROR);
-    $this->assertEqual($path, FALSE, 'An error is returned when filepath destination already exists with FILE_EXISTS_ERROR.', 'File');
+    $this->assertEquals($path, FALSE, 'An error is returned when filepath destination already exists with FILE_EXISTS_ERROR.', 'File');
   }
 
   /**
@@ -157,8 +157,8 @@ public function testFileDirectoryTemp() {
     $config = $this->config('system.file');
     $config->set('path.temporary', '')->save();
     $tmp_directory = file_directory_temp();
-    $this->assertEqual(empty($tmp_directory), FALSE, 'file_directory_temp() returned a non-empty value.');
-    $this->assertEqual($config->get('path.temporary'), $tmp_directory);
+    $this->assertEquals(empty($tmp_directory), FALSE, 'file_directory_temp() returned a non-empty value.');
+    $this->assertEquals($config->get('path.temporary'), $tmp_directory);
   }
 
   /**
diff --git a/core/tests/Drupal/KernelTests/Core/File/FileTestBase.php b/core/tests/Drupal/KernelTests/Core/File/FileTestBase.php
index 92612ae7fd..3fb4bd70dd 100644
--- a/core/tests/Drupal/KernelTests/Core/File/FileTestBase.php
+++ b/core/tests/Drupal/KernelTests/Core/File/FileTestBase.php
@@ -111,7 +111,7 @@ public function assertFilePermissions($filepath, $expected_mode, $message = NULL
     if (!isset($message)) {
       $message = t('Expected file permission to be %expected, actually were %actual.', ['%actual' => decoct($actual_mode), '%expected' => decoct($expected_mode)]);
     }
-    $this->assertEqual($actual_mode, $expected_mode, $message);
+    $this->assertEquals($actual_mode, $expected_mode, $message);
   }
 
   /**
@@ -147,7 +147,7 @@ public function assertDirectoryPermissions($directory, $expected_mode, $message
     if (!isset($message)) {
       $message = t('Expected directory permission to be %expected, actually were %actual.', ['%actual' => decoct($actual_mode), '%expected' => decoct($expected_mode)]);
     }
-    $this->assertEqual($actual_mode, $expected_mode, $message);
+    $this->assertEquals($actual_mode, $expected_mode, $message);
   }
 
   /**
diff --git a/core/tests/Drupal/KernelTests/Core/File/NameMungingTest.php b/core/tests/Drupal/KernelTests/Core/File/NameMungingTest.php
index 2e5d09473a..60745ad01d 100644
--- a/core/tests/Drupal/KernelTests/Core/File/NameMungingTest.php
+++ b/core/tests/Drupal/KernelTests/Core/File/NameMungingTest.php
@@ -49,7 +49,7 @@ public function testMunging() {
   public function testMungeNullByte() {
     $prefix = $this->randomMachineName();
     $filename = $prefix . '.' . $this->badExtension . "\0.txt";
-    $this->assertEqual(file_munge_filename($filename, ''), $prefix . '.' . $this->badExtension . '_.txt', 'A filename with a null byte is correctly munged to remove the null byte.');
+    $this->assertEquals(file_munge_filename($filename, ''), $prefix . '.' . $this->badExtension . '_.txt', 'A filename with a null byte is correctly munged to remove the null byte.');
   }
 
   /**
diff --git a/core/tests/Drupal/KernelTests/Core/File/ScanDirectoryTest.php b/core/tests/Drupal/KernelTests/Core/File/ScanDirectoryTest.php
index 0bd546bbef..5ce8c693ad 100644
--- a/core/tests/Drupal/KernelTests/Core/File/ScanDirectoryTest.php
+++ b/core/tests/Drupal/KernelTests/Core/File/ScanDirectoryTest.php
@@ -38,21 +38,21 @@ public function testReturn() {
     // passed to the callback.
     $all_files = file_scan_directory($this->path, '/^javascript-/');
     ksort($all_files);
-    $this->assertEqual(2, count($all_files), 'Found two, expected javascript files.');
+    $this->assertEquals(2, count($all_files), 'Found two, expected javascript files.');
 
     // Check the first file.
     $file = reset($all_files);
-    $this->assertEqual(key($all_files), $file->uri, 'Correct array key was used for the first returned file.');
-    $this->assertEqual($file->uri, $this->path . '/javascript-1.txt', 'First file name was set correctly.');
-    $this->assertEqual($file->filename, 'javascript-1.txt', 'First basename was set correctly');
-    $this->assertEqual($file->name, 'javascript-1', 'First name was set correctly.');
+    $this->assertEquals(key($all_files), $file->uri, 'Correct array key was used for the first returned file.');
+    $this->assertEquals($file->uri, $this->path . '/javascript-1.txt', 'First file name was set correctly.');
+    $this->assertEquals($file->filename, 'javascript-1.txt', 'First basename was set correctly');
+    $this->assertEquals($file->name, 'javascript-1', 'First name was set correctly.');
 
     // Check the second file.
     $file = next($all_files);
-    $this->assertEqual(key($all_files), $file->uri, 'Correct array key was used for the second returned file.');
-    $this->assertEqual($file->uri, $this->path . '/javascript-2.script', 'Second file name was set correctly.');
-    $this->assertEqual($file->filename, 'javascript-2.script', 'Second basename was set correctly');
-    $this->assertEqual($file->name, 'javascript-2', 'Second name was set correctly.');
+    $this->assertEquals(key($all_files), $file->uri, 'Correct array key was used for the second returned file.');
+    $this->assertEquals($file->uri, $this->path . '/javascript-2.script', 'Second file name was set correctly.');
+    $this->assertEquals($file->filename, 'javascript-2.script', 'Second basename was set correctly');
+    $this->assertEquals($file->name, 'javascript-2', 'Second name was set correctly.');
   }
 
   /**
@@ -62,18 +62,18 @@ public function testOptionCallback() {
 
     // When nothing is matched nothing should be passed to the callback.
     $all_files = file_scan_directory($this->path, '/^NONEXISTINGFILENAME/', ['callback' => 'file_test_file_scan_callback']);
-    $this->assertEqual(0, count($all_files), 'No files were found.');
+    $this->assertEquals(0, count($all_files), 'No files were found.');
     $results = file_test_file_scan_callback();
     file_test_file_scan_callback_reset();
-    $this->assertEqual(0, count($results), 'No files were passed to the callback.');
+    $this->assertEquals(0, count($results), 'No files were passed to the callback.');
 
     // Grab a listing of all the JavaScript files and check that they're
     // passed to the callback.
     $all_files = file_scan_directory($this->path, '/^javascript-/', ['callback' => 'file_test_file_scan_callback']);
-    $this->assertEqual(2, count($all_files), 'Found two, expected javascript files.');
+    $this->assertEquals(2, count($all_files), 'Found two, expected javascript files.');
     $results = file_test_file_scan_callback();
     file_test_file_scan_callback_reset();
-    $this->assertEqual(2, count($results), 'Files were passed to the callback.');
+    $this->assertEquals(2, count($results), 'Files were passed to the callback.');
   }
 
   /**
@@ -82,11 +82,11 @@ public function testOptionCallback() {
   public function testOptionNoMask() {
     // Grab a listing of all the JavaScript files.
     $all_files = file_scan_directory($this->path, '/^javascript-/');
-    $this->assertEqual(2, count($all_files), 'Found two, expected javascript files.');
+    $this->assertEquals(2, count($all_files), 'Found two, expected javascript files.');
 
     // Now use the nomask parameter to filter out the .script file.
     $filtered_files = file_scan_directory($this->path, '/^javascript-/', ['nomask' => '/.script$/']);
-    $this->assertEqual(1, count($filtered_files), 'Filtered correctly.');
+    $this->assertEquals(1, count($filtered_files), 'Filtered correctly.');
   }
 
   /**
@@ -97,25 +97,25 @@ public function testOptionKey() {
     $expected = [$this->path . '/javascript-1.txt', $this->path . '/javascript-2.script'];
     $actual = array_keys(file_scan_directory($this->path, '/^javascript-/', ['key' => 'filepath']));
     sort($actual);
-    $this->assertEqual($expected, $actual, 'Returned the correct values for the filename key.');
+    $this->assertEquals($expected, $actual, 'Returned the correct values for the filename key.');
 
     // "basename", for the basename of the file.
     $expected = ['javascript-1.txt', 'javascript-2.script'];
     $actual = array_keys(file_scan_directory($this->path, '/^javascript-/', ['key' => 'filename']));
     sort($actual);
-    $this->assertEqual($expected, $actual, 'Returned the correct values for the basename key.');
+    $this->assertEquals($expected, $actual, 'Returned the correct values for the basename key.');
 
     // "name" for the name of the file without an extension.
     $expected = ['javascript-1', 'javascript-2'];
     $actual = array_keys(file_scan_directory($this->path, '/^javascript-/', ['key' => 'name']));
     sort($actual);
-    $this->assertEqual($expected, $actual, 'Returned the correct values for the name key.');
+    $this->assertEquals($expected, $actual, 'Returned the correct values for the name key.');
 
     // Invalid option that should default back to "filename".
     $expected = [$this->path . '/javascript-1.txt', $this->path . '/javascript-2.script'];
     $actual = array_keys(file_scan_directory($this->path, '/^javascript-/', ['key' => 'INVALID']));
     sort($actual);
-    $this->assertEqual($expected, $actual, 'An invalid key defaulted back to the default.');
+    $this->assertEquals($expected, $actual, 'An invalid key defaulted back to the default.');
   }
 
   /**
@@ -126,7 +126,7 @@ public function testOptionRecurse() {
     $this->assertTrue(empty($files), "Without recursion couldn't find javascript files.");
 
     $files = file_scan_directory($this->path . '/..', '/^javascript-/', ['recurse' => TRUE]);
-    $this->assertEqual(2, count($files), 'With recursion we found the expected javascript files.');
+    $this->assertEquals(2, count($files), 'With recursion we found the expected javascript files.');
   }
 
 
@@ -136,7 +136,7 @@ public function testOptionRecurse() {
    */
   public function testOptionMinDepth() {
     $files = file_scan_directory($this->path, '/^javascript-/', ['min_depth' => 0]);
-    $this->assertEqual(2, count($files), 'No minimum-depth gets files in current directory.');
+    $this->assertEquals(2, count($files), 'No minimum-depth gets files in current directory.');
 
     $files = file_scan_directory($this->path, '/^javascript-/', ['min_depth' => 1]);
     $this->assertTrue(empty($files), 'Minimum-depth of 1 successfully excludes files from current directory.');
diff --git a/core/tests/Drupal/KernelTests/Core/File/StreamWrapperTest.php b/core/tests/Drupal/KernelTests/Core/File/StreamWrapperTest.php
index 6c18b6654c..4b2b6b1003 100644
--- a/core/tests/Drupal/KernelTests/Core/File/StreamWrapperTest.php
+++ b/core/tests/Drupal/KernelTests/Core/File/StreamWrapperTest.php
@@ -49,9 +49,9 @@ public function setUp() {
    */
   public function testGetClassName() {
     // Check the dummy scheme.
-    $this->assertEqual($this->classname, \Drupal::service('stream_wrapper_manager')->getClass($this->scheme), 'Got correct class name for dummy scheme.');
+    $this->assertEquals($this->classname, \Drupal::service('stream_wrapper_manager')->getClass($this->scheme), 'Got correct class name for dummy scheme.');
     // Check core's scheme.
-    $this->assertEqual('Drupal\Core\StreamWrapper\PublicStream', \Drupal::service('stream_wrapper_manager')->getClass('public'), 'Got correct class name for public scheme.');
+    $this->assertEquals('Drupal\Core\StreamWrapper\PublicStream', \Drupal::service('stream_wrapper_manager')->getClass('public'), 'Got correct class name for public scheme.');
   }
 
   /**
@@ -59,10 +59,10 @@ public function testGetClassName() {
    */
   public function testGetInstanceByScheme() {
     $instance = \Drupal::service('stream_wrapper_manager')->getViaScheme($this->scheme);
-    $this->assertEqual($this->classname, get_class($instance), 'Got correct class type for dummy scheme.');
+    $this->assertEquals($this->classname, get_class($instance), 'Got correct class type for dummy scheme.');
 
     $instance = \Drupal::service('stream_wrapper_manager')->getViaScheme('public');
-    $this->assertEqual('Drupal\Core\StreamWrapper\PublicStream', get_class($instance), 'Got correct class type for public scheme.');
+    $this->assertEquals('Drupal\Core\StreamWrapper\PublicStream', get_class($instance), 'Got correct class type for public scheme.');
   }
 
   /**
@@ -72,25 +72,25 @@ public function testUriFunctions() {
     $config = $this->config('system.file');
 
     $instance = \Drupal::service('stream_wrapper_manager')->getViaUri($this->scheme . '://foo');
-    $this->assertEqual($this->classname, get_class($instance), 'Got correct class type for dummy URI.');
+    $this->assertEquals($this->classname, get_class($instance), 'Got correct class type for dummy URI.');
 
     $instance = \Drupal::service('stream_wrapper_manager')->getViaUri('public://foo');
-    $this->assertEqual('Drupal\Core\StreamWrapper\PublicStream', get_class($instance), 'Got correct class type for public URI.');
+    $this->assertEquals('Drupal\Core\StreamWrapper\PublicStream', get_class($instance), 'Got correct class type for public URI.');
 
     // Test file_uri_target().
-    $this->assertEqual(file_uri_target('public://foo/bar.txt'), 'foo/bar.txt', 'Got a valid stream target from public://foo/bar.txt.');
-    $this->assertEqual(file_uri_target('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg=='), 'image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg==', t('Got a valid stream target from a data URI.'));
+    $this->assertEquals(file_uri_target('public://foo/bar.txt'), 'foo/bar.txt', 'Got a valid stream target from public://foo/bar.txt.');
+    $this->assertEquals(file_uri_target('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg=='), 'image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg==', t('Got a valid stream target from a data URI.'));
     $this->assertFalse(file_uri_target('foo/bar.txt'), 'foo/bar.txt is not a valid stream.');
     $this->assertFalse(file_uri_target('public://'), 'public:// has no target.');
     $this->assertFalse(file_uri_target('data:'), 'data: has no target.');
 
     // Test file_build_uri() and
     // Drupal\Core\StreamWrapper\LocalStream::getDirectoryPath().
-    $this->assertEqual(file_build_uri('foo/bar.txt'), 'public://foo/bar.txt', 'Expected scheme was added.');
-    $this->assertEqual(\Drupal::service('stream_wrapper_manager')->getViaScheme('public')->getDirectoryPath(), PublicStream::basePath(), 'Expected default directory path was returned.');
-    $this->assertEqual(\Drupal::service('stream_wrapper_manager')->getViaScheme('temporary')->getDirectoryPath(), $config->get('path.temporary'), 'Expected temporary directory path was returned.');
+    $this->assertEquals(file_build_uri('foo/bar.txt'), 'public://foo/bar.txt', 'Expected scheme was added.');
+    $this->assertEquals(\Drupal::service('stream_wrapper_manager')->getViaScheme('public')->getDirectoryPath(), PublicStream::basePath(), 'Expected default directory path was returned.');
+    $this->assertEquals(\Drupal::service('stream_wrapper_manager')->getViaScheme('temporary')->getDirectoryPath(), $config->get('path.temporary'), 'Expected temporary directory path was returned.');
     $config->set('default_scheme', 'private')->save();
-    $this->assertEqual(file_build_uri('foo/bar.txt'), 'private://foo/bar.txt', 'Got a valid URI from foo/bar.txt.');
+    $this->assertEquals(file_build_uri('foo/bar.txt'), 'private://foo/bar.txt', 'Got a valid URI from foo/bar.txt.');
 
     // Test file_create_url()
     // TemporaryStream::getExternalUrl() uses Url::fromRoute(), which needs
@@ -116,18 +116,18 @@ public function testFileFunctions() {
     $this->assertFalse(@stream_set_blocking($handle, 0), 'Unable to set to non blocking using a local stream wrapper.');
     $this->assertFalse(@stream_set_blocking($handle, 1), 'Unable to set to blocking using a local stream wrapper.');
     $this->assertFalse(@stream_set_timeout($handle, 1), 'Unable to set read time out using a local stream wrapper.');
-    $this->assertEqual(-1 /*EOF*/, @stream_set_write_buffer($handle, 512), 'Unable to set write buffer using a local stream wrapper.');
+    $this->assertEquals(-1 /*EOF*/, @stream_set_write_buffer($handle, 512), 'Unable to set write buffer using a local stream wrapper.');
 
     // This will test stream_cast().
     $read = [$handle];
     $write = NULL;
     $except = NULL;
-    $this->assertEqual(1, stream_select($read, $write, $except, 0), 'Able to cast a stream via stream_select.');
+    $this->assertEquals(1, stream_select($read, $write, $except, 0), 'Able to cast a stream via stream_select.');
 
     // This will test stream_truncate().
-    $this->assertEqual(1, ftruncate($handle, 0), 'Able to truncate a stream via ftruncate().');
+    $this->assertEquals(1, ftruncate($handle, 0), 'Able to truncate a stream via ftruncate().');
     fclose($handle);
-    $this->assertEqual(0, filesize($filename), 'Able to truncate a stream.');
+    $this->assertEquals(0, filesize($filename), 'Able to truncate a stream.');
 
     // Cleanup.
     unlink($filename);
@@ -137,8 +137,8 @@ public function testFileFunctions() {
    * Test the scheme functions.
    */
   public function testGetValidStreamScheme() {
-    $this->assertEqual('foo', file_uri_scheme('foo://pork//chops'), 'Got the correct scheme from foo://asdf');
-    $this->assertEqual('data', file_uri_scheme('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg=='), 'Got the correct scheme from a data URI.');
+    $this->assertEquals('foo', file_uri_scheme('foo://pork//chops'), 'Got the correct scheme from foo://asdf');
+    $this->assertEquals('data', file_uri_scheme('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg=='), 'Got the correct scheme from a data URI.');
     $this->assertFalse(file_uri_scheme('foo/bar.txt'), 'foo/bar.txt is not a valid stream.');
     $this->assertTrue(file_stream_wrapper_valid_scheme(file_uri_scheme('public://asdf')), 'Got a valid stream scheme from public://asdf');
     $this->assertFalse(file_stream_wrapper_valid_scheme(file_uri_scheme('foo://asdf')), 'Did not get a valid stream scheme from foo://asdf');
diff --git a/core/tests/Drupal/KernelTests/Core/File/UnmanagedCopyTest.php b/core/tests/Drupal/KernelTests/Core/File/UnmanagedCopyTest.php
index d3c5cd4e62..de10705394 100644
--- a/core/tests/Drupal/KernelTests/Core/File/UnmanagedCopyTest.php
+++ b/core/tests/Drupal/KernelTests/Core/File/UnmanagedCopyTest.php
@@ -22,7 +22,7 @@ public function testNormal() {
     $desired_filepath = 'public://' . $this->randomMachineName();
     $new_filepath = file_unmanaged_copy($uri, $desired_filepath, FILE_EXISTS_ERROR);
     $this->assertTrue($new_filepath, 'Copy was successful.');
-    $this->assertEqual($new_filepath, $desired_filepath, 'Returned expected filepath.');
+    $this->assertEquals($new_filepath, $desired_filepath, 'Returned expected filepath.');
     $this->assertTrue(file_exists($uri), 'Original file remains.');
     $this->assertTrue(file_exists($new_filepath), 'New file exists.');
     $this->assertFilePermissions($new_filepath, Settings::get('file_chmod_file', FileSystem::CHMOD_FILE));
diff --git a/core/tests/Drupal/KernelTests/Core/File/UnmanagedMoveTest.php b/core/tests/Drupal/KernelTests/Core/File/UnmanagedMoveTest.php
index 8619a1507d..ed2154abcb 100644
--- a/core/tests/Drupal/KernelTests/Core/File/UnmanagedMoveTest.php
+++ b/core/tests/Drupal/KernelTests/Core/File/UnmanagedMoveTest.php
@@ -22,7 +22,7 @@ public function testNormal() {
     $desired_filepath = 'public://' . $this->randomMachineName();
     $new_filepath = file_unmanaged_move($uri, $desired_filepath, FILE_EXISTS_ERROR);
     $this->assertTrue($new_filepath, 'Move was successful.');
-    $this->assertEqual($new_filepath, $desired_filepath, 'Returned expected filepath.');
+    $this->assertEquals($new_filepath, $desired_filepath, 'Returned expected filepath.');
     $this->assertTrue(file_exists($new_filepath), 'File exists at the new location.');
     $this->assertFalse(file_exists($uri), 'No file remains at the old location.');
     $this->assertFilePermissions($new_filepath, Settings::get('file_chmod_file', FileSystem::CHMOD_FILE));
diff --git a/core/tests/Drupal/KernelTests/Core/File/UnmanagedSaveDataTest.php b/core/tests/Drupal/KernelTests/Core/File/UnmanagedSaveDataTest.php
index 5493323388..f4b637396d 100644
--- a/core/tests/Drupal/KernelTests/Core/File/UnmanagedSaveDataTest.php
+++ b/core/tests/Drupal/KernelTests/Core/File/UnmanagedSaveDataTest.php
@@ -18,14 +18,14 @@ public function testFileSaveData() {
     // No filename.
     $filepath = file_unmanaged_save_data($contents);
     $this->assertTrue($filepath, 'Unnamed file saved correctly.');
-    $this->assertEqual(file_uri_scheme($filepath), file_default_scheme(), "File was placed in Drupal's files directory.");
-    $this->assertEqual($contents, file_get_contents($filepath), 'Contents of the file are correct.');
+    $this->assertEquals(file_uri_scheme($filepath), file_default_scheme(), "File was placed in Drupal's files directory.");
+    $this->assertEquals($contents, file_get_contents($filepath), 'Contents of the file are correct.');
 
     // Provide a filename.
     $filepath = file_unmanaged_save_data($contents, 'public://asdf.txt', FILE_EXISTS_REPLACE);
     $this->assertTrue($filepath, 'Unnamed file saved correctly.');
-    $this->assertEqual('asdf.txt', drupal_basename($filepath), 'File was named correctly.');
-    $this->assertEqual($contents, file_get_contents($filepath), 'Contents of the file are correct.');
+    $this->assertEquals('asdf.txt', drupal_basename($filepath), 'File was named correctly.');
+    $this->assertEquals($contents, file_get_contents($filepath), 'Contents of the file are correct.');
     $this->assertFilePermissions($filepath, 0777);
   }
 
diff --git a/core/tests/Drupal/KernelTests/Core/File/UrlRewritingTest.php b/core/tests/Drupal/KernelTests/Core/File/UrlRewritingTest.php
index ff401e112c..f13fce5b0e 100644
--- a/core/tests/Drupal/KernelTests/Core/File/UrlRewritingTest.php
+++ b/core/tests/Drupal/KernelTests/Core/File/UrlRewritingTest.php
@@ -29,40 +29,40 @@ public function testShippedFileURL() {
     \Drupal::state()->set('file_test.hook_file_url_alter', 'cdn');
     $filepath = 'core/assets/vendor/jquery/jquery.min.js';
     $url = file_create_url($filepath);
-    $this->assertEqual(FILE_URL_TEST_CDN_1 . '/' . $filepath, $url, 'Correctly generated a CDN URL for a shipped file.');
+    $this->assertEquals(FILE_URL_TEST_CDN_1 . '/' . $filepath, $url, 'Correctly generated a CDN URL for a shipped file.');
     $filepath = 'core/misc/favicon.ico';
     $url = file_create_url($filepath);
-    $this->assertEqual(FILE_URL_TEST_CDN_2 . '/' . $filepath, $url, 'Correctly generated a CDN URL for a shipped file.');
+    $this->assertEquals(FILE_URL_TEST_CDN_2 . '/' . $filepath, $url, 'Correctly generated a CDN URL for a shipped file.');
 
     // Test alteration of file URLs to use root-relative URLs.
     \Drupal::state()->set('file_test.hook_file_url_alter', 'root-relative');
     $filepath = 'core/assets/vendor/jquery/jquery.min.js';
     $url = file_create_url($filepath);
-    $this->assertEqual(base_path() . '/' . $filepath, $url, 'Correctly generated a root-relative URL for a shipped file.');
+    $this->assertEquals(base_path() . '/' . $filepath, $url, 'Correctly generated a root-relative URL for a shipped file.');
     $filepath = 'core/misc/favicon.ico';
     $url = file_create_url($filepath);
-    $this->assertEqual(base_path() . '/' . $filepath, $url, 'Correctly generated a root-relative URL for a shipped file.');
+    $this->assertEquals(base_path() . '/' . $filepath, $url, 'Correctly generated a root-relative URL for a shipped file.');
 
     // Test alteration of file URLs to use protocol-relative URLs.
     \Drupal::state()->set('file_test.hook_file_url_alter', 'protocol-relative');
     $filepath = 'core/assets/vendor/jquery/jquery.min.js';
     $url = file_create_url($filepath);
-    $this->assertEqual('/' . base_path() . '/' . $filepath, $url, 'Correctly generated a protocol-relative URL for a shipped file.');
+    $this->assertEquals('/' . base_path() . '/' . $filepath, $url, 'Correctly generated a protocol-relative URL for a shipped file.');
     $filepath = 'core/misc/favicon.ico';
     $url = file_create_url($filepath);
-    $this->assertEqual('/' . base_path() . '/' . $filepath, $url, 'Correctly generated a protocol-relative URL for a shipped file.');
+    $this->assertEquals('/' . base_path() . '/' . $filepath, $url, 'Correctly generated a protocol-relative URL for a shipped file.');
 
     // Test alteration of file URLs with query strings and/or fragment.
     \Drupal::state()->delete('file_test.hook_file_url_alter');
     $filepath = 'core/misc/favicon.ico';
     $url = file_create_url($filepath . '?foo');
-    $this->assertEqual($GLOBALS['base_url'] . '/' . $filepath . '?foo=', $url, 'Correctly generated URL. The query string is present.');
+    $this->assertEquals($GLOBALS['base_url'] . '/' . $filepath . '?foo=', $url, 'Correctly generated URL. The query string is present.');
     $url = file_create_url($filepath . '?foo=bar');
-    $this->assertEqual($GLOBALS['base_url'] . '/' . $filepath . '?foo=bar', $url, 'Correctly generated URL. The query string is present.');
+    $this->assertEquals($GLOBALS['base_url'] . '/' . $filepath . '?foo=bar', $url, 'Correctly generated URL. The query string is present.');
     $url = file_create_url($filepath . '#v1.2');
-    $this->assertEqual($GLOBALS['base_url'] . '/' . $filepath . '#v1.2', $url, 'Correctly generated URL. The fragment is present.');
+    $this->assertEquals($GLOBALS['base_url'] . '/' . $filepath . '#v1.2', $url, 'Correctly generated URL. The fragment is present.');
     $url = file_create_url($filepath . '?foo=bar#v1.2');
-    $this->assertEqual($GLOBALS['base_url'] . '/' . $filepath . '?foo=bar#v1.2', $url, 'Correctly generated URL. The query string amd fragment is present.');
+    $this->assertEquals($GLOBALS['base_url'] . '/' . $filepath . '?foo=bar#v1.2', $url, 'Correctly generated URL. The query string amd fragment is present.');
   }
 
   /**
@@ -76,19 +76,19 @@ public function testPublicManagedFileURL() {
     $uri = $this->createUri();
     $url = file_create_url($uri);
     $public_directory_path = \Drupal::service('stream_wrapper_manager')->getViaScheme('public')->getDirectoryPath();
-    $this->assertEqual(FILE_URL_TEST_CDN_2 . '/' . $public_directory_path . '/' . drupal_basename($uri), $url, 'Correctly generated a CDN URL for a created file.');
+    $this->assertEquals(FILE_URL_TEST_CDN_2 . '/' . $public_directory_path . '/' . drupal_basename($uri), $url, 'Correctly generated a CDN URL for a created file.');
 
     // Test alteration of file URLs to use root-relative URLs.
     \Drupal::state()->set('file_test.hook_file_url_alter', 'root-relative');
     $uri = $this->createUri();
     $url = file_create_url($uri);
-    $this->assertEqual(base_path() . '/' . $public_directory_path . '/' . drupal_basename($uri), $url, 'Correctly generated a root-relative URL for a created file.');
+    $this->assertEquals(base_path() . '/' . $public_directory_path . '/' . drupal_basename($uri), $url, 'Correctly generated a root-relative URL for a created file.');
 
     // Test alteration of file URLs to use a protocol-relative URLs.
     \Drupal::state()->set('file_test.hook_file_url_alter', 'protocol-relative');
     $uri = $this->createUri();
     $url = file_create_url($uri);
-    $this->assertEqual('/' . base_path() . '/' . $public_directory_path . '/' . drupal_basename($uri), $url, 'Correctly generated a protocol-relative URL for a created file.');
+    $this->assertEquals('/' . base_path() . '/' . $public_directory_path . '/' . drupal_basename($uri), $url, 'Correctly generated a protocol-relative URL for a created file.');
   }
 
   /**
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']);
   }
 
   /**
diff --git a/core/tests/Drupal/KernelTests/Core/HttpKernel/StackKernelIntegrationTest.php b/core/tests/Drupal/KernelTests/Core/HttpKernel/StackKernelIntegrationTest.php
index 29bbcff9a8..e86570932d 100644
--- a/core/tests/Drupal/KernelTests/Core/HttpKernel/StackKernelIntegrationTest.php
+++ b/core/tests/Drupal/KernelTests/Core/HttpKernel/StackKernelIntegrationTest.php
@@ -38,8 +38,8 @@ public function testRequest() {
     $http_kernel = \Drupal::service('http_kernel');
     $http_kernel->handle($request, HttpKernelInterface::MASTER_REQUEST, FALSE);
 
-    $this->assertEqual($request->attributes->get('_hello'), 'world');
-    $this->assertEqual($request->attributes->get('_previous_optional_argument'), 'test_argument');
+    $this->assertEquals($request->attributes->get('_hello'), 'world');
+    $this->assertEquals($request->attributes->get('_previous_optional_argument'), 'test_argument');
   }
 
   /**
diff --git a/core/tests/Drupal/KernelTests/Core/Image/ToolkitGdTest.php b/core/tests/Drupal/KernelTests/Core/Image/ToolkitGdTest.php
index 96ce7e011d..2e3e7d05ee 100644
--- a/core/tests/Drupal/KernelTests/Core/Image/ToolkitGdTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Image/ToolkitGdTest.php
@@ -105,12 +105,12 @@ public function getPixelColor(ImageInterface $image, $x, $y) {
   public function testManipulations() {
 
     // Test that the image factory is set to use the GD toolkit.
-    $this->assertEqual($this->imageFactory->getToolkitId(), 'gd', 'The image factory is set to use the \'gd\' image toolkit.');
+    $this->assertEquals($this->imageFactory->getToolkitId(), 'gd', 'The image factory is set to use the \'gd\' image toolkit.');
 
     // Test the list of supported extensions.
     $expected_extensions = ['png', 'gif', 'jpeg', 'jpg', 'jpe'];
     $supported_extensions = $this->imageFactory->getSupportedExtensions();
-    $this->assertEqual($expected_extensions, array_intersect($expected_extensions, $supported_extensions));
+    $this->assertEquals($expected_extensions, array_intersect($expected_extensions, $supported_extensions));
 
     // Test that the supported extensions map to correct internal GD image
     // types.
@@ -386,9 +386,9 @@ public function testManipulations() {
       $image->createNew(50, 20, image_type_to_extension($type, FALSE), '#ffff00');
       $file = 'from_null' . image_type_to_extension($type);
       $file_path = $directory . '/' . $file;
-      $this->assertEqual(50, $image->getWidth(), SafeMarkup::format('Image file %file has the correct width.', ['%file' => $file]));
-      $this->assertEqual(20, $image->getHeight(), SafeMarkup::format('Image file %file has the correct height.', ['%file' => $file]));
-      $this->assertEqual(image_type_to_mime_type($type), $image->getMimeType(), SafeMarkup::format('Image file %file has the correct MIME type.', ['%file' => $file]));
+      $this->assertEquals(50, $image->getWidth(), SafeMarkup::format('Image file %file has the correct width.', ['%file' => $file]));
+      $this->assertEquals(20, $image->getHeight(), SafeMarkup::format('Image file %file has the correct height.', ['%file' => $file]));
+      $this->assertEquals(image_type_to_mime_type($type), $image->getMimeType(), SafeMarkup::format('Image file %file has the correct MIME type.', ['%file' => $file]));
       $this->assertTrue($image->save($file_path), SafeMarkup::format('Image %file created anew from a null image was saved.', ['%file' => $file]));
 
       // Reload saved image.
@@ -397,14 +397,14 @@ public function testManipulations() {
         $this->fail(SafeMarkup::format('Could not load image %file.', ['%file' => $file]));
         continue;
       }
-      $this->assertEqual(50, $image_reloaded->getWidth(), SafeMarkup::format('Image file %file has the correct width.', ['%file' => $file]));
-      $this->assertEqual(20, $image_reloaded->getHeight(), SafeMarkup::format('Image file %file has the correct height.', ['%file' => $file]));
-      $this->assertEqual(image_type_to_mime_type($type), $image_reloaded->getMimeType(), SafeMarkup::format('Image file %file has the correct MIME type.', ['%file' => $file]));
+      $this->assertEquals(50, $image_reloaded->getWidth(), SafeMarkup::format('Image file %file has the correct width.', ['%file' => $file]));
+      $this->assertEquals(20, $image_reloaded->getHeight(), SafeMarkup::format('Image file %file has the correct height.', ['%file' => $file]));
+      $this->assertEquals(image_type_to_mime_type($type), $image_reloaded->getMimeType(), SafeMarkup::format('Image file %file has the correct MIME type.', ['%file' => $file]));
       if ($image_reloaded->getToolkit()->getType() == IMAGETYPE_GIF) {
-        $this->assertEqual('#ffff00', $image_reloaded->getToolkit()->getTransparentColor(), SafeMarkup::format('Image file %file has the correct transparent color channel set.', ['%file' => $file]));
+        $this->assertEquals('#ffff00', $image_reloaded->getToolkit()->getTransparentColor(), SafeMarkup::format('Image file %file has the correct transparent color channel set.', ['%file' => $file]));
       }
       else {
-        $this->assertEqual(NULL, $image_reloaded->getToolkit()->getTransparentColor(), SafeMarkup::format('Image file %file has no color channel set.', ['%file' => $file]));
+        $this->assertEquals(NULL, $image_reloaded->getToolkit()->getTransparentColor(), SafeMarkup::format('Image file %file has no color channel set.', ['%file' => $file]));
       }
     }
 
@@ -459,7 +459,7 @@ public function testGifTransparentImages() {
     $resource = $image->getToolkit()->getResource();
     $color_index = imagecolorat($resource, $image->getWidth() - 1, 0);
     $color = array_values(imagecolorsforindex($resource, $color_index));
-    $this->assertEqual($this->rotateTransparent, $color, "Image {$file} after load has full transparent color at corner 1.");
+    $this->assertEquals($this->rotateTransparent, $color, "Image {$file} after load has full transparent color at corner 1.");
 
     // Test deliberately creating a GIF image with no transparent color set.
     // Color at top-right pixel should be fully transparent while in memory,
@@ -472,7 +472,7 @@ public function testGifTransparentImages() {
     $resource = $image->getToolkit()->getResource();
     $color_index = imagecolorat($resource, $image->getWidth() - 1, 0);
     $color = array_values(imagecolorsforindex($resource, $color_index));
-    $this->assertEqual($this->rotateTransparent, $color, "New GIF image with no transparent color set after creation has full transparent color at corner 1.");
+    $this->assertEquals($this->rotateTransparent, $color, "New GIF image with no transparent color set after creation has full transparent color at corner 1.");
     // Save image.
     $this->assertTrue($image->save($file_path), "New GIF image {$file} was saved.");
     // Reload image.
@@ -482,7 +482,7 @@ public function testGifTransparentImages() {
     $color = array_values(imagecolorsforindex($resource, $color_index));
     // Check explicitly for alpha == 0 as the rest of the color has been
     // compressed and may have slight difference from full white.
-    $this->assertEqual(0, $color[3], "New GIF image {$file} after reload has no transparent color at corner 1.");
+    $this->assertEquals(0, $color[3], "New GIF image {$file} after reload has no transparent color at corner 1.");
 
     // Test loading an image whose transparent color index is out of range.
     // This image was generated by taking an initial image with a palette size
@@ -515,7 +515,7 @@ public function testGifTransparentImages() {
   public function testMissingOperation() {
 
     // Test that the image factory is set to use the GD toolkit.
-    $this->assertEqual($this->imageFactory->getToolkitId(), 'gd', 'The image factory is set to use the \'gd\' image toolkit.');
+    $this->assertEquals($this->imageFactory->getToolkitId(), 'gd', 'The image factory is set to use the \'gd\' image toolkit.');
 
     // An image file that will be tested.
     $file = 'image-test.png';
diff --git a/core/tests/Drupal/KernelTests/Core/KeyValueStore/DatabaseStorageExpirableTest.php b/core/tests/Drupal/KernelTests/Core/KeyValueStore/DatabaseStorageExpirableTest.php
index 26a1abeff1..607d69de1a 100644
--- a/core/tests/Drupal/KernelTests/Core/KeyValueStore/DatabaseStorageExpirableTest.php
+++ b/core/tests/Drupal/KernelTests/Core/KeyValueStore/DatabaseStorageExpirableTest.php
@@ -79,13 +79,13 @@ public function testCRUDWithExpiration() {
     $stores[1]->set('foo', $this->objects[5]);
     $result = $stores[0]->getAll();
     // Not using assertSame(), since the order is not defined for getAll().
-    $this->assertEqual(count($result), count($values));
+    $this->assertEquals(count($result), count($values));
     foreach ($result as $key => $value) {
-      $this->assertEqual($values[$key], $value);
+      $this->assertEquals($values[$key], $value);
     }
     // Verify that all items in the other collection are different.
     $result = $stores[1]->getAll();
-    $this->assertEqual($result, ['foo' => $this->objects[5]]);
+    $this->assertEquals($result, ['foo' => $this->objects[5]]);
 
     // Verify that multiple items can be deleted.
     $stores[0]->deleteMultiple(array_keys($values));
@@ -100,7 +100,7 @@ public function testCRUDWithExpiration() {
     for ($i = 0; $i <= 1; $i++) {
       // setWithExpireIfNotExists() should be TRUE the first time (when $i is
       // 0) and FALSE the second time (when $i is 1).
-      $this->assertEqual(!$i, $stores[0]->setWithExpireIfNotExists($key, $this->objects[$i], rand(500, 100000)));
+      $this->assertEquals(!$i, $stores[0]->setWithExpireIfNotExists($key, $this->objects[$i], rand(500, 100000)));
       $this->assertIdenticalObject($this->objects[0], $stores[0]->get($key));
       // Verify that the other collection is not affected.
       $this->assertFalse($stores[1]->get($key));
diff --git a/core/tests/Drupal/KernelTests/Core/KeyValueStore/StorageTestBase.php b/core/tests/Drupal/KernelTests/Core/KeyValueStore/StorageTestBase.php
index 48af84d54a..206546b1be 100644
--- a/core/tests/Drupal/KernelTests/Core/KeyValueStore/StorageTestBase.php
+++ b/core/tests/Drupal/KernelTests/Core/KeyValueStore/StorageTestBase.php
@@ -103,13 +103,13 @@ public function testCRUD() {
     $stores[1]->set('foo', $this->objects[5]);
     $result = $stores[0]->getAll();
     // Not using assertSame(), since the order is not defined for getAll().
-    $this->assertEqual(count($result), count($values));
+    $this->assertEquals(count($result), count($values));
     foreach ($result as $key => $value) {
-      $this->assertEqual($values[$key], $value);
+      $this->assertEquals($values[$key], $value);
     }
     // Verify that all items in the other collection are different.
     $result = $stores[1]->getAll();
-    $this->assertEqual($result, ['foo' => $this->objects[5]]);
+    $this->assertEquals($result, ['foo' => $this->objects[5]]);
 
     // Verify that multiple items can be deleted.
     $stores[0]->deleteMultiple(array_keys($values));
@@ -162,7 +162,7 @@ public function testSetIfNotExists() {
     for ($i = 0; $i <= 1; $i++) {
       // setIfNotExists() should be TRUE the first time (when $i is 0) and
       // FALSE the second time (when $i is 1).
-      $this->assertEqual(!$i, $stores[0]->setIfNotExists($key, $this->objects[$i]));
+      $this->assertEquals(!$i, $stores[0]->setIfNotExists($key, $this->objects[$i]));
       $this->assertIdenticalObject($this->objects[0], $stores[0]->get($key));
       // Verify that the other collection is not affected.
       $this->assertFalse($stores[1]->get($key));
diff --git a/core/tests/Drupal/KernelTests/Core/Menu/MenuLinkDefaultIntegrationTest.php b/core/tests/Drupal/KernelTests/Core/Menu/MenuLinkDefaultIntegrationTest.php
index d0da9130a6..c12c20c3f2 100644
--- a/core/tests/Drupal/KernelTests/Core/Menu/MenuLinkDefaultIntegrationTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Menu/MenuLinkDefaultIntegrationTest.php
@@ -30,25 +30,25 @@ public function testMoveToRoot() {
     $menu_link_manager->rebuild();
 
     $menu_link = $menu_link_manager->getDefinition('menu_test.child');
-    $this->assertEqual($menu_link['parent'], 'menu_test.parent');
-    $this->assertEqual($menu_link['menu_name'], 'test');
+    $this->assertEquals($menu_link['parent'], 'menu_test.parent');
+    $this->assertEquals($menu_link['menu_name'], 'test');
 
     $tree = \Drupal::menuTree()->load('test', new MenuTreeParameters());
-    $this->assertEqual(count($tree), 1);
-    $this->assertEqual($tree['menu_test.parent']->link->getPluginId(), 'menu_test.parent');
-    $this->assertEqual($tree['menu_test.parent']->subtree['menu_test.child']->link->getPluginId(), 'menu_test.child');
+    $this->assertEquals(count($tree), 1);
+    $this->assertEquals($tree['menu_test.parent']->link->getPluginId(), 'menu_test.parent');
+    $this->assertEquals($tree['menu_test.parent']->subtree['menu_test.child']->link->getPluginId(), 'menu_test.child');
 
     // Ensure that the menu name is not forgotten.
     $menu_link_manager->updateDefinition('menu_test.child', ['parent' => '']);
     $menu_link = $menu_link_manager->getDefinition('menu_test.child');
 
-    $this->assertEqual($menu_link['parent'], '');
-    $this->assertEqual($menu_link['menu_name'], 'test');
+    $this->assertEquals($menu_link['parent'], '');
+    $this->assertEquals($menu_link['menu_name'], 'test');
 
     $tree = \Drupal::menuTree()->load('test', new MenuTreeParameters());
-    $this->assertEqual(count($tree), 2);
-    $this->assertEqual($tree['menu_test.parent']->link->getPluginId(), 'menu_test.parent');
-    $this->assertEqual($tree['menu_test.child']->link->getPluginId(), 'menu_test.child');
+    $this->assertEquals(count($tree), 2);
+    $this->assertEquals($tree['menu_test.parent']->link->getPluginId(), 'menu_test.parent');
+    $this->assertEquals($tree['menu_test.child']->link->getPluginId(), 'menu_test.child');
 
     $this->assertTrue(TRUE);
   }
diff --git a/core/tests/Drupal/KernelTests/Core/Menu/MenuLinkTreeTest.php b/core/tests/Drupal/KernelTests/Core/Menu/MenuLinkTreeTest.php
index 9bb7f5455d..a1e5261dc4 100644
--- a/core/tests/Drupal/KernelTests/Core/Menu/MenuLinkTreeTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Menu/MenuLinkTreeTest.php
@@ -67,17 +67,17 @@ public function testDeleteLinksInMenu() {
     \Drupal::entityManager()->getStorage('menu_link_content')->create(['link' => ['uri' => 'internal:/menu_name_test'], 'menu_name' => 'menu2', 'bundle' => 'menu_link_content'])->save();
 
     $output = $this->linkTree->load('menu1', new MenuTreeParameters());
-    $this->assertEqual(count($output), 2);
+    $this->assertEquals(count($output), 2);
     $output = $this->linkTree->load('menu2', new MenuTreeParameters());
-    $this->assertEqual(count($output), 1);
+    $this->assertEquals(count($output), 1);
 
     $this->menuLinkManager->deleteLinksInMenu('menu1');
 
     $output = $this->linkTree->load('menu1', new MenuTreeParameters());
-    $this->assertEqual(count($output), 0);
+    $this->assertEquals(count($output), 0);
 
     $output = $this->linkTree->load('menu2', new MenuTreeParameters());
-    $this->assertEqual(count($output), 1);
+    $this->assertEquals(count($output), 1);
   }
 
   /**
@@ -118,16 +118,16 @@ public function testCreateLinksInMenu() {
       return array_reduce($tree, $sum);
     };
 
-    $this->assertEqual($count($tree), 8);
+    $this->assertEquals($count($tree), 8);
     $parameters = new MenuTreeParameters();
     $parameters->setRoot('test.example2');
     $tree = $this->linkTree->load($instance->getMenuName(), $parameters);
     $top_link = reset($tree);
-    $this->assertEqual(count($top_link->subtree), 1);
+    $this->assertEquals(count($top_link->subtree), 1);
     $child = reset($top_link->subtree);
-    $this->assertEqual($child->link->getPluginId(), $links[3]->getPluginId());
+    $this->assertEquals($child->link->getPluginId(), $links[3]->getPluginId());
     $height = $this->linkTree->getSubtreeHeight('test.example2');
-    $this->assertEqual($height, 3);
+    $this->assertEquals($height, 3);
   }
 
 }
diff --git a/core/tests/Drupal/KernelTests/Core/Menu/MenuTreeStorageTest.php b/core/tests/Drupal/KernelTests/Core/Menu/MenuTreeStorageTest.php
index ad3f04d0ab..412c05496d 100644
--- a/core/tests/Drupal/KernelTests/Core/Menu/MenuTreeStorageTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Menu/MenuTreeStorageTest.php
@@ -52,7 +52,7 @@ public function testBasicMethods() {
    * Ensures that there are no menu links by default.
    */
   protected function doTestEmptyStorage() {
-    $this->assertEqual(0, $this->treeStorage->countMenuLinks());
+    $this->assertEquals(0, $this->treeStorage->countMenuLinks());
   }
 
   /**
@@ -234,34 +234,34 @@ public function testLoadTree() {
 
     $data = $this->treeStorage->loadTreeData('tools', new MenuTreeParameters());
     $tree = $data['tree'];
-    $this->assertEqual(count($tree['test1']['subtree']), 1);
-    $this->assertEqual(count($tree['test1']['subtree']['test2']['subtree']), 1);
-    $this->assertEqual(count($tree['test1']['subtree']['test2']['subtree']['test3']['subtree']), 0);
-    $this->assertEqual(count($tree['test4']['subtree']), 1);
-    $this->assertEqual(count($tree['test4']['subtree']['test5']['subtree']), 0);
+    $this->assertEquals(count($tree['test1']['subtree']), 1);
+    $this->assertEquals(count($tree['test1']['subtree']['test2']['subtree']), 1);
+    $this->assertEquals(count($tree['test1']['subtree']['test2']['subtree']['test3']['subtree']), 0);
+    $this->assertEquals(count($tree['test4']['subtree']), 1);
+    $this->assertEquals(count($tree['test4']['subtree']['test5']['subtree']), 0);
 
     $parameters = new MenuTreeParameters();
     $parameters->setActiveTrail(['test4', 'test5']);
     $data = $this->treeStorage->loadTreeData('tools', $parameters);
     $tree = $data['tree'];
-    $this->assertEqual(count($tree['test1']['subtree']), 1);
+    $this->assertEquals(count($tree['test1']['subtree']), 1);
     $this->assertFalse($tree['test1']['in_active_trail']);
-    $this->assertEqual(count($tree['test1']['subtree']['test2']['subtree']), 1);
+    $this->assertEquals(count($tree['test1']['subtree']['test2']['subtree']), 1);
     $this->assertFalse($tree['test1']['subtree']['test2']['in_active_trail']);
-    $this->assertEqual(count($tree['test1']['subtree']['test2']['subtree']['test3']['subtree']), 0);
+    $this->assertEquals(count($tree['test1']['subtree']['test2']['subtree']['test3']['subtree']), 0);
     $this->assertFalse($tree['test1']['subtree']['test2']['subtree']['test3']['in_active_trail']);
-    $this->assertEqual(count($tree['test4']['subtree']), 1);
+    $this->assertEquals(count($tree['test4']['subtree']), 1);
     $this->assertTrue($tree['test4']['in_active_trail']);
-    $this->assertEqual(count($tree['test4']['subtree']['test5']['subtree']), 0);
+    $this->assertEquals(count($tree['test4']['subtree']['test5']['subtree']), 0);
     $this->assertTrue($tree['test4']['subtree']['test5']['in_active_trail']);
 
     // Add some conditions to ensure that conditions work as expected.
     $parameters = new MenuTreeParameters();
     $parameters->addCondition('parent', 'test1');
     $data = $this->treeStorage->loadTreeData('tools', $parameters);
-    $this->assertEqual(count($data['tree']), 1);
-    $this->assertEqual($data['tree']['test2']['definition']['id'], 'test2');
-    $this->assertEqual($data['tree']['test2']['subtree'], []);
+    $this->assertEquals(count($data['tree']), 1);
+    $this->assertEquals($data['tree']['test2']['definition']['id'], 'test2');
+    $this->assertEquals($data['tree']['test2']['subtree'], []);
 
     // Test for only enabled links.
     $link = $this->treeStorage->load('test3');
@@ -277,11 +277,11 @@ public function testLoadTree() {
     $parameters = new MenuTreeParameters();
     $parameters->onlyEnabledLinks();
     $data = $this->treeStorage->loadTreeData('tools', $parameters);
-    $this->assertEqual(count($data['tree']), 1);
-    $this->assertEqual($data['tree']['test1']['definition']['id'], 'test1');
-    $this->assertEqual(count($data['tree']['test1']['subtree']), 1);
-    $this->assertEqual($data['tree']['test1']['subtree']['test2']['definition']['id'], 'test2');
-    $this->assertEqual($data['tree']['test1']['subtree']['test2']['subtree'], []);
+    $this->assertEquals(count($data['tree']), 1);
+    $this->assertEquals($data['tree']['test1']['definition']['id'], 'test1');
+    $this->assertEquals(count($data['tree']['test1']['subtree']), 1);
+    $this->assertEquals($data['tree']['test1']['subtree']['test2']['definition']['id'], 'test2');
+    $this->assertEquals($data['tree']['test1']['subtree']['test2']['subtree'], []);
 
   }
 
@@ -300,11 +300,11 @@ public function testSubtreeHeight() {
     $this->addMenuLink('child3', 'child2');
     $this->addMenuLink('child4', 'child3');
 
-    $this->assertEqual($this->treeStorage->getSubtreeHeight('root'), 5);
-    $this->assertEqual($this->treeStorage->getSubtreeHeight('child1'), 4);
-    $this->assertEqual($this->treeStorage->getSubtreeHeight('child2'), 3);
-    $this->assertEqual($this->treeStorage->getSubtreeHeight('child3'), 2);
-    $this->assertEqual($this->treeStorage->getSubtreeHeight('child4'), 1);
+    $this->assertEquals($this->treeStorage->getSubtreeHeight('root'), 5);
+    $this->assertEquals($this->treeStorage->getSubtreeHeight('child1'), 4);
+    $this->assertEquals($this->treeStorage->getSubtreeHeight('child2'), 3);
+    $this->assertEquals($this->treeStorage->getSubtreeHeight('child3'), 2);
+    $this->assertEquals($this->treeStorage->getSubtreeHeight('child4'), 1);
   }
 
   /**
@@ -322,20 +322,20 @@ public function testMenuRebuild() {
     $this->addMenuLink('child3', 'child2');
     $this->addMenuLink('child4', 'child3');
 
-    $this->assertEqual($this->treeStorage->getSubtreeHeight('root'), 5);
-    $this->assertEqual($this->treeStorage->getSubtreeHeight('child1'), 4);
-    $this->assertEqual($this->treeStorage->getSubtreeHeight('child2'), 3);
-    $this->assertEqual($this->treeStorage->getSubtreeHeight('child3'), 2);
-    $this->assertEqual($this->treeStorage->getSubtreeHeight('child4'), 1);
+    $this->assertEquals($this->treeStorage->getSubtreeHeight('root'), 5);
+    $this->assertEquals($this->treeStorage->getSubtreeHeight('child1'), 4);
+    $this->assertEquals($this->treeStorage->getSubtreeHeight('child2'), 3);
+    $this->assertEquals($this->treeStorage->getSubtreeHeight('child3'), 2);
+    $this->assertEquals($this->treeStorage->getSubtreeHeight('child4'), 1);
 
     // Intentionally leave child3 out to mimic static or external links.
     $definitions = $this->treeStorage->loadMultiple(['root', 'child1', 'child2', 'child4']);
     $this->treeStorage->rebuild($definitions);
-    $this->assertEqual($this->treeStorage->getSubtreeHeight('root'), 5);
-    $this->assertEqual($this->treeStorage->getSubtreeHeight('child1'), 4);
-    $this->assertEqual($this->treeStorage->getSubtreeHeight('child2'), 3);
-    $this->assertEqual($this->treeStorage->getSubtreeHeight('child3'), 2);
-    $this->assertEqual($this->treeStorage->getSubtreeHeight('child4'), 1);
+    $this->assertEquals($this->treeStorage->getSubtreeHeight('root'), 5);
+    $this->assertEquals($this->treeStorage->getSubtreeHeight('child1'), 4);
+    $this->assertEquals($this->treeStorage->getSubtreeHeight('child2'), 3);
+    $this->assertEquals($this->treeStorage->getSubtreeHeight('child3'), 2);
+    $this->assertEquals($this->treeStorage->getSubtreeHeight('child4'), 1);
   }
 
   /**
@@ -360,8 +360,8 @@ public function testLoadByProperties() {
     $this->addMenuLink('test_link.1', '', 'test', [], 'menu1');
     $properties = ['menu_name' => 'menu1'];
     $links = $this->treeStorage->loadByProperties($properties);
-    $this->assertEqual('menu1', $links['test_link.1']['menu_name']);
-    $this->assertEqual('test', $links['test_link.1']['route_name']);
+    $this->assertEquals('menu1', $links['test_link.1']['menu_name']);
+    $this->assertEquals('test', $links['test_link.1']['route_name']);
   }
 
   /**
@@ -415,7 +415,7 @@ protected function assertMenuLink($id, array $expected_properties, array $parent
       $query->condition($field, $value);
     }
     $all = $query->execute()->fetchAll(\PDO::FETCH_ASSOC);
-    $this->assertEqual(count($all), 1, "Found link $id matching all the expected properties");
+    $this->assertEquals(count($all), 1, "Found link $id matching all the expected properties");
     $raw = reset($all);
 
     // Put the current link onto the front.
@@ -426,28 +426,28 @@ protected function assertMenuLink($id, array $expected_properties, array $parent
     $query->condition('id', $parents, 'IN');
     $found_parents = $query->execute()->fetchAllKeyed(0, 1);
 
-    $this->assertEqual(count($parents), count($found_parents), 'Found expected number of parents');
-    $this->assertEqual($raw['depth'], count($found_parents), 'Number of parents is the same as the depth');
+    $this->assertEquals(count($parents), count($found_parents), 'Found expected number of parents');
+    $this->assertEquals($raw['depth'], count($found_parents), 'Number of parents is the same as the depth');
 
     $materialized_path = $this->treeStorage->getRootPathIds($id);
-    $this->assertEqual(array_values($materialized_path), array_values($parents), 'Parents match the materialized path');
+    $this->assertEquals(array_values($materialized_path), array_values($parents), 'Parents match the materialized path');
     // Check that the selected mlid values of the parents are in the correct
     // column, including the link's own.
     for ($i = $raw['depth']; $i >= 1; $i--) {
       $parent_id = array_shift($parents);
-      $this->assertEqual($raw["p$i"], $found_parents[$parent_id], "mlid of parent matches at column p$i");
+      $this->assertEquals($raw["p$i"], $found_parents[$parent_id], "mlid of parent matches at column p$i");
     }
     for ($i = $raw['depth'] + 1; $i <= $this->treeStorage->maxDepth(); $i++) {
-      $this->assertEqual($raw["p$i"], 0, "parent is 0 at column p$i greater than depth");
+      $this->assertEquals($raw["p$i"], 0, "parent is 0 at column p$i greater than depth");
     }
     if ($parents) {
-      $this->assertEqual($raw['parent'], end($parents), 'Ensure that the parent field is set properly');
+      $this->assertEquals($raw['parent'], end($parents), 'Ensure that the parent field is set properly');
     }
     $found_children = array_keys($this->treeStorage->loadAllChildren($id));
     // We need both these checks since the 2nd will pass if there are extra
     // IDs loaded in $found_children.
-    $this->assertEqual(count($children), count($found_children), "Found expected number of children for $id");
-    $this->assertEqual(array_intersect($children, $found_children), $children, 'Child IDs match');
+    $this->assertEquals(count($children), count($found_children), "Found expected number of children for $id");
+    $this->assertEquals(array_intersect($children, $found_children), $children, 'Child IDs match');
   }
 
 }
diff --git a/core/tests/Drupal/KernelTests/Core/Path/AliasTest.php b/core/tests/Drupal/KernelTests/Core/Path/AliasTest.php
index 1f49b09ffd..d0c7563cee 100644
--- a/core/tests/Drupal/KernelTests/Core/Path/AliasTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Path/AliasTest.php
@@ -32,7 +32,7 @@ public function testCRUD() {
       $result = $connection->query('SELECT * FROM {url_alias} WHERE source = :source AND alias= :alias AND langcode = :langcode', [':source' => $alias['source'], ':alias' => $alias['alias'], ':langcode' => $alias['langcode']]);
       $rows = $result->fetchAll();
 
-      $this->assertEqual(count($rows), 1, format_string('Created an entry for %alias.', ['%alias' => $alias['alias']]));
+      $this->assertEquals(count($rows), 1, format_string('Created an entry for %alias.', ['%alias' => $alias['alias']]));
 
       // Cache the pid for further tests.
       $aliases[$idx]['pid'] = $rows[0]->pid;
@@ -42,23 +42,23 @@ public function testCRUD() {
     foreach ($aliases as $alias) {
       $pid = $alias['pid'];
       $loadedAlias = $aliasStorage->load(['pid' => $pid]);
-      $this->assertEqual($loadedAlias, $alias, format_string('Loaded the expected path with pid %pid.', ['%pid' => $pid]));
+      $this->assertEquals($loadedAlias, $alias, format_string('Loaded the expected path with pid %pid.', ['%pid' => $pid]));
     }
 
     // Load alias by source path.
     $loadedAlias = $aliasStorage->load(['source' => '/node/1']);
-    $this->assertEqual($loadedAlias['alias'], '/alias_for_node_1_und', 'The last created alias loaded by default.');
+    $this->assertEquals($loadedAlias['alias'], '/alias_for_node_1_und', 'The last created alias loaded by default.');
 
     // Update a few aliases
     foreach ($aliases as $alias) {
       $fields = $aliasStorage->save($alias['source'], $alias['alias'] . '_updated', $alias['langcode'], $alias['pid']);
 
-      $this->assertEqual($alias['alias'], $fields['original']['alias']);
+      $this->assertEquals($alias['alias'], $fields['original']['alias']);
 
       $result = $connection->query('SELECT pid FROM {url_alias} WHERE source = :source AND alias= :alias AND langcode = :langcode', [':source' => $alias['source'], ':alias' => $alias['alias'] . '_updated', ':langcode' => $alias['langcode']]);
       $pid = $result->fetchField();
 
-      $this->assertEqual($pid, $alias['pid'], format_string('Updated entry for pid %pid.', ['%pid' => $pid]));
+      $this->assertEquals($pid, $alias['pid'], format_string('Updated entry for pid %pid.', ['%pid' => $pid]));
     }
 
     // Delete a few aliases
@@ -69,7 +69,7 @@ public function testCRUD() {
       $result = $connection->query('SELECT * FROM {url_alias} WHERE pid = :pid', [':pid' => $pid]);
       $rows = $result->fetchAll();
 
-      $this->assertEqual(count($rows), 0, format_string('Deleted entry with pid %pid.', ['%pid' => $pid]));
+      $this->assertEquals(count($rows), 0, format_string('Deleted entry with pid %pid.', ['%pid' => $pid]));
     }
   }
 
@@ -90,8 +90,8 @@ public function testLookupPath() {
     ];
 
     $aliasStorage->save($path['source'], $path['alias']);
-    $this->assertEqual($aliasManager->getAliasByPath($path['source']), $path['alias'], 'Basic alias lookup works.');
-    $this->assertEqual($aliasManager->getPathByAlias($path['alias']), $path['source'], 'Basic source lookup works.');
+    $this->assertEquals($aliasManager->getAliasByPath($path['source']), $path['alias'], 'Basic alias lookup works.');
+    $this->assertEquals($aliasManager->getPathByAlias($path['alias']), $path['source'], 'Basic source lookup works.');
 
     // Create a language specific alias for the default language (English).
     $path = [
@@ -102,8 +102,8 @@ public function testLookupPath() {
     $aliasStorage->save($path['source'], $path['alias'], $path['langcode']);
     // Hook that clears cache is not executed with unit tests.
     \Drupal::service('path.alias_manager')->cacheClear();
-    $this->assertEqual($aliasManager->getAliasByPath($path['source']), $path['alias'], 'English alias overrides language-neutral alias.');
-    $this->assertEqual($aliasManager->getPathByAlias($path['alias']), $path['source'], 'English source overrides language-neutral source.');
+    $this->assertEquals($aliasManager->getAliasByPath($path['source']), $path['alias'], 'English alias overrides language-neutral alias.');
+    $this->assertEquals($aliasManager->getPathByAlias($path['alias']), $path['source'], 'English source overrides language-neutral source.');
 
     // Create a language-neutral alias for the same path, again.
     $path = [
@@ -111,7 +111,7 @@ public function testLookupPath() {
       'alias' => '/bar',
     ];
     $aliasStorage->save($path['source'], $path['alias']);
-    $this->assertEqual($aliasManager->getAliasByPath($path['source']), "/users/Dries", 'English alias still returned after entering a language-neutral alias.');
+    $this->assertEquals($aliasManager->getAliasByPath($path['source']), "/users/Dries", 'English alias still returned after entering a language-neutral alias.');
 
     // Create a language-specific (xx-lolspeak) alias for the same path.
     $path = [
@@ -120,9 +120,9 @@ public function testLookupPath() {
       'langcode' => 'xx-lolspeak',
     ];
     $aliasStorage->save($path['source'], $path['alias'], $path['langcode']);
-    $this->assertEqual($aliasManager->getAliasByPath($path['source']), "/users/Dries", 'English alias still returned after entering a LOLspeak alias.');
+    $this->assertEquals($aliasManager->getAliasByPath($path['source']), "/users/Dries", 'English alias still returned after entering a LOLspeak alias.');
     // The LOLspeak alias should be returned if we really want LOLspeak.
-    $this->assertEqual($aliasManager->getAliasByPath($path['source'], 'xx-lolspeak'), '/LOL', 'LOLspeak alias returned if we specify xx-lolspeak to the alias manager.');
+    $this->assertEquals($aliasManager->getAliasByPath($path['source'], 'xx-lolspeak'), '/LOL', 'LOLspeak alias returned if we specify xx-lolspeak to the alias manager.');
 
     // Create a new alias for this path in English, which should override the
     // previous alias for "user/1".
@@ -134,22 +134,22 @@ public function testLookupPath() {
     $aliasStorage->save($path['source'], $path['alias'], $path['langcode']);
     // Hook that clears cache is not executed with unit tests.
     $aliasManager->cacheClear();
-    $this->assertEqual($aliasManager->getAliasByPath($path['source']), $path['alias'], 'Recently created English alias returned.');
-    $this->assertEqual($aliasManager->getPathByAlias($path['alias']), $path['source'], 'Recently created English source returned.');
+    $this->assertEquals($aliasManager->getAliasByPath($path['source']), $path['alias'], 'Recently created English alias returned.');
+    $this->assertEquals($aliasManager->getPathByAlias($path['alias']), $path['source'], 'Recently created English source returned.');
 
     // Remove the English aliases, which should cause a fallback to the most
     // recently created language-neutral alias, 'bar'.
     $aliasStorage->delete(['langcode' => 'en']);
     // Hook that clears cache is not executed with unit tests.
     $aliasManager->cacheClear();
-    $this->assertEqual($aliasManager->getAliasByPath($path['source']), '/bar', 'Path lookup falls back to recently created language-neutral alias.');
+    $this->assertEquals($aliasManager->getAliasByPath($path['source']), '/bar', 'Path lookup falls back to recently created language-neutral alias.');
 
     // Test the situation where the alias and language are the same, but
     // the source differs. The newer alias record should be returned.
     $aliasStorage->save('/user/2', '/bar');
     // Hook that clears cache is not executed with unit tests.
     $aliasManager->cacheClear();
-    $this->assertEqual($aliasManager->getPathByAlias('/bar'), '/user/2', 'Newer alias record is returned when comparing two LanguageInterface::LANGCODE_NOT_SPECIFIED paths with the same alias.');
+    $this->assertEquals($aliasManager->getPathByAlias('/bar'), '/user/2', 'Newer alias record is returned when comparing two LanguageInterface::LANGCODE_NOT_SPECIFIED paths with the same alias.');
   }
 
   /**
@@ -198,7 +198,7 @@ public function testWhitelist() {
 
     // Destruct the whitelist so that the caches are written.
     $whitelist->destruct();
-    $this->assertEqual($memoryCounterBackend->getCounter('set', 'path_alias_whitelist'), 1);
+    $this->assertEquals($memoryCounterBackend->getCounter('set', 'path_alias_whitelist'), 1);
     $memoryCounterBackend->resetCounter();
 
     // Re-initialize the whitelist using the same cache backend, should load
@@ -207,13 +207,13 @@ public function testWhitelist() {
     $this->assertNull($whitelist->get('user'));
     $this->assertTrue($whitelist->get('admin'));
     $this->assertNull($whitelist->get($this->randomMachineName()));
-    $this->assertEqual($memoryCounterBackend->getCounter('get', 'path_alias_whitelist'), 1);
-    $this->assertEqual($memoryCounterBackend->getCounter('set', 'path_alias_whitelist'), 0);
+    $this->assertEquals($memoryCounterBackend->getCounter('get', 'path_alias_whitelist'), 1);
+    $this->assertEquals($memoryCounterBackend->getCounter('set', 'path_alias_whitelist'), 0);
 
     // Destruct the whitelist, should not attempt to write the cache again.
     $whitelist->destruct();
-    $this->assertEqual($memoryCounterBackend->getCounter('get', 'path_alias_whitelist'), 1);
-    $this->assertEqual($memoryCounterBackend->getCounter('set', 'path_alias_whitelist'), 0);
+    $this->assertEquals($memoryCounterBackend->getCounter('get', 'path_alias_whitelist'), 1);
+    $this->assertEquals($memoryCounterBackend->getCounter('set', 'path_alias_whitelist'), 0);
   }
 
   /**
diff --git a/core/tests/Drupal/KernelTests/Core/Plugin/Condition/CurrentThemeConditionTest.php b/core/tests/Drupal/KernelTests/Core/Plugin/Condition/CurrentThemeConditionTest.php
index 7a69d2eb04..9d97f25c95 100644
--- a/core/tests/Drupal/KernelTests/Core/Plugin/Condition/CurrentThemeConditionTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Plugin/Condition/CurrentThemeConditionTest.php
@@ -31,8 +31,8 @@ public function testCurrentTheme() {
     $condition_negated = $manager->createInstance('current_theme');
     $condition_negated->setConfiguration(['theme' => 'test_theme', 'negate' => TRUE]);
 
-    $this->assertEqual($condition->summary(), SafeMarkup::format('The current theme is @theme', ['@theme' => 'test_theme']));
-    $this->assertEqual($condition_negated->summary(), SafeMarkup::format('The current theme is not @theme', ['@theme' => 'test_theme']));
+    $this->assertEquals($condition->summary(), SafeMarkup::format('The current theme is @theme', ['@theme' => 'test_theme']));
+    $this->assertEquals($condition_negated->summary(), SafeMarkup::format('The current theme is not @theme', ['@theme' => 'test_theme']));
 
     // The expected theme has not been set up yet.
     $this->assertFalse($condition->execute());
diff --git a/core/tests/Drupal/KernelTests/Core/Plugin/Condition/RequestPathTest.php b/core/tests/Drupal/KernelTests/Core/Plugin/Condition/RequestPathTest.php
index 68b6eb770e..62fcac3087 100644
--- a/core/tests/Drupal/KernelTests/Core/Plugin/Condition/RequestPathTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Plugin/Condition/RequestPathTest.php
@@ -93,7 +93,7 @@ public function testConditions() {
     $this->aliasManager->addAlias('/my/pass/page2', '/my/pass/page2');
 
     $this->assertTrue($condition->execute(), 'The request path matches a standard path');
-    $this->assertEqual($condition->summary(), 'Return true on the following pages: /my/pass/page, /my/pass/page2, /foo', 'The condition summary matches for a standard path');
+    $this->assertEquals($condition->summary(), 'Return true on the following pages: /my/pass/page, /my/pass/page2, /foo', 'The condition summary matches for a standard path');
 
     // Test an aliased path.
     $this->currentPath->setPath('/my/aliased/page', $request);
@@ -103,7 +103,7 @@ public function testConditions() {
     $this->aliasManager->addAlias('/my/aliased/page', '/my/pass/page');
 
     $this->assertTrue($condition->execute(), 'The request path matches an aliased path');
-    $this->assertEqual($condition->summary(), 'Return true on the following pages: /my/pass/page, /my/pass/page2, /foo', 'The condition summary matches for an aliased path');
+    $this->assertEquals($condition->summary(), 'Return true on the following pages: /my/pass/page, /my/pass/page2, /foo', 'The condition summary matches for an aliased path');
 
     // Test a wildcard path.
     $this->aliasManager->addAlias('/my/pass/page3', '/my/pass/page3');
@@ -114,7 +114,7 @@ public function testConditions() {
     $condition->setConfig('pages', '/my/pass/*');
 
     $this->assertTrue($condition->evaluate(), 'The system_path my/pass/page3 passes for wildcard paths.');
-    $this->assertEqual($condition->summary(), 'Return true on the following pages: /my/pass/*', 'The condition summary matches for a wildcard path');
+    $this->assertEquals($condition->summary(), 'Return true on the following pages: /my/pass/*', 'The condition summary matches for a wildcard path');
 
     // Test a missing path.
     $this->requestStack->pop();
@@ -134,7 +134,7 @@ public function testConditions() {
     $this->requestStack->push($request);
 
     $this->assertTrue($condition->evaluate(), 'The system_path my/pass/page3 passes for wildcard paths.');
-    $this->assertEqual($condition->summary(), 'Return true on the following pages: /my/pass/*', 'The condition summary matches for a wildcard path');
+    $this->assertEquals($condition->summary(), 'Return true on the following pages: /my/pass/*', 'The condition summary matches for a wildcard path');
 
   }
 
diff --git a/core/tests/Drupal/KernelTests/Core/Plugin/ContextPluginTest.php b/core/tests/Drupal/KernelTests/Core/Plugin/ContextPluginTest.php
index a9ec4b8c77..383c6b8095 100644
--- a/core/tests/Drupal/KernelTests/Core/Plugin/ContextPluginTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Plugin/ContextPluginTest.php
@@ -41,15 +41,15 @@ public function testContext() {
       $this->fail('The user context should not yet be set.');
     }
     catch (ContextException $e) {
-      $this->assertEqual($e->getMessage(), 'The not_exists context is not a valid context.');
+      $this->assertEquals($e->getMessage(), 'The not_exists context is not a valid context.');
     }
 
     // Test the getContextDefinitions() method.
     $user_context_definition = ContextDefinition::create('entity:user')->setLabel(t('User'));
-    $this->assertEqual($plugin->getContextDefinitions()['user']->getLabel(), $user_context_definition->getLabel());
+    $this->assertEquals($plugin->getContextDefinitions()['user']->getLabel(), $user_context_definition->getLabel());
 
     // Test the getContextDefinition() method for a valid context.
-    $this->assertEqual($plugin->getContextDefinition('user')->getLabel(), $user_context_definition->getLabel());
+    $this->assertEquals($plugin->getContextDefinition('user')->getLabel(), $user_context_definition->getLabel());
 
     // Try to get a context with valid definition.
     $this->assertNotNull($plugin->getContext('user'), 'Succeeded to get a context with a valid definition.');
@@ -72,8 +72,8 @@ public function testContext() {
     $user = User::create(['name' => $name]);
     $plugin->setContextValue('user', $user);
 
-    $this->assertEqual($plugin->getContextValue('user')->getUsername(), $user->getUsername());
-    $this->assertEqual($user->label(), $plugin->getTitle());
+    $this->assertEquals($plugin->getContextValue('user')->getUsername(), $user->getUsername());
+    $this->assertEquals($user->label(), $plugin->getTitle());
 
     // Test Optional context handling.
     $plugin = $manager->createInstance('user_name_optional');
@@ -91,16 +91,16 @@ public function testContext() {
     $complex_plugin->setContextValue('node', $node);
     $context_wrappers = $complex_plugin->getContexts();
     // Make sure what came out of the wrappers is good.
-    $this->assertEqual($context_wrappers['user']->getContextValue()->label(), $user->label());
-    $this->assertEqual($context_wrappers['node']->getContextValue()->label(), $node->label());
+    $this->assertEquals($context_wrappers['user']->getContextValue()->label(), $user->label());
+    $this->assertEquals($context_wrappers['node']->getContextValue()->label(), $node->label());
 
     // Make sure what comes out of the context values is good.
     $contexts = $complex_plugin->getContextValues();
-    $this->assertEqual($contexts['user']->label(), $user->label());
-    $this->assertEqual($contexts['node']->label(), $node->label());
+    $this->assertEquals($contexts['user']->label(), $user->label());
+    $this->assertEquals($contexts['node']->label(), $node->label());
 
     // Test the title method for the complex context plugin.
-    $this->assertEqual($user->label() . ' -- ' . $node->label(), $complex_plugin->getTitle());
+    $this->assertEquals($user->label() . ' -- ' . $node->label(), $complex_plugin->getTitle());
   }
 
 }
diff --git a/core/tests/Drupal/KernelTests/Core/Plugin/DerivativeTest.php b/core/tests/Drupal/KernelTests/Core/Plugin/DerivativeTest.php
index 251abbf47a..78b63c5111 100644
--- a/core/tests/Drupal/KernelTests/Core/Plugin/DerivativeTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Plugin/DerivativeTest.php
@@ -14,11 +14,11 @@ class DerivativeTest extends PluginTestBase {
    */
   public function testDerivativeDecorator() {
     // Ensure that getDefinitions() returns the expected definitions.
-    $this->assertEqual($this->mockBlockManager->getDefinitions(), $this->mockBlockExpectedDefinitions);
+    $this->assertEquals($this->mockBlockManager->getDefinitions(), $this->mockBlockExpectedDefinitions);
 
     // Ensure that getDefinition() returns the expected definition.
     foreach ($this->mockBlockExpectedDefinitions as $id => $definition) {
-      $this->assertEqual($this->mockBlockManager->getDefinition($id), $definition);
+      $this->assertEquals($this->mockBlockManager->getDefinition($id), $definition);
     }
 
     // Ensure that NULL is returned as the definition of a non-existing base
diff --git a/core/tests/Drupal/KernelTests/Core/Plugin/Discovery/DiscoveryTestBase.php b/core/tests/Drupal/KernelTests/Core/Plugin/Discovery/DiscoveryTestBase.php
index 4c6e22a8ea..af263661a6 100644
--- a/core/tests/Drupal/KernelTests/Core/Plugin/Discovery/DiscoveryTestBase.php
+++ b/core/tests/Drupal/KernelTests/Core/Plugin/Discovery/DiscoveryTestBase.php
@@ -43,7 +43,7 @@ public function testDiscoveryInterface() {
     // sorted equally, which seems unnecessary here.
     // The discovered definitions may contain circular references; use a custom
     // assertion message to prevent var_export() from getting called.
-    $this->assertEqual($this->discovery->getDefinitions(), $this->expectedDefinitions, 'Expected definitions found.');
+    $this->assertEquals($this->discovery->getDefinitions(), $this->expectedDefinitions, 'Expected definitions found.');
 
     // Ensure that getDefinition() returns the expected definition.
     foreach ($this->expectedDefinitions as $id => $definition) {
diff --git a/core/tests/Drupal/KernelTests/Core/Queue/QueueTest.php b/core/tests/Drupal/KernelTests/Core/Queue/QueueTest.php
index cd2ed517e2..d7c3580c00 100644
--- a/core/tests/Drupal/KernelTests/Core/Queue/QueueTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Queue/QueueTest.php
@@ -70,7 +70,7 @@ protected function runQueueTest($queue1, $queue2) {
     $new_items[] = $item->data;
 
     // First two dequeued items should match the first two items we queued.
-    $this->assertEqual($this->queueScore($data, $new_items), 2, 'Two items matched');
+    $this->assertEquals($this->queueScore($data, $new_items), 2, 'Two items matched');
 
     // Add two more items.
     $queue1->createItem($data[2]);
@@ -87,10 +87,10 @@ protected function runQueueTest($queue1, $queue2) {
 
     // All dequeued items should match the items we queued exactly once,
     // therefore the score must be exactly 4.
-    $this->assertEqual($this->queueScore($data, $new_items), 4, 'Four items matched');
+    $this->assertEquals($this->queueScore($data, $new_items), 4, 'Four items matched');
 
     // There should be no duplicate items.
-    $this->assertEqual($this->queueScore($new_items, $new_items), 4, 'Four items matched');
+    $this->assertEquals($this->queueScore($new_items, $new_items), 4, 'Four items matched');
 
     // Delete all items from queue1.
     foreach ($items as $item) {
diff --git a/core/tests/Drupal/KernelTests/Core/Render/Element/TableSortExtenderTest.php b/core/tests/Drupal/KernelTests/Core/Render/Element/TableSortExtenderTest.php
index 4291179f40..25a9607bda 100644
--- a/core/tests/Drupal/KernelTests/Core/Render/Element/TableSortExtenderTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Render/Element/TableSortExtenderTest.php
@@ -34,7 +34,7 @@ public function testTableSortInit() {
     \Drupal::getContainer()->get('request_stack')->push($request);
     $ts = tablesort_init($headers);
     $this->verbose(strtr('$ts: <pre>!ts</pre>', ['!ts' => Html::escape(var_export($ts, TRUE))]));
-    $this->assertEqual($ts, $expected_ts, 'Simple table headers sorted correctly.');
+    $this->assertEquals($ts, $expected_ts, 'Simple table headers sorted correctly.');
 
     // Test with simple table headers plus $_GET parameters that should _not_
     // override the default.
@@ -47,7 +47,7 @@ public function testTableSortInit() {
     \Drupal::getContainer()->get('request_stack')->push($request);
     $ts = tablesort_init($headers);
     $this->verbose(strtr('$ts: <pre>!ts</pre>', ['!ts' => Html::escape(var_export($ts, TRUE))]));
-    $this->assertEqual($ts, $expected_ts, 'Simple table headers plus non-overriding $_GET parameters sorted correctly.');
+    $this->assertEquals($ts, $expected_ts, 'Simple table headers plus non-overriding $_GET parameters sorted correctly.');
 
     // Test with simple table headers plus $_GET parameters that _should_
     // override the default.
@@ -63,7 +63,7 @@ public function testTableSortInit() {
     $expected_ts['query'] = ['alpha' => 'beta'];
     $ts = tablesort_init($headers);
     $this->verbose(strtr('$ts: <pre>!ts</pre>', ['!ts' => Html::escape(var_export($ts, TRUE))]));
-    $this->assertEqual($ts, $expected_ts, 'Simple table headers plus $_GET parameters sorted correctly.');
+    $this->assertEquals($ts, $expected_ts, 'Simple table headers plus $_GET parameters sorted correctly.');
 
     // Test complex table headers.
 
@@ -95,7 +95,7 @@ public function testTableSortInit() {
       'query' => [],
     ];
     $this->verbose(strtr('$ts: <pre>!ts</pre>', ['!ts' => Html::escape(var_export($ts, TRUE))]));
-    $this->assertEqual($ts, $expected_ts, 'Complex table headers sorted correctly.');
+    $this->assertEquals($ts, $expected_ts, 'Complex table headers sorted correctly.');
 
     // Test complex table headers plus $_GET parameters that should _not_
     // override the default.
@@ -114,7 +114,7 @@ public function testTableSortInit() {
       'query' => [],
     ];
     $this->verbose(strtr('$ts: <pre>!ts</pre>', ['!ts' => Html::escape(var_export($ts, TRUE))]));
-    $this->assertEqual($ts, $expected_ts, 'Complex table headers plus non-overriding $_GET parameters sorted correctly.');
+    $this->assertEquals($ts, $expected_ts, 'Complex table headers plus non-overriding $_GET parameters sorted correctly.');
 
     // Test complex table headers plus $_GET parameters that _should_
     // override the default.
@@ -135,7 +135,7 @@ public function testTableSortInit() {
     ];
     $ts = tablesort_init($headers);
     $this->verbose(strtr('$ts: <pre>!ts</pre>', ['!ts' => Html::escape(var_export($ts, TRUE))]));
-    $this->assertEqual($ts, $expected_ts, 'Complex table headers plus $_GET parameters sorted correctly.');
+    $this->assertEquals($ts, $expected_ts, 'Complex table headers plus $_GET parameters sorted correctly.');
   }
 
 }
diff --git a/core/tests/Drupal/KernelTests/Core/Render/Element/TableTest.php b/core/tests/Drupal/KernelTests/Core/Render/Element/TableTest.php
index 5966eaa745..f33de35e9f 100644
--- a/core/tests/Drupal/KernelTests/Core/Render/Element/TableTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Render/Element/TableTest.php
@@ -33,7 +33,7 @@ public function testThemeTableStickyHeaders() {
     $this->render($table);
     // Make sure tableheader.js was attached.
     $tableheader = $this->xpath("//script[contains(@src, 'tableheader.js')]");
-    $this->assertEqual(count($tableheader), 1);
+    $this->assertEquals(count($tableheader), 1);
     $this->assertRaw('sticky-enabled');
   }
 
@@ -58,7 +58,7 @@ public function testThemeTableNoStickyHeaders() {
     $this->render($table);
     // Make sure tableheader.js was not attached.
     $tableheader = $this->xpath("//script[contains(@src, 'tableheader.js')]");
-    $this->assertEqual(count($tableheader), 0);
+    $this->assertEquals(count($tableheader), 0);
     $this->assertNoRaw('sticky-enabled');
   }
 
diff --git a/core/tests/Drupal/KernelTests/Core/Render/ElementInfoIntegrationTest.php b/core/tests/Drupal/KernelTests/Core/Render/ElementInfoIntegrationTest.php
index cd33fcb6dc..0726067f95 100644
--- a/core/tests/Drupal/KernelTests/Core/Render/ElementInfoIntegrationTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Render/ElementInfoIntegrationTest.php
@@ -34,10 +34,10 @@ public function testElementInfoByTheme() {
     $element_info = $this->container->get('plugin.manager.element_info');
 
     $theme_manager->setActiveTheme($theme_initializer->getActiveThemeByName('classy'));
-    $this->assertEqual(60, $element_info->getInfo('textfield')['#size']);
+    $this->assertEquals(60, $element_info->getInfo('textfield')['#size']);
 
     $theme_manager->setActiveTheme($theme_initializer->getActiveThemeByName('test_theme'));
-    $this->assertEqual(40, $element_info->getInfo('textfield')['#size']);
+    $this->assertEquals(40, $element_info->getInfo('textfield')['#size']);
   }
 
 }
diff --git a/core/tests/Drupal/KernelTests/Core/Render/RenderCacheTest.php b/core/tests/Drupal/KernelTests/Core/Render/RenderCacheTest.php
index 91061ca67f..2f7b35fdc8 100644
--- a/core/tests/Drupal/KernelTests/Core/Render/RenderCacheTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Render/RenderCacheTest.php
@@ -55,12 +55,12 @@ protected function doTestUser1WithContexts($contexts) {
     // Test that user 1 does not share the cache with other users who have the
     // same roles, even when using a role-based cache context.
     $user1 = $this->createUser();
-    $this->assertEqual($user1->id(), 1);
+    $this->assertEquals($user1->id(), 1);
     $first_authenticated_user = $this->createUser();
     $second_authenticated_user = $this->createUser();
     $admin_user = $this->createUser([], NULL, TRUE);
 
-    $this->assertEqual($user1->getRoles(), $first_authenticated_user->getRoles(), 'User 1 has the same roles as an authenticated user.');
+    $this->assertEquals($user1->getRoles(), $first_authenticated_user->getRoles(), 'User 1 has the same roles as an authenticated user.');
     // Impersonate user 1 and render content that only user 1 should have
     // permission to see.
     \Drupal::service('account_switcher')->switchTo($user1);
@@ -73,14 +73,14 @@ protected function doTestUser1WithContexts($contexts) {
     $element = $test_element;
     $element['#markup'] = 'content for user 1';
     $output = \Drupal::service('renderer')->renderRoot($element);
-    $this->assertEqual($output, 'content for user 1');
+    $this->assertEquals($output, 'content for user 1');
 
     // Verify the cache is working by rendering the same element but with
     // different markup passed in; the result should be the same.
     $element = $test_element;
     $element['#markup'] = 'should not be used';
     $output = \Drupal::service('renderer')->renderRoot($element);
-    $this->assertEqual($output, 'content for user 1');
+    $this->assertEquals($output, 'content for user 1');
     \Drupal::service('account_switcher')->switchBack();
 
     // Verify that the first authenticated user does not see the same content
@@ -89,7 +89,7 @@ protected function doTestUser1WithContexts($contexts) {
     $element = $test_element;
     $element['#markup'] = 'content for authenticated users';
     $output = \Drupal::service('renderer')->renderRoot($element);
-    $this->assertEqual($output, 'content for authenticated users');
+    $this->assertEquals($output, 'content for authenticated users');
     \Drupal::service('account_switcher')->switchBack();
 
     // Verify that the second authenticated user shares the cache with the
@@ -98,7 +98,7 @@ protected function doTestUser1WithContexts($contexts) {
     $element = $test_element;
     $element['#markup'] = 'should not be used';
     $output = \Drupal::service('renderer')->renderRoot($element);
-    $this->assertEqual($output, 'content for authenticated users');
+    $this->assertEquals($output, 'content for authenticated users');
     \Drupal::service('account_switcher')->switchBack();
 
     // Verify that the admin user (who has an admin role without explicit
@@ -107,7 +107,7 @@ protected function doTestUser1WithContexts($contexts) {
     $element = $test_element;
     $element['#markup'] = 'content for admin user';
     $output = \Drupal::service('renderer')->renderRoot($element);
-    $this->assertEqual($output, 'content for admin user');
+    $this->assertEquals($output, 'content for admin user');
     \Drupal::service('account_switcher')->switchBack();
   }
 
diff --git a/core/tests/Drupal/KernelTests/Core/Render/RenderTest.php b/core/tests/Drupal/KernelTests/Core/Render/RenderTest.php
index a64b553a16..6da7caabd2 100644
--- a/core/tests/Drupal/KernelTests/Core/Render/RenderTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Render/RenderTest.php
@@ -38,7 +38,7 @@ public function testDrupalRenderThemePreprocessAttached() {
         'test/specific_preprocess',
       ]
     ];
-    $this->assertEqual($expected_attached, $test_element['#attached'], 'All expected assets from theme preprocess hooks attached.');
+    $this->assertEquals($expected_attached, $test_element['#attached'], 'All expected assets from theme preprocess hooks attached.');
 
     \Drupal::state()->set('theme_preprocess_attached_test', FALSE);
   }
diff --git a/core/tests/Drupal/KernelTests/Core/RouteProcessor/RouteNoneTest.php b/core/tests/Drupal/KernelTests/Core/RouteProcessor/RouteNoneTest.php
index 2b59933929..97e5269f6e 100644
--- a/core/tests/Drupal/KernelTests/Core/RouteProcessor/RouteNoneTest.php
+++ b/core/tests/Drupal/KernelTests/Core/RouteProcessor/RouteNoneTest.php
@@ -63,9 +63,9 @@ public function testProcessOutbound() {
     $request_stack->push($request);
     $request_context->fromRequest($request);
     $url = GeneratedUrl::createFromObject($expected_cacheability)->setGeneratedUrl('');
-    $this->assertEqual($url, $this->urlGenerator->generateFromRoute('<none>', [], [], TRUE, TRUE));
+    $this->assertEquals($url, $this->urlGenerator->generateFromRoute('<none>', [], [], TRUE, TRUE));
     $url = GeneratedUrl::createFromObject($expected_cacheability)->setGeneratedUrl('#test-fragment');
-    $this->assertEqual($url, $this->urlGenerator->generateFromRoute('<none>', [], ['fragment' => 'test-fragment'], TRUE));
+    $this->assertEquals($url, $this->urlGenerator->generateFromRoute('<none>', [], ['fragment' => 'test-fragment'], TRUE));
 
     // Test request with subdir on other page.
     $server = [
@@ -80,9 +80,9 @@ public function testProcessOutbound() {
     $request_stack->push($request);
     $request_context->fromRequest($request);
     $url = GeneratedUrl::createFromObject($expected_cacheability)->setGeneratedUrl('');
-    $this->assertEqual($url, $this->urlGenerator->generateFromRoute('<none>', [], [], TRUE, TRUE));
+    $this->assertEquals($url, $this->urlGenerator->generateFromRoute('<none>', [], [], TRUE, TRUE));
     $url = GeneratedUrl::createFromObject($expected_cacheability)->setGeneratedUrl('#test-fragment');
-    $this->assertEqual($url, $this->urlGenerator->generateFromRoute('<none>', [], ['fragment' => 'test-fragment'], TRUE));
+    $this->assertEquals($url, $this->urlGenerator->generateFromRoute('<none>', [], ['fragment' => 'test-fragment'], TRUE));
 
     // Test request without subdir on the homepage.
     $server = [
@@ -97,9 +97,9 @@ public function testProcessOutbound() {
     $request_stack->push($request);
     $request_context->fromRequest($request);
     $url = GeneratedUrl::createFromObject($expected_cacheability)->setGeneratedUrl('');
-    $this->assertEqual($url, $this->urlGenerator->generateFromRoute('<none>', [], [], TRUE, TRUE));
+    $this->assertEquals($url, $this->urlGenerator->generateFromRoute('<none>', [], [], TRUE, TRUE));
     $url = GeneratedUrl::createFromObject($expected_cacheability)->setGeneratedUrl('#test-fragment');
-    $this->assertEqual($url, $this->urlGenerator->generateFromRoute('<none>', [], ['fragment' => 'test-fragment'], TRUE));
+    $this->assertEquals($url, $this->urlGenerator->generateFromRoute('<none>', [], ['fragment' => 'test-fragment'], TRUE));
 
     // Test request without subdir on other page.
     $server = [
@@ -114,9 +114,9 @@ public function testProcessOutbound() {
     $request_stack->push($request);
     $request_context->fromRequest($request);
     $url = GeneratedUrl::createFromObject($expected_cacheability)->setGeneratedUrl('');
-    $this->assertEqual($url, $this->urlGenerator->generateFromRoute('<none>', [], [], TRUE, TRUE));
+    $this->assertEquals($url, $this->urlGenerator->generateFromRoute('<none>', [], [], TRUE, TRUE));
     $url = GeneratedUrl::createFromObject($expected_cacheability)->setGeneratedUrl('#test-fragment');
-    $this->assertEqual($url, $this->urlGenerator->generateFromRoute('<none>', [], ['fragment' => 'test-fragment'], TRUE));
+    $this->assertEquals($url, $this->urlGenerator->generateFromRoute('<none>', [], ['fragment' => 'test-fragment'], TRUE));
   }
 
 }
diff --git a/core/tests/Drupal/KernelTests/Core/RouteProcessor/RouteProcessorCurrentIntegrationTest.php b/core/tests/Drupal/KernelTests/Core/RouteProcessor/RouteProcessorCurrentIntegrationTest.php
index ea6a9c2538..d0e531f265 100644
--- a/core/tests/Drupal/KernelTests/Core/RouteProcessor/RouteProcessorCurrentIntegrationTest.php
+++ b/core/tests/Drupal/KernelTests/Core/RouteProcessor/RouteProcessorCurrentIntegrationTest.php
@@ -64,7 +64,7 @@ public function testProcessOutbound() {
     $request_stack->push($request);
     $request_context->fromRequest($request);
     $url = GeneratedUrl::createFromObject($expected_cacheability)->setGeneratedUrl('/subdir/');
-    $this->assertEqual($url, $this->urlGenerator->generateFromRoute('<current>', [], [], TRUE));
+    $this->assertEquals($url, $this->urlGenerator->generateFromRoute('<current>', [], [], TRUE));
 
     // Test request with subdir on other page.
     $server = [
@@ -79,7 +79,7 @@ public function testProcessOutbound() {
     $request_stack->push($request);
     $request_context->fromRequest($request);
     $url = GeneratedUrl::createFromObject($expected_cacheability)->setGeneratedUrl('/subdir/node/add');
-    $this->assertEqual($url, $this->urlGenerator->generateFromRoute('<current>', [], [], TRUE));
+    $this->assertEquals($url, $this->urlGenerator->generateFromRoute('<current>', [], [], TRUE));
 
     // Test request without subdir on the homepage.
     $server = [
@@ -94,7 +94,7 @@ public function testProcessOutbound() {
     $request_stack->push($request);
     $request_context->fromRequest($request);
     $url = GeneratedUrl::createFromObject($expected_cacheability)->setGeneratedUrl('/');
-    $this->assertEqual($url, $this->urlGenerator->generateFromRoute('<current>', [], [], TRUE));
+    $this->assertEquals($url, $this->urlGenerator->generateFromRoute('<current>', [], [], TRUE));
 
     // Test request without subdir on other page.
     $server = [
@@ -109,7 +109,7 @@ public function testProcessOutbound() {
     $request_stack->push($request);
     $request_context->fromRequest($request);
     $url = GeneratedUrl::createFromObject($expected_cacheability)->setGeneratedUrl('/node/add');
-    $this->assertEqual($url, $this->urlGenerator->generateFromRoute('<current>', [], [], TRUE));
+    $this->assertEquals($url, $this->urlGenerator->generateFromRoute('<current>', [], [], TRUE));
 
     // Test request without a found route. This happens for example on an
     // not found exception page.
@@ -126,7 +126,7 @@ public function testProcessOutbound() {
     // and the cacheability does not depend on the 'route' cache context, since
     // no route was involved at all: this is fallback behavior.
     $url = GeneratedUrl::createFromObject((new BubbleableMetadata())->setCacheMaxAge(Cache::PERMANENT))->setGeneratedUrl('/');
-    $this->assertEqual($url, $this->urlGenerator->generateFromRoute('<current>', [], [], TRUE));
+    $this->assertEquals($url, $this->urlGenerator->generateFromRoute('<current>', [], [], TRUE));
   }
 
 }
diff --git a/core/tests/Drupal/KernelTests/Core/Routing/ContentNegotiationRoutingTest.php b/core/tests/Drupal/KernelTests/Core/Routing/ContentNegotiationRoutingTest.php
index 34c6d5852a..a2b49446b2 100644
--- a/core/tests/Drupal/KernelTests/Core/Routing/ContentNegotiationRoutingTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Routing/ContentNegotiationRoutingTest.php
@@ -97,7 +97,7 @@ public function testContentRouting() {
       // Verbose message since simpletest doesn't let us provide a message and
       // see the error.
       $this->assertTrue(TRUE, $message);
-      $this->assertEqual($response->getStatusCode(), Response::HTTP_OK);
+      $this->assertEquals($response->getStatusCode(), Response::HTTP_OK);
       $this->assertTrue(strpos($response->headers->get('Content-type'), $content_type) !== FALSE);
     }
   }
@@ -136,7 +136,7 @@ public function testFullNegotiation() {
       // Verbose message since simpletest doesn't let us provide a message and
       // see the error.
       $this->pass($message);
-      $this->assertEqual($response->getStatusCode(), Response::HTTP_OK);
+      $this->assertEquals($response->getStatusCode(), Response::HTTP_OK);
     }
   }
 
diff --git a/core/tests/Drupal/KernelTests/Core/Routing/ExceptionHandlingTest.php b/core/tests/Drupal/KernelTests/Core/Routing/ExceptionHandlingTest.php
index a791454f72..a1e8c40d6c 100644
--- a/core/tests/Drupal/KernelTests/Core/Routing/ExceptionHandlingTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Routing/ExceptionHandlingTest.php
@@ -38,7 +38,7 @@ public function test405() {
     $kernel = \Drupal::getContainer()->get('http_kernel');
     $response = $kernel->handle($request);
 
-    $this->assertEqual(Response::HTTP_METHOD_NOT_ALLOWED, $response->getStatusCode());
+    $this->assertEquals(Response::HTTP_METHOD_NOT_ALLOWED, $response->getStatusCode());
   }
 
   /**
@@ -53,9 +53,9 @@ public function testJson403() {
     $kernel = \Drupal::getContainer()->get('http_kernel');
     $response = $kernel->handle($request);
 
-    $this->assertEqual($response->getStatusCode(), Response::HTTP_FORBIDDEN);
-    $this->assertEqual($response->headers->get('Content-type'), 'application/json');
-    $this->assertEqual('{"message":""}', $response->getContent());
+    $this->assertEquals($response->getStatusCode(), Response::HTTP_FORBIDDEN);
+    $this->assertEquals($response->headers->get('Content-type'), 'application/json');
+    $this->assertEquals('{"message":""}', $response->getContent());
   }
 
   /**
@@ -70,9 +70,9 @@ public function testJson404() {
     $kernel = \Drupal::getContainer()->get('http_kernel');
     $response = $kernel->handle($request);
 
-    $this->assertEqual($response->getStatusCode(), Response::HTTP_NOT_FOUND);
-    $this->assertEqual($response->headers->get('Content-type'), 'application/json');
-    $this->assertEqual('{"message":"No route found for \\u0022GET \\/not-found\\u0022"}', $response->getContent());
+    $this->assertEquals($response->getStatusCode(), Response::HTTP_NOT_FOUND);
+    $this->assertEquals($response->headers->get('Content-type'), 'application/json');
+    $this->assertEquals('{"message":"No route found for \\u0022GET \\/not-found\\u0022"}', $response->getContent());
   }
 
   /**
@@ -86,8 +86,8 @@ public function testHtml403() {
     $kernel = \Drupal::getContainer()->get('http_kernel');
     $response = $kernel->handle($request)->prepare($request);
 
-    $this->assertEqual($response->getStatusCode(), Response::HTTP_FORBIDDEN);
-    $this->assertEqual($response->headers->get('Content-type'), 'text/html; charset=UTF-8');
+    $this->assertEquals($response->getStatusCode(), Response::HTTP_FORBIDDEN);
+    $this->assertEquals($response->headers->get('Content-type'), 'text/html; charset=UTF-8');
   }
 
   /**
@@ -101,8 +101,8 @@ public function testHtml404() {
     $kernel = \Drupal::getContainer()->get('http_kernel');
     $response = $kernel->handle($request)->prepare($request);
 
-    $this->assertEqual($response->getStatusCode(), Response::HTTP_NOT_FOUND);
-    $this->assertEqual($response->headers->get('Content-type'), 'text/html; charset=UTF-8');
+    $this->assertEquals($response->getStatusCode(), Response::HTTP_NOT_FOUND);
+    $this->assertEquals($response->headers->get('Content-type'), 'text/html; charset=UTF-8');
   }
 
   /**
@@ -154,8 +154,8 @@ public function testBacktraceEscaping() {
     /** @var \Symfony\Component\HttpKernel\HttpKernelInterface $kernel */
     $kernel = \Drupal::getContainer()->get('http_kernel');
     $response = $kernel->handle($request)->prepare($request);
-    $this->assertEqual($response->getStatusCode(), Response::HTTP_INTERNAL_SERVER_ERROR);
-    $this->assertEqual($response->headers->get('Content-type'), 'text/plain; charset=UTF-8');
+    $this->assertEquals($response->getStatusCode(), Response::HTTP_INTERNAL_SERVER_ERROR);
+    $this->assertEquals($response->headers->get('Content-type'), 'text/plain; charset=UTF-8');
 
     // Test both that the backtrace is properly escaped, and that the unescaped
     // string is not output at all.
@@ -177,8 +177,8 @@ public function testExceptionEscaping() {
     /** @var \Symfony\Component\HttpKernel\HttpKernelInterface $kernel */
     $kernel = \Drupal::getContainer()->get('http_kernel');
     $response = $kernel->handle($request)->prepare($request);
-    $this->assertEqual($response->getStatusCode(), Response::HTTP_INTERNAL_SERVER_ERROR);
-    $this->assertEqual($response->headers->get('Content-type'), 'text/plain; charset=UTF-8');
+    $this->assertEquals($response->getStatusCode(), Response::HTTP_INTERNAL_SERVER_ERROR);
+    $this->assertEquals($response->headers->get('Content-type'), 'text/plain; charset=UTF-8');
 
     // Test message is properly escaped, and that the unescaped string is not
     // output at all.
@@ -195,7 +195,7 @@ public function testExceptionEscaping() {
     // contained in the output would not matter, but because it is output by the
     // final exception subscriber, it is printed as partial HTML, and hence
     // escaped.
-    $this->assertEqual($response->headers->get('Content-type'), 'text/plain; charset=UTF-8');
+    $this->assertEquals($response->headers->get('Content-type'), 'text/plain; charset=UTF-8');
     $this->assertStringStartsWith('The website encountered an unexpected error. Please try again later.</br></br><em class="placeholder">Symfony\Component\HttpKernel\Exception\NotAcceptableHttpException</em>: Not acceptable format: json&lt;script&gt;alert(123);&lt;/script&gt; in <em class="placeholder">', $response->getContent());
   }
 
diff --git a/core/tests/Drupal/KernelTests/Core/Routing/MatcherDumperTest.php b/core/tests/Drupal/KernelTests/Core/Routing/MatcherDumperTest.php
index f37383d631..d9ddec823b 100644
--- a/core/tests/Drupal/KernelTests/Core/Routing/MatcherDumperTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Routing/MatcherDumperTest.php
@@ -69,7 +69,7 @@ public function testAddRoutes() {
     $collection_routes = $collection->all();
 
     foreach ($dumper_routes as $name => $route) {
-      $this->assertEqual($route->getPath(), $collection_routes[$name]->getPath(), 'Routes match');
+      $this->assertEquals($route->getPath(), $collection_routes[$name]->getPath(), 'Routes match');
     }
   }
 
@@ -131,10 +131,10 @@ public function testDump() {
 
     $loaded_route = unserialize($record->route);
 
-    $this->assertEqual($record->name, 'test_route', 'Dumped route has correct name.');
-    $this->assertEqual($record->path, '/test/{my}/path', 'Dumped route has correct pattern.');
-    $this->assertEqual($record->pattern_outline, '/test/%/path', 'Dumped route has correct pattern outline.');
-    $this->assertEqual($record->fit, 5 /* 101 in binary */, 'Dumped route has correct fit.');
+    $this->assertEquals($record->name, 'test_route', 'Dumped route has correct name.');
+    $this->assertEquals($record->path, '/test/{my}/path', 'Dumped route has correct pattern.');
+    $this->assertEquals($record->pattern_outline, '/test/%/path', 'Dumped route has correct pattern outline.');
+    $this->assertEquals($record->fit, 5 /* 101 in binary */, 'Dumped route has correct fit.');
     $this->assertTrue($loaded_route instanceof Route, 'Route object retrieved successfully.');
   }
 
@@ -164,7 +164,7 @@ public function testMenuMasksGeneration() {
       bindec('111'),
       bindec('101'),
     ];
-    $this->assertEqual($this->state->get('routing.menu_masks.test_routes'), $expected);
+    $this->assertEquals($this->state->get('routing.menu_masks.test_routes'), $expected);
   }
 
 }
diff --git a/core/tests/Drupal/KernelTests/Core/Routing/RouteProviderTest.php b/core/tests/Drupal/KernelTests/Core/Routing/RouteProviderTest.php
index 674214bf0c..7955dc0662 100644
--- a/core/tests/Drupal/KernelTests/Core/Routing/RouteProviderTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Routing/RouteProviderTest.php
@@ -139,7 +139,7 @@ public function testCandidateOutlines() {
   public function testEmptyPathCandidatesOutlines() {
     $provider = new TestRouteProvider(Database::getConnection(), $this->state, $this->currentPath, $this->cache, $this->pathProcessor, $this->cacheTagsInvalidator, 'test_routes');
     $candidates = $provider->getCandidateOutlines([]);
-    $this->assertEqual(count($candidates), 0, 'Empty parts should return no candidates.');
+    $this->assertEquals(count($candidates), 0, 'Empty parts should return no candidates.');
   }
 
   /**
@@ -162,7 +162,7 @@ public function testExactPathMatch() {
     $routes = $provider->getRouteCollectionForRequest($request);
 
     foreach ($routes as $route) {
-      $this->assertEqual($route->getPath(), $path, 'Found path has correct pattern');
+      $this->assertEquals($route->getPath(), $path, 'Found path has correct pattern');
     }
   }
 
@@ -187,10 +187,10 @@ public function testOutlinePathMatch() {
 
     // All of the matching paths have the correct pattern.
     foreach ($routes as $route) {
-      $this->assertEqual($route->compile()->getPatternOutline(), '/path/%/one', 'Found path has correct pattern');
+      $this->assertEquals($route->compile()->getPatternOutline(), '/path/%/one', 'Found path has correct pattern');
     }
 
-    $this->assertEqual(count($routes), 2, 'The correct number of routes was found.');
+    $this->assertEquals(count($routes), 2, 'The correct number of routes was found.');
     $this->assertNotNull($routes->get('route_a'), 'The first matching route was found.');
     $this->assertNotNull($routes->get('route_b'), 'The second matching route was not found.');
   }
@@ -317,10 +317,10 @@ public function testOutlinePathMatchTrailingSlash() {
 
     // All of the matching paths have the correct pattern.
     foreach ($routes as $route) {
-      $this->assertEqual($route->compile()->getPatternOutline(), '/path/%/one', 'Found path has correct pattern');
+      $this->assertEquals($route->compile()->getPatternOutline(), '/path/%/one', 'Found path has correct pattern');
     }
 
-    $this->assertEqual(count($routes), 2, 'The correct number of routes was found.');
+    $this->assertEquals(count($routes), 2, 'The correct number of routes was found.');
     $this->assertNotNull($routes->get('route_a'), 'The first matching route was found.');
     $this->assertNotNull($routes->get('route_b'), 'The second matching route was not found.');
   }
@@ -352,10 +352,10 @@ public function testOutlinePathMatchDefaults() {
 
       // All of the matching paths have the correct pattern.
       foreach ($routes as $route) {
-        $this->assertEqual($route->compile()->getPatternOutline(), '/some/path', 'Found path has correct pattern');
+        $this->assertEquals($route->compile()->getPatternOutline(), '/some/path', 'Found path has correct pattern');
       }
 
-      $this->assertEqual(count($routes), 1, 'The correct number of routes was found.');
+      $this->assertEquals(count($routes), 1, 'The correct number of routes was found.');
       $this->assertNotNull($routes->get('poink'), 'The first matching route was found.');
     }
     catch (ResourceNotFoundException $e) {
@@ -391,10 +391,10 @@ public function testOutlinePathMatchDefaultsCollision() {
 
       // All of the matching paths have the correct pattern.
       foreach ($routes as $route) {
-        $this->assertEqual($route->compile()->getPatternOutline(), '/some/path', 'Found path has correct pattern');
+        $this->assertEquals($route->compile()->getPatternOutline(), '/some/path', 'Found path has correct pattern');
       }
 
-      $this->assertEqual(count($routes), 1, 'The correct number of routes was found.');
+      $this->assertEquals(count($routes), 1, 'The correct number of routes was found.');
       $this->assertNotNull($routes->get('poink'), 'The first matching route was found.');
     }
     catch (ResourceNotFoundException $e) {
@@ -430,8 +430,8 @@ public function testOutlinePathMatchDefaultsCollision2() {
       $routes = $provider->getRouteCollectionForRequest($request);
       $routes_array = $routes->all();
 
-      $this->assertEqual(count($routes), 2, 'The correct number of routes was found.');
-      $this->assertEqual(['narf', 'poink'], array_keys($routes_array), 'Ensure the fitness was taken into account.');
+      $this->assertEquals(count($routes), 2, 'The correct number of routes was found.');
+      $this->assertEquals(['narf', 'poink'], array_keys($routes_array), 'Ensure the fitness was taken into account.');
       $this->assertNotNull($routes->get('narf'), 'The first matching route was found.');
       $this->assertNotNull($routes->get('poink'), 'The second matching route was found.');
       $this->assertNull($routes->get('eep'), 'Non-matching route was not found.');
@@ -469,8 +469,8 @@ public function testOutlinePathMatchDefaultsCollision3() {
       $routes = $provider->getRouteCollectionForRequest($request);
       $routes_array = $routes->all();
 
-      $this->assertEqual(count($routes), 2, 'The correct number of routes was found.');
-      $this->assertEqual(['poink', 'poink2'], array_keys($routes_array), 'Ensure the fitness and name were taken into account in the sort.');
+      $this->assertEquals(count($routes), 2, 'The correct number of routes was found.');
+      $this->assertEquals(['poink', 'poink2'], array_keys($routes_array), 'Ensure the fitness and name were taken into account in the sort.');
       $this->assertNotNull($routes->get('poink'), 'The first matching route was found.');
       $this->assertNotNull($routes->get('poink2'), 'The second matching route was found.');
       $this->assertNull($routes->get('eep'), 'Non-matching route was not found.');
@@ -505,10 +505,10 @@ public function testOutlinePathMatchZero() {
 
       // All of the matching paths have the correct pattern.
       foreach ($routes as $route) {
-        $this->assertEqual($route->compile()->getPatternOutline(), '/some/path/%', 'Found path has correct pattern');
+        $this->assertEquals($route->compile()->getPatternOutline(), '/some/path/%', 'Found path has correct pattern');
       }
 
-      $this->assertEqual(count($routes), 1, 'The correct number of routes was found.');
+      $this->assertEquals(count($routes), 1, 'The correct number of routes was found.');
     }
     catch (ResourceNotFoundException $e) {
       $this->fail('No matchout route found with 0 as argument value');
@@ -559,9 +559,9 @@ public function testRouteCaching() {
     $provider->getRouteCollectionForRequest($request);
 
     $cache = $this->cache->get('route:/path/add/one:');
-    $this->assertEqual('/path/add/one', $cache->data['path']);
-    $this->assertEqual([], $cache->data['query']);
-    $this->assertEqual(3, count($cache->data['routes']));
+    $this->assertEquals('/path/add/one', $cache->data['path']);
+    $this->assertEquals([], $cache->data['query']);
+    $this->assertEquals(3, count($cache->data['routes']));
 
     // A path with query parameters.
     $path = '/path/add/one?foo=bar';
@@ -569,9 +569,9 @@ public function testRouteCaching() {
     $provider->getRouteCollectionForRequest($request);
 
     $cache = $this->cache->get('route:/path/add/one:foo=bar');
-    $this->assertEqual('/path/add/one', $cache->data['path']);
-    $this->assertEqual(['foo' => 'bar'], $cache->data['query']);
-    $this->assertEqual(3, count($cache->data['routes']));
+    $this->assertEquals('/path/add/one', $cache->data['path']);
+    $this->assertEquals(['foo' => 'bar'], $cache->data['query']);
+    $this->assertEquals(3, count($cache->data['routes']));
 
     // A path with placeholders.
     $path = '/path/1/one';
@@ -579,9 +579,9 @@ public function testRouteCaching() {
     $provider->getRouteCollectionForRequest($request);
 
     $cache = $this->cache->get('route:/path/1/one:');
-    $this->assertEqual('/path/1/one', $cache->data['path']);
-    $this->assertEqual([], $cache->data['query']);
-    $this->assertEqual(2, count($cache->data['routes']));
+    $this->assertEquals('/path/1/one', $cache->data['path']);
+    $this->assertEquals([], $cache->data['query']);
+    $this->assertEquals(2, count($cache->data['routes']));
 
     // A path with a path alias.
     /** @var \Drupal\Core\Path\AliasStorageInterface $path_storage */
@@ -596,9 +596,9 @@ public function testRouteCaching() {
     $provider->getRouteCollectionForRequest($request);
 
     $cache = $this->cache->get('route:/path/add-one:');
-    $this->assertEqual('/path/add/one', $cache->data['path']);
-    $this->assertEqual([], $cache->data['query']);
-    $this->assertEqual(3, count($cache->data['routes']));
+    $this->assertEquals('/path/add/one', $cache->data['path']);
+    $this->assertEquals([], $cache->data['query']);
+    $this->assertEquals(3, count($cache->data['routes']));
   }
 
   /**
@@ -615,11 +615,11 @@ public function testRouteByName() {
     $dumper->dump();
 
     $route = $provider->getRouteByName('route_a');
-    $this->assertEqual($route->getPath(), '/path/one', 'The right route pattern was found.');
-    $this->assertEqual($route->getMethods(), ['GET'], 'The right route method was found.');
+    $this->assertEquals($route->getPath(), '/path/one', 'The right route pattern was found.');
+    $this->assertEquals($route->getMethods(), ['GET'], 'The right route method was found.');
     $route = $provider->getRouteByName('route_b');
-    $this->assertEqual($route->getPath(), '/path/one', 'The right route pattern was found.');
-    $this->assertEqual($route->getMethods(), ['PUT'], 'The right route method was found.');
+    $this->assertEquals($route->getPath(), '/path/one', 'The right route pattern was found.');
+    $this->assertEquals($route->getMethods(), ['PUT'], 'The right route method was found.');
 
     $exception_thrown = FALSE;
     try {
@@ -631,9 +631,9 @@ public function testRouteByName() {
     $this->assertTrue($exception_thrown, 'Random route was not found.');
 
     $routes = $provider->getRoutesByNames(['route_c', 'route_d', $this->randomMachineName()]);
-    $this->assertEqual(count($routes), 2, 'Only two valid routes found.');
-    $this->assertEqual($routes['route_c']->getPath(), '/path/two');
-    $this->assertEqual($routes['route_d']->getPath(), '/path/three');
+    $this->assertEquals(count($routes), 2, 'Only two valid routes found.');
+    $this->assertEquals($routes['route_c']->getPath(), '/path/two');
+    $this->assertEquals($routes['route_d']->getPath(), '/path/three');
   }
 
   /**
@@ -648,15 +648,15 @@ public function testGetRoutesByPatternWithLongPatterns() {
     // even though we have not dumped the routes yet.
     $shortest = '/test/1/test2';
     $result = $provider->getRoutesByPattern($shortest);
-    $this->assertEqual($result->count(), 0);
+    $this->assertEquals($result->count(), 0);
     $candidates = $provider->getCandidateOutlines(explode('/', trim($shortest, '/')));
-    $this->assertEqual(count($candidates), 7);
+    $this->assertEquals(count($candidates), 7);
     // A longer patten is not found and returns no candidates
     $path_to_test = '/test/1/test2/2/test3/3/4/5/6/test4';
     $result = $provider->getRoutesByPattern($path_to_test);
-    $this->assertEqual($result->count(), 0);
+    $this->assertEquals($result->count(), 0);
     $candidates = $provider->getCandidateOutlines(explode('/', trim($path_to_test, '/')));
-    $this->assertEqual(count($candidates), 0);
+    $this->assertEquals(count($candidates), 0);
 
     // Add a matching route and dump it.
     $dumper = new MatcherDumper($connection, $this->state, 'test_routes');
@@ -666,32 +666,32 @@ public function testGetRoutesByPatternWithLongPatterns() {
     $dumper->dump();
 
     $result = $provider->getRoutesByPattern($path_to_test);
-    $this->assertEqual($result->count(), 1);
+    $this->assertEquals($result->count(), 1);
     // We can't compare the values of the routes directly, nor use
     // spl_object_hash() because they are separate instances.
-    $this->assertEqual(serialize($result->get('long_pattern')), serialize($collection->get('long_pattern')), 'The right route was found.');
+    $this->assertEquals(serialize($result->get('long_pattern')), serialize($collection->get('long_pattern')), 'The right route was found.');
     // We now have a single candidate outline.
     $candidates = $provider->getCandidateOutlines(explode('/', trim($path_to_test, '/')));
-    $this->assertEqual(count($candidates), 1);
+    $this->assertEquals(count($candidates), 1);
     // Longer and shorter patterns are not found. Both are longer than 3, so
     // we should not have any candidates either. The fact that we do not
     // get any candidates for a longer path is a security feature.
     $longer = '/test/1/test2/2/test3/3/4/5/6/test4/trailing/more/parts';
     $result = $provider->getRoutesByPattern($longer);
-    $this->assertEqual($result->count(), 0);
+    $this->assertEquals($result->count(), 0);
     $candidates = $provider->getCandidateOutlines(explode('/', trim($longer, '/')));
-    $this->assertEqual(count($candidates), 1);
+    $this->assertEquals(count($candidates), 1);
     $shorter = '/test/1/test2/2/test3';
     $result = $provider->getRoutesByPattern($shorter);
-    $this->assertEqual($result->count(), 0);
+    $this->assertEquals($result->count(), 0);
     $candidates = $provider->getCandidateOutlines(explode('/', trim($shorter, '/')));
-    $this->assertEqual(count($candidates), 0);
+    $this->assertEquals(count($candidates), 0);
     // This pattern has only 3 parts, so we will get candidates, but no routes.
     // This result is unchanged by running the dumper.
     $result = $provider->getRoutesByPattern($shortest);
-    $this->assertEqual($result->count(), 0);
+    $this->assertEquals($result->count(), 0);
     $candidates = $provider->getCandidateOutlines(explode('/', trim($shortest, '/')));
-    $this->assertEqual(count($candidates), 7);
+    $this->assertEquals(count($candidates), 7);
   }
 
   /**
@@ -710,15 +710,15 @@ public function testGetRoutesPaged() {
 
     // Query all the routes.
     $routes = $provider->getRoutesPaged(0);
-    $this->assertEqual(array_keys($routes), array_keys($fixture_routes));
+    $this->assertEquals(array_keys($routes), array_keys($fixture_routes));
 
     // Query non routes.
     $routes = $provider->getRoutesPaged(0, 0);
-    $this->assertEqual(array_keys($routes), []);
+    $this->assertEquals(array_keys($routes), []);
 
     // Query a limited sets of routes.
     $routes = $provider->getRoutesPaged(1, 2);
-    $this->assertEqual(array_keys($routes), array_slice(array_keys($fixture_routes), 1, 2));
+    $this->assertEquals(array_keys($routes), array_slice(array_keys($fixture_routes), 1, 2));
   }
 
 }
diff --git a/core/tests/Drupal/KernelTests/Core/Session/AccountSwitcherTest.php b/core/tests/Drupal/KernelTests/Core/Session/AccountSwitcherTest.php
index 0492d77347..f6db9111f1 100644
--- a/core/tests/Drupal/KernelTests/Core/Session/AccountSwitcherTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Session/AccountSwitcherTest.php
@@ -24,12 +24,12 @@ public function testAccountSwitching() {
 
     // Verify that the active user has changed, and that session saving is
     // disabled.
-    $this->assertEqual($user->id(), 2, 'Switched to user 2.');
+    $this->assertEquals($user->id(), 2, 'Switched to user 2.');
     $this->assertFalse($session_handler->isSessionWritable(), 'Session saving is disabled.');
 
     // Perform a second (nested) user account switch.
     $switcher->switchTo(new UserSession(['uid' => 3]));
-    $this->assertEqual($user->id(), 3, 'Switched to user 3.');
+    $this->assertEquals($user->id(), 3, 'Switched to user 3.');
 
     // Revert to the user session that was active between the first and second
     // switch.
@@ -37,7 +37,7 @@ public function testAccountSwitching() {
 
     // Since we are still in the account from the first switch, session handling
     // still needs to be disabled.
-    $this->assertEqual($user->id(), 2, 'Reverted to user 2.');
+    $this->assertEquals($user->id(), 2, 'Reverted to user 2.');
     $this->assertFalse($session_handler->isSessionWritable(), 'Session saving still disabled.');
 
     // Revert to the original account which was active before the first switch.
@@ -45,8 +45,8 @@ public function testAccountSwitching() {
 
     // Assert that the original account is active again, and that session saving
     // has been re-enabled.
-    $this->assertEqual($user->id(), $original_user->id(), 'Original user correctly restored.');
-    $this->assertEqual($session_handler->isSessionWritable(), $original_session_saving, 'Original session saving correctly restored.');
+    $this->assertEquals($user->id(), $original_user->id(), 'Original user correctly restored.');
+    $this->assertEquals($session_handler->isSessionWritable(), $original_session_saving, 'Original session saving correctly restored.');
 
     // Verify that AccountSwitcherInterface::switchBack() will throw
     // an exception if there are no accounts left in the stack.
diff --git a/core/tests/Drupal/KernelTests/Core/Site/SettingsRewriteTest.php b/core/tests/Drupal/KernelTests/Core/Site/SettingsRewriteTest.php
index ef593751bf..0edb18fb3d 100644
--- a/core/tests/Drupal/KernelTests/Core/Site/SettingsRewriteTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Site/SettingsRewriteTest.php
@@ -99,7 +99,7 @@ public function testDrupalRewriteSettings() {
       $filename = Settings::get('file_public_path', $site_path . '/files') . '/mock_settings.php';
       file_put_contents($filename, "<?php\n" . $test['original'] . "\n");
       drupal_rewrite_settings($test['settings'], $filename);
-      $this->assertEqual(file_get_contents($filename), "<?php\n" . $test['expected'] . "\n");
+      $this->assertEquals(file_get_contents($filename), "<?php\n" . $test['expected'] . "\n");
     }
 
     // Test that <?php gets added to the start of an empty settings file.
@@ -121,7 +121,7 @@ public function testDrupalRewriteSettings() {
     drupal_rewrite_settings($test['settings'], $filename);
 
     // Check that the result is just the php opening tag and the settings.
-    $this->assertEqual(file_get_contents($filename), "<?php\n" . $test['expected'] . "\n");
+    $this->assertEquals(file_get_contents($filename), "<?php\n" . $test['expected'] . "\n");
   }
 
 }
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());
     }
   }
 
diff --git a/core/tests/Drupal/KernelTests/Core/Theme/RegistryTest.php b/core/tests/Drupal/KernelTests/Core/Theme/RegistryTest.php
index f453852d2e..3b3a6a1134 100644
--- a/core/tests/Drupal/KernelTests/Core/Theme/RegistryTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Theme/RegistryTest.php
@@ -156,7 +156,7 @@ public function testThemeRegistryAlterByTheme() {
 
     $registry = new Registry(\Drupal::root(), \Drupal::cache(), \Drupal::lock(), \Drupal::moduleHandler(), $theme_handler, \Drupal::service('theme.initialization'), 'test_theme');
     $registry->setThemeManager(\Drupal::theme());
-    $this->assertEqual('value', $registry->get()['theme_test_template_test']['variables']['additional']);
+    $this->assertEquals('value', $registry->get()['theme_test_template_test']['variables']['additional']);
   }
 
   /**
diff --git a/core/tests/Drupal/KernelTests/Core/Theme/StableLibraryOverrideTest.php b/core/tests/Drupal/KernelTests/Core/Theme/StableLibraryOverrideTest.php
index a71c3fe642..27f51719a9 100644
--- a/core/tests/Drupal/KernelTests/Core/Theme/StableLibraryOverrideTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Theme/StableLibraryOverrideTest.php
@@ -119,7 +119,7 @@ public function testStableLibraryOverrides() {
           $expected_path = str_replace("core/modules/$extension/css/", "core/themes/stable/css/$extension/", $expected_path);
           $assert_path = str_replace("core/modules/$extension/", '', $clean_path);
 
-          $this->assertEqual($expected_path, $stable_path, "$assert_path from the $extension/$library_name library is overridden in Stable.");
+          $this->assertEquals($expected_path, $stable_path, "$assert_path from the $extension/$library_name library is overridden in Stable.");
         }
       }
     }
@@ -169,7 +169,7 @@ protected function getAllLibraries() {
     $modules = \Drupal::moduleHandler()->getModuleList();
     $module_list = array_keys($modules);
     sort($module_list);
-    $this->assertEqual($this->allModules, $module_list, 'All core modules are installed.');
+    $this->assertEquals($this->allModules, $module_list, 'All core modules are installed.');
 
     $libraries['core'] = $this->libraryDiscovery->getLibrariesByExtension('core');
 
diff --git a/core/tests/Drupal/KernelTests/Core/Theme/ThemeInstallerTest.php b/core/tests/Drupal/KernelTests/Core/Theme/ThemeInstallerTest.php
index 61f647528d..476c1a63aa 100644
--- a/core/tests/Drupal/KernelTests/Core/Theme/ThemeInstallerTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Theme/ThemeInstallerTest.php
@@ -67,14 +67,14 @@ public function testInstall() {
 
     $themes = $this->themeHandler()->listInfo();
     $this->assertTrue(isset($themes[$name]));
-    $this->assertEqual($themes[$name]->getName(), $name);
+    $this->assertEquals($themes[$name]->getName(), $name);
 
-    $this->assertEqual(array_keys(system_list('theme')), array_keys($themes));
+    $this->assertEquals(array_keys(system_list('theme')), array_keys($themes));
 
     // Verify that test_basetheme.settings is active.
     $this->assertIdentical(theme_get_setting('features.favicon', $name), FALSE);
-    $this->assertEqual(theme_get_setting('base', $name), 'only');
-    $this->assertEqual(theme_get_setting('override', $name), 'base');
+    $this->assertEquals(theme_get_setting('base', $name), 'only');
+    $this->assertEquals(theme_get_setting('override', $name), 'base');
   }
 
   /**
@@ -279,8 +279,8 @@ public function testUninstall() {
     $this->themeInstaller()->install([$name]);
     $themes = $this->themeHandler()->listInfo();
     $this->assertTrue(isset($themes[$name]));
-    $this->assertEqual($themes[$name]->getName(), $name);
-    $this->assertEqual(array_keys(system_list('theme')), array_keys($themes));
+    $this->assertEquals($themes[$name]->getName(), $name);
+    $this->assertEquals(array_keys(system_list('theme')), array_keys($themes));
     $this->assertTrue($this->config("$name.settings")->get());
   }
 
diff --git a/core/tests/Drupal/KernelTests/Core/Theme/TwigEnvironmentTest.php b/core/tests/Drupal/KernelTests/Core/Theme/TwigEnvironmentTest.php
index 5d6f61f205..73abf127c1 100644
--- a/core/tests/Drupal/KernelTests/Core/Theme/TwigEnvironmentTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Theme/TwigEnvironmentTest.php
@@ -31,8 +31,8 @@ public function testInlineTemplate() {
     $renderer = $this->container->get('renderer');
     /** @var \Drupal\Core\Template\TwigEnvironment $environment */
     $environment = \Drupal::service('twig');
-    $this->assertEqual($environment->renderInline('test-no-context'), 'test-no-context');
-    $this->assertEqual($environment->renderInline('test-with-context {{ llama }}', ['llama' => 'muuh']), 'test-with-context muuh');
+    $this->assertEquals($environment->renderInline('test-no-context'), 'test-no-context');
+    $this->assertEquals($environment->renderInline('test-with-context {{ llama }}', ['llama' => 'muuh']), 'test-with-context muuh');
 
     $element = [];
     $unsafe_string = '<script>alert(\'Danger! High voltage!\');</script>';
@@ -41,7 +41,7 @@ public function testInlineTemplate() {
       '#template' => 'test-with-context <label>{{ unsafe_content }}</label>',
       '#context' => ['unsafe_content' => $unsafe_string],
     ];
-    $this->assertEqual($renderer->renderRoot($element), 'test-with-context <label>' . Html::escape($unsafe_string) . '</label>');
+    $this->assertEquals($renderer->renderRoot($element), 'test-with-context <label>' . Html::escape($unsafe_string) . '</label>');
 
     // Enable twig_auto_reload and twig_debug.
     $settings = Settings::getAll();
@@ -60,8 +60,8 @@ public function testInlineTemplate() {
     ];
     $element_copy = $element;
     // Render it twice so that twig caching is triggered.
-    $this->assertEqual($renderer->renderRoot($element), 'test-with-context muuh');
-    $this->assertEqual($renderer->renderRoot($element_copy), 'test-with-context muuh');
+    $this->assertEquals($renderer->renderRoot($element), 'test-with-context muuh');
+    $this->assertEquals($renderer->renderRoot($element_copy), 'test-with-context muuh');
 
     // Tests caching of inline templates with long content to ensure the
     // generated cache key can be used as a filename.
@@ -81,8 +81,8 @@ public function testInlineTemplate() {
     $element_copy = $element;
 
     // Render it twice so that twig caching is triggered.
-    $this->assertEqual($renderer->renderRoot($element), $expected);
-    $this->assertEqual($renderer->renderRoot($element_copy), $expected);
+    $this->assertEquals($renderer->renderRoot($element), $expected);
+    $this->assertEquals($renderer->renderRoot($element_copy), $expected);
 
     $name = '{# inline_template_start #}' . $element['test']['#template'];
     $prefix = $environment->getTwigCachePrefix();
@@ -90,7 +90,7 @@ public function testInlineTemplate() {
     $cache = $environment->getCache();
     $class = $environment->getTemplateClass($name);
     $expected = $prefix . '_inline-template_' . substr(Crypt::hashBase64($class), 0, TwigPhpStorageCache::SUFFIX_SUBSTRING_LENGTH);
-    $this->assertEqual($expected, $cache->generateKey($name, $class));
+    $this->assertEquals($expected, $cache->generateKey($name, $class));
   }
 
   /**
diff --git a/core/tests/Drupal/KernelTests/Core/TypedData/AllowedValuesConstraintValidatorTest.php b/core/tests/Drupal/KernelTests/Core/TypedData/AllowedValuesConstraintValidatorTest.php
index 05a36ba2e9..6261d2135a 100644
--- a/core/tests/Drupal/KernelTests/Core/TypedData/AllowedValuesConstraintValidatorTest.php
+++ b/core/tests/Drupal/KernelTests/Core/TypedData/AllowedValuesConstraintValidatorTest.php
@@ -37,18 +37,18 @@ public function testValidation() {
     // Test the validation.
     $typed_data = $this->typedData->create($definition, 1);
     $violations = $typed_data->validate();
-    $this->assertEqual($violations->count(), 0, 'Validation passed for correct value.');
+    $this->assertEquals($violations->count(), 0, 'Validation passed for correct value.');
 
     // Test the validation when an invalid value is passed.
     $typed_data = $this->typedData->create($definition, 4);
     $violations = $typed_data->validate();
-    $this->assertEqual($violations->count(), 1, 'Validation failed for incorrect value.');
+    $this->assertEquals($violations->count(), 1, 'Validation failed for incorrect value.');
 
     // Make sure the information provided by a violation is correct.
     $violation = $violations[0];
-    $this->assertEqual($violation->getMessage(), t('The value you selected is not a valid choice.'), 'The message for invalid value is correct.');
-    $this->assertEqual($violation->getRoot(), $typed_data, 'Violation root is correct.');
-    $this->assertEqual($violation->getInvalidValue(), 4, 'The invalid value is set correctly in the violation.');
+    $this->assertEquals($violation->getMessage(), t('The value you selected is not a valid choice.'), 'The message for invalid value is correct.');
+    $this->assertEquals($violation->getRoot(), $typed_data, 'Violation root is correct.');
+    $this->assertEquals($violation->getInvalidValue(), 4, 'The invalid value is set correctly in the violation.');
   }
 
 }
diff --git a/core/tests/Drupal/KernelTests/Core/TypedData/ComplexDataConstraintValidatorTest.php b/core/tests/Drupal/KernelTests/Core/TypedData/ComplexDataConstraintValidatorTest.php
index bbdf10992f..2b63276c8b 100644
--- a/core/tests/Drupal/KernelTests/Core/TypedData/ComplexDataConstraintValidatorTest.php
+++ b/core/tests/Drupal/KernelTests/Core/TypedData/ComplexDataConstraintValidatorTest.php
@@ -44,24 +44,24 @@ public function testValidation() {
     // Test the validation.
     $typed_data = $this->typedData->create($definition, ['key' => 1]);
     $violations = $typed_data->validate();
-    $this->assertEqual($violations->count(), 0, 'Validation passed for correct value.');
+    $this->assertEquals($violations->count(), 0, 'Validation passed for correct value.');
 
     // Test the validation when an invalid value is passed.
     $typed_data = $this->typedData->create($definition, ['key' => 4]);
     $violations = $typed_data->validate();
-    $this->assertEqual($violations->count(), 1, 'Validation failed for incorrect value.');
+    $this->assertEquals($violations->count(), 1, 'Validation failed for incorrect value.');
 
     // Make sure the information provided by a violation is correct.
     $violation = $violations[0];
-    $this->assertEqual($violation->getMessage(), t('The value you selected is not a valid choice.'), 'The message for invalid value is correct.');
-    $this->assertEqual($violation->getRoot(), $typed_data, 'Violation root is correct.');
-    $this->assertEqual($violation->getInvalidValue(), 4, 'The invalid value is set correctly in the violation.');
+    $this->assertEquals($violation->getMessage(), t('The value you selected is not a valid choice.'), 'The message for invalid value is correct.');
+    $this->assertEquals($violation->getRoot(), $typed_data, 'Violation root is correct.');
+    $this->assertEquals($violation->getInvalidValue(), 4, 'The invalid value is set correctly in the violation.');
 
     // Test using the constraint with a map without the specified key. This
     // should be ignored as long as there is no NotNull or NotBlank constraint.
     $typed_data = $this->typedData->create($definition, ['foo' => 'bar']);
     $violations = $typed_data->validate();
-    $this->assertEqual($violations->count(), 0, 'Constraint on non-existing key is ignored.');
+    $this->assertEquals($violations->count(), 0, 'Constraint on non-existing key is ignored.');
 
     $definition = MapDataDefinition::create()
       ->setPropertyDefinition('key', DataDefinition::create('integer'))
@@ -73,7 +73,7 @@ public function testValidation() {
 
     $typed_data = $this->typedData->create($definition, ['foo' => 'bar']);
     $violations = $typed_data->validate();
-    $this->assertEqual($violations->count(), 1, 'Key is required.');
+    $this->assertEquals($violations->count(), 1, 'Key is required.');
   }
 
 }
diff --git a/core/tests/Drupal/KernelTests/Core/TypedData/TypedDataDefinitionTest.php b/core/tests/Drupal/KernelTests/Core/TypedData/TypedDataDefinitionTest.php
index ad266c2852..d8813c30a7 100644
--- a/core/tests/Drupal/KernelTests/Core/TypedData/TypedDataDefinitionTest.php
+++ b/core/tests/Drupal/KernelTests/Core/TypedData/TypedDataDefinitionTest.php
@@ -39,19 +39,19 @@ public function testLists() {
     $this->assertTrue($list_definition instanceof ListDataDefinitionInterface);
     $item_definition = $list_definition->getItemDefinition();
     $this->assertTrue($item_definition instanceof DataDefinitionInterface);
-    $this->assertEqual($item_definition->getDataType(), 'string');
+    $this->assertEquals($item_definition->getDataType(), 'string');
 
     // Test using the definition factory.
     $list_definition2 = $this->typedDataManager->createListDataDefinition('string');
     $this->assertTrue($list_definition2 instanceof ListDataDefinitionInterface);
-    $this->assertEqual($list_definition, $list_definition2);
+    $this->assertEquals($list_definition, $list_definition2);
 
     // Test creating the definition of data with type 'list', which is the same
     // as creating a definition of a list of items of type 'any'.
     $list_definition = $this->typedDataManager->createDataDefinition('list');
     $this->assertTrue($list_definition instanceof ListDataDefinitionInterface);
-    $this->assertEqual($list_definition->getDataType(), 'list');
-    $this->assertEqual($list_definition->getItemDefinition()->getDataType(), 'any');
+    $this->assertEquals($list_definition->getDataType(), 'list');
+    $this->assertEquals($list_definition->getItemDefinition()->getDataType(), 'any');
   }
 
   /**
@@ -66,8 +66,8 @@ public function testMaps() {
     $this->assertTrue($map_definition instanceof ComplexDataDefinitionInterface);
 
     // Test retrieving metadata about contained properties.
-    $this->assertEqual(array_keys($map_definition->getPropertyDefinitions()), ['one', 'two', 'three']);
-    $this->assertEqual($map_definition->getPropertyDefinition('one')->getDataType(), 'string');
+    $this->assertEquals(array_keys($map_definition->getPropertyDefinitions()), ['one', 'two', 'three']);
+    $this->assertEquals($map_definition->getPropertyDefinition('one')->getDataType(), 'string');
     $this->assertNull($map_definition->getMainPropertyName());
     $this->assertNull($map_definition->getPropertyDefinition('invalid'));
 
@@ -77,7 +77,7 @@ public function testMaps() {
     $map_definition2->setPropertyDefinition('one', DataDefinition::create('string'))
       ->setPropertyDefinition('two', DataDefinition::create('string'))
       ->setPropertyDefinition('three', DataDefinition::create('string'));
-    $this->assertEqual(serialize($map_definition), serialize($map_definition2));
+    $this->assertEquals(serialize($map_definition), serialize($map_definition2));
   }
 
   /**
@@ -88,12 +88,12 @@ public function testDataReferences() {
     $this->assertTrue($language_reference_definition instanceof DataReferenceDefinitionInterface);
 
     // Test retrieving metadata about the referenced data.
-    $this->assertEqual($language_reference_definition->getTargetDefinition()->getDataType(), 'language');
+    $this->assertEquals($language_reference_definition->getTargetDefinition()->getDataType(), 'language');
 
     // Test using the definition factory.
     $language_reference_definition2 = $this->typedDataManager->createDataDefinition('language_reference');
     $this->assertTrue($language_reference_definition2 instanceof DataReferenceDefinitionInterface);
-    $this->assertEqual(serialize($language_reference_definition), serialize($language_reference_definition2));
+    $this->assertEquals(serialize($language_reference_definition), serialize($language_reference_definition2));
   }
 
 }
diff --git a/core/tests/Drupal/KernelTests/Core/TypedData/TypedDataTest.php b/core/tests/Drupal/KernelTests/Core/TypedData/TypedDataTest.php
index e3e3fae2fe..663bc79fa8 100644
--- a/core/tests/Drupal/KernelTests/Core/TypedData/TypedDataTest.php
+++ b/core/tests/Drupal/KernelTests/Core/TypedData/TypedDataTest.php
@@ -69,92 +69,92 @@ public function testGetAndSet() {
     $typed_data = $this->createTypedData(['type' => 'boolean'], TRUE);
     $this->assertTrue($typed_data instanceof BooleanInterface, 'Typed data object is an instance of BooleanInterface.');
     $this->assertTrue($typed_data->getValue() === TRUE, 'Boolean value was fetched.');
-    $this->assertEqual($typed_data->validate()->count(), 0);
+    $this->assertEquals($typed_data->validate()->count(), 0);
     $typed_data->setValue(FALSE);
     $this->assertTrue($typed_data->getValue() === FALSE, 'Boolean value was changed.');
-    $this->assertEqual($typed_data->validate()->count(), 0);
+    $this->assertEquals($typed_data->validate()->count(), 0);
     $this->assertTrue(is_string($typed_data->getString()), 'Boolean value was converted to string');
     $typed_data->setValue(NULL);
     $this->assertNull($typed_data->getValue(), 'Boolean wrapper is null-able.');
-    $this->assertEqual($typed_data->validate()->count(), 0);
+    $this->assertEquals($typed_data->validate()->count(), 0);
     $typed_data->setValue('invalid');
-    $this->assertEqual($typed_data->validate()->count(), 1, 'Validation detected invalid value.');
+    $this->assertEquals($typed_data->validate()->count(), 1, 'Validation detected invalid value.');
 
     // String type.
     $value = $this->randomString();
     $typed_data = $this->createTypedData(['type' => 'string'], $value);
     $this->assertTrue($typed_data instanceof StringInterface, 'Typed data object is an instance of StringInterface.');
     $this->assertTrue($typed_data->getValue() === $value, 'String value was fetched.');
-    $this->assertEqual($typed_data->validate()->count(), 0);
+    $this->assertEquals($typed_data->validate()->count(), 0);
     $new_value = $this->randomString();
     $typed_data->setValue($new_value);
     $this->assertTrue($typed_data->getValue() === $new_value, 'String value was changed.');
-    $this->assertEqual($typed_data->validate()->count(), 0);
+    $this->assertEquals($typed_data->validate()->count(), 0);
     // Funky test.
     $this->assertTrue(is_string($typed_data->getString()), 'String value was converted to string');
     $typed_data->setValue(NULL);
     $this->assertNull($typed_data->getValue(), 'String wrapper is null-able.');
-    $this->assertEqual($typed_data->validate()->count(), 0);
+    $this->assertEquals($typed_data->validate()->count(), 0);
     $typed_data->setValue(['no string']);
-    $this->assertEqual($typed_data->validate()->count(), 1, 'Validation detected invalid value.');
+    $this->assertEquals($typed_data->validate()->count(), 1, 'Validation detected invalid value.');
 
     // Integer type.
     $value = rand();
     $typed_data = $this->createTypedData(['type' => 'integer'], $value);
     $this->assertTrue($typed_data instanceof IntegerInterface, 'Typed data object is an instance of IntegerInterface.');
     $this->assertTrue($typed_data->getValue() === $value, 'Integer value was fetched.');
-    $this->assertEqual($typed_data->validate()->count(), 0);
+    $this->assertEquals($typed_data->validate()->count(), 0);
     $new_value = rand();
     $typed_data->setValue($new_value);
     $this->assertTrue($typed_data->getValue() === $new_value, 'Integer value was changed.');
     $this->assertTrue(is_string($typed_data->getString()), 'Integer value was converted to string');
-    $this->assertEqual($typed_data->validate()->count(), 0);
+    $this->assertEquals($typed_data->validate()->count(), 0);
     $typed_data->setValue(NULL);
     $this->assertNull($typed_data->getValue(), 'Integer wrapper is null-able.');
-    $this->assertEqual($typed_data->validate()->count(), 0);
+    $this->assertEquals($typed_data->validate()->count(), 0);
     $typed_data->setValue('invalid');
-    $this->assertEqual($typed_data->validate()->count(), 1, 'Validation detected invalid value.');
+    $this->assertEquals($typed_data->validate()->count(), 1, 'Validation detected invalid value.');
 
     // Float type.
     $value = 123.45;
     $typed_data = $this->createTypedData(['type' => 'float'], $value);
     $this->assertTrue($typed_data instanceof FloatInterface, 'Typed data object is an instance of FloatInterface.');
     $this->assertTrue($typed_data->getValue() === $value, 'Float value was fetched.');
-    $this->assertEqual($typed_data->validate()->count(), 0);
+    $this->assertEquals($typed_data->validate()->count(), 0);
     $new_value = 678.90;
     $typed_data->setValue($new_value);
     $this->assertTrue($typed_data->getValue() === $new_value, 'Float value was changed.');
     $this->assertTrue(is_string($typed_data->getString()), 'Float value was converted to string');
-    $this->assertEqual($typed_data->validate()->count(), 0);
+    $this->assertEquals($typed_data->validate()->count(), 0);
     $typed_data->setValue(NULL);
     $this->assertNull($typed_data->getValue(), 'Float wrapper is null-able.');
-    $this->assertEqual($typed_data->validate()->count(), 0);
+    $this->assertEquals($typed_data->validate()->count(), 0);
     $typed_data->setValue('invalid');
-    $this->assertEqual($typed_data->validate()->count(), 1, 'Validation detected invalid value.');
+    $this->assertEquals($typed_data->validate()->count(), 1, 'Validation detected invalid value.');
 
     // Date Time type.
     $value = '2014-01-01T20:00:00+00:00';
     $typed_data = $this->createTypedData(['type' => 'datetime_iso8601'], $value);
     $this->assertTrue($typed_data instanceof DateTimeInterface, 'Typed data object is an instance of DateTimeInterface.');
     $this->assertTrue($typed_data->getValue() == $value, 'Date value was fetched.');
-    $this->assertEqual($typed_data->getValue(), $typed_data->getDateTime()->format('c'), 'Value representation of a date is ISO 8601');
-    $this->assertEqual($typed_data->validate()->count(), 0);
+    $this->assertEquals($typed_data->getValue(), $typed_data->getDateTime()->format('c'), 'Value representation of a date is ISO 8601');
+    $this->assertEquals($typed_data->validate()->count(), 0);
     $new_value = '2014-01-02T20:00:00+00:00';
     $typed_data->setValue($new_value);
     $this->assertTrue($typed_data->getDateTime()->format('c') === $new_value, 'Date value was changed and set by an ISO8601 date.');
-    $this->assertEqual($typed_data->validate()->count(), 0);
+    $this->assertEquals($typed_data->validate()->count(), 0);
     $this->assertTrue($typed_data->getDateTime()->format('Y-m-d') == '2014-01-02', 'Date value was changed and set by date string.');
-    $this->assertEqual($typed_data->validate()->count(), 0);
+    $this->assertEquals($typed_data->validate()->count(), 0);
     $typed_data->setValue(NULL);
     $this->assertNull($typed_data->getDateTime(), 'Date wrapper is null-able.');
-    $this->assertEqual($typed_data->validate()->count(), 0);
+    $this->assertEquals($typed_data->validate()->count(), 0);
     $typed_data->setValue('invalid');
-    $this->assertEqual($typed_data->validate()->count(), 1, 'Validation detected invalid value.');
+    $this->assertEquals($typed_data->validate()->count(), 1, 'Validation detected invalid value.');
     // Check implementation of DateTimeInterface.
     $typed_data = $this->createTypedData(['type' => 'datetime_iso8601'], '2014-01-01T20:00:00+00:00');
     $this->assertTrue($typed_data->getDateTime() instanceof DrupalDateTime);
     $typed_data->setDateTime(new DrupalDateTime('2014-01-02T20:00:00+00:00'));
-    $this->assertEqual($typed_data->getValue(), '2014-01-02T20:00:00+00:00');
+    $this->assertEquals($typed_data->getValue(), '2014-01-02T20:00:00+00:00');
     $typed_data->setValue(NULL);
     $this->assertNull($typed_data->getDateTime());
 
@@ -163,21 +163,21 @@ public function testGetAndSet() {
     $typed_data = $this->createTypedData(['type' => 'timestamp'], $value);
     $this->assertTrue($typed_data instanceof DateTimeInterface, 'Typed data object is an instance of DateTimeInterface.');
     $this->assertTrue($typed_data->getValue() == $value, 'Timestamp value was fetched.');
-    $this->assertEqual($typed_data->validate()->count(), 0);
+    $this->assertEquals($typed_data->validate()->count(), 0);
     $new_value = REQUEST_TIME + 1;
     $typed_data->setValue($new_value);
     $this->assertTrue($typed_data->getValue() === $new_value, 'Timestamp value was changed and set.');
-    $this->assertEqual($typed_data->validate()->count(), 0);
+    $this->assertEquals($typed_data->validate()->count(), 0);
     $typed_data->setValue(NULL);
     $this->assertNull($typed_data->getDateTime(), 'Timestamp wrapper is null-able.');
-    $this->assertEqual($typed_data->validate()->count(), 0);
+    $this->assertEquals($typed_data->validate()->count(), 0);
     $typed_data->setValue('invalid');
-    $this->assertEqual($typed_data->validate()->count(), 1, 'Validation detected invalid value.');
+    $this->assertEquals($typed_data->validate()->count(), 1, 'Validation detected invalid value.');
     // Check implementation of DateTimeInterface.
     $typed_data = $this->createTypedData(['type' => 'timestamp'], REQUEST_TIME);
     $this->assertTrue($typed_data->getDateTime() instanceof DrupalDateTime);
     $typed_data->setDateTime(DrupalDateTime::createFromTimestamp(REQUEST_TIME + 1));
-    $this->assertEqual($typed_data->getValue(), REQUEST_TIME + 1);
+    $this->assertEquals($typed_data->getValue(), REQUEST_TIME + 1);
     $typed_data->setValue(NULL);
     $this->assertNull($typed_data->getDateTime());
 
@@ -186,22 +186,22 @@ public function testGetAndSet() {
     $typed_data = $this->createTypedData(['type' => 'duration_iso8601'], $value);
     $this->assertTrue($typed_data instanceof DurationInterface, 'Typed data object is an instance of DurationInterface.');
     $this->assertIdentical($typed_data->getValue(), $value, 'DurationIso8601 value was fetched.');
-    $this->assertEqual($typed_data->validate()->count(), 0);
+    $this->assertEquals($typed_data->validate()->count(), 0);
     $typed_data->setValue('P40D');
-    $this->assertEqual($typed_data->getDuration()->d, 40, 'DurationIso8601 value was changed and set by duration string.');
+    $this->assertEquals($typed_data->getDuration()->d, 40, 'DurationIso8601 value was changed and set by duration string.');
     $this->assertTrue(is_string($typed_data->getString()), 'DurationIso8601 value was converted to string');
-    $this->assertEqual($typed_data->validate()->count(), 0);
+    $this->assertEquals($typed_data->validate()->count(), 0);
     $typed_data->setValue(NULL);
     $this->assertNull($typed_data->getValue(), 'DurationIso8601 wrapper is null-able.');
-    $this->assertEqual($typed_data->validate()->count(), 0);
+    $this->assertEquals($typed_data->validate()->count(), 0);
     $typed_data->setValue('invalid');
-    $this->assertEqual($typed_data->validate()->count(), 1, 'Validation detected invalid value.');
+    $this->assertEquals($typed_data->validate()->count(), 1, 'Validation detected invalid value.');
     // Check implementation of DurationInterface.
     $typed_data = $this->createTypedData(['type' => 'duration_iso8601'], 'PT20S');
     $this->assertTrue($typed_data->getDuration() instanceof \DateInterval);
     $typed_data->setDuration(new \DateInterval('P40D'));
     // @todo: Should we make this "nicer"?
-    $this->assertEqual($typed_data->getValue(), 'P0Y0M40DT0H0M0S');
+    $this->assertEquals($typed_data->getValue(), 'P0Y0M40DT0H0M0S');
     $typed_data->setValue(NULL);
     $this->assertNull($typed_data->getDuration());
 
@@ -210,21 +210,21 @@ public function testGetAndSet() {
     $typed_data = $this->createTypedData(['type' => 'timespan'], $value);
     $this->assertTrue($typed_data instanceof DurationInterface, 'Typed data object is an instance of DurationInterface.');
     $this->assertIdentical($typed_data->getValue(), $value, 'Time span value was fetched.');
-    $this->assertEqual($typed_data->validate()->count(), 0);
+    $this->assertEquals($typed_data->validate()->count(), 0);
     $typed_data->setValue(60 * 60 * 4);
-    $this->assertEqual($typed_data->getDuration()->s, 14400, 'Time span was changed');
+    $this->assertEquals($typed_data->getDuration()->s, 14400, 'Time span was changed');
     $this->assertTrue(is_string($typed_data->getString()), 'Time span value was converted to string');
-    $this->assertEqual($typed_data->validate()->count(), 0);
+    $this->assertEquals($typed_data->validate()->count(), 0);
     $typed_data->setValue(NULL);
     $this->assertNull($typed_data->getValue(), 'Time span wrapper is null-able.');
-    $this->assertEqual($typed_data->validate()->count(), 0);
+    $this->assertEquals($typed_data->validate()->count(), 0);
     $typed_data->setValue('invalid');
-    $this->assertEqual($typed_data->validate()->count(), 1, 'Validation detected invalid value.');
+    $this->assertEquals($typed_data->validate()->count(), 1, 'Validation detected invalid value.');
     // Check implementation of DurationInterface.
     $typed_data = $this->createTypedData(['type' => 'timespan'], 20);
     $this->assertTrue($typed_data->getDuration() instanceof \DateInterval);
     $typed_data->setDuration(new \DateInterval('PT4H'));
-    $this->assertEqual($typed_data->getValue(), 60 * 60 * 4);
+    $this->assertEquals($typed_data->getValue(), 60 * 60 * 4);
     $typed_data->setValue(NULL);
     $this->assertNull($typed_data->getDuration());
 
@@ -233,18 +233,18 @@ public function testGetAndSet() {
     $typed_data = $this->createTypedData(['type' => 'uri'], $uri);
     $this->assertTrue($typed_data instanceof UriInterface, 'Typed data object is an instance of UriInterface.');
     $this->assertTrue($typed_data->getValue() === $uri, 'URI value was fetched.');
-    $this->assertEqual($typed_data->validate()->count(), 0);
+    $this->assertEquals($typed_data->validate()->count(), 0);
     $typed_data->setValue($uri . 'bar.txt');
     $this->assertTrue($typed_data->getValue() === $uri . 'bar.txt', 'URI value was changed.');
     $this->assertTrue(is_string($typed_data->getString()), 'URI value was converted to string');
-    $this->assertEqual($typed_data->validate()->count(), 0);
+    $this->assertEquals($typed_data->validate()->count(), 0);
     $typed_data->setValue(NULL);
     $this->assertNull($typed_data->getValue(), 'URI wrapper is null-able.');
-    $this->assertEqual($typed_data->validate()->count(), 0);
+    $this->assertEquals($typed_data->validate()->count(), 0);
     $typed_data->setValue('invalid');
-    $this->assertEqual($typed_data->validate()->count(), 1, 'Validation detected invalid value.');
+    $this->assertEquals($typed_data->validate()->count(), 1, 'Validation detected invalid value.');
     $typed_data->setValue('public://field/image/Photo on 4-28-14 at 12.01 PM.jpg');
-    $this->assertEqual($typed_data->validate()->count(), 0, 'Filename with spaces is valid.');
+    $this->assertEquals($typed_data->validate()->count(), 0, 'Filename with spaces is valid.');
 
     // Generate some files that will be used to test the binary data type.
     $files = [];
@@ -265,33 +265,33 @@ public function testGetAndSet() {
     $typed_data->setValue($new_value);
     $this->assertIdentical($typed_data->getValue(), $new_value, 'Email value was changed.');
     $this->assertTrue(is_string($typed_data->getString()), 'Email value was converted to string');
-    $this->assertEqual($typed_data->validate()->count(), 0);
+    $this->assertEquals($typed_data->validate()->count(), 0);
     $typed_data->setValue(NULL);
     $this->assertNull($typed_data->getValue(), 'Email wrapper is null-able.');
-    $this->assertEqual($typed_data->validate()->count(), 0);
+    $this->assertEquals($typed_data->validate()->count(), 0);
     $typed_data->setValue('invalidATexample.com');
-    $this->assertEqual($typed_data->validate()->count(), 1, 'Validation detected invalid value.');
+    $this->assertEquals($typed_data->validate()->count(), 1, 'Validation detected invalid value.');
 
     // Binary type.
     $typed_data = $this->createTypedData(['type' => 'binary'], $files[0]->getFileUri());
     $this->assertTrue($typed_data instanceof BinaryInterface, 'Typed data object is an instance of BinaryInterface.');
     $this->assertTrue(is_resource($typed_data->getValue()), 'Binary value was fetched.');
-    $this->assertEqual($typed_data->validate()->count(), 0);
+    $this->assertEquals($typed_data->validate()->count(), 0);
     // Try setting by URI.
     $typed_data->setValue($files[1]->getFileUri());
-    $this->assertEqual(fgets($typed_data->getValue()), fgets(fopen($files[1]->getFileUri(), 'r')), 'Binary value was changed.');
+    $this->assertEquals(fgets($typed_data->getValue()), fgets(fopen($files[1]->getFileUri(), 'r')), 'Binary value was changed.');
     $this->assertTrue(is_string($typed_data->getString()), 'Binary value was converted to string');
-    $this->assertEqual($typed_data->validate()->count(), 0);
+    $this->assertEquals($typed_data->validate()->count(), 0);
     // Try setting by resource.
     $typed_data->setValue(fopen($files[2]->getFileUri(), 'r'));
-    $this->assertEqual(fgets($typed_data->getValue()), fgets(fopen($files[2]->getFileUri(), 'r')), 'Binary value was changed.');
+    $this->assertEquals(fgets($typed_data->getValue()), fgets(fopen($files[2]->getFileUri(), 'r')), 'Binary value was changed.');
     $this->assertTrue(is_string($typed_data->getString()), 'Binary value was converted to string');
-    $this->assertEqual($typed_data->validate()->count(), 0);
+    $this->assertEquals($typed_data->validate()->count(), 0);
     $typed_data->setValue(NULL);
     $this->assertNull($typed_data->getValue(), 'Binary wrapper is null-able.');
-    $this->assertEqual($typed_data->validate()->count(), 0);
+    $this->assertEquals($typed_data->validate()->count(), 0);
     $typed_data->setValue('invalid');
-    $this->assertEqual($typed_data->validate()->count(), 1, 'Validation detected invalid value.');
+    $this->assertEquals($typed_data->validate()->count(), 1, 'Validation detected invalid value.');
 
     // Any type.
     $value = ['foo'];
@@ -301,16 +301,16 @@ public function testGetAndSet() {
     $typed_data->setValue($new_value);
     $this->assertIdentical($typed_data->getValue(), $new_value, 'Any value was changed.');
     $this->assertTrue(is_string($typed_data->getString()), 'Any value was converted to string');
-    $this->assertEqual($typed_data->validate()->count(), 0);
+    $this->assertEquals($typed_data->validate()->count(), 0);
     $typed_data->setValue(NULL);
     $this->assertNull($typed_data->getValue(), 'Any wrapper is null-able.');
-    $this->assertEqual($typed_data->validate()->count(), 0);
+    $this->assertEquals($typed_data->validate()->count(), 0);
     // We cannot test invalid values as everything is valid for the any type,
     // but make sure an array or object value passes validation also.
     $typed_data->setValue(['entry']);
-    $this->assertEqual($typed_data->validate()->count(), 0);
+    $this->assertEquals($typed_data->validate()->count(), 0);
     $typed_data->setValue((object) ['entry']);
-    $this->assertEqual($typed_data->validate()->count(), 0);
+    $this->assertEquals($typed_data->validate()->count(), 0);
   }
 
   /**
@@ -320,25 +320,25 @@ public function testTypedDataLists() {
     // Test working with an existing list of strings.
     $value = ['one', 'two', 'three'];
     $typed_data = $this->createTypedData(ListDataDefinition::create('string'), $value);
-    $this->assertEqual($typed_data->getValue(), $value, 'List value has been set.');
+    $this->assertEquals($typed_data->getValue(), $value, 'List value has been set.');
     // Test iterating.
     $count = 0;
     foreach ($typed_data as $item) {
       $this->assertTrue($item instanceof TypedDataInterface);
       $count++;
     }
-    $this->assertEqual($count, 3);
+    $this->assertEquals($count, 3);
 
     // Test getting the string representation.
-    $this->assertEqual($typed_data->getString(), 'one, two, three');
+    $this->assertEquals($typed_data->getString(), 'one, two, three');
     $typed_data[1] = '';
-    $this->assertEqual($typed_data->getString(), 'one, three');
+    $this->assertEquals($typed_data->getString(), 'one, three');
 
     // Test using array access.
-    $this->assertEqual($typed_data[0]->getValue(), 'one');
+    $this->assertEquals($typed_data[0]->getValue(), 'one');
     $typed_data[] = 'four';
-    $this->assertEqual($typed_data[3]->getValue(), 'four');
-    $this->assertEqual($typed_data->count(), 4);
+    $this->assertEquals($typed_data[3]->getValue(), 'four');
+    $this->assertEquals($typed_data->count(), 4);
     $this->assertTrue(isset($typed_data[0]));
     $this->assertTrue(!isset($typed_data[6]));
 
@@ -359,28 +359,28 @@ public function testTypedDataLists() {
     // Test dealing with NULL items.
     $typed_data[] = NULL;
     $this->assertTrue($typed_data->isEmpty());
-    $this->assertEqual(count($typed_data), 1);
+    $this->assertEquals(count($typed_data), 1);
     $typed_data[] = '';
     $this->assertFalse($typed_data->isEmpty());
-    $this->assertEqual(count($typed_data), 2);
+    $this->assertEquals(count($typed_data), 2);
     $typed_data[] = 'three';
     $this->assertFalse($typed_data->isEmpty());
-    $this->assertEqual(count($typed_data), 3);
+    $this->assertEquals(count($typed_data), 3);
 
-    $this->assertEqual($typed_data->getValue(), [NULL, '', 'three']);
+    $this->assertEquals($typed_data->getValue(), [NULL, '', 'three']);
     // Test unsetting.
     unset($typed_data[1]);
-    $this->assertEqual(count($typed_data), 2);
+    $this->assertEquals(count($typed_data), 2);
     // Check that items were shifted.
-    $this->assertEqual($typed_data[1]->getValue(), 'three');
+    $this->assertEquals($typed_data[1]->getValue(), 'three');
 
     // Getting a not set list item returns NULL, and does not create a new item.
     $this->assertNull($typed_data[2]);
-    $this->assertEqual(count($typed_data), 2);
+    $this->assertEquals(count($typed_data), 2);
 
     // Test setting the list with less values.
     $typed_data->setValue(['one']);
-    $this->assertEqual($typed_data->count(), 1);
+    $this->assertEquals($typed_data->count(), 1);
 
     // Test setting invalid values.
     try {
@@ -402,11 +402,11 @@ public function testTypedDataListsFilter() {
     $typed_data->filter(function (TypedDataInterface $item) {
       return TRUE;
     });
-    $this->assertEqual($typed_data->count(), 2);
-    $this->assertEqual($typed_data[0]->getValue(), 'zero');
-    $this->assertEqual($typed_data[0]->getName(), 0);
-    $this->assertEqual($typed_data[1]->getValue(), 'one');
-    $this->assertEqual($typed_data[1]->getName(), 1);
+    $this->assertEquals($typed_data->count(), 2);
+    $this->assertEquals($typed_data[0]->getValue(), 'zero');
+    $this->assertEquals($typed_data[0]->getName(), 0);
+    $this->assertEquals($typed_data[1]->getValue(), 'one');
+    $this->assertEquals($typed_data[1]->getName(), 1);
 
     // Check that a none-pass filter empties the list.
     $value = ['zero', 'one'];
@@ -414,7 +414,7 @@ public function testTypedDataListsFilter() {
     $typed_data->filter(function (TypedDataInterface $item) {
       return FALSE;
     });
-    $this->assertEqual($typed_data->count(), 0);
+    $this->assertEquals($typed_data->count(), 0);
 
     // Check that filtering correctly renumbers elements.
     $value = ['zero', 'one', 'two'];
@@ -422,11 +422,11 @@ public function testTypedDataListsFilter() {
     $typed_data->filter(function (TypedDataInterface $item) {
       return $item->getValue() !== 'one';
     });
-    $this->assertEqual($typed_data->count(), 2);
-    $this->assertEqual($typed_data[0]->getValue(), 'zero');
-    $this->assertEqual($typed_data[0]->getName(), 0);
-    $this->assertEqual($typed_data[1]->getValue(), 'two');
-    $this->assertEqual($typed_data[1]->getName(), 1);
+    $this->assertEquals($typed_data->count(), 2);
+    $this->assertEquals($typed_data[0]->getValue(), 'zero');
+    $this->assertEquals($typed_data[0]->getName(), 0);
+    $this->assertEquals($typed_data[1]->getValue(), 'two');
+    $this->assertEquals($typed_data[1]->getName(), 1);
   }
 
   /**
@@ -452,40 +452,40 @@ public function testTypedDataMaps() {
       $this->assertTrue($item instanceof TypedDataInterface);
       $count++;
     }
-    $this->assertEqual($count, 3);
+    $this->assertEquals($count, 3);
 
     // Test retrieving metadata.
-    $this->assertEqual(array_keys($typed_data->getDataDefinition()->getPropertyDefinitions()), array_keys($value));
+    $this->assertEquals(array_keys($typed_data->getDataDefinition()->getPropertyDefinitions()), array_keys($value));
     $definition = $typed_data->getDataDefinition()->getPropertyDefinition('one');
-    $this->assertEqual($definition->getDataType(), 'string');
+    $this->assertEquals($definition->getDataType(), 'string');
     $this->assertNull($typed_data->getDataDefinition()->getPropertyDefinition('invalid'));
 
     // Test getting and setting properties.
-    $this->assertEqual($typed_data->get('one')->getValue(), 'eins');
-    $this->assertEqual($typed_data->toArray(), $value);
+    $this->assertEquals($typed_data->get('one')->getValue(), 'eins');
+    $this->assertEquals($typed_data->toArray(), $value);
     $typed_data->set('one', 'uno');
-    $this->assertEqual($typed_data->get('one')->getValue(), 'uno');
+    $this->assertEquals($typed_data->get('one')->getValue(), 'uno');
     // Make sure the update is reflected in the value of the map also.
     $value = $typed_data->getValue();
-    $this->assertEqual($value, [
+    $this->assertEquals($value, [
       'one' => 'uno',
       'two' => 'zwei',
       'three' => 'drei'
     ]);
 
     $properties = $typed_data->getProperties();
-    $this->assertEqual(array_keys($properties), array_keys($value));
+    $this->assertEquals(array_keys($properties), array_keys($value));
     $this->assertIdentical($properties['one'], $typed_data->get('one'), 'Properties are identical.');
 
     // Test setting a not defined property. It shouldn't show up in the
     // properties, but be kept in the values.
     $typed_data->setValue(['foo' => 'bar']);
-    $this->assertEqual(array_keys($typed_data->getProperties()), ['one', 'two', 'three']);
-    $this->assertEqual(array_keys($typed_data->getValue()), ['foo', 'one', 'two', 'three']);
+    $this->assertEquals(array_keys($typed_data->getProperties()), ['one', 'two', 'three']);
+    $this->assertEquals(array_keys($typed_data->getValue()), ['foo', 'one', 'two', 'three']);
 
     // Test getting the string representation.
     $typed_data->setValue(['one' => 'eins', 'two' => '', 'three' => 'drei']);
-    $this->assertEqual($typed_data->getString(), 'eins, drei');
+    $this->assertEquals($typed_data->getString(), 'eins, drei');
 
     // Test isEmpty and cloning.
     $this->assertFalse($typed_data->isEmpty());
@@ -525,9 +525,9 @@ public function testTypedDataMaps() {
     // Test adding a new property to the map.
     $typed_data->getDataDefinition()->setPropertyDefinition('zero', DataDefinition::create('any'));
     $typed_data->set('zero', 'null');
-    $this->assertEqual($typed_data->get('zero')->getValue(), 'null');
+    $this->assertEquals($typed_data->get('zero')->getValue(), 'null');
     $definition = $typed_data->get('zero')->getDataDefinition();
-    $this->assertEqual($definition->getDataType(), 'any', 'Definition for a new map entry returned.');
+    $this->assertEquals($definition->getDataType(), 'any', 'Definition for a new map entry returned.');
   }
 
   /**
@@ -539,16 +539,16 @@ public function testTypedDataValidation() {
         'Range' => ['min' => 5],
       ]);
     $violations = $this->typedDataManager->create($definition, 10)->validate();
-    $this->assertEqual($violations->count(), 0);
+    $this->assertEquals($violations->count(), 0);
 
     $integer = $this->typedDataManager->create($definition, 1);
     $violations = $integer->validate();
-    $this->assertEqual($violations->count(), 1);
+    $this->assertEquals($violations->count(), 1);
 
     // Test translating violation messages.
     $message = t('This value should be %limit or more.', ['%limit' => 5]);
-    $this->assertEqual($violations[0]->getMessage(), $message, 'Translated violation message retrieved.');
-    $this->assertEqual($violations[0]->getPropertyPath(), '');
+    $this->assertEquals($violations[0]->getMessage(), $message, 'Translated violation message retrieved.');
+    $this->assertEquals($violations[0]->getPropertyPath(), '');
     $this->assertIdentical($violations[0]->getRoot(), $integer, 'Root object returned.');
 
     // Test translating violation messages when pluralization is used.
@@ -557,9 +557,9 @@ public function testTypedDataValidation() {
         'Length' => ['min' => 10],
       ]);
     $violations = $this->typedDataManager->create($definition, "short")->validate();
-    $this->assertEqual($violations->count(), 1);
+    $this->assertEquals($violations->count(), 1);
     $message = t('This value is too short. It should have %limit characters or more.', ['%limit' => 10]);
-    $this->assertEqual($violations[0]->getMessage(), $message, 'Translated violation message retrieved.');
+    $this->assertEquals($violations[0]->getMessage(), $message, 'Translated violation message retrieved.');
 
     // Test having multiple violations.
     $definition = DataDefinition::create('integer')
@@ -568,9 +568,9 @@ public function testTypedDataValidation() {
         'Null' => [],
       ]);
     $violations = $this->typedDataManager->create($definition, 10)->validate();
-    $this->assertEqual($violations->count(), 1);
+    $this->assertEquals($violations->count(), 1);
     $violations = $this->typedDataManager->create($definition, 1)->validate();
-    $this->assertEqual($violations->count(), 2);
+    $this->assertEquals($violations->count(), 2);
 
     // Test validating property containers and make sure the NotNull and Null
     // constraints work with typed data containers.
@@ -578,27 +578,27 @@ public function testTypedDataValidation() {
       ->setConstraints(['NotNull' => []]);
     $field_item = $this->typedDataManager->create($definition, ['value' => 10]);
     $violations = $field_item->validate();
-    $this->assertEqual($violations->count(), 0);
+    $this->assertEquals($violations->count(), 0);
 
     $field_item = $this->typedDataManager->create($definition, ['value' => 'no integer']);
     $violations = $field_item->validate();
-    $this->assertEqual($violations->count(), 1);
-    $this->assertEqual($violations[0]->getPropertyPath(), '0.value');
+    $this->assertEquals($violations->count(), 1);
+    $this->assertEquals($violations[0]->getPropertyPath(), '0.value');
 
     // Test that the field item may not be empty.
     $field_item = $this->typedDataManager->create($definition);
     $violations = $field_item->validate();
-    $this->assertEqual($violations->count(), 1);
+    $this->assertEquals($violations->count(), 1);
 
     // Test the Null constraint with typed data containers.
     $definition = BaseFieldDefinition::create('float')
       ->setConstraints(['Null' => []]);
     $field_item = $this->typedDataManager->create($definition, ['value' => 11.5]);
     $violations = $field_item->validate();
-    $this->assertEqual($violations->count(), 1);
+    $this->assertEquals($violations->count(), 1);
     $field_item = $this->typedDataManager->create($definition);
     $violations = $field_item->validate();
-    $this->assertEqual($violations->count(), 0);
+    $this->assertEquals($violations->count(), 0);
 
     // Test getting constraint definitions by type.
     $definitions = $this->typedDataManager->getValidationConstraintManager()->getDefinitionsByType('entity');
@@ -615,19 +615,19 @@ public function testTypedDataValidation() {
     $definition = DataDefinition::create('integer')
       ->setRequired(TRUE);
     $violations = $this->typedDataManager->create($definition)->validate();
-    $this->assertEqual($violations->count(), 1);
+    $this->assertEquals($violations->count(), 1);
     $violations = $this->typedDataManager->create($definition, 0)->validate();
-    $this->assertEqual($violations->count(), 0);
+    $this->assertEquals($violations->count(), 0);
 
     // Test validating a list of a values and make sure property paths starting
     // with "0" are created.
     $definition = BaseFieldDefinition::create('integer');
     $violations = $this->typedDataManager->create($definition, [['value' => 10]])->validate();
-    $this->assertEqual($violations->count(), 0);
+    $this->assertEquals($violations->count(), 0);
     $violations = $this->typedDataManager->create($definition, [['value' => 'string']])->validate();
-    $this->assertEqual($violations->count(), 1);
+    $this->assertEquals($violations->count(), 1);
 
-    $this->assertEqual($violations[0]->getInvalidValue(), 'string');
+    $this->assertEquals($violations[0]->getInvalidValue(), 'string');
     $this->assertIdentical($violations[0]->getPropertyPath(), '0.value');
   }
 
diff --git a/core/tests/Drupal/KernelTests/Core/Updater/UpdaterTest.php b/core/tests/Drupal/KernelTests/Core/Updater/UpdaterTest.php
index 185a3fe516..238830e8f5 100644
--- a/core/tests/Drupal/KernelTests/Core/Updater/UpdaterTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Updater/UpdaterTest.php
@@ -26,7 +26,7 @@ public function testGetProjectTitleWithChild() {
     // it will choose the first project title in the directory.
     $directory = \Drupal::root() . '/core/modules/system/tests/modules/module_handler_test_multiple';
     $title = Updater::getProjectTitle($directory);
-    $this->assertEqual('module handler test multiple', $title);
+    $this->assertEquals('module handler test multiple', $title);
   }
 
 }
diff --git a/core/tests/Drupal/KernelTests/KernelTestBaseTest.php b/core/tests/Drupal/KernelTests/KernelTestBaseTest.php
index f44c9650f6..d0770692f1 100644
--- a/core/tests/Drupal/KernelTests/KernelTestBaseTest.php
+++ b/core/tests/Drupal/KernelTests/KernelTestBaseTest.php
@@ -246,7 +246,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());
     }
   }
 
@@ -273,7 +273,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());
     }
   }
 
diff --git a/core/tests/Drupal/Tests/Traits/Core/Config/SchemaConfigListenerTestTrait.php b/core/tests/Drupal/Tests/Traits/Core/Config/SchemaConfigListenerTestTrait.php
index 5a73cad4bb..a8b22f6817 100644
--- a/core/tests/Drupal/Tests/Traits/Core/Config/SchemaConfigListenerTestTrait.php
+++ b/core/tests/Drupal/Tests/Traits/Core/Config/SchemaConfigListenerTestTrait.php
@@ -21,7 +21,7 @@ public function testConfigSchemaChecker() {
     }
     catch (SchemaIncompleteException $e) {
       $this->pass($message);
-      $this->assertEqual('No schema for config_schema_test.schemaless', $e->getMessage());
+      $this->assertEquals('No schema for config_schema_test.schemaless', $e->getMessage());
     }
 
     // Test a valid schema.
@@ -46,7 +46,7 @@ public function testConfigSchemaChecker() {
     }
     catch (SchemaIncompleteException $e) {
       $this->pass($message);
-      $this->assertEqual('Schema errors for config_test.types with the following errors: config_test.types:array variable type is integer but applied schema class is Drupal\Core\Config\Schema\Sequence, config_test.types:foo missing schema', $e->getMessage());
+      $this->assertEquals('Schema errors for config_test.types with the following errors: config_test.types:array variable type is integer but applied schema class is Drupal\Core\Config\Schema\Sequence, config_test.types:foo missing schema', $e->getMessage());
     }
 
   }
