Skip to content

Commit 17e1669

Browse files
committed
Update SessionsManagerTest.php
1 parent 684cc4d commit 17e1669

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/webfiori/framework/test/session/SessionsManagerTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ public function testDatabaseSession00() {
162162
public function testDatabaseSession01() {
163163
$this->expectException(DatabaseException::class);
164164
$this->expectExceptionMessage("208 - [Microsoft][ODBC Driver 18 for SQL Server][SQL Server]Invalid object name 'session_data'.");
165-
$conn = new ConnectionInfo('mssql', 'sa', '1234567890@Eu', 'testing_db', 'localhost', 1433, [
165+
$conn = new ConnectionInfo('mssql', 'sa', '1234567890@Eu', 'testing_db', SQL_SERVER_HOST, 1433, [
166166
'TrustServerCertificate' => 'true'
167167
]);
168168
$conn->setName('sessions-connection');
@@ -176,7 +176,7 @@ public function testDatabaseSession01() {
176176
* @depends testInitSessionsDb
177177
*/
178178
public function testDatabaseSession02() {
179-
$conn = new ConnectionInfo('mssql', 'sa', '1234567890@Eu', 'testing_db', 'localhost', 1433, [
179+
$conn = new ConnectionInfo('mssql', 'sa', '1234567890@Eu', 'testing_db', SQL_SERVER_HOST, 1433, [
180180
'TrustServerCertificate' => 'true'
181181
]);
182182
$conn->setName('sessions-connection');
@@ -286,7 +286,7 @@ public function testDatabaseSession02() {
286286
public function testDropDbTables00() {
287287
$this->expectException(DatabaseException::class);
288288
$this->expectExceptionMessage("208 - [Microsoft][ODBC Driver 18 for SQL Server][SQL Server]Invalid object name 'session_data'.");
289-
$conn = new ConnectionInfo('mssql', 'sa', '1234567890@Eu', 'testing_db', 'localhost', 1433, [
289+
$conn = new ConnectionInfo('mssql', 'sa', '1234567890@Eu', 'testing_db', SQL_SERVER_HOST, 1433, [
290290
'TrustServerCertificate' => 'true'
291291
]);
292292
$conn->setName('sessions-connection');
@@ -315,7 +315,7 @@ public function testGetSessionIDFromRequest() {
315315
* @depends testDatabaseSession01
316316
*/
317317
public function testInitSessionsDb() {
318-
$conn = new ConnectionInfo('mssql', 'sa', '1234567890@Eu', 'testing_db', 'localhost', 1433, [
318+
$conn = new ConnectionInfo('mssql', 'sa', '1234567890@Eu', 'testing_db', SQL_SERVER_HOST, 1433, [
319319
'TrustServerCertificate' => 'true'
320320
]);
321321
$conn->setName('sessions-connection');

0 commit comments

Comments
 (0)