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

Troubleshoot BrowserTestBase and Composer Manager so that modern automated tests can be written #25

Open
2 tasks
aweingarten opened this issue Sep 28, 2015 · 0 comments

Comments

@aweingarten
Copy link
Contributor

Business Requirements

  • As a contributor to the cloudflare module I want to be able to write automated tests using the best frameworks provided by Drupal Core.

Technical Requirements

  • Submit a core patch for BrowserTestBase so that it will bootstrap the correct autoloader for Drupal.
    BrowserTestBase assumes that the autoloader is in docroot/core/vendor however composer manager moves this to docroot/vendor. This seems to cause problems.

Background Error

Drupal\cloudflare\Tests\CloudFlareConfigSettingsTest::testGoTo PHPUnit_Framework_Exception: PHP Fatal error: Cannot redeclare composerRequireDrupal8() (previously declared in /var/www/docroot/vendor/composer/autoload_real.php:56) in /var/www/docroot/core/vendor/composer/autoload_real.php on line 59 Fatal error: Cannot redeclare composerRequireDrupal8() (previously declared in /var/www/docroot/vendor/composer/autoload_real.php:56) in /var/www/docroot/core/vendor/composer/autoload_real.php on line 59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant