RedUNIT\Base\Writecache::testKeepCacheCommentInSQL PHP Method

testKeepCacheCommentInSQL() public method

Test keep-cache comment.
public testKeepCacheCommentInSQL ( ) : void
return void
    public function testKeepCacheCommentInSQL()
    {
        $bean = R::dispense('bean');
        $bean->title = 'abc';
        $id = R::store($bean);
        $bean = R::load('bean', $id);
        $bean->title = 'xxx';
        R::store($bean);
        // Causes flush even though it contains -- keep-cache (not at the end, not intended)
        R::findOne('bean', ' title = ? ', array('-- keep-cache'));
        $bean = R::load('bean', $id);
        asrt($bean->title, 'xxx');
    }