Skip to content

Add behat test for config has after concatenation assignment#220

Draft
pwtyler wants to merge 1 commit intowp-cli:mainfrom
pwtyler:test/config-has-concat-variable
Draft

Add behat test for config has after concatenation assignment#220
pwtyler wants to merge 1 commit intowp-cli:mainfrom
pwtyler:test/config-has-concat-variable

Conversation

@pwtyler
Copy link
Copy Markdown
Contributor

@pwtyler pwtyler commented Apr 2, 2026

Summary

Depends on wp-cli/wp-config-transformer#64

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 2, 2026

Hello! 👋

Thanks for opening this pull request! Please check out our contributing guidelines. We appreciate you taking the initiative to contribute to this project.

Contributing isn't limited to just code. We encourage you to contribute in the way that best fits your abilities, by writing tutorials, giving a demo at your local meetup, helping other users with their support questions, or revising our documentation.

Here are some useful Composer commands to get you started:

  • composer install: Install dependencies.
  • composer test: Run the full test suite.
  • composer phpcs: Check for code style violations.
  • composer phpcbf: Automatically fix code style violations.
  • composer phpunit: Run unit tests.
  • composer behat: Run behavior-driven tests.

To run a single Behat test, you can use the following command:

# Run all tests in a single file
composer behat features/some-feature.feature

# Run only a specific scenario (where 123 is the line number of the "Scenario:" title)
composer behat features/some-feature.feature:123

You can find a list of all available Behat steps in our handbook.

@github-actions github-actions bot added command:config-has Related to 'config has' command scope:testing Related to testing labels Apr 2, 2026
Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces a new test scenario to verify that the wp config has command correctly identifies variables and constants when they follow a concatenation assignment. A review comment points out that the wp-config.php content in the test is missing the required <?php opening tag, which is necessary for the PHP parser to correctly process the file and for the test to function as intended.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

command:config-has Related to 'config has' command scope:testing Related to testing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant