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
parent
438f9e2847
commit
0f3964dd14
|
@ -8,6 +8,6 @@ name: 'Book page'
|
||||||
type: book
|
type: book
|
||||||
description: '<em>Books</em> have a built-in hierarchical navigation. Use for handbooks or tutorials.'
|
description: '<em>Books</em> have a built-in hierarchical navigation. Use for handbooks or tutorials.'
|
||||||
help: ''
|
help: ''
|
||||||
new_revision: false
|
new_revision: true
|
||||||
preview_mode: 1
|
preview_mode: 1
|
||||||
display_submitted: true
|
display_submitted: true
|
||||||
|
|
|
@ -166,10 +166,6 @@ class FileOnTranslatedEntityTest extends FileFieldTestBase {
|
||||||
$file = File::load($replaced_second_fid);
|
$file = File::load($replaced_second_fid);
|
||||||
$this->assertTrue($file->isPermanent());
|
$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.
|
// Delete the third translation.
|
||||||
$this->drupalPostForm('nl/node/' . $default_language_node->id() . '/delete', array(), t('Delete Dutch translation'));
|
$this->drupalPostForm('nl/node/' . $default_language_node->id() . '/delete', array(), t('Delete Dutch translation'));
|
||||||
|
|
||||||
|
|
|
@ -191,10 +191,6 @@ class ImageOnTranslatedEntityTest extends ImageFieldTestBase {
|
||||||
$file = File::load($replaced_second_fid);
|
$file = File::load($replaced_second_fid);
|
||||||
$this->assertTrue($file->isPermanent());
|
$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.
|
// Delete the third translation.
|
||||||
$this->drupalPostForm('nl/node/' . $default_language_node->id() . '/delete', array(), t('Delete Dutch translation'));
|
$this->drupalPostForm('nl/node/' . $default_language_node->id() . '/delete', array(), t('Delete Dutch translation'));
|
||||||
|
|
||||||
|
|
|
@ -83,7 +83,7 @@ class NodeType extends ConfigEntityBundleBase implements NodeTypeInterface {
|
||||||
*
|
*
|
||||||
* @var bool
|
* @var bool
|
||||||
*/
|
*/
|
||||||
protected $new_revision = FALSE;
|
protected $new_revision = TRUE;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The preview mode.
|
* The preview mode.
|
||||||
|
|
|
@ -2,7 +2,7 @@ type: default
|
||||||
name: Default
|
name: Default
|
||||||
description: 'Default description.'
|
description: 'Default description.'
|
||||||
help: ''
|
help: ''
|
||||||
new_revision: false
|
new_revision: true
|
||||||
display_submitted: true
|
display_submitted: true
|
||||||
preview_mode: 1
|
preview_mode: 1
|
||||||
status: true
|
status: true
|
||||||
|
|
|
@ -67,6 +67,12 @@ class QuickEditLoadingTest extends WebTestBase {
|
||||||
'name' => 'Article',
|
'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.
|
// Create one node of the above node type using the above text format.
|
||||||
$this->drupalCreateNode(array(
|
$this->drupalCreateNode(array(
|
||||||
'type' => 'article',
|
'type' => 'article',
|
||||||
|
|
|
@ -5,6 +5,6 @@ name: Article
|
||||||
type: article
|
type: article
|
||||||
description: 'Use <em>articles</em> for time-sensitive content like news, press releases or blog posts.'
|
description: 'Use <em>articles</em> for time-sensitive content like news, press releases or blog posts.'
|
||||||
help: ''
|
help: ''
|
||||||
new_revision: false
|
new_revision: true
|
||||||
preview_mode: 1
|
preview_mode: 1
|
||||||
display_submitted: true
|
display_submitted: true
|
||||||
|
|
|
@ -5,6 +5,6 @@ name: 'Basic page'
|
||||||
type: page
|
type: page
|
||||||
description: 'Use <em>basic pages</em> for your static content, such as an ''About us'' page.'
|
description: 'Use <em>basic pages</em> for your static content, such as an ''About us'' page.'
|
||||||
help: ''
|
help: ''
|
||||||
new_revision: false
|
new_revision: true
|
||||||
preview_mode: 1
|
preview_mode: 1
|
||||||
display_submitted: false
|
display_submitted: false
|
||||||
|
|
Loading…
Reference in New Issue