| @@ 12-27 (lines=16) @@ | ||
| 9 | ||
| 10 | class ArticleAdminTest extends SonataAdminClassTestCase |
|
| 11 | { |
|
| 12 | public function testConfigureListFields(): void |
|
| 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 | public function testConfigureFormFields(): void |
|
| 30 | { |
|
| @@ 29-44 (lines=16) @@ | ||
| 26 | ]); |
|
| 27 | } |
|
| 28 | ||
| 29 | public function testConfigureFormFields(): void |
|
| 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 | ||