Skip to content

Commit dbd59d3

Browse files
committed
setting the session.class in setUpBeforeClass
1 parent bb7d87a commit dbd59d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Tests/RestfulUnit/ServiceTestCase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ class ServiceTestCase {
1414

1515
static function setUpBeforeClass(){
1616
Build::run();
17+
MockSettings::setSettings("php-platform/session", "session.class", 'PhpPlatform\WebSession\Session');
1718
}
1819

1920
static function setUp(){
2021
// clear session if any
2122
$session = Factory::getSession();
2223
$session->clear();
23-
MockSettings::setSettings("php-platform/session", "session.class", 'PhpPlatform\WebSession\Session');
2424
}
2525

2626
static function tearDownAfterClass(){

0 commit comments

Comments
 (0)