-
Notifications
You must be signed in to change notification settings - Fork 73
Expand file tree
/
Copy pathOfferBookGeneratorTest.php
More file actions
50 lines (45 loc) · 1.3 KB
/
OfferBookGeneratorTest.php
File metadata and controls
50 lines (45 loc) · 1.3 KB
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
44
45
46
47
48
49
50
<?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\OfferBook;
/**
* Generator test
*/
class OfferBookGeneratorTest extends AbstractGeneratorTest
{
/**
* Test generate
*/
public function testGenerate()
{
$this->offerType = 'Book';
$this->runGeneratorTest();
}
/**
* {@inheritdoc}
*/
protected function createOffer()
{
return (new OfferBook())
->setAuthor($this->faker->name)
->setName($this->faker->name)
->setPublisher($this->faker->name)
->setSeries($this->faker->name)
->setYear($this->faker->numberBetween(1, 9999))
->setISBN($this->faker->isbn13)
->setVolume($this->faker->numberBetween(1, 9999))
->setPart($this->faker->numberBetween(1, 9999))
->setLanguage($this->faker->name)
->setBinding($this->faker->name)
->setPageExtent($this->faker->numberBetween(1, 9999))
->setTableOfContents($this->faker->name)
;
}
}