1 | <?php |
||
13 | class SeoGeneratorPassTest extends TestCase |
||
14 | { |
||
15 | private $containerBuilder; |
||
16 | private $definition; |
||
17 | private $builderDefinition; |
||
18 | |||
19 | /** |
||
20 | * @var SeoGeneratorPass |
||
21 | */ |
||
22 | private $pass; |
||
23 | |||
24 | protected function setUp() |
||
35 | |||
36 | /** |
||
37 | * @expectedException \InvalidArgumentException |
||
38 | * @expectedExceptionMessage Seo generator services cannot be abstract but "id" is. |
||
39 | */ |
||
40 | public function testFailsWhenServiceIsAbstract() |
||
46 | |||
47 | /** |
||
48 | * @expectedException \InvalidArgumentException |
||
49 | * @expectedExceptionMessage Seo generator services must be public, but "id" is not. |
||
50 | */ |
||
51 | public function testFailsWhenServiceIsPrivate() |
||
57 | |||
58 | /** |
||
59 | * @expectedException \InvalidArgumentException |
||
60 | * @expectedExceptionMessage Tag "leogout_seo.generator" requires an "alias" field in "id" definition. |
||
61 | */ |
||
62 | public function testFailsWhenAliasIsMissing() |
||
67 | } |
||
68 |