Skip to content

Commit

Permalink
Merge branch '3.4' into 4.3
Browse files Browse the repository at this point in the history
* 3.4:
  Relax transient test
  • Loading branch information
nicolas-grekas committed Jan 9, 2020
2 parents 0c47116 + 0497fd9 commit cc2246e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ public function testSearchActionWithoutToken()
$token = $client->getResponse()->headers->get('x-debug-token');
$client->request('GET', '/_profiler/search?ip=&method=GET&status_code=&url=&token=&start=&end=&limit=10');

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,6 @@ public function __construct()
parent::__construct('test', false);
}

/**
* {@inheritdoc}
*/
public function getName()
{
if (null === $this->name) {
$this->name = parent::getName().substr(md5(__CLASS__), -16);
}

return $this->name;
}

public function registerBundles()
{
return [
Expand Down Expand Up @@ -61,6 +49,10 @@ protected function configureContainer(ContainerBuilder $containerBuilder, Loader
'toolbar' => true,
'intercept_redirects' => false,
]);

$containerBuilder->loadFromExtension('twig', [
'strict_variables' => true,
]);
}

public function getCacheDir()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,6 @@ protected function mockTwigEnvironment()
{
$this->twigEnvironment = $this->getMockBuilder('Twig\Environment')->disableOriginalConstructor()->getMock();

$this->twigEnvironment->expects($this->any())
->method('loadTemplate')
->willReturn('loadedTemplate');

if (Environment::MAJOR_VERSION > 1) {
$loader = $this->createMock(LoaderInterface::class);
$loader
Expand Down

0 comments on commit cc2246e

Please sign in to comment.