Completed
Push — master ( f7b33a...213343 )
by Andy
03:36
created

CanonicalUrlGeneratorTest::testGenerateUrl()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 8
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 4
nc 1
nop 1
1
<?php
2
3
namespace Palmtree\CanonicalUrlBundle\Tests\Service;
4
5
use Palmtree\CanonicalUrlBundle\Service\CanonicalUrlGenerator;
6
use Palmtree\CanonicalUrlBundle\Tests\AbstractTest;
7
8
class CanonicalUrlGeneratorTest extends AbstractTest
9
{
10
    /**
11
     * @dataProvider configProvider
12
     * @param array $config
13
     */
14
    public function testGenerateUrl(array $config)
15
    {
16
        $urlGenerator = new CanonicalUrlGenerator($this->getRouter(), $config);
17
18
        $url = $urlGenerator->generateUrl('foo');
19
20
        $this->assertEquals('https://example.org/foo', $url);
21
    }
22
}
23