コード例 #1
0
 public function testProvider()
 {
     $payload = new ProviderPayload();
     $payload->setProviderId('001');
     $method = $payload->getMethod();
     $this->assertEquals($method, 'provider/001.json');
 }
コード例 #2
0
 /**
  * {@inheritdoc}
  */
 public function getPayload()
 {
     $payload = new ProviderPayload();
     $providerId = \Config::get('tdteuropeana.providerId');
     $payload->setProviderId($providerId);
     return $payload;
 }