Passed
Pull Request — master (#52)
by Matthieu
20:11
created

TenantFixture   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 14
c 1
b 0
f 0
dl 0
loc 21
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A load() 0 16 1
1
<?php declare(strict_types = 1);
2
3
namespace AtlassianConnectBundle\Tests\Functional\App\DataFixtures;
4
5
use AtlassianConnectBundle\Entity\Tenant;
6
use Doctrine\Bundle\FixturesBundle\Fixture;
7
use Doctrine\Persistence\ObjectManager;
8
9
/**
10
 * class TenantFixture
11
 */
12
final class TenantFixture extends Fixture
13
{
14
    /**
15
     * @param ObjectManager $manager
16
     */
17
    public function load(ObjectManager $manager)
18
    {
19
        $tenant = new Tenant();
20
        $tenant->setAddonKey('addon_key');
21
        $tenant->setClientKey('client_key');
22
        $tenant->setPublicKey('public_key');
23
        $tenant->setSharedSecret('shared_secret');
24
        $tenant->setServerVersion('1');
25
        $tenant->setPluginsVersion('plugin_version');
26
        $tenant->setBaseUrl('http://base_url.org');
27
        $tenant->setProductType('product_type');
28
        $tenant->setDescription('description');
29
        $tenant->setEventType('type');
30
31
        $manager->persist($tenant);
32
        $manager->flush();
33
    }
34
}
35