You are here

protected function LinkOutputLocationTest::assertNoPseudofield in Flag 8.4

Pass if the flag link is not shown as a field on the page.

Parameters

\Drupal\flag\FlagInterface $flag: The flag to look for.

\Drupal\Core\Entity\EntityInterface $entity: The flaggable entity the flag is on.

string $message: (Optional) Message to display.

2 calls to LinkOutputLocationTest::assertNoPseudofield()
LinkOutputLocationTest::testLinkLocation in tests/src/Functional/LinkOutputLocationTest.php
Test the link output.
LinkOutputLocationTest::testNoLinkLocation in tests/src/Functional/LinkOutputLocationTest.php
Tests that when no display types are selected, no flag links appear.

File

tests/src/Functional/LinkOutputLocationTest.php, line 192

Class

LinkOutputLocationTest
Tests the Flag link is output in various locations.

Namespace

Drupal\Tests\flag\Functional

Code

protected function assertNoPseudofield(FlagInterface $flag, EntityInterface $entity, $message = '') {
  $this
    ->assertPseudofieldHelper($flag, $entity, $message ?: "The flag link is not shown as a field.", FALSE);
}