RedUNIT\Base\Misc::testTableExist PHP Method

testTableExist() public method

Test whether we can use the tableExist() method in OODB instances directly to help us determine the existance of a table.
public testTableExist ( ) : void
return void
    public function testTableExist()
    {
        R::nuke();
        R::store(R::dispense('book'));
        R::freeze(FALSE);
        asrt(R::getRedBean()->tableExists('book'), TRUE);
        asrt(R::getRedBean()->tableExists('book2'), FALSE);
        R::freeze(TRUE);
        asrt(R::getRedBean()->tableExists('book'), TRUE);
        asrt(R::getRedBean()->tableExists('book2'), FALSE);
        R::freeze(FALSE);
    }