Skip to content

Commit 2a7ef9e

Browse files
committed
Fix. Unit. TokenLoginDetectionTest. Create spbc_users_pass table during setup.
1 parent 3b27041 commit 2a7ef9e

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tests/Inc/TokenLoginDetectionTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ protected function setUp(): void
4343
// Create security log table
4444
$db_tables_creator = new \CleantalkSP\SpbctWP\DB\TablesCreator();
4545
$db_tables_creator->createTable(SPBC_TBL_SECURITY_LOG);
46+
$db_tables_creator->createTable($wpdb->base_prefix . 'spbc_users_pass');
4647

4748
// Activate security_log feature
4849
$spbc->moderate = 1;
@@ -249,7 +250,7 @@ public function testPageContainsReferer()
249250
{
250251
// Clear table to ensure clean state
251252
$this->wpdb->query("DELETE FROM " . SPBC_TBL_SECURITY_LOG);
252-
253+
253254
$_SERVER['HTTP_REFERER'] = 'https://example.com/login-link/?token=xyz789';
254255
$this->clearServerCache(); // Clear cache to pick up new value
255256

0 commit comments

Comments
 (0)