Completed
Push — master ( 01b9e4...761718 )
by Yaroslav
02:28 queued 12s
created

ArticleAdminTest::testConfigureListFields()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 16

Duplication

Lines 16
Ratio 100 %

Importance

Changes 0
Metric Value
dl 16
loc 16
rs 9.7333
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Harentius\BlogBundle\Tests\Unit\Admin\Admin;
6
7
use Harentius\BlogBundle\Admin\Admin\ArticleAdmin;
8
use Harentius\BlogBundle\Test\SonataAdminClassTestCase;
9
10
class ArticleAdminTest extends SonataAdminClassTestCase
11
{
12 View Code Duplication
    public function testConfigureListFields(): void
0 ignored issues
show
Duplication introduced by
This method seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
13
    {
14
        $articleAdmin = $this->createAdmin(ArticleAdmin::class);
15
        $this->assertHasListFields($articleAdmin, [
16
            'title',
17
            'slug',
18
            'category',
19
            'tags',
20
            'author',
21
            'published',
22
            'publishedAt',
23
            'metaDescription',
24
            'metaKeywords',
25
            '_action',
26
        ]);
27
    }
28
29 View Code Duplication
    public function testConfigureFormFields(): void
0 ignored issues
show
Duplication introduced by
This method seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
30
    {
31
        $articleAdmin = $this->createAdmin(ArticleAdmin::class);
32
        $this->assertHasFormFields($articleAdmin, [
33
            'title',
34
            'slug',
35
            'category',
36
            'tags',
37
            'text',
38
            'published',
39
            'publishedAt',
40
            'author',
41
            'metaDescription',
42
            'metaKeywords',
43
        ]);
44
    }
45
}
46