]> source.dussan.org Git - nextcloud-server.git/commitdiff
Overwrite also the new command bus name to execute them in sync in the tests 23391/head
authorMorris Jobke <hey@morrisjobke.de>
Mon, 12 Oct 2020 19:03:58 +0000 (21:03 +0200)
committerMorris Jobke <hey@morrisjobke.de>
Mon, 12 Oct 2020 19:04:00 +0000 (21:04 +0200)
Followup to #23245

Signed-off-by: Morris Jobke <hey@morrisjobke.de>
tests/lib/TestCase.php

index 13a6fb0cf944b9f5e1a3f5cfcf28a1e4a311bbd4..aa2c720d83010c9c3271c23ee961c5630452c238 100644 (file)
@@ -27,6 +27,7 @@ use DOMNode;
 use OC\Command\QueueBus;
 use OC\Files\Filesystem;
 use OC\Template\Base;
+use OCP\Command\IBus;
 use OCP\DB\QueryBuilder\IQueryBuilder;
 use OCP\Defaults;
 use OCP\IDBConnection;
@@ -119,6 +120,7 @@ abstract class TestCase extends \PHPUnit\Framework\TestCase {
                // overwrite the command bus with one we can run ourselves
                $this->commandBus = new QueueBus();
                $this->overwriteService('AsyncCommandBus', $this->commandBus);
+               $this->overwriteService(IBus::class, $this->commandBus);
 
                // detect database access
                self::$wasDatabaseAllowed = true;