Completed
Push — master ( 02cd0c...4a56be )
by Kevin
26s queued 19s
created

CategoryPoolStory::build()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
eloc 5
c 1
b 0
f 1
dl 0
loc 7
rs 10
cc 1
nc 1
nop 0
1
<?php
2
3
namespace Zenstruck\Foundry\Tests\Fixtures\Stories;
4
5
use Zenstruck\Foundry\Story;
6
use Zenstruck\Foundry\Tests\Fixtures\Factories\CategoryFactory;
7
8
/**
9
 * @author Kevin Bond <[email protected]>
10
 */
11
final class CategoryPoolStory extends Story
12
{
13
    public function build(): void
14
    {
15
        $this->addToPool('pool-name', CategoryFactory::createMany(2));
16
        $this->addToPool('pool-name', CategoryFactory::new()->many(3));
17
        $this->addToPool('pool-name', CategoryFactory::createOne());
18
        $this->addToPool('pool-name', CategoryFactory::new());
19
        $this->addState('state-name', CategoryFactory::new(), 'pool-name');
20
    }
21
}
22