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