Skip to content

Commit

Permalink
Update SessionsManagerTest.php
Browse files Browse the repository at this point in the history
  • Loading branch information
usernane committed Oct 28, 2024
1 parent 6278b13 commit e83f9fd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/webfiori/framework/test/session/SessionsManagerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand All @@ -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();
Expand Down Expand Up @@ -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();
Expand All @@ -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();
Expand Down

0 comments on commit e83f9fd

Please sign in to comment.