| @@ 165-182 (lines=18) @@ | ||
| 162 | /** |
|
| 163 | * @group legacy |
|
| 164 | */ |
|
| 165 | public function testNoProfilingWhenToolbarIsDisabled() |
|
| 166 | { |
|
| 167 | $this->load( |
|
| 168 | [ |
|
| 169 | 'toolbar' => [ |
|
| 170 | 'enabled' => false, |
|
| 171 | ], |
|
| 172 | 'clients' => [ |
|
| 173 | 'acme' => [ |
|
| 174 | 'factory' => 'httplug.factory.curl', |
|
| 175 | 'plugins' => ['foo'], |
|
| 176 | ], |
|
| 177 | ], |
|
| 178 | ] |
|
| 179 | ); |
|
| 180 | ||
| 181 | $this->verifyProfilingDisabled(); |
|
| 182 | } |
|
| 183 | ||
| 184 | public function testNoProfilingWhenNotInDebugMode() |
|
| 185 | { |
|
| @@ 184-199 (lines=16) @@ | ||
| 181 | $this->verifyProfilingDisabled(); |
|
| 182 | } |
|
| 183 | ||
| 184 | public function testNoProfilingWhenNotInDebugMode() |
|
| 185 | { |
|
| 186 | $this->setParameter('kernel.debug', false); |
|
| 187 | $this->load( |
|
| 188 | [ |
|
| 189 | 'clients' => [ |
|
| 190 | 'acme' => [ |
|
| 191 | 'factory' => 'httplug.factory.curl', |
|
| 192 | 'plugins' => ['foo'], |
|
| 193 | ], |
|
| 194 | ], |
|
| 195 | ] |
|
| 196 | ); |
|
| 197 | ||
| 198 | $this->verifyProfilingDisabled(); |
|
| 199 | } |
|
| 200 | ||
| 201 | /** |
|
| 202 | * @group legacy |
|
| @@ 204-222 (lines=19) @@ | ||
| 201 | /** |
|
| 202 | * @group legacy |
|
| 203 | */ |
|
| 204 | public function testProfilingWhenToolbarIsSpecificallyOn() |
|
| 205 | { |
|
| 206 | $this->setParameter('kernel.debug', false); |
|
| 207 | $this->load( |
|
| 208 | [ |
|
| 209 | 'toolbar' => [ |
|
| 210 | 'enabled' => true, |
|
| 211 | ], |
|
| 212 | 'clients' => [ |
|
| 213 | 'acme' => [ |
|
| 214 | 'factory' => 'httplug.factory.curl', |
|
| 215 | 'plugins' => ['foo'], |
|
| 216 | ], |
|
| 217 | ], |
|
| 218 | ] |
|
| 219 | ); |
|
| 220 | ||
| 221 | $this->assertContainerBuilderHasService(PluginClientFactoryListener::class); |
|
| 222 | } |
|
| 223 | ||
| 224 | public function testOverrideProfilingFormatter() |
|
| 225 | { |
|