partkeepr/PartKeepr

View on GitHub
web/setup/js/SetupSteps/AdminUserSetup.js

Summary

Maintainability
A
0 mins
Test Coverage
/**
 * Creates the administrative user
 */
Ext.define('PartKeeprSetup.AdminUserSetup', {
    extend: 'PartKeeprSetup.AbstractTest',
    action: 'createUser',
    name: "Database",
    message: "Setting up the admin user",

    onBeforeRunTest: function () {
        this.callParent(arguments);

        if (PartKeeprSetup.getApplication().getSetupConfig().createUser === false) {
            this.skip = true;
        }
    }
});