Issue #2490136 by timmillwood, Manjit.Singh, xjm, webchick, dixon_, Bojhan, googletorp, dawehner, cilefen, jstoller, mikeburrelljr, naveenvalecha, giorgio79, platinum1, Crell, markdorison, skwashd, moshe weitzman, amateescu, jhedstrom, nateswart: Enable revisions by default

8.2.x
Alex Pott 2016-05-13 17:22:02 -05:00
parent 438f9e2847
commit 0f3964dd14
8 changed files with 11 additions and 13 deletions

View File

@ -8,6 +8,6 @@ name: 'Book page'
type: book
description: '<em>Books</em> have a built-in hierarchical navigation. Use for handbooks or tutorials.'
help: ''
new_revision: false
new_revision: true
preview_mode: 1
display_submitted: true

View File

@ -166,10 +166,6 @@ class FileOnTranslatedEntityTest extends FileFieldTestBase {
$file = File::load($replaced_second_fid);
$this->assertTrue($file->isPermanent());
// Ensure the file status of the old second file is now temporary.
$file = File::load($second_fid);
$this->assertTrue($file->isTemporary());
// Delete the third translation.
$this->drupalPostForm('nl/node/' . $default_language_node->id() . '/delete', array(), t('Delete Dutch translation'));

View File

@ -191,10 +191,6 @@ class ImageOnTranslatedEntityTest extends ImageFieldTestBase {
$file = File::load($replaced_second_fid);
$this->assertTrue($file->isPermanent());
// Ensure the file status of the old second file is now temporary.
$file = File::load($second_fid);
$this->assertTrue($file->isTemporary());
// Delete the third translation.
$this->drupalPostForm('nl/node/' . $default_language_node->id() . '/delete', array(), t('Delete Dutch translation'));

View File

@ -83,7 +83,7 @@ class NodeType extends ConfigEntityBundleBase implements NodeTypeInterface {
*
* @var bool
*/
protected $new_revision = FALSE;
protected $new_revision = TRUE;
/**
* The preview mode.

View File

@ -2,7 +2,7 @@ type: default
name: Default
description: 'Default description.'
help: ''
new_revision: false
new_revision: true
display_submitted: true
preview_mode: 1
status: true

View File

@ -67,6 +67,12 @@ class QuickEditLoadingTest extends WebTestBase {
'name' => 'Article',
));
// Set the node type to initially not have revisions.
// Testing with revisions will be done later.
$node_type = NodeType::load('article');
$node_type->setNewRevision(FALSE);
$node_type->save();
// Create one node of the above node type using the above text format.
$this->drupalCreateNode(array(
'type' => 'article',

View File

@ -5,6 +5,6 @@ name: Article
type: article
description: 'Use <em>articles</em> for time-sensitive content like news, press releases or blog posts.'
help: ''
new_revision: false
new_revision: true
preview_mode: 1
display_submitted: true

View File

@ -5,6 +5,6 @@ name: 'Basic page'
type: page
description: 'Use <em>basic pages</em> for your static content, such as an ''About us'' page.'
help: ''
new_revision: false
new_revision: true
preview_mode: 1
display_submitted: false