Gc\User\ModelTest::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-model', 'user_acl_role_id' => 1, 'active' => true));
        $this->object->setPassword('test-user-model-password');
        $this->object->save();
    }