protected function ShareMessageTestBase::assertNoShareButtons in Share Message 8
Passes if the markup of the share links wrapper is NOT found on the loaded page.
Parameters
string $sharemessage: The edit array of a ShareMessage as passed to drupalPostForm().
string $icon_style: 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.
2 calls to ShareMessageTestBase::assertNoShareButtons()
- ShareMessageExtraFieldTest::testShareMessageExtraFieldToken in tests/
src/ Functional/ ShareMessageExtraFieldTest.php - Tests the Share Message extra field functionality with tokens.
- ShareMessageViewModesTest::testShareMessageViewModes in tests/
src/ Functional/ ShareMessageViewModesTest.php - Checks whether view modes render expected markup.
File
- tests/
src/ Functional/ ShareMessageTestBase.php, line 130
Class
Namespace
Drupal\Tests\sharemessage\FunctionalCode
protected function assertNoShareButtons($sharemessage, $icon_style = 'addthis_16x16_style', $addthis_attributes = FALSE, $message = '') {
return $this
->assertShareButtonHelper($sharemessage, $icon_style, $addthis_attributes, $message, TRUE);
}