RedUNIT\Base\Aliasing::testAliasWithBeautify PHP Метод

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

Ensure that aliased column aren't beautified
public testAliasWithBeautify ( ) : void
Результат void
    public function testAliasWithBeautify()
    {
        $points = R::dispense('point', 2);
        $line = R::dispense('line');
        $line->pointA = $points[0];
        $line->pointB = $points[1];
        R::store($line);
        $line2 = R::dispense('line');
        $line2->pointA = $line->fetchAs('point')->pointA;
        $line2->pointB = R::dispense('point');
        R::store($line2);
        //now we have two points per line (1-to-x)
        //I want to know which lines cross A:
        $a = R::load('point', $line->pointA->id);
        //reload A
        $lines = $a->alias('pointA')->ownLine;
        asrt(count($lines), 2);
    }