You are here

boost.test in Boost 6

Boost unit testings; currently very incomplete.

File

boost.test
View source
<?php

/**
 * @file
 * Boost unit testings; currently very incomplete.
 */

//////////////////////////////////////////////////////////////////////////////

// Unit tests for Simpletest 2.x
class BoostTestCase extends DrupalWebTestCase {
  public function getInfo() {
    return array(
      'name' => t('Caching'),
      'description' => t('Ensures that Boost\'s static page caching works.'),
      'group' => t('Boost'),
    );
  }
  function test_configuration() {
    $this
      ->assertTrue(is_dir(BOOST_FILE_PATH), t('The cache directory exists.'), t('Configuration'));
    $this
      ->assertTrue(is_readable(BOOST_FILE_PATH), t('The cache directory is readable.'), t('Configuration'));
    $this
      ->assertTrue(is_writable(BOOST_FILE_PATH), t('The cache directory is writable.'), t('Configuration'));
  }

}

Classes

Namesort descending Description
BoostTestCase