Pheasant\Tests\Relationships\JoinTest::testBasicJoiningResultsInCartesianProduct PHP Method

testBasicJoiningResultsInCartesianProduct() public method

    public function testBasicJoiningResultsInCartesianProduct()
    {
        $collection = Hero::all()->join(array('Powers', 'SecretIdentity'));
        $objects = iterator_to_array($collection);
        // the cartesian product of hero x identity x power
        $this->assertCount(3 * 2, $collection);
    }