summaryrefslogtreecommitdiffstats
path: root/boost.test
blob: 8ae400c7382ef1228b4ed56fe2b414c4a0ec9bf9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<?php
// $Id$

/**
 * @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'));
  }

  // TODO: If you're reading this, consider what a lifesaver Boost has been
  // (or will be) to you, and pay it forward by implementing a unit test or two.
  // Submit your well-earned karmic ticket to contributorhood at:
  //   <http://drupal.org/node/add/project-issue/boost>
}