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

testJoiningWithUnique() public method

    public function testJoiningWithUnique()
    {
        $collection = Hero::all()->join(array('Powers', 'SecretIdentity'))->unique();
        $objects = iterator_to_array($collection);
        $this->assertCount(3, $collection);
    }