Skip to content

Conversation

@millnut
Copy link
Member

@millnut millnut commented Aug 15, 2025

What does this change?

Fixes #247 by running tests with the localgov profile, this is the same as other modules that run tests

Note: This will need testing locally as the pipeline only tests 11.1.x and not 11.2+

@stephen-cox
Copy link
Member

Unfortunately, I'm still seeing test failures.

I have tried running them with this localgovdrupal/localgov_project#223 and Drupal 11.2 and see the following:

$ lando phpunit web/modules/contrib/localgov_paragraphs/
PHPUnit 11.5.33 by Sebastian Bergmann and contributors.

Runtime:       PHP 8.3.23
Configuration: /app/phpunit.xml.dist

EE....                                                              6 / 6 (100%)

Time: 03:05.506, Memory: 42.39 MB

Check Config (Drupal\Tests\localgov_paragraphs\Kernel\CheckConfig)
 ✔ Config

Contact Edit (Drupal\Tests\localgov_paragraphs\Functional\ContactEdit)
 ✔ Contact page component edit page

Homepage Add (Drupal\Tests\localgov_homepage_paragraphs\Functional\HomepageAdd)
 ✘ Create homepage
   ┐
   ├ Drupal\Core\Config\UnmetDependenciesException: Configuration objects provided by <em class="placeholder">localgov_homepage_paragraphs</em> have unmet dependencies: <em class="placeholder">field.field.paragraph.localgov_featured_campaign.localgov_featured_campaign_image (media.type.image)</em>
   │
   │ /app/web/core/lib/Drupal/Core/Config/UnmetDependenciesException.php:100
   │ /app/web/core/lib/Drupal/Core/Config/ConfigInstaller.php:581
   │ /app/web/core/lib/Drupal/Core/ProxyClass/Config/ConfigInstaller.php:132
   │ /app/web/core/lib/Drupal/Core/Extension/ModuleInstaller.php:209
   │ /app/web/core/lib/Drupal/Core/ProxyClass/Extension/ModuleInstaller.php:83
   │ /app/web/core/lib/Drupal/Core/Test/FunctionalTestSetupTrait.php:511
   │ /app/web/core/tests/Drupal/Tests/BrowserTestBase.php:537
   │ /app/web/core/tests/Drupal/Tests/BrowserTestBase.php:343
   ┴

Paragraphs Administration (Drupal\Tests\localgov_paragraphs\Functional\ParagraphsAdministration)
 ✔ Paragraphs types
 ✔ Paragraphs creation

Subsites Paragraphs Administration (Drupal\Tests\localgov_subsites_paragraphs\Functional\SubsitesParagraphsAdministration)
 ✘ Subsite paragraphs types
   ┐
   ├ Drupal\Core\Config\UnmetDependenciesException: Configuration objects provided by <em class="placeholder">localgov_homepage_paragraphs</em> have unmet dependencies: <em class="placeholder">field.field.paragraph.localgov_featured_campaign.localgov_featured_campaign_image (media.type.image)</em>
   │
   │ /app/web/core/lib/Drupal/Core/Config/UnmetDependenciesException.php:100
   │ /app/web/core/lib/Drupal/Core/Config/ConfigInstaller.php:581
   │ /app/web/core/lib/Drupal/Core/ProxyClass/Config/ConfigInstaller.php:132
   │ /app/web/core/lib/Drupal/Core/Extension/ModuleInstaller.php:209
   │ /app/web/core/lib/Drupal/Core/ProxyClass/Extension/ModuleInstaller.php:83
   │ /app/web/core/lib/Drupal/Core/Test/FunctionalTestSetupTrait.php:511
   │ /app/web/core/tests/Drupal/Tests/BrowserTestBase.php:537
   │ /app/web/core/tests/Drupal/Tests/BrowserTestBase.php:343
   │ /app/web/modules/contrib/paragraphs/tests/src/Functional/WidgetLegacy/ParagraphsTestBase.php:56
   ┴

@millnut
Copy link
Member Author

millnut commented Oct 6, 2025

Closing this as we've gone with a different approach

@millnut millnut closed this Oct 6, 2025
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

Successfully merging this pull request may close these issues.

Drupal 11 test failures

3 participants