Skip to content

Commit

Permalink
Added translations test
Browse files Browse the repository at this point in the history
  • Loading branch information
mikadamczyk committed Oct 31, 2023
1 parent bfaa5ec commit 590fefb
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 44 deletions.
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,8 @@
"ibexa/test-core": "^0.1.x-dev",
"phpstan/phpstan": "^1.10",
"phpstan/phpstan-phpunit": "^1.3",
"phpstan/phpstan-symfony": "^1.3"
"phpstan/phpstan-symfony": "^1.3",
"symfony/webpack-encore-bundle": "^1.17.2"
},
"config": {
"allow-plugins": {
Expand Down
30 changes: 0 additions & 30 deletions phpstan-baseline.neon
Original file line number Diff line number Diff line change
Expand Up @@ -3685,16 +3685,6 @@ parameters:
count: 1
path: src/lib/Event/Options.php

-
message: "#^Call to method getEntrypointLookup\\(\\) on an unknown class Symfony\\\\WebpackEncoreBundle\\\\Asset\\\\EntrypointLookupCollectionInterface\\.$#"
count: 1
path: src/lib/EventListener/AdminExceptionListener.php

-
message: "#^Call to method reset\\(\\) on an unknown class Symfony\\\\WebpackEncoreBundle\\\\Asset\\\\TagRenderer\\.$#"
count: 1
path: src/lib/EventListener/AdminExceptionListener.php

-
message: "#^Cannot call method log\\(\\) on Psr\\\\Log\\\\LoggerInterface\\|null\\.$#"
count: 1
Expand All @@ -3715,26 +3705,6 @@ parameters:
count: 1
path: src/lib/EventListener/AdminExceptionListener.php

-
message: "#^Parameter \\$encoreTagRenderer of method Ibexa\\\\AdminUi\\\\EventListener\\\\AdminExceptionListener\\:\\:__construct\\(\\) has invalid type Symfony\\\\WebpackEncoreBundle\\\\Asset\\\\TagRenderer\\.$#"
count: 2
path: src/lib/EventListener/AdminExceptionListener.php

-
message: "#^Parameter \\$entrypointLookupCollection of method Ibexa\\\\AdminUi\\\\EventListener\\\\AdminExceptionListener\\:\\:__construct\\(\\) has invalid type Symfony\\\\WebpackEncoreBundle\\\\Asset\\\\EntrypointLookupCollectionInterface\\.$#"
count: 2
path: src/lib/EventListener/AdminExceptionListener.php

-
message: "#^Property Ibexa\\\\AdminUi\\\\EventListener\\\\AdminExceptionListener\\:\\:\\$encoreTagRenderer has unknown class Symfony\\\\WebpackEncoreBundle\\\\Asset\\\\TagRenderer as its type\\.$#"
count: 1
path: src/lib/EventListener/AdminExceptionListener.php

-
message: "#^Property Ibexa\\\\AdminUi\\\\EventListener\\\\AdminExceptionListener\\:\\:\\$entrypointLookupCollection has unknown class Symfony\\\\WebpackEncoreBundle\\\\Asset\\\\EntrypointLookupCollectionInterface as its type\\.$#"
count: 1
path: src/lib/EventListener/AdminExceptionListener.php

-
message: "#^Property Ibexa\\\\AdminUi\\\\EventListener\\\\AdminExceptionListener\\:\\:\\$siteAccessGroups type has no value type specified in iterable type array\\.$#"
count: 1
Expand Down
13 changes: 0 additions & 13 deletions tests/integration/AdminUiIbexaTestKernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,14 @@
use Ibexa\Bundle\Rest\IbexaRestBundle;
use Ibexa\Bundle\Search\IbexaSearchBundle;
use Ibexa\Bundle\User\IbexaUserBundle;
use Ibexa\Contracts\Migration\Metadata\Storage\MetadataStorage;
use Ibexa\Contracts\Migration\MigrationStorage;
use Ibexa\Contracts\Test\Core\IbexaTestKernel;
use Ibexa\Migration\Metadata\Storage\InMemoryMetadataStorage;
use Ibexa\Migration\Storage\InMemoryMigrationStorage;
use Ibexa\Tests\Integration\AdminUi\DependencyInjection\Configuration\IgnoredConfigParser;
use Knp\Menu\FactoryInterface;
use Lexik\Bundle\JWTAuthenticationBundle\Services\JWTTokenManagerInterface;
use Swift_Mailer;
use Symfony\Component\Config\Loader\LoaderInterface;
use Symfony\Component\Config\Resource\FileResource;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Definition;
use Symfony\Component\HttpKernel\Fragment\EsiFragmentRenderer;
use Symfony\WebpackEncoreBundle\Asset\EntrypointLookupCollection;
use Symfony\WebpackEncoreBundle\Asset\TagRenderer;
Expand Down Expand Up @@ -82,8 +77,6 @@ private static function loadRouting(ContainerBuilder $container, string $filePat

private static function configureIbexaDXPBundles(ContainerBuilder $container): void
{
self::configureMigrationsBundle($container);

$container->setParameter('form.type_extension.csrf.enabled', false);
$container->setParameter('ibexa.http_cache.purge_type', 'local');
$container->setParameter('ibexa.http_cache.translation_aware.enabled', false);
Expand Down Expand Up @@ -113,12 +106,6 @@ protected static function getExposedServicesByClass(): iterable
yield from parent::getExposedServicesByClass();
}

private static function configureMigrationsBundle(ContainerBuilder $container): void
{
$container->setDefinition(MetadataStorage::class, new Definition(InMemoryMetadataStorage::class));
$container->setDefinition(MigrationStorage::class, new Definition(InMemoryMigrationStorage::class));
}

private static function configureThirdPartyBundles(ContainerBuilder $container): void
{
$container->setParameter('fos_http_cache.tag_handler.strict', false);
Expand Down

0 comments on commit 590fefb

Please sign in to comment.