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

unit/Entity/AbstractArticleOverviewPageTest.php (3 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
0 ignored issues
show
This class 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...
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