-
Notifications
You must be signed in to change notification settings - Fork 73
Expand file tree
/
Copy pathOfferEventTicketGeneratorTest.php
More file actions
43 lines (38 loc) · 1000 Bytes
/
OfferEventTicketGeneratorTest.php
File metadata and controls
43 lines (38 loc) · 1000 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<?php
/*
* This file is part of the Bukashk0zzzYmlGenerator
*
* (c) Denis Golubovskiy <bukashk0zzz@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Bukashk0zzz\YmlGenerator\Tests;
use Bukashk0zzz\YmlGenerator\Model\Offer\OfferEventTicket;
/**
* Generator test
*/
class OfferEventTicketGeneratorTest extends AbstractGeneratorTest
{
/**
* Test generate
*/
public function testGenerate()
{
$this->offerType = 'EventTicket';
$this->runGeneratorTest();
}
/**
* {@inheritdoc}
*/
protected function createOffer()
{
return (new OfferEventTicket())
->setName($this->faker->name)
->setPlace($this->faker->name)
->setDate($this->faker->date('d/m/y'))
->setPremiere($this->faker->numberBetween(0, 1))
->setKids($this->faker->numberBetween(0, 1))
;
}
}