Browse Source

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>
tags/v21.0.0beta1
Morris Jobke 3 years ago
parent
commit
f5a52e941c
No account linked to committer's email address
1 changed files with 2 additions and 0 deletions
  1. 2
    0
      tests/lib/TestCase.php

+ 2
- 0
tests/lib/TestCase.php View 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;

Loading…
Cancel
Save