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

Endpoint Uninstall module #35

Closed

Conversation

dylanDenizonPresta
Copy link

Questions Answers
Description? Endpoint Uninstall module
Type? new feature
BC breaks? no
Deprecations? no
Fixed ticket? ~
Sponsor company ~
How to test? ~

Copy link
Contributor

@jolelievre jolelievre left a comment

Choose a reason for hiding this comment

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

Comment on lines +316 to +319
$module = [
'technicalName' => 'bankwire',
'deleteFile' => false
];
Copy link
Contributor

Choose a reason for hiding this comment

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

No need for this variable, you can hard-code the value in your request parameter

]);

self::assertResponseStatusCodeSame(204);

Copy link
Contributor

Choose a reason for hiding this comment

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

You should use getModuleInfos to check the updated status of the module

]);

self::assertResponseStatusCodeSame(204);
}
Copy link
Contributor

Choose a reason for hiding this comment

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

You should check that now the API returns a 404 error code when we fetch the module's infos, maybe it's worth adding a checkModuleNotFound method similar to getModuleInfos except it returns void and it checks for the 404 error code

This can be reused in other test methods

Copy link
Contributor

Choose a reason for hiding this comment

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

Since there is now a test that removes some module files we should integrate the ResourceResetter in the tear down method of this test, so that everything is restored at the end of the tests

@jolelievre
Copy link
Contributor

Closed in favor of #37

@jolelievre jolelievre closed this Nov 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Ready for review
Development

Successfully merging this pull request may close these issues.

2 participants