コード例 #1
0
ファイル: EntityTest.php プロジェクト: sneek/gocardless-pro
 /** @test */
 function it_returns_null_if_link_not_found()
 {
     $entity = new BasicEntity();
     $this->assertNull($entity->getLink('foo'));
 }
コード例 #2
0
ファイル: EntityTest.php プロジェクト: picqer/gocardless-pro
 /** @test */
 function it_can_get_a_single_link()
 {
     $entity = BasicEntity::fromArray(['links' => ['customer_id' => 'CU12345']]);
     $this->assertEquals('CU12345', $entity->getLink('customer_id'));
 }