protected function ShareMessageTestBase::assertShareButtons in Share Message 8
Passes if the markup of the share links wrapper IS found on the loaded page.
Parameters
string $sharemessage: The edit array of a ShareMessage as passed to drupalPostForm().
string $icon_style: (optional) The specified default_icon_style option (addthis_16x16_style or addthis_32x32_style)
bool $addthis_attributes: (optional) FALSE if this markup should not contain its AddThis attributes, TRUE if it should. Defaults to FALSE.
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.
6 calls to ShareMessageTestBase::assertShareButtons()
- ShareMessageAddthisTest::testAddThisSettingsFormSave in tests/
src/ Functional/ Plugin/ ShareMessageAddthisTest.php - Test case for AddThis settings form saving.
- ShareMessageExposeToBlockTest::testShareMessageExposeToBlock in tests/
src/ Functional/ ShareMessageExposeToBlockTest.php - Test case that check if Share Message is exposed as block.
- ShareMessageExtraFieldTest::testShareMessageExtraFieldToken in tests/
src/ Functional/ ShareMessageExtraFieldTest.php - Tests the Share Message extra field functionality with tokens.
- ShareMessageSettingsTest::testShareMessageSettings in tests/
src/ Functional/ ShareMessageSettingsTest.php - Tests if default and Share Message specific settings work correctly.
- ShareMessageViewModesTest::testShareMessageViewModes in tests/
src/ Functional/ ShareMessageViewModesTest.php - Checks whether view modes render expected markup.
File
- tests/
src/ Functional/ ShareMessageTestBase.php, line 105
Class
Namespace
Drupal\Tests\sharemessage\FunctionalCode
protected function assertShareButtons($sharemessage, $icon_style = 'addthis_16x16_style', $addthis_attributes = FALSE, $message = '') {
return $this
->assertShareButtonHelper($sharemessage, $icon_style, $addthis_attributes, $message, FALSE);
}