installEntitySchema('entity_test_mulrev'); $this->installEntitySchema('user'); $this->installConfig(['field']); \Drupal::service('router.builder')->rebuild(); \Drupal::moduleHandler()->invoke('rest', 'install'); // Auto-create a field for testing. FieldStorageConfig::create([ 'entity_type' => 'entity_test_mulrev', 'field_name' => 'field_test_text', 'type' => 'text', 'cardinality' => 1, 'translatable' => FALSE, ])->save(); FieldConfig::create([ 'entity_type' => 'entity_test_mulrev', 'field_name' => 'field_test_text', 'bundle' => 'entity_test_mulrev', 'label' => 'Test text-field', 'widget' => [ 'type' => 'text_textfield', 'weight' => 0, ], ])->save(); } }