我通過phpunit叫我的API的方法,通過它的名字來自一個特定的測試,我有這樣的錯誤: exception 'Symfony\Component\Routing\Exception\MissingMandatoryParametersException' with message 'Some mandatory parameters are missing ("_locale") to gene
我使用的測試codecept功能測試我的yii2.I的API把硬編碼的測試參數這樣 use tests\codeception\backend\FunctionalTester;
$I = new FunctionalTester($scenario);
$I->wantTo('Check when authenticated');
$I->sendPOST('/login', ['pass