These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
1 | <?php |
||
2 | |||
3 | namespace Kunstmaan\ArticleBundle\Tests\Form; |
||
4 | |||
5 | use Kunstmaan\ArticleBundle\PagePartAdmin\AbstractArticlePagePagePartAdminConfigurator; |
||
6 | use PHPUnit\Framework\TestCase; |
||
7 | |||
8 | /** |
||
9 | * Class AbstractArticlePagePagePartAdminConfiguratorTest |
||
10 | */ |
||
11 | View Code Duplication | class AbstractArticlePagePagePartAdminConfiguratorTest extends TestCase |
|
12 | { |
||
13 | public function testGettersAndSetters() |
||
14 | { |
||
15 | $entity = new AbstractArticlePagePagePartAdminConfigurator(); |
||
16 | |||
17 | $this->assertEquals('Page parts', $entity->getName()); |
||
18 | $this->assertEquals('main', $entity->getContext()); |
||
19 | $this->assertEquals('', $entity->getWidgetTemplate()); |
||
20 | $types = $entity->getPossiblePagePartTypes(); |
||
21 | $this->assertInternalType('array', $types); |
||
0 ignored issues
–
show
|
|||
22 | foreach ($types as $type) { |
||
23 | $this->assertArrayHasKey('name', $type); |
||
24 | $this->assertArrayHasKey('class', $type); |
||
25 | } |
||
26 | } |
||
27 | } |
||
28 |
This method has been deprecated. The supplier of the class has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the method will be removed from the class and what other method or class to use instead.