From e83f9fd61dbb26e2792e54afd51fc321beb93feb Mon Sep 17 00:00:00 2001 From: Ibrahim BinAlshikh Date: Tue, 29 Oct 2024 00:52:43 +0300 Subject: [PATCH] Update SessionsManagerTest.php --- .../framework/test/session/SessionsManagerTest.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/webfiori/framework/test/session/SessionsManagerTest.php b/tests/webfiori/framework/test/session/SessionsManagerTest.php index 5a02b904..604fde3e 100644 --- a/tests/webfiori/framework/test/session/SessionsManagerTest.php +++ b/tests/webfiori/framework/test/session/SessionsManagerTest.php @@ -162,7 +162,7 @@ public function testDatabaseSession00() { public function testDatabaseSession01() { $this->expectException(DatabaseException::class); $this->expectExceptionMessage("208 - [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Invalid object name 'session_data'."); - $conn = new ConnectionInfo('mssql', 'sa', '1234567890@Eu', 'testing_db', 'localhost\SQLEXPRESS'); + $conn = new ConnectionInfo('mssql', 'sa', '1234567890@Eu', 'testing_db', 'localhost'); $conn->setName('sessions-connection'); App::getConfig()->addOrUpdateDBConnection($conn); SessionsManager::setStorage(new DatabaseSessionStorage()); @@ -174,7 +174,7 @@ public function testDatabaseSession01() { * @depends testInitSessionsDb */ public function testDatabaseSession02() { - $conn = new ConnectionInfo('mssql', 'sa', '1234567890@Eu', 'testing_db', 'localhost\SQLEXPRESS'); + $conn = new ConnectionInfo('mssql', 'sa', '1234567890@Eu', 'testing_db', 'localhost'); $conn->setName('sessions-connection'); App::getConfig()->addOrUpdateDBConnection($conn); SessionsManager::reset(); @@ -282,7 +282,7 @@ public function testDatabaseSession02() { public function testDropDbTables00() { $this->expectException(DatabaseException::class); $this->expectExceptionMessage("208 - [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Invalid object name 'session_data'."); - $conn = new ConnectionInfo('mssql', 'sa', '1234567890@Eu', 'testing_db', 'localhost\SQLEXPRESS'); + $conn = new ConnectionInfo('mssql', 'sa', '1234567890@Eu', 'testing_db', 'localhost'); $conn->setName('sessions-connection'); App::getConfig()->addOrUpdateDBConnection($conn); SessionsManager::reset(); @@ -309,7 +309,7 @@ public function testGetSessionIDFromRequest() { * @depends testDatabaseSession01 */ public function testInitSessionsDb() { - $conn = new ConnectionInfo('mssql', 'sa', '1234567890@Eu', 'testing_db', 'localhost\SQLEXPRESS'); + $conn = new ConnectionInfo('mssql', 'sa', '1234567890@Eu', 'testing_db', 'localhost'); $conn->setName('sessions-connection'); App::getConfig()->addOrUpdateDBConnection($conn); SessionsManager::reset();