We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4146695 commit b0cb168Copy full SHA for b0cb168
1 file changed
tests/e2e/Adapter/Scopes/CollectionTests.php
@@ -1222,18 +1222,19 @@ public function testTransformations(): void
1222
'name' => 'value1',
1223
]));
1224
1225
- $database->addHook(new class () implements Transform {
+ $hook = new class () implements Transform {
1226
public function transform(Event $event, string $query): string
1227
{
1228
return 'SELECT 1';
1229
}
1230
- });
+ };
1231
+ $database->addHook($hook);
1232
1233
$result = $database->getDocument('docs', 'doc1');
1234
1235
$this->assertTrue($result->isEmpty());
1236
- $database->removeQueryTransform('test');
1237
+ $database->removeTransform($hook::class);
1238
1239
1240
public function testSetGlobalCollection(): void
0 commit comments