Gc\Db\AbstractTableTest::setUp PHP Метод

setUp() защищенный Метод

This method is called before a test is executed.
protected setUp ( ) : void
Результат void
    protected function setUp()
    {
        $collection = new Collection();
        foreach ($collection->getUsers() as $user) {
            $user->delete();
        }
        unset($collection);
        $this->object = Model::fromArray(array('lastname' => 'Test', 'firstname' => 'Test', 'email' => '[email protected]', 'login' => 'test', 'user_acl_role_id' => 1));
        $this->object->setPassword('test');
        $this->object->save();
    }