Skip to content

Commit

Permalink
Added Test for 0-loader issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
gabordemooij committed Nov 17, 2012
1 parent 9f93316 commit 0ddc7f2
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions testing/RedUNIT/Plugin/Cache.php
Expand Up @@ -186,6 +186,14 @@ function hm() {return R::$redbean->getHits().'-'.R::$redbean->getMisses();}
$b = reset($burgers);
R::load('hamburger',$b->id);
asrt($cachedOODB->getHits(),11);

testpack('Test 0-loading issue');
$bean = R::load('nocacheplease',0);
$bean->name = 'test';
$bean = R::load('nocacheplease',0);
asrt(!isset($bean->name),true);
asrt(!($bean->name=='test'),true);

R::configureFacadeWithToolbox($old);
}

Expand Down

0 comments on commit 0ddc7f2

Please sign in to comment.