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

To use phinx for unit testing, sometimes is necessary to run not just… #921

Merged
merged 3 commits into from
Jul 26, 2016
Merged

To use phinx for unit testing, sometimes is necessary to run not just… #921

merged 3 commits into from
Jul 26, 2016

Conversation

mariliaglorenzato
Copy link

… the migrations, but the seeds as well. This commit add a new method getSeed that runs the seeds.

One commit only as you asked.

… the migrations, but the seeds as well. This commit add a new method getSeed that runs the seeds.
@rquadling rquadling mentioned this pull request Jul 26, 2016
* @param string $target target version (optional)
* @return string
*/
public function getSeed($env = null, $target = null, $seed = null)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Please add $seed to docblock

Copy link
Author

Choose a reason for hiding this comment

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

Done!

@@ -125,6 +125,30 @@ public function getMigrate($env = null, $target = null)
}

/**
* Returns the output from running the "seed:run" command.
* @param string $env environment name (optional)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can you use string|null as the type and drop (optional) please.

Copy link
Author

Choose a reason for hiding this comment

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

of course, done now.

@rquadling rquadling merged commit bea7780 into cakephp:0.6.x-dev Jul 26, 2016
@rquadling
Copy link
Collaborator

Thank you.

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

Successfully merging this pull request may close these issues.

2 participants