| 1 | <?php |
||
| 19 | class OfferArtistTitleGeneratorTest extends AbstractGeneratorTest |
||
| 20 | { |
||
| 21 | /** |
||
| 22 | * Test generate |
||
| 23 | */ |
||
| 24 | public function testGenerate() |
||
| 25 | { |
||
| 26 | $this->offerType = 'ArtistTitle'; |
||
| 27 | $this->runGeneratorTest(); |
||
| 28 | } |
||
| 29 | |||
| 30 | /** |
||
| 31 | * {@inheritdoc} |
||
| 32 | */ |
||
| 33 | protected function createOffer() |
||
| 34 | { |
||
| 35 | return (new OfferArtistTitle()) |
||
| 36 | ->setArtist($this->faker->name) |
||
| 37 | ->setTitle($this->faker->name) |
||
| 38 | ->setYear($this->faker->numberBetween(1, 9999)) |
||
| 39 | ->setMedia($this->faker->name) |
||
| 40 | ; |
||
| 41 | } |
||
| 42 | } |
||
| 43 |