summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorCôme Chilliet <come.chilliet@nextcloud.com>2022-08-22 16:56:01 +0200
committerCôme Chilliet <come.chilliet@nextcloud.com>2022-08-25 16:13:47 +0200
commita83a8f0dde07bff67e0ceb7008cc26b3fad32516 (patch)
treea1dcc3e67eab7f2ff56a0fc60aa3f19387b943cd /tests
parent5aac997d448da55f1c43648b1e5cf1a9c1360d6c (diff)
downloadnextcloud-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.php2
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) {