panelizer.with_revisionining.test in Panelizer 7.3
Test the Revisioning integration for Panelizer.
File
tests/panelizer.with_revisionining.testView source
<?php
/**
* @file
* Test the Revisioning integration for Panelizer.
*/
/**
*
*/
class PanelizerWithRevisioningTest extends PanelizerTestHelper {
/**
* {@inheritdoc}
*/
public static function getInfo() {
return array(
'name' => 'Panelizer w Revisioning',
'description' => 'Test Revisioning integration.',
'group' => 'Panelizer',
);
}
/**
* {@inheritdoc}
*/
function setUp(array $modules = array()) {
$modules[] = 'revisioning';
parent::setUp($modules);
$perms = array(
// Standard node permissions.
'create page content',
'administer content types',
'administer nodes',
'bypass node access',
// Panelizer.
'administer panelizer',
);
$web_user = $this
->drupalCreateUser($perms);
$this
->drupalLogin($web_user);
}
/**
* Confirm that creating a new draft creates the appropriate
* {panelizer_entity} record.
*/
function testNewDraft() {
// @todo
}
/**
* Confirm that publishing a new draft works correctly.
*/
function testPublishDraft() {
// @todo
}
/**
* Confirm that deleting a draft will only delete the appropriate
* {panelizer_entity} record.
*/
function testDeletingDraft() {
// @todo.
}
/**
* Confirm that reverting to a specific draft will create the appropriate
* {panelizer_entity} record.
*/
function testRevertingDraft() {
// @todo.
}
}
Classes
Name | Description |
---|---|
PanelizerWithRevisioningTest |