ActiveRecordTest::testRelations PHP Méthode

testRelations() public méthode

public testRelations ( $contact )
    public function testRelations($contact)
    {
        $this->assertEquals($contact->user->id, $contact->user_id);
        $this->assertEquals($contact->user->contact->id, $contact->id);
        $this->assertEquals($contact->user->contacts[0]->id, $contact->id);
        $this->assertGreaterThan(0, count($contact->user->contacts));
        return $contact;
    }