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

Add BehatCommands for Drush 9 #13

Merged
merged 4 commits into from
Sep 20, 2018
Merged

Add BehatCommands for Drush 9 #13

merged 4 commits into from
Sep 20, 2018

Conversation

greg-1-anderson
Copy link
Member

Requires drush-ops/drush#3687, which I will merge shortly.

@greg-1-anderson
Copy link
Member Author

greg-1-anderson commented Sep 19, 2018

Refactored everything. Maybe I should have just stuck with #11, but I sort of have thoughts of making some improvements while I'm in here.

Went back to @arosboro's implementation

Copy link
Member

@jhedstrom jhedstrom left a comment

Choose a reason for hiding this comment

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

This looks good. Just these nits.

Want to open a PR against the DrupalExtension that targets this branch of the behat drush endpoint to see if tests start passing again? There's this related issue jhedstrom/drupalextension#458

@@ -0,0 +1,202 @@
<?php
namespace Drush\Commands\example_site_wide_command;
Copy link
Member

Choose a reason for hiding this comment

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

This should probably be updated to BehatDrushEndpoint or similar?

Copy link
Member Author

Choose a reason for hiding this comment

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

It will be behat_drush_endpoint

*
* @see Drupal\Driver\Cores\AbstractCore\expandEntityFields
*/
function expandEntityFields($entity_type, \stdClass $entity) {
Copy link
Member

Choose a reason for hiding this comment

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

This and the other methods that don't already should probably specify visibility (protected, public, etc) for clarity.

@greg-1-anderson
Copy link
Member Author

See jhedstrom/drupalextension#506

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