Completed
Push — master ( 4718f5...e2e4f6 )
by Ruud
314:16 queued 303:41
created

Tests/unit/Entity/AbstractSearchPageTest.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\NodeSearchBundle\Tests\Entity;
4
5
use Kunstmaan\NodeSearchBundle\Entity\AbstractSearchPage;
6
use PHPUnit\Framework\TestCase;
7
8
/**
9
 * Class AbstractSearchPageTest
10
 */
11
class AbstractSearchPageTest extends TestCase
12
{
13
    public function testGetters()
14
    {
15
        $page = new AbstractSearchPage();
16
        $this->assertEquals('KunstmaanNodeSearchBundle:AbstractSearchPage:service', $page->getControllerAction());
17
        $this->assertEquals('KunstmaanNodeSearchBundle:AbstractSearchPage:view.html.twig', $page->getDefaultView());
18
        $this->assertEquals('kunstmaan_node_search.search.node', $page->getSearcher());
19
        $this->assertFalse($page->isIndexable());
20
        $this->assertInternalType('array', $page->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...
21
    }
22
}
23