You are here

public function EntityEmbedTestBase::assertAvailableDisplayPlugins in Entity Embed 7.3

3 calls to EntityEmbedTestBase::assertAvailableDisplayPlugins()
EntityReferenceFieldFormatterTest::testImageFieldFormatter in ./entity_embed.test
Tests image field formatter Entity Embed Display plugin.
FileFieldFormatterTest::testFileFieldFormatter in ./entity_embed.test
Tests file field formatter Entity Embed Display plugin.
ImageFieldFormatterTest::testImageFieldFormatter in ./entity_embed.test
Tests image field formatter Entity Embed Display plugin.

File

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

Class

EntityEmbedTestBase
@file Test integration for the entity_embed module.

Code

public function assertAvailableDisplayPlugins($entity_type, array $expected_plugins, $message = '') {
  $plugin_options = entity_embed_get_entity_field_formatters($entity_type);

  // @todo Remove the sorting so we can actually test return order.
  ksort($plugin_options);
  sort($expected_plugins);
  $this
    ->assertEqual(array_keys($plugin_options), $expected_plugins, $message);
}