Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fake hub to functionnal test #89

Closed
renishv8 opened this issue Jan 30, 2024 · 0 comments
Closed

Fake hub to functionnal test #89

renishv8 opened this issue Jan 30, 2024 · 0 comments

Comments

@renishv8
Copy link

renishv8 commented Jan 30, 2024

Hello,

I try to use mercure in my functionnal tests, i followed the doc but it does not work. I'd like to have a fake class exactly like the doc suggests.
I use symfony 6.3, phpunit 9.5. I tried to configure the default class like this :

    mercure.hub.default:
        class: App\Tests\Functional\Stub\HubStub

I have this error

Symfony\Component\Config\Exception\LoaderLoadException : Container extension "mercure.hub.default" is not registered in /srv/config/packages/mercure.yaml (which is being imported from "/srv/src/Kernel.php").

The bundle works fine in development mode, it's well imported. In the bundles.php, it's all => true setted

I tried to use the default_hub but it's not working either.

Do you have any ideas or recommandations ?
Thanks :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant