Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor config create command #181

Merged
merged 3 commits into from
Jul 22, 2024

Conversation

UmeshSingla
Copy link
Contributor

@UmeshSingla UmeshSingla commented May 18, 2024

Fixes: #94
Fixes #180

Refactored code for wp config create command renders the default moustache template with default values along with the extra-php input if specified. And further it uses update method from WPConfigTransformer class to set the config values for all provided arguments.

@UmeshSingla UmeshSingla requested a review from a team as a code owner May 18, 2024 13:09
@ernilambar
Copy link
Member

@UmeshSingla Can you please add tests also? Ref: Functional Tests

src/Config_Command.php Outdated Show resolved Hide resolved
@UmeshSingla
Copy link
Contributor Author

UmeshSingla commented May 20, 2024

@UmeshSingla Can you please add tests also? Ref: Functional Tests

@ernilambar Aren't the existing tests enough? If not, Could you possibly provide me with an example of changes that can use additional tests.

https://github.com/wp-cli/config-command/blob/main/features/config-create.feature

@ernilambar
Copy link
Member

@UmeshSingla Can you please add tests also? Ref: Functional Tests

@ernilambar Aren't the existing tests enough? If not, Could you possibly provide me with an example of changes that can use additional tests.

https://github.com/wp-cli/config-command/blob/main/features/config-create.feature

For refactoring part, current tests are fine. Adding test for this issue #180 would be good.

@UmeshSingla
Copy link
Contributor Author

@ernilambar I've added functional test for #180. Does this looks ok to you? 0601669

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants