Ejemplo n.º 1
0
 public function testGetOneBookWithAuthorAndAliasNamedNameOnRelation()
 {
     $fetch = new Books($this->book->id);
     $fetch->setAlias('name');
     $this->assertEqual('Foo Bar', $fetch->name);
     $this->assertEqual('John Doe', $fetch->authors->name);
 }