public function it_will_create_remote_tag_value_object(PushPayload $pushPayload)
 {
     $pushPayload->getTagName()->willReturn('name');
     $result = $this->create($pushPayload);
     $result->shouldReturnAnInstanceOf('DevBoard\\GithubRemote\\ValueObject\\Tag\\Tag');
     $result->getName()->shouldReturn('name');
 }
Beispiel #2
0
 /**
  * @param PushPayload $pushPayload
  *
  * @return Tag
  */
 public function create(PushPayload $pushPayload)
 {
     return new Tag($pushPayload->getTagName());
 }