You are here

MediaModuleTest.inc in D7 Media 7.4

Definition of MediaModuleTest.

File

tests/includes/MediaModuleTest.inc
View source
<?php

/**
 * @file
 * Definition of MediaModuleTest.
 */

/**
 * Test browser plugin.
 */
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;
  }

}

Classes

Namesort descending Description
MediaModuleTest Test browser plugin.