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

Issue #27 - Add basic CRUD operation step definitions #28

Closed
wants to merge 7 commits into from
Closed

Conversation

balintpekker
Copy link
Contributor

Add CRUD step definitions for block_content.
Todo: blockContentCreate() method.

Closes #27

@balintpekker balintpekker changed the title WIP: Issue #27 - Add basic CRUD operation step definitions Issue #27 - Add basic CRUD operation step definitions Feb 15, 2021
Add CRUD step definitions for block_content.
Todo: blockContentCreate() method.
*
* @var array
*/
protected $blockContents = [];
Copy link
Contributor

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

Copy link
Contributor Author

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)
Copy link
Contributor

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()

Copy link
Contributor Author

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.
@balintpekker balintpekker changed the base branch from master to 2.x February 15, 2021 15:10
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.

Add step definitions for block_content module
3 participants