Code Duplication    Length = 18-18 lines in 2 locations

src/Kunstmaan/AdminListBundle/Tests/unit/AdminList/Configurator/AbstractDoctrineORMAdminListConfiguratorTest.php 2 locations

@@ 73-90 (lines=18) @@
70
        ;
71
    }
72
73
    public function testGetEditUrl()
74
    {
75
        $abstractMock = $this->setUpAbstractMock();
76
77
        $item = new class() {
78
            public function getId()
79
            {
80
                return 747;
81
            }
82
        };
83
84
        $editUrl = $abstractMock->getEditUrlFor($item);
85
        $this->assertIsArray($editUrl);
86
        $this->assertArrayHasKey('path', $editUrl);
87
        $this->assertArrayHasKey('params', $editUrl);
88
        $this->assertEquals('bundle_admin_myentity_'.AbstractDoctrineORMAdminListConfigurator::SUFFIX_EDIT, $editUrl['path']);
89
        $this->assertContains(747, $editUrl['params']);
90
    }
91
92
    public function testGetDeleteUrl()
93
    {
@@ 92-109 (lines=18) @@
89
        $this->assertContains(747, $editUrl['params']);
90
    }
91
92
    public function testGetDeleteUrl()
93
    {
94
        $abstractMock = $this->setUpAbstractMock();
95
96
        $item = new class() {
97
            public function getId()
98
            {
99
                return 747;
100
            }
101
        };
102
103
        $editUrl = $abstractMock->getDeleteUrlFor($item);
104
        $this->assertIsArray($editUrl);
105
        $this->assertArrayHasKey('path', $editUrl);
106
        $this->assertArrayHasKey('params', $editUrl);
107
        $this->assertEquals('bundle_admin_myentity_'.AbstractDoctrineORMAdminListConfigurator::SUFFIX_DELETE, $editUrl['path']);
108
        $this->assertContains(747, $editUrl['params']);
109
    }
110
111
    public function testGetPagerFanta()
112
    {