You are here

public function EntityEmbedDialogTest::getEmbedDialog in Entity Embed 7.3

Retrieves an embed dialog based on given parameters.

Parameters

string $filter_format_id: ID of the filter format.

string $embed_button_id: ID of the embed button.

Return value

string The retrieved HTML string.

1 call to EntityEmbedDialogTest::getEmbedDialog()
EntityEmbedDialogTest::testEntityEmbedDialog in ./entity_embed.test
Tests the entity embed dialog.

File

./entity_embed.test, line 169
Test integration for the entity_embed module.

Class

EntityEmbedDialogTest
Tests the entity_embed dialog controller and route.

Code

public function getEmbedDialog($filter_format_id = NULL, $embed_button_id = NULL) {
  $url = 'entity-embed/dialog/entity-embed';
  if (!empty($filter_format_id)) {
    $url .= '/' . $filter_format_id;
    if (!empty($embed_button_id)) {
      $url .= '/' . $embed_button_id;
    }
  }
  return $this
    ->drupalGet($url);
}