You are here

protected function LinkOutputLocationTest::assertPseudofield in Flag 8.4

Pass if the flag link is 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.

1 call to LinkOutputLocationTest::assertPseudofield()
LinkOutputLocationTest::testLinkLocation in tests/src/Functional/LinkOutputLocationTest.php
Test the link output.

File

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

Class

LinkOutputLocationTest
Tests the Flag link is output in various locations.

Namespace

Drupal\Tests\flag\Functional

Code

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