protected function ShareMessageTestBase::assertOGTags in Share Message 8
Passes if the markup of the OG meta tags IS found on the loaded page.
Parameters
string $property: The OG tag property, for example "og:title" (WITHOUT any kind of quotes).
string $value: The value/content of the related OG tag property.
string $message: (optional) A message to display with the assertion. Do not translate messages: use \Drupal\Component\Utility\SafeMarkup::format() to embed variables in the message text, not t(). If left blank, a default message will be displayed.
Return value
bool TRUE on pass, FALSE on fail.
5 calls to ShareMessageTestBase::assertOGTags()
- ShareMessageExposeToBlockTest::testShareMessageExposeToBlock in tests/
src/ Functional/ ShareMessageExposeToBlockTest.php - Test case that check if Share Message is exposed as block.
- ShareMessageOGHeadersTest::testOGHeadersFormSave in tests/
src/ Functional/ Plugin/ ShareMessageOGHeadersTest.php - Test case for OGHeaders settings form saving.
- ShareMessageSettingsTest::testShareMessageSpecialCharsEncoding in tests/
src/ Functional/ ShareMessageSettingsTest.php - Test case for special characters encoding.
- ShareMessageViewModesTest::testShareMessageViewModes in tests/
src/ Functional/ ShareMessageViewModesTest.php - Checks whether view modes render expected markup.
- ShareMessageWorkflowTest::testShareMessageWorkflow in tests/
src/ Functional/ ShareMessageWorkflowTest.php - Main Share Message workflow through the admin UI.
File
- tests/
src/ Functional/ ShareMessageTestBase.php, line 208
Class
Namespace
Drupal\Tests\sharemessage\FunctionalCode
protected function assertOGTags($property, $value, $message = '') {
return $this
->assertOGTagsHelper($property, $value, $message, FALSE);
}