Add PHP unit test

Created on 30 May 2025, 9 days ago

This module should a PHP unit test for:

- adding a country field to a node
- edit node and choose country
- verify country is shown in node detail page
- check default widget
- check autocomplete widget

📌 Task
Status

Active

Version

2.1

Component

Code

Created by

🇳🇱Netherlands batigolix Utrecht

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

Merge Requests

Comments & Activities

  • Issue created by @batigolix
  • Merge request !21Phpunit → (Open) created by batigolix
  • 🇳🇱Netherlands batigolix Utrecht
  • 🇳🇱Netherlands arjenk

    Looks good to me,
    - patch applied,
    - code looks good,
    - test checks adding the country field and testing the page after save,
    extra points for the autocomplete,
    - phpcs passes,
    - phpunit runs without errors.

    One minor note:

        // Disable strict config schema checking for this test.
        $this->strictConfigSchema = FALSE;
    

    don't think this is needed, and the test also pass without it.

Production build 0.71.5 2024