8000 [Tests] Remove unused TestXmlEntityRegeneratorKernel kernel · symfony/maker-bundle@15a0c02 · GitHub 8000
[go: up one dir, main page]

Skip to content

Commit 15a0c02

Browse files
committed
[Tests] Remove unused TestXmlEntityRegeneratorKernel kernel
1 parent ac5f7df commit 15a0c02

File tree

1 file changed

+0
-68
lines changed

1 file changed

+0
-68
lines changed

tests/Doctrine/EntityRegeneratorTest.php

Lines changed: 0 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -197,74 +197,6 @@ public function getProjectDir(): string
197197
}
198198
}
199199

200-
class TestXmlEntityRegeneratorKernel extends Kernel
201-
{
202-
use MicroKernelTrait;
203-
204-
public function registerBundles(): array
205-
{
206-
return [
207-
new FrameworkBundle(),
208-
new DoctrineBundle(),
209-
];
210-
}
211-
212-
protected function configureRoutes(RouteCollectionBuilder $routes): void
213-
{
214-
}
215-
216-
protected function configureContainer(ContainerBuilder $c, LoaderInterface $loader): void
217-
{
218-
$c->loadFromExtension('framework', [
219-
'secret' => 123,
220-
'router' => [
221-
'utf8' => true,
222-
],
223-
'http_method_override' => false,
224-
'handle_all_throwables' => true,
225-
'php_errors' => [
226-
'log' => true,
227-
],
228-
]);
229-
230-
$dbal = [
231-
'driver' => 'pdo_sqlite',
232-
'url' => 'sqlite:///fake',
233-
];
234-
235-
$orm = [
236-
'auto_generate_proxy_classes' => true,
237-
'mappings' => [
238-
'EntityRegenerator' => [
239-
'is_bundle' => false,
240-
'type' => 'xml',
241-
'dir' => '%kernel.project_dir%/config/doctrine',
242-
'prefix' => 'Symfony\Bundle\MakerBundle\Tests\tmp\current_project_xml\src\Entity',
243-
'alias' => 'EntityRegeneratorApp',
244-
],
245-
],
246-
'controller_resolver' => [
247-
'auto_mapping' => false,
248-
],
249-
];
250-
251-
/* @legacy Remove conditional when doctrine/persistence <3.1 are no longer supported. */
252-
if (class_exists(RuntimeReflectionProperty::class)) {
253-
$orm['enable_lazy_ghost_objects'] = true;
254-
}
255-
256-
$c->prependExtensionConfig('doctrine', [
257-
'dbal' => $dbal,
258-
'orm' => $orm,
259-
]);
260-
}
261-
262-
public function getProjectDir(): string
263-
{
264-
return __DIR__.'/../tmp/current_project_xml';
265-
}
266-
}
267-
268200
class AllButTraitsIterator extends \RecursiveFilterIterator
269201
{
270202
public function accept(): bool

0 commit comments

Comments
 (0)
0