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

[META] add tests #27

Open
9 of 29 tasks
Tracked by #16
jenlampton opened this issue Mar 14, 2018 · 1 comment
Open
9 of 29 tasks
Tracked by #16

[META] add tests #27

jenlampton opened this issue Mar 14, 2018 · 1 comment
Assignees
Labels
Release blocker Should be done before initial release.

Comments

@jenlampton
Copy link
Member

jenlampton commented Mar 14, 2018

Here's a list of test to write:

Entity API:

  • Test each core entity has a label and status field defined

Admin UI:

  • create reference field
  • select entity type on the settings form
  • check autocomplete widget exists
  • create reference field on a non-node entity
  • entity type without a label can't be referenced and returns message
  • bundle text uses bundle label where available
  • bundle label defaults to 'type'
  • bundle option removed for entities without bundles
  • Ensure that the entity type's bundle key matches a column in its base table.
  • status checkbox disabled on instance settings for entity type that doesn't define status key
  • entity type select disabled after field has data
  • change to bundle and status are reset after entity type changes

Autocomplete:

  • autocomplete callback reads field settings properly
  • autocomplete respects bundle
  • autocomplete respects status
  • feeding a bad id number
  • respects permissions
  • works on entities without status

Content edit UI:

  • changing an existing field value
  • display value on entity view
  • required field cannot be blank
  • default value entered in the instance form

Output:

  • Link to entity displayed.
  • Nodes can be rendered properly.
  • Comments can be rendered properly.

Views:

  • Reference field can be displayed in view
  • Relationship can be set up on Reference view

Layouts:

  • Relationship can be set up on layout context
@jenlampton
Copy link
Member Author

As we talked about today at BackdropLIVE, @hosef plans to steal the tests from the D7 contrib modules, and adapt those as necessary.

@herbdool herbdool added the Release blocker Should be done before initial release. label Nov 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Release blocker Should be done before initial release.
Projects
None yet
Development

No branches or pull requests

3 participants