Skip to content
This repository has been archived by the owner. It is now read-only.

Allow use of page_template in ContentElement #239

Closed
codereviewvideos opened this issue Apr 9, 2019 · 2 comments
Closed

Allow use of page_template in ContentElement #239

codereviewvideos opened this issue Apr 9, 2019 · 2 comments
Labels

Comments

@codereviewvideos
Copy link
Contributor

@codereviewvideos codereviewvideos commented Apr 9, 2019

Expected behaviour

When defining a Page via a Behat feature, I would like to be able to set a Page Template.

Current behaviour

page_template is not in the whitelisted CLI args.

https://github.com/paulgibbs/behat-wordpress-extension/blob/master/src/Driver/Element/Wpcli/ContentElement.php#L49

Possible solution

Add page_template to the white list.

Steps to reproduce

  Background:
    Given there are pages:
      | slug   | title   | content      | status  | template                       |
      | slug-1 | My Page | content here | publish | page-templates/my-template.php |

Context

Everything works as expected, but I cannot set the Page Template when creating new Pages in WordHat.

Your environment

"paulgibbs/behat-wordpress-extension": "^3.1",

@paulgibbs
Copy link
Owner

@paulgibbs paulgibbs commented Apr 9, 2019

Fixed!

@paulgibbs paulgibbs closed this Apr 9, 2019
@paulgibbs
Copy link
Owner

@paulgibbs paulgibbs commented Jun 5, 2019

This is going into 3.2.0, sorry it took so long to be released. Thanks again!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants