-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Description
I am getting this error:
ErrorException: Undefined index: wantToSwitchURL
#1 phar:///home/lbest/Perforce/lbest-framework/out/server/fb/web-integration/codecept.phar/src/Codeception/Step.php(123)
#2 phar:///home/lbest/Perforce/lbest-framework/out/server/fb/web-integration/codecept.phar/src/Codeception/TestCase.php(28)
#3 phar:///home/lbest/Perforce/lbest-framework/out/server/fb/web-integration/codecept.phar/src/Codeception/Scenario.php(102)
#4 /home/lbest/Perforce/lbest-framework/out/server/fb/web-integration/tests/web/WebGuy.php(1217)
#5 /home/lbest/Perforce/lbest-framework/out/server/fb/web-integration/tests/web/5_getkixignedrequest_Cept.php(6)
#6 phar:///home/lbest/Perforce/lbest-framework/out/server/fb/web-integration/codecept.phar/src/Codeception/TestCase/Cept.php(72)
#8 phar:///home/lbest/Perforce/lbest-framework/out/server/fb/web-integration/codecept.phar/vendor/phpunit/phpunit/PHPUnit/Framework/TestCase.php(976)
#9 phar:///home/lbest/Perforce/lbest-framework/out/server/fb/web-integration/codecept.phar/vendor/phpunit/phpunit/PHPUnit/Framework/TestCase.php(831)
#10 phar:///home/lbest/Perforce/lbest-framework/out/server/fb/web-integration/codecept.phar/vendor/phpunit/phpunit/PHPUnit/Framework/TestResult.php(648)
#11 phar:///home/lbest/Perforce/lbest-framework/out/server/fb/web-integration/codecept.phar/vendor/phpunit/phpunit/PHPUnit/Framework/TestCase.php(776)
#12 phar:///home/lbest/Perforce/lbest-framework/out/server/fb/web-integration/codecept.phar/vendor/phpunit/phpunit/PHPUnit/Framework/TestSuite.php(775)
#13 phar:///home/lbest/Perforce/lbest-framework/out/server/fb/web-integration/codecept.phar/vendor/phpunit/phpunit/PHPUnit/Framework/TestSuite.php(745)
#14 phar:///home/lbest/Perforce/lbest-framework/out/server/fb/web-integration/codecept.phar/src/Codeception/PHPUnit/Runner.php(107)
#15 phar:///home/lbest/Perforce/lbest-framework/out/server/fb/web-integration/codecept.phar/src/Codeception/SuiteManager.php(132)
#16 phar:///home/lbest/Perforce/lbest-framework/out/server/fb/web-integration/codecept.phar/src/Codeception/Codecept.php(110)
#17 phar:///home/lbest/Perforce/lbest-framework/out/server/fb/web-integration/codecept.phar/src/Codeception/Command/Run.php(79)
#18 phar:///home/lbest/Perforce/lbest-framework/out/server/fb/web-integration/codecept.phar/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(240)
#19 phar:///home/lbest/Perforce/lbest-framework/out/server/fb/web-integration/codecept.phar/vendor/symfony/console/Symfony/Component/Console/Application.php(193)
#20 phar:///home/lbest/Perforce/lbest-framework/out/server/fb/web-integration/codecept.phar/vendor/symfony/console/Symfony/Component/Console/Application.php(106)
#21 phar:///home/lbest/Perforce/lbest-framework/out/server/fb/web-integration/codecept.phar/codecept(32)
#22 /home/lbest/Perforce/lbest-framework/out/server/fb/web-integration/codecept.phar(7)
This is my helper:
getModule('PhpBrowser')->_reconfigure(array('url' => $url)); } } It is enabled: class_name: WebGuy modules: enabled: [PhpBrowser,WebHelper] config: PhpBrowser: url: 'https://XXXX.com/' and I can see it in my WebGuy.php: ... /** * \* @see WebHelper::wantToSwitchURL() \* @return \Codeception\Maybe \* ! This method is generated. DO NOT EDIT. ! \* ! Documentation taken from corresponding module ! */ public function wantToSwitchURL($url) { $this->scenario->action('wantToSwitchURL', func_get_args()); if ($this->scenario->running()) { $result = $this->scenario->runStep(); return new Maybe($result); } return new Maybe(); } ... Any ideas on what I'm missing?