File tree 2 files changed +3
-1
lines changed
testing/RedUNIT/Blackhole
2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -381,6 +381,7 @@ public static function useISNULLConditions( $mode )
381
381
*/
382
382
public static function transaction ( $ callback )
383
383
{
384
+ if ( !self ::$ allowFluidTransactions && !self ::$ redbean ->isFrozen () ) return FALSE ;
384
385
return Transaction::transaction ( self ::$ adapter , $ callback );
385
386
}
386
387
Original file line number Diff line number Diff line change @@ -396,13 +396,14 @@ public function testTransactionInFacade()
396
396
pass ();
397
397
}
398
398
asrt ( R::count ( 'bean ' ), 1 );
399
- R::freeze ( FALSE );
400
399
try {
401
400
R::transaction ( 'nope ' );
402
401
fail ();
403
402
} catch (\Exception $ e ) {
404
403
pass ();
405
404
}
405
+ R::freeze ( FALSE );
406
+ asrt (R::transaction ( 'nope ' ), FALSE );
406
407
testpack ( 'Test Camelcase 2 underscore ' );
407
408
$ names = array (
408
409
'oneACLRoute ' => 'one_acl_route ' ,
You can’t perform that action at this time.
0 commit comments