Completed
Push — master ( 1de9b7...830752 )
by Kristof
38:46 queued 24:09
created

unit/Entity/AbstractArticleOverviewPageTest.php (1 issue)

Upgrade to new PHP Analysis Engine

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\Entity;
4
5
use Kunstmaan\ArticleBundle\Entity\AbstractArticleOverviewPage;
6
use PHPUnit\Framework\TestCase;
7
8
class ArticleOverViewPage extends AbstractArticleOverviewPage
9
{
10
    public function getArticleRepository($em)
11
    {
12
        return null;
13
    }
14
}
15
16
/**
17
 * Generated by PHPUnit_SkeletonGenerator on 2012-09-04 at 16:54:04.
18
 */
19 View Code Duplication
class AbstractArticleOverviewPageTest extends TestCase
0 ignored issues
show
Coding Style Compatibility introduced by
PSR1 recommends that each class should be in its own file to aid autoloaders.

Having each class in a dedicated file usually plays nice with PSR autoloaders and is therefore a well established practice. If you use other autoloaders, you might not want to follow this rule.

Loading history...
20
{
21
    public function testGettersAndSetters()
22
    {
23
        $entity = new ArticleOverViewPage();
24
        $this->assertEquals('KunstmaanArticleBundle:AbstractArticleOverviewPage:service', $entity->getControllerAction());
25
        $this->assertEquals('KunstmaanArticleBundle:AbstractArticleOverviewPage:view.html.twig', $entity->getDefaultView());
26
        $this->assertTrue(is_array($entity->getPossibleChildTypes()));
27
        $this->assertTrue(is_array($entity->getPagePartAdminConfigurations()));
28
    }
29
}
30