Skip to content

Testing standalone bundle - got 'Could not find service "test.service_container".' #41715

Closed
@smilesrg

Description

@smilesrg

I'm writing a standalone bundle and trying to test it. But got an error:

LogicException: Could not find service "test.service_container". Try updating the "framework.test" config to "true".

I couldn't find anything in the documentation related to this error. How can I fix that?

UPD: I tried obvious solution by creating config/config_test.yml and even renamed extension to .yaml but it didn't help, content of the file is:

framework:
    test: true

The content of phpunit.xml.dist (renamed to .txt due to github limitations):
phpunit.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions