Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-21633

[Behat] Error when connecting to DB

    XMLWordPrintable

Details

    Description

      Using: https://gist.github.com/MLoureiro/f8ff6c1261fee2aa18fb

      I can use the API, however when accessing DB the error bellow is thrown.

      Error:

      "The value '' that you were trying to assign to parameter 'dbParams' is invalid. Allowed values are: string or array."
      

      ( this error isn't shown neither on apache logs, symfony nor legacy )

      I'm getting the API Repository:

      $repository = $this->kernel->getContainer()->get( 'ezpublish.api.repository' );
      

      The ezpublish_behat.yml has this config

        system:
              behat_group:
                  database:
                      type: mysql
                      user: community
                      password: community
                      server: localhost
                      database_name: community
      

      This is probably related to: EZP-20281 (the error is the same)

      Attachments

        Activity

          People

            Unassigned Unassigned
            marcos.loureiro-obsolete@ez.no Marcos Loureiro (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 4 hours, 30 minutes
                4h 30m