diff options
author | Côme Chilliet <come.chilliet@nextcloud.com> | 2022-08-22 16:56:01 +0200 |
---|---|---|
committer | Côme Chilliet <come.chilliet@nextcloud.com> | 2022-08-25 16:13:47 +0200 |
commit | a83a8f0dde07bff67e0ceb7008cc26b3fad32516 (patch) | |
tree | a1dcc3e67eab7f2ff56a0fc60aa3f19387b943cd /tests | |
parent | 5aac997d448da55f1c43648b1e5cf1a9c1360d6c (diff) | |
download | nextcloud-server-a83a8f0dde07bff67e0ceb7008cc26b3fad32516.tar.gz nextcloud-server-a83a8f0dde07bff67e0ceb7008cc26b3fad32516.zip |
Migrate Migrator::executeSql to OCP\EventDispatcher\Event
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/DB/MigratorTest.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/lib/DB/MigratorTest.php b/tests/lib/DB/MigratorTest.php index af44159efa3..af56730f9f6 100644 --- a/tests/lib/DB/MigratorTest.php +++ b/tests/lib/DB/MigratorTest.php @@ -62,7 +62,7 @@ class MigratorTest extends \Test\TestCase { private function getMigrator(): Migrator { $platform = $this->connection->getDatabasePlatform(); $random = \OC::$server->getSecureRandom(); - $dispatcher = \OC::$server->getEventDispatcher(); + $dispatcher = \OC::$server->get(\OCP\EventDispatcher\IEventDispatcher::class); if ($platform instanceof SqlitePlatform) { return new SQLiteMigrator($this->connection, $this->config, $dispatcher); } elseif ($platform instanceof OraclePlatform) { |