title: Codeception: [RuntimeException] Call to undefined method ApiTester::sendDELETE
body: <p>I'm running API tests with codeception using Yii2. Inside tests folder I have another folder codeception in which I have all the configuration files, and this is where I run my tests. </p>
  
  <p>This is my <strong>codeception.yml</strong> file </p>
  
  <pre><code>paths:
      tests: tests
      output: tests/_output
      data: tests/_data
      support: tests/_support
      envs: tests/_envs
  actor_suffix: Tester
  extensions:
      enabled:
          - Codeception\Extension\RunFailed
  </code></pre>
  
  <p>And this is my <strong>api.suite.yml</strong>:</p>
  
  <pre><code>class_name: ApiTester
      modules:
          enabled:
              - \Helper\Api
              - \Helper\FactoryHelper
              - REST:
                   depends: PhpBrowser
                   url: 'http://apitest.sb.dev/api/'
              - Db:
                   dsn: 'mysql:host=127.0.0.1;dbname=test'
                   user: 'root'
                   password: ''
                   dump: 'codeception/_data/dump.sql'
                   populate: true
                   cleanup: true
                   reconnect: true
              - Yii2:
                 configFile: ../config/tests/unit.php
                 part: [orm, email]
                 cleanup: false
              - DataFactory:
                 factories: codeception/_support/factories
                 depends: Yii2
  </code></pre>
  
  <p>A typical test I have would have functions from the generated file ApiTesterActions. My problem is that whenever I run a test Ill get an error indicating that ApiTesterActions file is completely not seen. An example:</p>
  
  <blockquote>
    <p>Codeception: [RuntimeException] Call to undefined method
    ApiTester::sendDELETE</p>
  </blockquote>
  
  <p>removing sendDelete from my test and using any other method that is in that file will also give an error. </p>
  
  <p>Example for test:</p>
  
  <pre><code>public function index(ApiTester $I) {
      $I-&gt;wantTo('view list via api');
      $I-&gt;sendGET($this-&gt;_getUrl(), ['client' =&gt; 10]);
      $I-&gt;seeResponseContainsJson(["data" =&gt; $this-&gt;menus]);
      $I-&gt;seeResponseCodeIs(200);
      $I-&gt;wantTo("try to view menus with client which doesn't exist");
      $I-&gt;sendGET($this-&gt;_getUrl(), ['client' =&gt; 150]);
      $I-&gt;seeResponseCodeIs(403);
      $I-&gt;seeResponseIsJson();
      $I-&gt;seeResponseContains(Yii::t('app', 'You need permission'));
  }
  </code></pre>
  
  <p>What am I doing wrong??!</p>
  
  <p><strong>Edit: This is the ApiTester.php</strong>
      
  
  <pre><code>/**
   * Inherited Methods
   * @method void wantToTest($text)
   * @method void wantTo($text)
   * @method void execute($callable)
   * @method void expectTo($prediction)
   * @method void expect($prediction)
   * @method void amGoingTo($argumentation)
   * @method void am($role)
   * @method void lookForwardTo($achieveValue)
   * @method void comment($description)
   * @method \Codeception\Lib\Friend haveFriend($name, $actorClass = NULL)
   * 
   * @SuppressWarnings(PHPMD)
  */
  class ApiTester extends \Codeception\Actor
  {
      use _generated\ApiTesterActions;
  
  
      /**
       * @param string $name
       * @return mixed
       */
      public function loadFixture($name)
      {
          return include 'codeception/fixtures/' . $name . '.php';
      }
  
      /**
  
       */
      public function autoAuthenticate($key = '')
      {
          if ($key == '') {
              $key = '17sV24Ku83q-BxeNbXHUWNcBO5iVQxDK';
          }
          return $this-&gt;amBearerAuthenticated($key);
      }
  }
  </code></pre>