-
Notifications
You must be signed in to change notification settings - Fork 2
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
Issue #27 - Add basic CRUD operation step definitions #28
Conversation
Add CRUD step definitions for block_content. Todo: blockContentCreate() method.
* | ||
* @var array | ||
*/ | ||
protected $blockContents = []; |
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.
\Cheppers\DrupalExtension\Context\Drupal\AppContentEntitySetupTearDown
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.
Removed in commit 6434a92.
* @Given I am visiting the :type block content :info | ||
* @Given I visit the :type block content :info | ||
*/ | ||
public function iAmViewingTheBlockContent(string $type, string $info) |
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.
Naming convention of methods:
- Method which creates or do something (eg: click on a link) has to start with
do
. - Method which checks something has to start with
assert
.
See examples in the existing Context classes (./src/Context/Drupal/*)
- \Cheppers\DrupalExtension\Context\Drupal\CoreTabs::assertPrimaryTabsTable()
- \Cheppers\DrupalExtension\Context\Drupal\CoreTabs::doClickPrimaryTab()
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.
Fixed in commit 6434a92.
Remove after scenario methods and rename others to pass naming convention.
Add CRUD step definitions for block_content.
Todo: blockContentCreate() method.
Closes #27