1
|
<?php
|
2
|
/**
|
3
|
* @file
|
4
|
* Test the Revisioning integration for Panelizer.
|
5
|
*/
|
6
|
|
7
|
/**
|
8
|
*
|
9
|
*/
|
10
|
class PanelizerWithRevisioningTest extends PanelizerTestHelper {
|
11
|
|
12
|
/**
|
13
|
* {@inheritdoc}
|
14
|
*/
|
15
|
public static function getInfo() {
|
16
|
return array(
|
17
|
'name' => 'Panelizer w Revisioning',
|
18
|
'description' => 'Test Revisioning integration.',
|
19
|
'group' => 'Panelizer',
|
20
|
);
|
21
|
}
|
22
|
|
23
|
/**
|
24
|
* {@inheritdoc}
|
25
|
*/
|
26
|
function setUp(array $modules = array()) {
|
27
|
$modules[] = 'revisioning';
|
28
|
parent::setUp($modules);
|
29
|
|
30
|
$perms = array(
|
31
|
// Standard node permissions.
|
32
|
'create page content',
|
33
|
'administer content types',
|
34
|
'administer nodes',
|
35
|
'bypass node access',
|
36
|
|
37
|
// Panelizer.
|
38
|
'administer panelizer',
|
39
|
);
|
40
|
$web_user = $this->drupalCreateUser($perms);
|
41
|
$this->drupalLogin($web_user);
|
42
|
}
|
43
|
|
44
|
/**
|
45
|
* Confirm that creating a new draft creates the appropriate
|
46
|
* {panelizer_entity} record.
|
47
|
*/
|
48
|
function testNewDraft() {
|
49
|
// @todo
|
50
|
}
|
51
|
|
52
|
/**
|
53
|
* Confirm that publishing a new draft works correctly.
|
54
|
*/
|
55
|
function testPublishDraft() {
|
56
|
// @todo
|
57
|
}
|
58
|
|
59
|
/**
|
60
|
* Confirm that deleting a draft will only delete the appropriate
|
61
|
* {panelizer_entity} record.
|
62
|
*/
|
63
|
function testDeletingDraft() {
|
64
|
// @todo.
|
65
|
}
|
66
|
|
67
|
/**
|
68
|
* Confirm that reverting to a specific draft will create the appropriate
|
69
|
* {panelizer_entity} record.
|
70
|
*/
|
71
|
function testRevertingDraft() {
|
72
|
// @todo.
|
73
|
}
|
74
|
|
75
|
}
|