Skip to content
Snippets Groups Projects
Commit 38d7dd26 authored by Angie Byron's avatar Angie Byron
Browse files

Issue #1847200 by klausi, Berdir: Limit the entity types which are used for the rest tests.

parent e83535c1
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -33,7 +33,9 @@ public static function getInfo() {
* Tests several valid and invalid delete requests on all entity types.
*/
public function testDelete() {
foreach (entity_get_info() as $entity_type => $info) {
// Define the entity types we want to test.
$entity_types = array('entity_test', 'node', 'user');
foreach ($entity_types as $entity_type) {
$this->enableService('entity:' . $entity_type);
// Create a user account that has the required permissions to delete
// resources via the web API.
......
......@@ -33,11 +33,11 @@ public static function getInfo() {
* Tests several valid and invalid read requests on all entity types.
*/
public function testRead() {
// @todo once EntityNG is implemented for other entity types use the full
// entity_get_info() for all entity types here.
$entity_test_info = entity_get_info('entity_test');
$entity_info = array('entity_test' => $entity_test_info);
foreach ($entity_info as $entity_type => $info) {
// @todo once EntityNG is implemented for other entity types expand this at
// least to nodes and users.
// Define the entity types we want to test.
$entity_types = array('entity_test');
foreach ($entity_types as $entity_type) {
$this->enableService('entity:' . $entity_type);
// Create a user account that has the required permissions to delete
// resources via the web API.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment