@@ 24-36 (lines=13) @@ | ||
21 | * @expectedException \Symfony\Component\Config\Definition\Exception\InvalidConfigurationException |
|
22 | * @expectedExceptionMessage Page class must be a valid class extending Orbitale\Bundle\CmsBundle\Entity\Page. "inexistent_page_class" given. |
|
23 | */ |
|
24 | public function testInexistentPageClass() |
|
25 | { |
|
26 | $builder = new ContainerBuilder(); |
|
27 | ||
28 | $ext = new OrbitaleCmsExtensionStub(true); |
|
29 | ||
30 | $ext->load([ |
|
31 | 'orbitale_cms' => [ |
|
32 | 'page_class' => 'inexistent_page_class', |
|
33 | 'category_class' => 'Orbitale\Bundle\CmsBundle\Tests\Fixtures\TestBundle\Entity\Category', |
|
34 | ], |
|
35 | ], $builder); |
|
36 | } |
|
37 | ||
38 | /** |
|
39 | * @expectedException \Symfony\Component\Config\Definition\Exception\InvalidConfigurationException |
|
@@ 42-54 (lines=13) @@ | ||
39 | * @expectedException \Symfony\Component\Config\Definition\Exception\InvalidConfigurationException |
|
40 | * @expectedExceptionMessage Category class must be a valid class extending Orbitale\Bundle\CmsBundle\Entity\Category. "inexistent_category_class" given. |
|
41 | */ |
|
42 | public function testInexistentCategoryClass() |
|
43 | { |
|
44 | $builder = new ContainerBuilder(); |
|
45 | ||
46 | $ext = new OrbitaleCmsExtensionStub(true); |
|
47 | ||
48 | $ext->load([ |
|
49 | 'orbitale_cms' => [ |
|
50 | 'page_class' => 'Orbitale\Bundle\CmsBundle\Tests\Fixtures\TestBundle\Entity\Page', |
|
51 | 'category_class' => 'inexistent_category_class', |
|
52 | ], |
|
53 | ], $builder); |
|
54 | } |
|
55 | ||
56 | /** |
|
57 | * @dataProvider provideYamlConfiguration |