Skip to content

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

@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