Permalink
Browse files

Added Test for 0-loader issue.

  • Loading branch information...
gabordemooij committed Nov 17, 2012
1 parent 9f93316 commit 0ddc7f26a2fda609dc3f3ed1f3af01e0261415da
Showing with 8 additions and 0 deletions.
  1. +8 −0 testing/RedUNIT/Plugin/Cache.php
@@ -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);
}

0 comments on commit 0ddc7f2

Please sign in to comment.