File tree 1 file changed +4
-5
lines changed
tests/unit/Codeception/Module
1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change 1
1
<?php
2
2
3
+ use Codeception \Module \UniversalFramework ;
3
4
use Codeception \Test \Unit ;
4
5
use Codeception \Util \Stub ;
5
6
@@ -16,12 +17,10 @@ class RestTest extends Unit
16
17
17
18
public function _setUp ()
18
19
{
19
- $ connector = new \Codeception \Lib \Connector \Universal ();
20
- $ connector ->setIndex (\Codeception \Configuration::dataDir () . '/rest/index.php ' );
20
+ $ index = \Codeception \Configuration::dataDir () . '/rest/index.php ' ;
21
21
22
22
$ container = \Codeception \Util \Stub::make ('Codeception\Lib\ModuleContainer ' );
23
- $ connectionModule = new \Codeception \Module \UniversalFramework ($ container );
24
- $ connectionModule ->client = $ connector ;
23
+ $ connectionModule = new UniversalFramework ($ container , ['index ' => $ index ]);
25
24
$ connectionModule ->_initialize ();
26
25
$ this ->module = Stub::make ('\Codeception\Module\REST ' );
27
26
$ this ->module ->_inject ($ connectionModule );
@@ -453,7 +452,7 @@ public function testAmDigestAuthenticatedThrowsExceptionWithFunctionalModules()
453
452
public function testRestExecute ($ configUrl , $ requestUrl , $ expectedFullUrl )
454
453
{
455
454
$ connectionModule = $ this ->createMock (
456
- \ Codeception \ Module \ UniversalFramework::class
455
+ UniversalFramework::class
457
456
);
458
457
$ connectionModule
459
458
->expects ($ this ->once ())
You can’t perform that action at this time.
0 commit comments