diff --git a/core/modules/datetime_range/src/Tests/DateRangeFieldTest.php b/core/modules/datetime_range/src/Tests/DateRangeFieldTest.php index 189af1f..759352e 100644 --- a/core/modules/datetime_range/src/Tests/DateRangeFieldTest.php +++ b/core/modules/datetime_range/src/Tests/DateRangeFieldTest.php @@ -141,6 +141,7 @@ public function testDateRangeField() { $this->assertText(' THESEPARATOR ', 'Found proper separator'); // Verify that hook_entity_prepare_view can add attributes. + // @see entity_test_entity_prepare_view() $this->drupalGet('entity_test/' . $id); $this->assertFieldByXPath('//div[@data-field-item-attr="foobar"]'); @@ -208,6 +209,7 @@ public function testDateRangeField() { $this->assertNoText(' THESEPARATOR ', 'Separator not found on page'); // Verify that hook_entity_prepare_view can add attributes. + // @see entity_test_entity_prepare_view() $this->drupalGet('entity_test/' . $id); $this->assertFieldByXPath('//time[@data-field-item-attr="foobar"]'); @@ -298,6 +300,7 @@ public function testDatetimeRangeField() { $this->assertText(' THESEPARATOR ', 'Found proper separator'); // Verify that hook_entity_prepare_view can add attributes. + // @see entity_test_entity_prepare_view() $this->drupalGet('entity_test/' . $id); $this->assertFieldByXPath('//div[@data-field-item-attr="foobar"]'); @@ -373,6 +376,7 @@ public function testDatetimeRangeField() { $this->assertNoText(' THESEPARATOR ', 'Separator not found on page'); // Verify that hook_entity_prepare_view can add attributes. + // @see entity_test_entity_prepare_view() $this->drupalGet('entity_test/' . $id); $this->assertFieldByXPath('//time[@data-field-item-attr="foobar"]'); @@ -457,6 +461,7 @@ public function testAlldayRangeField() { $this->assertText(' THESEPARATOR ', 'Found proper separator'); // Verify that hook_entity_prepare_view can add attributes. + // @see entity_test_entity_prepare_view() $this->drupalGet('entity_test/' . $id); $this->assertFieldByXPath('//div[@data-field-item-attr="foobar"]'); @@ -534,6 +539,7 @@ public function testAlldayRangeField() { $this->assertText(' THESEPARATOR ', 'Found proper separator'); // Verify that hook_entity_prepare_view can add attributes. + // @see entity_test_entity_prepare_view() $this->drupalGet('entity_test/' . $id); $this->assertFieldByXPath('//div[@data-field-item-attr="foobar"]');