Now, we can try the tests and see them not passing before we go through the implementation of the class. So, just run the following command, as we learned in the previous chapter:
$ cd tests $ ../vendor/bin/codecept run unit
It's very probable that the preceding command will fail with the following error:
PHP Fatal error: Call to undefined method app\models\User::tableName()
This is because our class has not yet been regenerated as ActiveRecord
.
In the next section, we will start the work of making our tests pass by starting with the migrations to move some information into the database and progress from there.