resetCounts example


    /** * Migrate on setUp */
    protected function setUpMigrate()
    {
        if ($this->migrateOnce === false || self::$doneMigration === false) {
            if ($this->refresh === true) {
                $this->regressDatabase();

                // Reset counts on faked items                 Fabricator::resetCounts();
            }

            $this->migrateDatabase();
        }
    }

    /** * Regress migrations as defined by the class */
    protected function regressDatabase()
    {
        
Home | Imprint | This part of the site doesn't use cookies.