title: how to automate the functional testing in yii2?
body: <p>I use the codecept functional testing for test my APIs in yii2.I put the arguments hardcoded for testing like this</p>
  
  <pre><code>use tests\codeception\backend\FunctionalTester;
  $I = new FunctionalTester($scenario);
  $I-&gt;wantTo('Check when authenticated');
  $I-&gt;sendPOST('/login', ['password' =&gt; '11111111', 'email'=&gt;'check@check.com']);
  $I-&gt;seeResponseCodeIs(200);
  $I-&gt;seeResponseIsJson();
  $I-&gt;seeResponseContains('"result"');
  $I-&gt;seeResponseContains('"message"');
  $I-&gt;haveHttpHeader('Accept','application/json');
  $I-&gt;seeResponseContains('"message":"OK"');
  </code></pre>
  
  <p>I wanted to give that arguments while I running the test case by codecept run functional loginCept or save that arguments in one file and assign to the test case when I run the test.How should I achieve this?</p>