return $migrationCollection;
} /**
* @depends testDeactivate
*/
public function testUninstallKeepUserData(MigrationCollection
$migrationCollection): void
{ $migrationPlugin =
$this->
getMigrationTestPlugin();
$this->pluginLifecycleService->
uninstallPlugin($migrationPlugin,
$this->context, true
);
$this->
assertMigrationCount($migrationCollection, 4
);
} private function assertMigrationCount(MigrationCollection
$migrationCollection, int
$expectedCount): void
{ $connection =
$this->
getContainer()->
get(Connection::
class);
/** @var MigrationSource $migrationSource */
$migrationSource = ReflectionHelper::
getPropertyValue($migrationCollection, 'migrationSource'
);
$dbMigrations =
$connection ->
fetchAllAssociative(