8000 Merge branch '3.4' into 4.3 · symfony/symfony@cc2246e · GitHub
[go: up one dir, main page]

Skip to content

Commit cc2246e

Browse files
Merge branch '3.4' into 4.3
* 3.4: Relax transient test
2 parents 0c47116 + 0497fd9 commit cc2246e

File tree

3 files changed

+5
-17
lines changed

3 files changed

+5
-17
lines changed

src/Symfony/Bundle/WebProfilerBundle/Tests/Controller/ProfilerControllerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ public function testSearchActionWithoutToken()
329329
$token = $client->getResponse()->headers->get('x-debug-token');
330330
$client->request('GET', '/_profiler/search?ip=&method=GET&status_code=&url=&token=&start=&end=&limit=10');
331331

332-
$this->assertStringContainsString('1 results found', $client->getResponse()->getContent());
332+
$this->assertStringContainsString('results found', $client->getResponse()->getContent());
333333
$this->assertStringContainsString(sprintf('<a href="/_profiler/%s">%s</a>', $token, $token), $client->getResponse()-> 10000 getContent());
334334
}
335335

src/Symfony/Bundle/WebProfilerBundle/Tests/Functional/WebProfilerBundleKernel.php

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -21,18 +21,6 @@ public function __construct()
2121
parent::__construct('test', false);
2222
}
2323

24-
/**
25-
* {@inheritdoc}
26-
*/
27-
public function getName()
28-
{
29-
if (null === $this->name) {
30-
$this->name = parent::getName().substr(md5(__CLASS__), -16);
31-
}
32-
33-
return $this->name;
34-
}
35-
3624
public function registerBundles()
3725
{
3826
return [
@@ -61,6 +49,10 @@ protected function configureContainer(ContainerBuilder $containerBuilder, Loader
6149
'toolbar' => true,
6250
'intercept_redirects' => false,
6351
]);
52+
53+
$containerBuilder->loadFromExtension('twig', [
54+
'strict_variables' => true,
55+
]);
6456
}
6557

6658
public function getCacheDir()

src/Symfony/Bundle/WebProfilerBundle/Tests/Profiler/TemplateManagerTest.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,10 +105,6 @@ protected function mockTwigEnvironment()
105105
{
106106
$this->twigEnvironment = $this->getMockBuilder('Twig\Environment')->disableOriginalConstructor()->getMock();
107107

108-
$this->twigEnvironment->expects($this->any())
109-
->method('loadTemplate')
110-
->willReturn('loadedTemplate');
111-
112108
if (Environment::MAJOR_VERSION > 1) {
113109
$loader = $this->createMock(LoaderInterface::class);
114110
$loader

0 commit comments

Comments
 (0)
0