We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3b27041 commit 2a7ef9eCopy full SHA for 2a7ef9e
1 file changed
tests/Inc/TokenLoginDetectionTest.php
@@ -43,6 +43,7 @@ protected function setUp(): void
43
// Create security log table
44
$db_tables_creator = new \CleantalkSP\SpbctWP\DB\TablesCreator();
45
$db_tables_creator->createTable(SPBC_TBL_SECURITY_LOG);
46
+ $db_tables_creator->createTable($wpdb->base_prefix . 'spbc_users_pass');
47
48
// Activate security_log feature
49
$spbc->moderate = 1;
@@ -249,7 +250,7 @@ public function testPageContainsReferer()
249
250
{
251
// Clear table to ensure clean state
252
$this->wpdb->query("DELETE FROM " . SPBC_TBL_SECURITY_LOG);
-
253
+
254
$_SERVER['HTTP_REFERER'] = 'https://example.com/login-link/?token=xyz789';
255
$this->clearServerCache(); // Clear cache to pick up new value
256
0 commit comments