Completed
Push — master ( 5356ed...a2c5ce )
by Ruud
322:43 queued 311:51
created

unit/Entity/AbstractArticleOverviewPageTest.php (2 issues)

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
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->assertInternalType('array', $entity->getPossibleChildTypes());
0 ignored issues
show
Deprecated Code introduced by
The method PHPUnit\Framework\Assert::assertInternalType() has been deprecated with message: https://github.com/sebastianbergmann/phpunit/issues/3369

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.

Loading history...
27
        $this->assertInternalType('array', $entity->getPagePartAdminConfigurations());
0 ignored issues
show
Deprecated Code introduced by
The method PHPUnit\Framework\Assert::assertInternalType() has been deprecated with message: https://github.com/sebastianbergmann/phpunit/issues/3369

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.

Loading history...
28
    }
29
}
30