Example #1
0
 /** @test */
 function it_returns_null_if_link_not_found()
 {
     $entity = new BasicEntity();
     $this->assertNull($entity->getLink('foo'));
 }
Example #2
0
 /** @test */
 function it_can_get_a_single_link()
 {
     $entity = BasicEntity::fromArray(['links' => ['customer_id' => 'CU12345']]);
     $this->assertEquals('CU12345', $entity->getLink('customer_id'));
 }