| 1 |
<?php
|
| 2 |
// $Id$
|
| 3 |
|
| 4 |
class ContentRefreshTestCase extends DrupalWebTestCase {
|
| 5 |
/**
|
| 6 |
* Implementation of getInfo().
|
| 7 |
*/
|
| 8 |
function getInfo() {
|
| 9 |
return array(
|
| 10 |
'name' => t('Content Refresh functionality'),
|
| 11 |
'description' => t('Add, edit and delete content to test whether cache clearing works.'),
|
| 12 |
'group' => t('Content Refresh'),
|
| 13 |
);
|
| 14 |
}
|
| 15 |
|
| 16 |
/**
|
| 17 |
* Implementation of setUp().
|
| 18 |
*/
|
| 19 |
function setUp() {
|
| 20 |
parent::setUp();
|
| 21 |
|
| 22 |
// Create and login user
|
| 23 |
$editor_user = $this->drupalCreateUser(
|
| 24 |
array('create page content',
|
| 25 |
'edit any page content',
|
| 26 |
'delete any page content',
|
| 27 |
'post comments')
|
| 28 |
);
|
| 29 |
|
| 30 |
$this->drupalLogin($editor_user);
|
| 31 |
}
|
| 32 |
|
| 33 |
/**
|
| 34 |
* Test ...
|
| 35 |
*/
|
| 36 |
function testCommentAdd() {
|
| 37 |
|
| 38 |
}
|
| 39 |
|
| 40 |
/**
|
| 41 |
* Test ...
|
| 42 |
*/
|
| 43 |
function testContentAdd() {
|
| 44 |
|
| 45 |
}
|
| 46 |
|
| 47 |
/**
|
| 48 |
* Test ...
|
| 49 |
*/
|
| 50 |
function testContentEdit() {
|
| 51 |
|
| 52 |
}
|
| 53 |
|
| 54 |
/**
|
| 55 |
* Test ...
|
| 56 |
*/
|
| 57 |
function testContentDelete() {
|
| 58 |
|
| 59 |
}
|
| 60 |
}
|