Completed
Push — master ( 7ac6a5...2a89ae )
by Wachter
06:40
created

HandlerTest::setUp()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
dl 0
loc 6
rs 9.4286
c 1
b 0
f 1
cc 1
eloc 3
nc 1
nop 0
1
<?php
2
3
namespace Functional;
4
5
use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase;
6
7
class HandlerTest extends KernelTestCase
8
{
9
    protected function setUp()
10
    {
11
        parent::setUp();
12
13
        $this->bootKernel();
14
    }
15
16
    public function testHas()
17
    {
18
        $registry = self::$kernel->getContainer()->get('task.handler_registry');
19
20
        $this->assertTrue($registry->has('test'));
21
    }
22
23
    public function testRun()
24
    {
25
        $registry = self::$kernel->getContainer()->get('task.handler_registry');
26
27
        $this->assertEquals('daolkrow', $registry->run('test', 'workload'));
28
    }
29
}
30