@ccrawford91 started working on functional tests in https://git.drupalcode.org/project/prlp/-/tree/feature/functional-tests. I would love to get this reviewed, finished and committed.

Issue fork prlp-3339180

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

leymannx created an issue. See original summary.

norman.lol’s picture

norman.lol’s picture

StatusFileSize
new8.02 KB
norman.lol’s picture

Status: Active » Needs review
norman.lol’s picture

StatusFileSize
new9.58 KB
new7.63 KB

Fixed coding standards violations.

norman.lol’s picture

StatusFileSize
new9.58 KB
new2.75 KB

norman.lol’s picture

After you installed Drupal locally with the following multi-liner:

mkdir my-drupal10-site && \
cd my-drupal10-site && \
ddev config --project-type=drupal10 --docroot=web --create-docroot && \
ddev start && \
ddev composer create "drupal/recommended-project:^10" -y && \
ddev composer require "drupal/core-dev:^10" --dev && \
ddev composer require "drush/drush:^11" && \
ddev drush -y site:install --account-name=admin --account-pass=admin

You can set up running tests locally by following this article:

https://mglaman.dev/blog/running-drupals-phpunit-test-suites-ddev

Now get the issue fork and fire tests:

mkdir -p web/modules/contrib && \
cd web/modules/contrib && \
git clone -b 3339180-add-functional-tests git@git.drupal.org:issue/prlp-3339180.git && \
ddev exec ./vendor/bin/phpunit -c web/core web/modules/contrib/prlp-3339180

norman.lol’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.