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

Laravel, Doctrine and CodeCeption in bitbucket pipelines? #5476

Closed
kvanleeuwen opened this issue Apr 19, 2019 · 1 comment
Closed

Laravel, Doctrine and CodeCeption in bitbucket pipelines? #5476

kvanleeuwen opened this issue Apr 19, 2019 · 1 comment

Comments

@kvanleeuwen
Copy link

kvanleeuwen commented Apr 19, 2019

Hello,

I am trying to set-up codeception with laravel and as ORM: Doctrine (from Symphony). I I have created a pipeline in bitbucket. Now my unit.suite.yml contains the following configuration:

actor: UnitTester
modules:
    enabled:
        - Asserts
        - \Helper\Unit
        - Doctrine2:
            depends: Symfony
            cleanup: true
        - Laravel5:
            environment_file: .env.testing
            cleanup: true

Default = because this is the the default config setting in de config/database.php

this error occurs if I run my bitbucket-pipelines.yml (and it calls codeception to run the unit tests):

Doctrine2 module is not configured!

EntityManager can't be obtained.

Please specify either connection_callback config option
with callable which will return instance of EntityManager or
pass a dependent module which are Symfony or ZF2
to connect to Doctrine using Dependency Injection Container

Does anyone have an idea why this occurs?

Thanks in advance!

Kevin

@kvanleeuwen kvanleeuwen changed the title Laravel and doctrine? Laravel, Doctrine and CodeCeption in bitbucket pipelines? Apr 19, 2019
@Naktibalda
Copy link
Member

When Doctrine2 module depends on Symfony module, the expectation is that the code being tested is the Symfony app.

Laravel modules does not provide Doctrine2 integration, but using Symfony module like this is not a viable workaround.

There is another issue about potential implementation of Doctrine2 integration in Laravel module: Codeception/module-laravel#17

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

2 participants