title: Models unit testing on Yii2
body: <p>I'm trying to build Yii2 app through unit testing and i have some questions about it.</p>
  
  <pre><code>class UsersTest extends \Codeception\TestCase\Test
  {
     /**
      * @var \UnitTester
      */
      protected $users;
  
      protected function _before()
      {
          $this-&gt;users = new \app\models\Users;
      }
  
      protected function _after()
      {
      }
  
      // tests
      public function testGeId()
      {
  
      }
  
  }
  </code></pre>
  
  <p>When i try to run this test class i have fatal error message that Users class not found. What cause of the problem and how to solve it?</p>
  
  <p>There is readme file in Yii2 tests folder which tell us to setup yii2-faker and <code>yii2_basic_tests</code> database. What are these two things and why i should to use them?</p>
  
  <p>Thank you.</p>