File tree Expand file tree Collapse file tree 3 files changed +3
-12
lines changed
tests/system/Session/Handlers/Database Expand file tree Collapse file tree 3 files changed +3
-12
lines changed Original file line number Diff line number Diff line change 1111
1212namespace CodeIgniter \Session \Handlers \Database ;
1313
14- use CodeIgniter \Config \Factories ;
15- use Config \App as AppConfig ;
1614use Config \Database as DatabaseConfig ;
1715use Config \Session as SessionConfig ;
1816
@@ -49,8 +47,7 @@ protected function getInstance($options = [])
4947 foreach ($ config as $ key => $ value ) {
5048 $ sessionConfig ->{$ key } = $ value ;
5149 }
52- Factories::injectMock ('config ' , 'Session ' , $ sessionConfig );
5350
54- return new MySQLiHandler (new AppConfig () , $ this ->userIpAddress );
51+ return new MySQLiHandler ($ sessionConfig , $ this ->userIpAddress );
5552 }
5653}
Original file line number Diff line number Diff line change 1111
1212namespace CodeIgniter \Session \Handlers \Database ;
1313
14- use CodeIgniter \Config \Factories ;
15- use Config \App as AppConfig ;
1614use Config \Database as DatabaseConfig ;
1715use Config \Session as SessionConfig ;
1816
@@ -49,8 +47,7 @@ protected function getInstance($options = [])
4947 foreach ($ config as $ key => $ value ) {
5048 $ sessionConfig ->{$ key } = $ value ;
5149 }
52- Factories::injectMock ('config ' , 'Session ' , $ sessionConfig );
5350
54- return new PostgreHandler (new AppConfig () , $ this ->userIpAddress );
51+ return new PostgreHandler ($ sessionConfig , $ this ->userIpAddress );
5552 }
5653}
Original file line number Diff line number Diff line change 1111
1212namespace CodeIgniter \Session \Handlers \Database ;
1313
14- use CodeIgniter \Config \Factories ;
1514use CodeIgniter \Session \Handlers \RedisHandler ;
1615use CodeIgniter \Test \CIUnitTestCase ;
17- use Config \App as AppConfig ;
1816use Config \Session as SessionConfig ;
1917use Redis ;
2018
@@ -49,9 +47,8 @@ protected function getInstance($options = [])
4947 foreach ($ config as $ key => $ value ) {
5048 $ sessionConfig ->{$ key } = $ value ;
5149 }
52- Factories::injectMock ('config ' , 'Session ' , $ sessionConfig );
5350
54- return new RedisHandler (new AppConfig () , $ this ->userIpAddress );
51+ return new RedisHandler ($ sessionConfig , $ this ->userIpAddress );
5552 }
5653
5754 public function testSavePathWithoutProtocol ()
You can’t perform that action at this time.
0 commit comments