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

CanonicalUrlGeneratorTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 2
dl 0
loc 15
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A testGenerateUrl() 0 8 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