Пример #1
0
 /**
  * @param \HHPnet\Core\Domain\Songs\Song    $song
  * @param HHPnet\Core\Domain\Albums\AlbumId $album_id
  */
 public function let(Song $song, AlbumId $album_id)
 {
     $album_id->__toString()->willReturn('1');
     $song->getId()->willReturn(1);
     $song->getAlbumId()->willReturn($album_id);
     $song->getName()->willReturn('name');
     $song->getType()->willReturn('type');
     $song->getPath()->willReturn('path');
     $this->beConstructedWith($song);
 }
Пример #2
0
 /**
  * @return string
  */
 public function albumId()
 {
     return (string) $this->song->getAlbumId();
 }