Completed
Push — master ( b73efb...175f05 )
by Bukashk0zzz
03:39
created

OfferEventTicketGeneratorTest::createOffer()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 10
Code Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 10
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 7
nc 1
nop 0
1
<?php
2
3
/*
4
 * This file is part of the Bukashk0zzzYmlGenerator
5
 *
6
 * (c) Denis Golubovskiy <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Bukashk0zzz\YmlGenerator\Tests;
13
14
use Bukashk0zzz\YmlGenerator\Model\Offer\OfferEventTicket;
15
16
/**
17
 * Generator test
18
 *
19
 * @author Denis Golubovskiy <[email protected]>
20
 */
21
class OfferEventTicketGeneratorTest extends AbstractGeneratorTest
22
{
23
    /**
24
     * Test generate
25
     */
26
    public function testGenerate()
27
    {
28
        $this->offerType = 'EventTicket';
29
        $this->runGeneratorTest();
30
    }
31
32
    /**
33
     * {@inheritdoc}
34
     */
35
    protected function createOffer()
36
    {
37
        return (new OfferEventTicket())
38
            ->setName($this->faker->name)
39
            ->setPlace($this->faker->name)
40
            ->setDate($this->faker->date('d/m/y'))
41
            ->setPremiere($this->faker->numberBetween(0, 1))
42
            ->setKids($this->faker->numberBetween(0, 1))
43
        ;
44
    }
45
}
46