Skip to content

Commit d8c64bb

Browse files
committed
Fix failing tests
1 parent afa7328 commit d8c64bb

File tree

1 file changed

+9
-0
lines changed
  • tests/modules/localgov_forms_test/src/Driver/Database/FakeLts

1 file changed

+9
-0
lines changed

tests/modules/localgov_forms_test/src/Driver/Database/FakeLts/Connection.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
namespace Drupal\localgov_forms_test\Driver\Database\FakeLts;
66

7+
use Drupal\Core\Database\Transaction\TransactionManagerInterface;
8+
use Drupal\mysql\Driver\Database\mysql\TransactionManager;
79
use Drupal\Tests\Core\Database\Stub\StubConnection;
810
use Drupal\Tests\Core\Database\Stub\StubPDO;
911

@@ -29,4 +31,11 @@ public static function open(array &$connection_options = []) {
2931
return new StubPDO();
3032
}
3133

34+
/**
35+
* {@inheritdoc}
36+
*/
37+
protected function driverTransactionManager(): TransactionManagerInterface {
38+
return new TransactionManager($this);
39+
}
40+
3241
}

0 commit comments

Comments
 (0)