@@ 77-87 (lines=11) @@ | ||
74 | $this->definitionManager->addMethodCall('addDefintion', Argument::any())->shouldNotHaveBeenCalled(); |
|
75 | } |
|
76 | ||
77 | public function testProcessWithNoServices(): void |
|
78 | { |
|
79 | $this->container->setParameter('core23_sitemap.static_urls', []); |
|
80 | ||
81 | $compiler = new SitemapCompilerPass(); |
|
82 | $compiler->process($this->container); |
|
83 | ||
84 | static::assertSame([], $this->container->getParameter('core23_sitemap.static_urls')); |
|
85 | ||
86 | $this->definitionManager->addMethodCall('addDefintion', Argument::any())->shouldNotHaveBeenCalled(); |
|
87 | } |
|
88 | ||
89 | public function testProcessWithStaticUrls(): void |
|
90 | { |
|
@@ 118-127 (lines=10) @@ | ||
115 | $compiler->process($this->container); |
|
116 | } |
|
117 | ||
118 | public function testProcessWithEmptyGroups(): void |
|
119 | { |
|
120 | $this->container->setParameter('core23_sitemap.static_urls', []); |
|
121 | ||
122 | $compiler = new SitemapCompilerPass(); |
|
123 | $compiler->process($this->container); |
|
124 | ||
125 | $this->serviceManager->addMethodCall(Argument::any())->shouldNotBeCalled(); |
|
126 | $this->definitionManager->addMethodCall(Argument::any())->shouldNotBeCalled(); |
|
127 | } |
|
128 | } |
|
129 |