I am just trying to get started with formal php testing and I am not getting anywhere after spending two days on it. I am just trying to run a simple test to check the about page and I get the following error: [yii\base\InvalidConfigException] Unable to determine the path info of the current request.
DOES ANYONE HAVE ANY IDEA WHAT IS CAUSING THIS?
Here is the entire output:
$ vendor/bin/codecept run functional AboutCest:checkAbout -c frontend
Codeception PHP Testing Framework v2.1.11
Powered by PHPUnit 5.3.5 by Sebastian Bergmann and contributors.
Frontend\tests.functional Tests (1) ------------------------------------------------------------------------
Check about (functional\AboutCest::checkAbout) Error
------------------------------------------------------------------------------------------------------------
Time: 121 ms, Memory: 10.00MB
There was 1 error:
---------
1) Failed to check about in frontend\tests\functional\AboutCest::checkAbout (tests/functional/AboutCest.php)
[yii\base\InvalidConfigException] Unable to determine the path info of the current request.
Scenario Steps:
1. $I->amOnPage(["site/about"])
#1 /Applications/MAMP/htdocs/cygnus/vendor/yiisoft/yii2/web/Request.php:724
#2 /Applications/MAMP/htdocs/cygnus/vendor/yiisoft/yii2/web/UrlRule.php:306
#3 /Applications/MAMP/htdocs/cygnus/vendor/yiisoft/yii2/web/UrlManager.php:269
#4 /Applications/MAMP/htdocs/cygnus/vendor/yiisoft/yii2/web/Request.php:183
#5 /Applications/MAMP/htdocs/cygnus/vendor/yiisoft/yii2/web/Application.php:82
#6 /Applications/MAMP/htdocs/cygnus/vendor/symfony/browser-kit/Client.php:315
#7 Codeception\Module\Yii2->amOnPage
#8 /Applications/MAMP/htdocs/cygnus/frontend/tests/_support/_generated/FunctionalTesterActions.php:528
#9 /Applications/MAMP/htdocs/cygnus/frontend/tests/functional/AboutCest.php:10
#10 frontend\tests\functional\AboutCest->checkAbout
FAILURES!
Tests: 1, Assertions: 0, Errors: 1.
=============================================
I would appreciate any help, this is my third try to get going with testing with codeception, I have spent a good solid week on this in all and cannot get ONE SINGLE TEST WORKING. NOT ONE!