projects
/
yaffs-website
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website]
/
web
/
modules
/
contrib
/
redirect
/
modules
/
redirect_404
/
tests
/
src
/
Kernel
/
Fix404RedirectCronJobTest.php
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 0e045f1d1fc7530bb46150d9ee2769d6ba780e93..6ed6d6774b1cea9f9716bbd7099961a3a5ed3d09 100644
(file)
--- 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;
namespace Drupal\Tests\redirect_404\Kernel;
-use Drupal\Core\Database\Database;
use Drupal\KernelTests\KernelTestBase;
/**
use Drupal\KernelTests\KernelTestBase;
/**
@@
-46,13
+45,13
@@
class Fix404RedirectCronJobTest extends KernelTestBase {
->save();
// Check that there are 6 rows in the redirect_404 table.
->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();
$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.
$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.
->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();
$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.
$this->assertEquals(5, $result);
// Check only the row with least count has been removed from the table.