Code Duplication    Length = 13-14 lines in 2 locations

src/Kunstmaan/SeoBundle/Tests/unit/Twig/TwigExtensionTest.php 2 locations

@@ 34-46 (lines=13) @@
31
    /**
32
     * testShouldReturnNameForEntityWhenNoSEO
33
     */
34
    public function testShouldReturnNameForEntityWhenNoSEO()
35
    {
36
        $name = 'OK';
37
38
        $this->entityWithName($name);
39
        $this->noSeoFound();
40
41
        $object = new SeoTwigExtension($this->emMock);
42
43
        $result = $object->getTitleFor($this->entityMock);
44
45
        $this->assertEquals($name, $result);
46
    }
47
48
    /**
49
     * testShouldReturnNameForEntityWhenSEOWithTitleFound
@@ 51-64 (lines=14) @@
48
    /**
49
     * testShouldReturnNameForEntityWhenSEOWithTitleFound
50
     */
51
    public function testShouldReturnNameForEntityWhenSEOWithTitleFound()
52
    {
53
        $nokName = 'NOK';
54
        $name = 'OK';
55
56
        $this->entityWithName($nokName);
57
        $this->seoFoundWithTitle($name);
58
59
        $object = new SeoTwigExtension($this->emMock);
60
61
        $result = $object->getTitleFor($this->entityMock);
62
63
        $this->assertEquals($name, $result);
64
    }
65
66
    public function testGetImageDimensionsWithValidFile()
67
    {