Artesaos\Defender\Testing\AbstractTestCase::migrate PHP Method

migrate() public method

Performs migrations.
public migrate ( string | array $path = null )
$path string | array string or array of paths to find migrations.
    public function migrate($path = null)
    {
        $paths = is_array($path) ? $path : [$path];
        foreach ($paths as $path) {
            $code = $this->artisan('migrate', ['--realpath' => $path]);
            $this->assertEquals(0, $code, sprintf('Something went wrong when migrating %s.', str_replace(realpath($this->srcPath('..')), '', realpath($path))));
        }
    }