diff options
author | Morris Jobke <hey@morrisjobke.de> | 2020-10-12 21:03:58 +0200 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2020-10-12 21:04:00 +0200 |
commit | f5a52e941c3584552e6f256eaccb6a63052e0168 (patch) | |
tree | 5daa12b344944b2e95e0b312382a57c0a5b8b6a3 /tests/lib/TestCase.php | |
parent | 14af2246f36a8360d8f3eca7056c99861804d3bf (diff) | |
download | nextcloud-server-f5a52e941c3584552e6f256eaccb6a63052e0168.tar.gz nextcloud-server-f5a52e941c3584552e6f256eaccb6a63052e0168.zip |
Overwrite also the new command bus name to execute them in sync in the tests
Followup to #23245
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'tests/lib/TestCase.php')
-rw-r--r-- | tests/lib/TestCase.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/lib/TestCase.php b/tests/lib/TestCase.php index 13a6fb0cf94..aa2c720d830 100644 --- a/tests/lib/TestCase.php +++ b/tests/lib/TestCase.php @@ -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; |