diff --git a/core/modules/aggregator/tests/src/Functional/AggregatorAdminTest.php b/core/modules/aggregator/tests/src/Functional/AggregatorAdminTest.php index 0378cf733c..19f03e726f 100644 --- a/core/modules/aggregator/tests/src/Functional/AggregatorAdminTest.php +++ b/core/modules/aggregator/tests/src/Functional/AggregatorAdminTest.php @@ -72,7 +72,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->assertCount(1, $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/Kernel/FeedValidationTest.php b/core/modules/aggregator/tests/src/Kernel/FeedValidationTest.php index 1d0f6792dd..efb68abeab 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->assertCount(0, $violations); $feed->save(); @@ -53,7 +53,7 @@ public function testValidation() { $violations = $feed->validate(); - $this->assertEqual(count($violations), 2); + $this->assertCount(2, $violations); $this->assertEqual($violations[0]->getPropertyPath(), 'title'); $this->assertEqual($violations[0]->getMessage(), t('A feed named %value already exists. Enter a unique title.', [ '%value' => $feed->label(), diff --git a/core/modules/ban/tests/src/Functional/IpAddressBlockingTest.php b/core/modules/ban/tests/src/Functional/IpAddressBlockingTest.php index 6963759c3f..0647b16cb2 100644 --- a/core/modules/ban/tests/src/Functional/IpAddressBlockingTest.php +++ b/core/modules/ban/tests/src/Functional/IpAddressBlockingTest.php @@ -93,7 +93,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->assertCount(1, $ip_count); $ip = ''; $banIp->banIp($ip); $banIp->banIp($ip); @@ -101,7 +101,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->assertCount(1, $ip_count); } } diff --git a/core/modules/big_pipe/tests/src/Functional/BigPipeTest.php b/core/modules/big_pipe/tests/src/Functional/BigPipeTest.php index 83f82db814..76c4c96ecd 100644 --- a/core/modules/big_pipe/tests/src/Functional/BigPipeTest.php +++ b/core/modules/big_pipe/tests/src/Functional/BigPipeTest.php @@ -371,7 +371,7 @@ protected function assertBigPipePlaceholders(array $expected_big_pipe_placeholde $expected_placeholder_replacement = '