Passed
Push — master ( 9d91f5...63d5b5 )
by Bukashk0zzz
13:08
created

OfferTourGeneratorTest   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 31
Duplicated Lines 0 %

Coupling/Cohesion

Components 2
Dependencies 3

Importance

Changes 0
Metric Value
wmc 2
lcom 2
cbo 3
dl 0
loc 31
rs 10
c 0
b 0
f 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\OfferTour;
15
16
/**
17
 * Generator test
18
 */
19
class OfferTourGeneratorTest extends AbstractGeneratorTest
20
{
21
    /**
22
     * Test generate
23
     */
24
    public function testGenerate()
25
    {
26
        $this->offerType = 'Tour';
27
        $this->runGeneratorTest();
28
    }
29
30
    /**
31
     * {@inheritdoc}
32
     */
33
    protected function createOffer()
34
    {
35
        return (new OfferTour())
36
            ->setWorldRegion($this->faker->name)
37
            ->setCountry($this->faker->name)
38
            ->setRegion($this->faker->name)
39
            ->setDays($this->faker->numberBetween(1, 9999))
40
            ->addDataTour($this->faker->date("Y-m-d\TH:i"))
41
            ->setName($this->faker->name)
42
            ->setHotelStars($this->faker->name)
43
            ->setRoom($this->faker->name)
44
            ->setMeal($this->faker->name)
45
            ->setIncluded($this->faker->name)
46
            ->setTransport($this->faker->name)
47
        ;
48
    }
49
}
50