X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fmodules%2Fcontrib%2Fredirect%2Fmodules%2Fredirect_404%2Ftests%2Fsrc%2FKernel%2FFix404RedirectCronJobTest.php;fp=web%2Fmodules%2Fcontrib%2Fredirect%2Fmodules%2Fredirect_404%2Ftests%2Fsrc%2FKernel%2FFix404RedirectCronJobTest.php;h=6ed6d6774b1cea9f9716bbd7099961a3a5ed3d09;hp=0e045f1d1fc7530bb46150d9ee2769d6ba780e93;hb=af6d1fb995500ae68849458ee10d66abbdcfb252;hpb=680c79a86e3ed402f263faeac92e89fb6d9edcc0 diff --git a/web/modules/contrib/redirect/modules/redirect_404/tests/src/Kernel/Fix404RedirectCronJobTest.php b/web/modules/contrib/redirect/modules/redirect_404/tests/src/Kernel/Fix404RedirectCronJobTest.php index 0e045f1d1..6ed6d6774 100644 --- a/web/modules/contrib/redirect/modules/redirect_404/tests/src/Kernel/Fix404RedirectCronJobTest.php +++ b/web/modules/contrib/redirect/modules/redirect_404/tests/src/Kernel/Fix404RedirectCronJobTest.php @@ -2,7 +2,6 @@ namespace Drupal\Tests\redirect_404\Kernel; -use Drupal\Core\Database\Database; use Drupal\KernelTests\KernelTestBase; /** @@ -46,13 +45,13 @@ class Fix404RedirectCronJobTest extends KernelTestBase { ->save(); // Check that there are 6 rows in the redirect_404 table. - $result = db_query("SELECT COUNT(*) as rows FROM {redirect_404}")->fetchField(); + $result = db_query("SELECT COUNT(*) FROM {redirect_404}")->fetchField(); $this->assertEquals(6, $result); // Run cron to drop 3 rows from the redirect_404 test table. redirect_404_cron(); - $result = db_query("SELECT COUNT(*) as rows FROM {redirect_404}")->fetchField(); + $result = db_query("SELECT COUNT(*) FROM {redirect_404}")->fetchField(); $this->assertEquals(3, $result); // Check there are only 3 rows with more count in the redirect_404 table. @@ -86,13 +85,13 @@ class Fix404RedirectCronJobTest extends KernelTestBase { ->save(); // Check that there are 6 rows in the redirect_404 table. - $result = db_query("SELECT COUNT(*) as rows FROM {redirect_404}")->fetchField(); + $result = db_query("SELECT COUNT(*) FROM {redirect_404}")->fetchField(); $this->assertEquals(6, $result); // Run cron to drop just 1 row from the redirect_404 test table. redirect_404_cron(); - $result = db_query("SELECT COUNT(*) as rows FROM {redirect_404}")->fetchField(); + $result = db_query("SELECT COUNT(*) FROM {redirect_404}")->fetchField(); $this->assertEquals(5, $result); // Check only the row with least count has been removed from the table.