RedUNIT\Base\With::testAll PHP Method

testAll() public method

Test all().
public testAll ( ) : void
return void
    public function testAll()
    {
        $book = R::dispense('book');
        $book->ownPage = R::dispense('page', 10);
        R::store($book);
        asrt(count($book->with(' LIMIT 3 ')->ownPage), 3);
        asrt(count($book->ownPage), 3);
        asrt(count($book->all()->ownPage), 10);
        asrt(count($book->ownPage), 10);
        R::nuke();
        asrt(count($book->ownPage), 10);
        asrt(count($book->all()->ownPage), 0);
    }