You are here

class MediaModuleTest in D7 Media 7.3

Same name and namespace in other branches
  1. 7.4 tests/includes/MediaModuleTest.inc \MediaModuleTest
  2. 7.2 tests/includes/MediaModuleTest.inc \MediaModuleTest

Test browser plugin.

Hierarchy

Expanded class hierarchy of MediaModuleTest

1 string reference to 'MediaModuleTest'
media_module_test_media_browser_plugin_info in tests/media_module_test.module
Implements hook_media_browser_plugin_info().

File

tests/includes/MediaModuleTest.inc, line 11
Definition of MediaModuleTest.

View source
class MediaModuleTest extends MediaBrowserPlugin {

  /**
   * Implements MediaBrowserPluginInterface::access().
   */
  public function access($account = NULL) {
    return TRUE;
  }

  /**
   * Implements MediaBrowserPlugin::view().
   */
  public function view() {
    $build = array();
    $build['test'] = array(
      '#markup' => '<p>' . t('Test browser plugin output.') . '</p>',
    );
    return $build;
  }

}

Members