@@ -175,7 +175,7 @@ public function testNone(): void
175175 $ this ->assertTrue ($ object ->check ());
176176 $ this ->assertEquals ('' , $ object ->render ());
177177
178- $ this ->assertAllQueriesConsumed ();
178+ $ this ->dummyDbi -> assertAllQueriesConsumed ();
179179
180180 $ this ->loadResultForConfig (['type ' => 'db ' ]);
181181 $ this ->loadQueriesForConfigure ('' );
@@ -216,7 +216,7 @@ public function testConfigureSimple(): void
216216 $ GLOBALS ['cfg ' ]['DBG ' ]['simple2fa ' ] = true ;
217217 $ object = $ this ->getTwoFactorAndLoadConfig ('user ' , null );
218218
219- $ this ->assertAllQueriesConsumed ();
219+ $ this ->dummyDbi -> assertAllQueriesConsumed ();
220220
221221 $ this ->loadResultForConfig ([]);
222222 $ this ->loadQueriesForConfigure ('simple ' );
@@ -225,7 +225,7 @@ public function testConfigureSimple(): void
225225 $ backend = $ object ->getBackend ();
226226 $ this ->assertEquals ('simple ' , $ backend ::$ id );
227227
228- $ this ->assertAllQueriesConsumed ();
228+ $ this ->dummyDbi -> assertAllQueriesConsumed ();
229229
230230 $ this ->loadResultForConfig ([]);
231231 $ this ->loadQueriesForConfigure ('' );
@@ -234,14 +234,14 @@ public function testConfigureSimple(): void
234234 $ backend = $ object ->getBackend ();
235235 $ this ->assertEquals ('' , $ backend ::$ id );
236236
237- $ this ->assertAllQueriesConsumed ();
237+ $ this ->dummyDbi -> assertAllQueriesConsumed ();
238238
239239 $ this ->initStorageConfigAndData ();// Needs a re-init
240240
241241 $ GLOBALS ['cfg ' ]['DBG ' ]['simple2fa ' ] = false ;
242242 $ object = $ this ->getTwoFactorAndLoadConfig ('user ' , null );
243243 $ this ->assertFalse ($ object ->configure ('simple ' ));
244- $ this ->assertAllQueriesConsumed ();
244+ $ this ->dummyDbi -> assertAllQueriesConsumed ();
245245 }
246246
247247 /**
@@ -275,15 +275,15 @@ public function testApplication(): void
275275 $ google2fa ->getTimestamp ()
276276 );
277277
278- $ this ->assertAllQueriesConsumed ();
278+ $ this ->dummyDbi -> assertAllQueriesConsumed ();
279279 $ this ->loadResultForConfig ([]);
280280 $ this ->loadQueriesForConfigure ('application ' , [
281281 'secret ' => $ object ->config ['settings ' ]['secret ' ],
282282 ]);
283283
284284 $ this ->assertTrue ($ object ->configure ('application ' ));
285285
286- $ this ->assertAllQueriesConsumed ();
286+ $ this ->dummyDbi -> assertAllQueriesConsumed ();
287287 unset($ _POST ['2fa_code ' ]);
288288
289289 /* Check code */
@@ -405,7 +405,7 @@ public function testKeyAuthentication(): void
405405 . 'ZLVGZuelRPU2FOVU9XUXhSZDlUV3o1YUZPZzgiLCAib3JpZ2luIjogImh0dHA6XC9cL2RlbW8uZXhhbXB '
406406 . 'sZS5jb20iLCAidHlwIjogIm5hdmlnYXRvci5pZC5maW5pc2hFbnJvbGxtZW50IiB9", "errorCode": 0 } ' ;
407407
408- $ this ->assertAllQueriesConsumed ();
408+ $ this ->dummyDbi -> assertAllQueriesConsumed ();
409409 $ this ->loadResultForConfig ([]);
410410 $ this ->loadQueriesForConfigure ('key ' , [
411411 'registrations ' => [
@@ -454,7 +454,7 @@ public function testKeyAuthentication(): void
454454 . 'yejRmVWpnYzBRN2ciLCAib3JpZ2luIjogImh0dHA6XC9cL2RlbW8uZXhhbXBsZS5jb20iLCAidHlwI '
455455 . 'jogIm5hdmlnYXRvci5pZC5nZXRBc3NlcnRpb24iIH0=", "keyHandle": "CTUayZo8hCBeC-sGQJC '
456456 . 'hC0wW-bBg99bmOlGCgw8XGq4dLsxO3yWh9mRYArZxocP5hBB1pEGB3bbJYiM-5acc5w", "errorCode": 0 } ' ;
457- $ this ->assertAllQueriesConsumed ();
457+ $ this ->dummyDbi -> assertAllQueriesConsumed ();
458458 $ this ->loadResultForConfig ([]);
459459 $ this ->loadQueriesForConfigure ('key ' , [
460460 'registrations ' => [
@@ -481,7 +481,7 @@ public function testKeyAuthentication(): void
481481 ],
482482 ]);
483483 $ this ->assertTrue ($ object ->check (true ));
484- $ this ->assertAllQueriesConsumed ();
484+ $ this ->dummyDbi -> assertAllQueriesConsumed ();
485485 }
486486
487487 /**
0 commit comments