You are here

protected function RevisionAllBase::createCustomContentType in Revision All 7.2

Creates a custom content type called 'Custom Content/custom_content'.

4 calls to RevisionAllBase::createCustomContentType()
RevisionAllPreventNodeOverrideTests::testPreventsOverrideCustomType in tests/revision_all.test
Tests custom content type "Create new revision" behavior.
RevisionAllPreventTypeOverrideTests::testPreventsOverrideCustomType in tests/revision_all.test
Tests custom content type "Create new revision" behavior.
RevisionAllTypeRevisioningTests::testRevisionAllCustomType in tests/revision_all.test
Tests custom content type behavior when 'Revision All' is checked.
RevisionAllTypeRevisioningTests::testRevisionSelectCustomType in tests/revision_all.test
Tests custom content type behavior when only some content types are selected.

File

tests/revision_all.test, line 66
Tests for Revision All module.

Class

RevisionAllBase
Defines a base class of DrupalWebTestCase and does general setup.

Code

protected function createCustomContentType() {
  $this
    ->drupalGet('admin/structure/types/add');
  $settings = array(
    'name' => 'Custom Content',
    'type' => 'custom_content',
  );
  $this
    ->drupalPost('admin/structure/types/add', $settings, 'Save content type');
}