Add DDEV Drupal Contrib integration

Created on 27 August 2025, 2 months ago

Use https://github.com/ddev/ddev-drupal-contrib to allow more easily setup a local env, and run tests

Feature request
Status

Active

Version

5.1

Component

Miscellaneous

Created by

🇮🇱Israel amitaibu Israel

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

  • Issue created by @amitaibu
  • Merge request !104Add DDEV Drupal Contrib integration → (Open) created by amitaibu
  • 🇮🇱Israel amitaibu Israel

    With it I can now execute, for example:

    ddev phpunit --filter RestClientTest                      
    PHPUnit 11.5.34 by Sebastian Bergmann and contributors.
    
    Runtime:       PHP 8.3.23
    
    ....................                                              20 / 20 (100%)
    
    Time: 00:00.087, Memory: 8.00 MB
    
    OK, but there were issues!
    Tests: 20, Assertions: 41, PHPUnit Deprecations: 61.
    
  • Pipeline finished with Success
    2 months ago
    Total: 191s
    #583176
  • 🇮🇱Israel amitaibu Israel

    I'm able to access the site, but I'm getting errors on `ddev composer require drush/drush`

  • Pipeline finished with Success
    2 months ago
    Total: 170s
    #583244
  • 🇮🇱Israel amitaibu Israel

    drush can now be installed with ddev composer require drush/drush

    But next issue is that ddev drush cr gives an error

    PHP Fatal error:  Uncaught AssertionError: assert($this->bootstrap instanceof DrupalBoot8) in /var/www/html/vendor/drush/drush/src/Boot/BootstrapManager.php:119
    Stack trace:
    #0 /var/www/html/vendor/drush/drush/src/Boot/BootstrapManager.php(119): assert()
    #1 /var/www/html/vendor/drush/drush/src/Boot/BootstrapManager.php(108): Drush\Boot\BootstrapManager->bootstrap()
    #2 /var/www/html/vendor/drush/drush/src/Application.php(165): Drush\Boot\BootstrapManager->setUri()
    #3 /var/www/html/vendor/drush/drush/src/Runtime/Runtime.php(97): Drush\Application->refineUriSelection()
    #4 /var/www/html/vendor/drush/drush/src/Runtime/Runtime.php(40): Drush\Runtime\Runtime->doRun()
    #5 /var/www/html/vendor/drush/drush/drush.php(140): Drush\Runtime\Runtime->run()
    #6 /var/www/html/vendor/bin/drush.php(119): include('...')
    #7 {main}
      thrown in /var/www/html/vendor/drush/drush/src/Boot/BootstrapManager.php on line 119
  • Pipeline finished with Success
    2 months ago
    Total: 174s
    #583307
  • Pipeline finished with Success
    2 months ago
    Total: 164s
    #583343
  • 🇮🇱Israel amitaibu Israel

    I've updated the README (copied from OG) and it's working as expected.

    After cloning the module locally, you can now:

    ddev poser
    ddev symlink-project
    ddev install

    Ready for review 🙂

  • Pipeline finished with Success
    2 months ago
    Total: 353s
    #583349
  • Pipeline finished with Running
    2 months ago
    #583812
  • Pipeline finished with Canceled
    2 months ago
    #583811
  • Pipeline finished with Success
    2 months ago
    #583859
  • Pipeline finished with Success
    2 months ago
    Total: 190s
    #584144
  • 🇭🇺Hungary aron novak Hungary, Budapest

    I did test-drive this and it worked well based on the steps of the README .

     [notice] Performed install task: install_configure_form
     [notice] Performed install task: install_finished
     [success] Installation complete. (Admin)
     [success] User name: admin  User password: tJxdXWdAmi
     [success] Module salesforce has been installed. (Permissions - Configure)
     aaron  villamvonat  ~  gizra  salesforce   3543367-add-ddev-drupal  $  ddev install^C
     aaron  villamvonat  ~  gizra  salesforce   3543367-add-ddev-drupal  SIGINT  $  ddev phpunit
    PHPUnit 11.5.35 by Sebastian Bergmann and contributors.
    
    Runtime:       PHP 8.3.17
    
    ..........................................
Production build 0.71.5 2024