$this->pluginService->
refreshPlugins($context,
new NullIO());
$overAllCount =
$this->
getMigrationCount(''
);
$swagTest =
new SwagTest(true, '', ''
);
$_SERVER['FAKE_MIGRATION_NAMESPACE'
] = 'Shopware\\Core';
$exception = null;
try { $swagTest->
removeMigrations();
} catch (\Exception
$e) { $exception =
$e;
} $newOverAllCount =
$this->
getMigrationCount(''
);
static::
assertSame($overAllCount,
$newOverAllCount);
static::
assertNotNull($exception, 'Expected exception to be thrown'
);
}