1 test triggered 9 deprecations:
    
    1) /builds/project/entity_print/web/core/tests/Drupal/KernelTests/KernelTestBase.php:221
    Kernel test classes must specify the #[RunTestsInSeparateProcesses] attribute, not doing so is deprecated in drupal:11.3.0 and will throw an exception in drupal:12.0.0. See https://www.drupal.org/node/3548485
    
    Triggered by:
    
    * Drupal\Tests\entity_print\Kernel\TranslationTest::testTranslatedEntity
      /builds/project/entity_print/tests/src/Kernel/TranslationTest.php:70
    
    2) /builds/project/entity_print/web/core/lib/Drupal/Core/Hook/HookCollectorPass.php:640
    entity_print_requirements without a #[LegacyRequirementsHook] attribute is deprecated in drupal:11.3.0 and removed in drupal:13.0.0. See https://www.drupal.org/node/3549685
    
    Triggered by:
    
    * Drupal\Tests\entity_print\Kernel\TranslationTest::testTranslatedEntity (2 times)
      /builds/project/entity_print/tests/src/Kernel/TranslationTest.php:70
    
    3) /builds/project/entity_print/vendor/symfony/deprecation-contracts/function.php:25
    The "cache.backend.memory" service is deprecated in drupal:11.3.0 and is removed from drupal:13.0.0. Use cache.backend.memory.memory instead. See https://www.drupal.org/node/3546856
    
    Triggered by:
    
    * Drupal\Tests\entity_print\Kernel\TranslationTest::testTranslatedEntity (2 times)
      /builds/project/entity_print/tests/src/Kernel/TranslationTest.php:70
    
    4) /builds/project/entity_print/web/core/lib/Drupal/Core/Plugin/Discovery/AttributeDiscoveryWithAnnotations.php:98
    Using @EntityType annotation for plugin with ID print_engine is deprecated and is removed from drupal:13.0.0. Use a Drupal\Core\Entity\Attribute\EntityType attribute instead. See https://www.drupal.org/node/3395575
    
    Triggered by:
    
    * Drupal\Tests\entity_print\Kernel\TranslationTest::testTranslatedEntity
      /builds/project/entity_print/tests/src/Kernel/TranslationTest.php:70
    
    5) /builds/project/entity_print/vendor/symfony/deprecation-contracts/function.php:25
    The "cache.static" service is deprecated in drupal:11.3.0 and is removed from drupal:13.0.0. Use the cache.memory bin instead. See https://www.drupal.org/node/3546856
    
    Triggered by:
    
    * Drupal\Tests\entity_print\Kernel\TranslationTest::testTranslatedEntity (2 times)
      /builds/project/entity_print/tests/src/Kernel/TranslationTest.php:70
    
    6) /builds/project/entity_print/vendor/symfony/deprecation-contracts/function.php:25
    The "plugin.manager.archiver" service is deprecated in drupal:11.3.0 and is removed from drupal:12.0.0. There is no replacement. See https://www.drupal.org/node/3556927
    
    Triggered by:
    
    * Drupal\Tests\entity_print\Kernel\TranslationTest::testTranslatedEntity
      /builds/project/entity_print/tests/src/Kernel/TranslationTest.php:70
    
    7) /builds/project/entity_print/web/core/lib/Drupal/Core/Archiver/ArchiverManager.php:46
    Drupal\Core\Archiver\ArchiverManager is deprecated in drupal:11.3.0 and is removed from drupal:12.0.0. There is no replacement. See https://www.drupal.org/node/3556927
    
    Triggered by:
    
    * Drupal\Tests\entity_print\Kernel\TranslationTest::testTranslatedEntity
      /builds/project/entity_print/tests/src/Kernel/TranslationTest.php:70
    
    8) /builds/project/entity_print/web/core/lib/Drupal/Core/Plugin/DefaultPluginManager.php:169
    Not supporting attribute discovery in Drupal\entity_print\Plugin\EntityPrintPluginManager is deprecated in drupal:11.2.0 and is removed from drupal:12.0.0. Provide an Attribute class and an Annotation class for BC. See https://www.drupal.org/node/3395582
    
    Triggered by:
    
    * Drupal\Tests\entity_print\Kernel\TranslationTest::testTranslatedEntity
      /builds/project/entity_print/tests/src/Kernel/TranslationTest.php:70
    
    9) /builds/project/entity_print/web/core/lib/Drupal/Core/Plugin/Discovery/AttributeDiscoveryWithAnnotations.php:98
    Using @FieldFormatter annotation for plugin with ID entity_print_base64_image_formatter is deprecated and is removed from drupal:13.0.0. Use a Drupal\Core\Field\Attribute\FieldFormatter attribute instead. See https://www.drupal.org/node/3395575
    
    Triggered by:
    
    * Drupal\Tests\entity_print\Kernel\TranslationTest::testTranslatedEntity
      /builds/project/entity_print/tests/src/Kernel/TranslationTest.php:70
    
    ERRORS!
    Tests: 1, Assertions: 9, Errors: 1, Deprecations: 9, PHPUnit Deprecations: 2.
---- Drupal\Tests\entity_print_views\Kernel\ViewsAccessTest ----
Status      Duration Info                                                                               
--------------------------------------------------------------------------------------------------------
Pass          1.119s testEntityPrintAccess                                                           
---- Drupal\Tests\entity_print_views\Kernel\ViewsRendererTest ----
Status      Duration Info                                                                               
--------------------------------------------------------------------------------------------------------
Pass          1.097s testGenerateFilename                                                            
---- Drupal\Tests\entity_print\Unit\AssetCollectorTest ----
Status      Duration Info                                                                               
--------------------------------------------------------------------------------------------------------
Pass          0.040s testEventAlwaysFires                                                            
Pass           <1 ms testAlterCss                                                                    
---- Drupal\Tests\entity_print\Unit\PrintEngineExceptionTest ----
Status      Duration Info                                                                               
--------------------------------------------------------------------------------------------------------
Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

vladimiraus created an issue. See original summary.

vladimiraus’s picture

Version: 8.x-2.x-dev » 3.0.x-dev
Status: Active » Needs work

ayoub.elmansouri made their first commit to this issue’s fork.

ayoub.elmansouri’s picture

Status: Needs work » Needs review

I fixed a few issues that were causing PHPUnit test failures.

@VladimirAus

All changes i made are non-breaking and do not impact your work, except for one intentional revert in entity_print.services.yml — restored @theme_handler.

The @theme_handler argument was restored as the first argument of entity_print.asset_collector because AssetCollector::__construct() still expects ThemeHandlerInterface as its first parameter, and getCssLibraries() still actively uses it to retrieve the default theme:

$theme = $this->themeHandler->getTheme($this->themeHandler->getDefault());

Without it, injecting @extension.list.theme as the first argument causes a TypeError at runtime.