Askedio\ItemPaginator\Tests\BaseTestCase::migrate PHP Метод

migrate() публичный Метод

Run package database migrations.
public migrate ( )
    public function migrate()
    {
        $fileSystem = new Filesystem();
        $classFinder = new ClassFinder();
        foreach ($fileSystem->files(__DIR__ . '/App/database/migrations') as $file) {
            $fileSystem->requireOnce($file);
            $migrationClass = $classFinder->findClass($file);
            (new $migrationClass())->down();
            (new $migrationClass())->up();
        }
    }