src/Kunstmaan/NodeSearchBundle/Tests/unit/Entity/AbstractSearchPageTest.php 1 location
|
@@ 11-22 (lines=12) @@
|
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->assertTrue(is_array($page->getPossibleChildTypes())); |
21 |
|
} |
22 |
|
} |
23 |
|
|
src/Kunstmaan/SitemapBundle/Tests/unit/Entity/SiteMapPageTest.php 1 location
|
@@ 11-23 (lines=13) @@
|
8 |
|
/** |
9 |
|
* Class RobotsTest |
10 |
|
*/ |
11 |
|
class SiteMapPageTest extends TestCase |
12 |
|
{ |
13 |
|
public function testGetters() |
14 |
|
{ |
15 |
|
$object = new SitemapPage(); |
16 |
|
|
17 |
|
$this->assertEquals('KunstmaanSitemapBundle:SitemapPage:view.html.twig', $object->getDefaultView()); |
18 |
|
$this->assertTrue($object->isHiddenFromSitemap()); |
19 |
|
$this->assertTrue($object->isChildrenHiddenFromSitemap()); |
20 |
|
$this->assertTrue(is_array($object->getPossibleChildTypes())); |
21 |
|
$this->assertTrue(is_array($object->getPagePartAdminConfigurations())); |
22 |
|
} |
23 |
|
} |
24 |
|
|
src/Kunstmaan/ArticleBundle/Tests/unit/Entity/AbstractArticleOverviewPageTest.php 1 location
|
@@ 19-29 (lines=11) @@
|
16 |
|
/** |
17 |
|
* Generated by PHPUnit_SkeletonGenerator on 2012-09-04 at 16:54:04. |
18 |
|
*/ |
19 |
|
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->assertTrue(is_array($entity->getPossibleChildTypes())); |
27 |
|
$this->assertTrue(is_array($entity->getPagePartAdminConfigurations())); |
28 |
|
} |
29 |
|
} |
30 |
|
|