Uploaded image for project: 'Ibexa IBX'
  1. Ibexa IBX
  2. IBX-3451

Symfony KernelTestCase fails on a clean installation

    XMLWordPrintable

Details

    • Ibexa Commerce, Ibexa Content, Ibexa Experience, Ibexa Open Source

    Description

      Ibexa OSS v4.1.5

      Steps to reproduce:

      Create and run BasicKernelTest:

      bin/console make:test KernelTestCase BasicKernelTest
      bin/phpunit tests/BasicKernelTest.php
      

      Result:

      Error is thrown due to depency to Behat\MinkExtension\Context\RawMinkContext:

      1) App\Tests\BasicKernelTest::testSomething
      Symfony\Component\DependencyInjection\Exception\RuntimeException: Invalid service "Ibexa\ContentForms\Behat\Context\ContentTypeContext": class "Behat\MinkExtension\Context\RawMinkContext" not found while loading "Ibexa\ContentForms\Behat\Context\ContentTypeContext".
      
      /var/www/html/support/CS-10219-tmp-4.1/vendor/symfony/dependency-injection/Compiler/AbstractRecursivePass.php:164
      /var/www/html/support/CS-10219-tmp-4.1/vendor/symfony/dependency-injection/Compiler/AbstractRecursivePass.php:185
      /var/www/html/support/CS-10219-tmp-4.1/vendor/symfony/dependency-injection/Compiler/ResolveNamedArgumentsPass.php:59
      /var/www/html/support/CS-10219-tmp-4.1/vendor/symfony/dependency-injection/Compiler/AbstractRecursivePass.php:82
      /var/www/html/support/CS-10219-tmp-4.1/vendor/symfony/dependency-injection/Compiler/ResolveNamedArgumentsPass.php:37
      /var/www/html/support/CS-10219-tmp-4.1/vendor/symfony/dependency-injection/Compiler/AbstractRecursivePass.php:47
      /var/www/html/support/CS-10219-tmp-4.1/vendor/symfony/dependency-injection/Compiler/Compiler.php:82
      /var/www/html/support/CS-10219-tmp-4.1/vendor/symfony/dependency-injection/ContainerBuilder.php:757
      /var/www/html/support/CS-10219-tmp-4.1/vendor/symfony/http-kernel/Kernel.php:546
      /var/www/html/support/CS-10219-tmp-4.1/vendor/symfony/http-kernel/Kernel.php:787
      /var/www/html/support/CS-10219-tmp-4.1/vendor/symfony/http-kernel/Kernel.php:128
      /var/www/html/support/CS-10219-tmp-4.1/vendor/symfony/framework-bundle/Test/KernelTestCase.php:82
      /var/www/html/support/CS-10219-tmp-4.1/tests/BasicKernelTest.php:11
      

      Note:
      Same applies for Ibexa OSS v3.3.24

      Designs

        Attachments

          Activity

            People

              Unassigned Unassigned
              thorsten.reiter@ibexa.co Thorsten Reiter
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: