Code Duplication    Length = 11-14 lines in 3 locations

tests/Unit/Admin/Admin/CategoryAdminTest.php 2 locations

@@ 12-24 (lines=13) @@
9
10
class CategoryAdminTest extends SonataAdminClassTestCase
11
{
12
    public function testConfigureListFields(): void
13
    {
14
        $articleAdmin = $this->createAdmin(CategoryAdmin::class);
15
        $this->assertHasListFields($articleAdmin, [
16
            'name',
17
            'slug',
18
            'parent',
19
            'children',
20
            'metaDescription',
21
            'metaKeywords',
22
            '_action',
23
        ]);
24
    }
25
26
    public function testConfigureFormFields(): void
27
    {
@@ 26-36 (lines=11) @@
23
        ]);
24
    }
25
26
    public function testConfigureFormFields(): void
27
    {
28
        $articleAdmin = $this->createAdmin(CategoryAdmin::class);
29
        $this->assertHasFormFields($articleAdmin, [
30
            'name',
31
            'slug',
32
            'parent',
33
            'metaDescription',
34
            'metaKeywords',
35
        ]);
36
    }
37
}
38

tests/Unit/Admin/Admin/PageAdminTest.php 1 location

@@ 12-25 (lines=14) @@
9
10
class PageAdminTest extends SonataAdminClassTestCase
11
{
12
    public function testConfigureListFields(): void
13
    {
14
        $articleAdmin = $this->createAdmin(PageAdmin::class);
15
        $this->assertHasListFields($articleAdmin, [
16
            'title',
17
            'slug',
18
            'author',
19
            'published',
20
            'publishedAt',
21
            'metaDescription',
22
            'metaKeywords',
23
            '_action',
24
        ]);
25
    }
26
27
    public function testConfigureFormFields(): void
28
    {