RedUNIT\Base\Cross::testErrorHandlingAggr PHP Метод

testErrorHandlingAggr() публичный Метод

The aggr method can only be used with own-list.
public testErrorHandlingAggr ( ) : void
Результат void
    public function testErrorHandlingAggr()
    {
        $wrongLists = array('not-an-own-list', 'OWNlist', 'Ownpage', 'ownbook', 'own book', '!', 'sharedBook');
        foreach ($wrongLists as $wrongList) {
            $bean = R::dispense('bean');
            try {
                $bean->aggr($wrongList, 'field');
                fail();
            } catch (\Exception $exception) {
                pass();
                asrt($exception instanceof RedException, TRUE);
            }
        }
    }