File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
tests/unit/Codeception/Module Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change 11<?php
22
3+ use Codeception \Module \UniversalFramework ;
34use Codeception \Test \Unit ;
45use Codeception \Util \Stub ;
56
@@ -16,12 +17,10 @@ class RestTest extends Unit
1617
1718 public function _setUp ()
1819 {
19- $ connector = new \Codeception \Lib \Connector \Universal ();
20- $ connector ->setIndex (\Codeception \Configuration::dataDir () . '/rest/index.php ' );
20+ $ index = \Codeception \Configuration::dataDir () . '/rest/index.php ' ;
2121
2222 $ 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 ]);
2524 $ connectionModule ->_initialize ();
2625 $ this ->module = Stub::make ('\Codeception\Module\REST ' );
2726 $ this ->module ->_inject ($ connectionModule );
@@ -453,7 +452,7 @@ public function testAmDigestAuthenticatedThrowsExceptionWithFunctionalModules()
453452 public function testRestExecute ($ configUrl , $ requestUrl , $ expectedFullUrl )
454453 {
455454 $ connectionModule = $ this ->createMock (
456- \ Codeception \ Module \ UniversalFramework::class
455+ UniversalFramework::class
457456 );
458457 $ connectionModule
459458 ->expects ($ this ->once ())
You can’t perform that action at this time.
0 commit comments