We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7e3f9bc commit e1a5ceaCopy full SHA for e1a5cea
1 file changed
tests/e2e/Adapter/Base.php
@@ -18,6 +18,7 @@
18
use Tests\E2E\Adapter\Scopes\SpatialTests;
19
use Tests\E2E\Adapter\Scopes\VectorTests;
20
use Utopia\Database\Database;
21
+use Utopia\Database\Hook\Permissions;
22
use Utopia\Database\Hook\Relationships;
23
use Utopia\Database\Validator\Authorization;
24
@@ -64,6 +65,9 @@ protected function setUp(): void
64
65
if ($db->getRelationshipHook() === null) {
66
$db->addHook(new Relationships($db));
67
}
68
+ if (! $db->getAdapter()->hasPermissionHook()) {
69
+ $db->addHook(new Permissions());
70
+ }
71
72
73
protected function tearDown(): void
0 commit comments