You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the Application Testing section of the Pimcore documentation there is a discrepancy between the _bootstrap.php and the functional.suite.yml code examples.
The autoloader for the first has the following path
But then in the functional.suite.yml example the Helper is called like this:
\Pimcore\Tests\Support\Helper\Pimcore:
Instead of this:
\Pimcore\Tests\Helper\Pimcore:
which is a small detail but can save a lot of time and research for copy pasters like myself.
Generally I would prefer to have 'Pimcore\Tests' mapped to PIMCORE_PROJECT_ROOT . '/vendor/pimcore/pimcore/tests instead of PIMCORE_PROJECT_ROOT . '/vendor/pimcore/pimcore/tests/Support'
Suggestions
I would also like to suggest removing
- \Tests\Support\Helper\Functional:
From the functional.suite.yml code example since it does not exist and is not being generated.
And I think functional.suite.yml should be renamed to Functional.suite.yml as it being generated and mentioned in the Codeception documentation.
Thanks a lot for reporting the issue. We did not consider the issue as "Pimcore:Priority", "Pimcore:ToDo" or "Pimcore:Backlog", so we're not going to work on that anytime soon. Please create a pull request to fix the issue if this is a bug report. We'll then review it as quickly as possible. If you're interested in contributing a feature, please contact us first here before creating a pull request. We'll then decide whether we'd accept it or not. Thanks for your understanding.
Improvement description
Description
In the Application Testing section of the Pimcore documentation there is a discrepancy between the _bootstrap.php and the functional.suite.yml code examples.
The autoloader for the first has the following path
mapped to:
But then in the functional.suite.yml example the Helper is called like this:
Instead of this:
which is a small detail but can save a lot of time and research for copy pasters like myself.
Generally I would prefer to have 'Pimcore\Tests' mapped to PIMCORE_PROJECT_ROOT . '/vendor/pimcore/pimcore/tests instead of PIMCORE_PROJECT_ROOT . '/vendor/pimcore/pimcore/tests/Support'
Suggestions
I would also like to suggest removing
From the functional.suite.yml code example since it does not exist and is not being generated.
And I think functional.suite.yml should be renamed to Functional.suite.yml as it being generated and mentioned in the Codeception documentation.
Sources
Screenshots
The text was updated successfully, but these errors were encountered: