You are here

filemime.test in File MIME 7

Tests for File MIME module.

File

filemime.test
View source
<?php

/**
 * @file
 * Tests for File MIME module.
 */

/**
 * Tests logging messages to the database.
 */
class FileMimeTestCase extends DrupalWebTestCase {

  /**
   * A user with some relevant administrative permissions.
   *
   * @var object
   */
  protected $adminUser;

  /**
   * {@inheritdoc}
   */
  public static function getInfo() {
    return array(
      'name' => 'File MIME',
      'description' => 'Tests for File MIME module.',
      'group' => 'File MIME',
    );
  }

  /**
   * Enable modules and create users with specific permissions.
   */
  public function setUp() {
    $modules = array(
      'filemime',
    );
    parent::setUp($modules);
    $this->adminUser = $this
      ->drupalCreateUser(array(
      'administer site configuration',
      'access administration pages',
    ));
  }

  /**
   * Tests File MIME module functionality.
   */
  public function testFileMime() {
    $this
      ->drupalLogin($this->adminUser);
    $this
      ->drupalGet('admin/config/media/filemime');
    $this
      ->drupalGet('admin/config/media/filemime/apply');
  }

}

Classes

Namesort descending Description
FileMimeTestCase Tests logging messages to the database.