mirror of
https://github.com/symfony/ux-map.git
synced 2026-03-23 23:42:07 +01:00
Remove some indirect deprecations
This commit is contained in:
@@ -13,6 +13,7 @@ namespace Symfony\UX\Map\Test;
|
||||
|
||||
use PHPUnit\Framework\Attributes\DataProvider;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use Spatie\Snapshots\Drivers\TextDriver;
|
||||
use Spatie\Snapshots\MatchesSnapshots;
|
||||
use Symfony\UX\Map\Elements;
|
||||
use Symfony\UX\Map\Map;
|
||||
@@ -40,7 +41,7 @@ abstract class RendererTestCase extends TestCase
|
||||
$rendered = $this->prettify($rendered);
|
||||
|
||||
$this->assertElementsHaveComputedId($rendered);
|
||||
$this->assertMatchesSnapshot($rendered);
|
||||
$this->assertMatchesSnapshot($rendered, new TextDriver());
|
||||
}
|
||||
|
||||
private function prettify(string $html): string
|
||||
|
||||
@@ -35,7 +35,14 @@ class FrameworkAppKernel extends Kernel
|
||||
public function registerContainerConfiguration(LoaderInterface $loader): void
|
||||
{
|
||||
$loader->load(function (ContainerBuilder $container) {
|
||||
$container->loadFromExtension('framework', ['secret' => '$ecret', 'test' => true, 'http_method_override' => false]);
|
||||
$container->loadFromExtension('framework', [
|
||||
'secret' => '$ecret',
|
||||
'test' => true,
|
||||
'http_method_override' => false,
|
||||
...(self::VERSION_ID >= 70300 ? [
|
||||
'property_info' => ['with_constructor_extractor' => false],
|
||||
] : []),
|
||||
]);
|
||||
$container->loadFromExtension('ux_map', []);
|
||||
|
||||
$container->setAlias('test.ux_map.renderers', 'ux_map.renderers')->setPublic(true);
|
||||
|
||||
@@ -36,7 +36,17 @@ class TwigAppKernel extends Kernel
|
||||
public function registerContainerConfiguration(LoaderInterface $loader): void
|
||||
{
|
||||
$loader->load(function (ContainerBuilder $container) {
|
||||
$container->loadFromExtension('framework', ['secret' => '$ecret', 'test' => true, 'http_method_override' => false]);
|
||||
$container->loadFromExtension('framework', [
|
||||
'secret' => '$ecret',
|
||||
'test' => true,
|
||||
'http_method_override' => false,
|
||||
'php_errors' => [
|
||||
'log' => true,
|
||||
],
|
||||
...(self::VERSION_ID >= 60200 ? [
|
||||
'handle_all_throwables' => true,
|
||||
] : []),
|
||||
]);
|
||||
$container->loadFromExtension('twig', ['default_path' => __DIR__.'/templates', 'strict_variables' => true, 'exception_controller' => null]);
|
||||
$container->loadFromExtension('ux_map', []);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user