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

Issue #2285349 follow-up by effulgentsia: Cleanup to function name and code comments.

parent 2da50857
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
......@@ -422,10 +422,10 @@ function testCommentFunctionality() {
}
/**
* Tests comment fields are not available for entity types with string ids.
* Tests comment fields cannot be added to entity types without integer IDs.
*/
public function testsStringIdEntities() {
// Create a bundle for entity_test.
public function testsNonIntegerIdEntities() {
// Create a bundle for entity_test_string_id.
entity_test_create_bundle('entity_test', 'Entity Test', 'entity_test_string_id');
$limited_user = $this->drupalCreateUser(array(
'administer entity_test_string_id fields',
......@@ -433,16 +433,17 @@ public function testsStringIdEntities() {
$this->drupalLogin($limited_user);
// Visit the Field UI overview.
$this->drupalGet('entity_test_string_id/structure/entity_test/fields');
// Ensure field isn't shown for empty IDs.
// Ensure field isn't shown for string IDs.
$this->assertNoOption('edit-fields-add-new-field-type', 'comment');
// Create a bundle for entity_test_no_id.
entity_test_create_bundle('entity_test', 'Entity Test', 'entity_test_no_id');
$this->drupalLogin($this->drupalCreateUser(array(
'administer entity_test_no_id fields',
)));
// Visit the Field UI overview.
$this->drupalGet('entity_test_no_id/structure/entity_test/fields');
// Ensure field isn't shown for string ids.
// Ensure field isn't shown for empty IDs.
$this->assertNoOption('edit-fields-add-new-field-type', 'comment');
}
......
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