1
|
<?php
|
2
|
|
3
|
/**
|
4
|
* @file
|
5
|
* Contains ckeditorTest.
|
6
|
*/
|
7
|
|
8
|
/**
|
9
|
* Base class for ckeditor tests.
|
10
|
*/
|
11
|
class CkeditorTest extends DrupalWebTestCase {
|
12
|
protected $profile = 'testing';
|
13
|
|
14
|
/**
|
15
|
* Test info.
|
16
|
*/
|
17
|
public static function getInfo() {
|
18
|
return array(
|
19
|
'name' => 'Configuration available',
|
20
|
'description' => 'Check module is enabled and config available.',
|
21
|
'group' => 'ckeditor',
|
22
|
);
|
23
|
}
|
24
|
|
25
|
/**
|
26
|
* Setup the environment.
|
27
|
*/
|
28
|
public function setUp() {
|
29
|
parent::setUp('ckeditor');
|
30
|
|
31
|
$admin_user = $this->drupalCreateUser(array('administer ckeditor'));
|
32
|
$this->drupalLogin($admin_user);
|
33
|
}
|
34
|
|
35
|
/**
|
36
|
* Check admin page is available.
|
37
|
*/
|
38
|
public function test() {
|
39
|
$this->drupalGet('admin/config/content/ckeditor');
|
40
|
$this->assertResponse(200, 'User is allowed to edit the content.');
|
41
|
}
|
42
|
|
43
|
}
|