Example #1
0
 public function testAllowsSettingAdditionalEntityLinks()
 {
     $links = new LinkCollection();
     $links->add(new Link('describedby'));
     $links->add(new Link('orders'));
     $hal   = new Collection(array(), 'item/route');
     $hal->setEntityLinks($links);
     $this->assertSame($links, $hal->getEntityLinks());
 }