-
Notifications
You must be signed in to change notification settings - Fork 3
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
[CMSP-833] add wpms fixture tests #119
[CMSP-833] add wpms fixture tests #119
Conversation
not sure if this will actually work, i guess we run it and find out...
38f1e4f
to
c57e0ad
Compare
which checks the project config for force-db-drop
I think the CircleCI pipeline is still showing up in checks because we hadn't removed it at the point when @rwagner00 had forked his branch and my branch is a fork from that. |
@@ -83,7 +85,7 @@ public function findLatestVersion($major, $tag_prefix, $update_parameters) | |||
*/ | |||
public function update(WorkingCopy $originalProject, array $parameters) | |||
{ | |||
$forceDbDrop = !empty($parameters['force-db-drop']) ?? false; | |||
$forceDbDrop = (!empty($parameters['force-db-drop']) || $this->forceDbDrop) ?? false; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I hate this. This does not need to be a clever one liner.
// $path = $this->fixtures()->getPath('wpms'); | ||
// $wp_repo = $this->fixtures()->forkTestRepo('wpms'); | ||
|
||
// list all the files and directories at $path | ||
// exec("set -e; echo 'dropping wp database via wp-cli'; wp db drop --yes --path=$path"); | ||
// exit(1); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Drop commented code.
public function getPath($project) | ||
{ | ||
return $this->getConfig()->get("projects.$project.path"); | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only instance of this new function is commented out. Remove?
Overview
This pull request addresses CMSP-833 which unblocks #118 (CMSP-628). This is a fork from #118 and will merge into #118.
Summary
WpCliUpdate
which looks to theupdate-tool
configuration file forforce-db-drop
Fixtures
class togetPath