Пример #1
0
 public function testRelationships()
 {
     $this->mapping->addAdditionalRelationships(['friends' => '/api/user/{userId}/friends', 'family' => '/api/user/{userId}/family']);
     $this->assertEquals(['friends' => '/api/user/{userId}/friends', 'family' => '/api/user/{userId}/family'], $this->mapping->getRelationships());
 }