Update to Drupal 8.0.3. For more information, see https://www.drupal.org/drupal-8.0.3-release-notes
This commit is contained in:
parent
10f9f7fbde
commit
9db4fae9a7
202 changed files with 3806 additions and 760 deletions
|
@ -39,6 +39,7 @@ class MigrateNodeTest extends MigrateDrupal7TestBase {
|
|||
$this->installEntitySchema('node');
|
||||
$this->installEntitySchema('comment');
|
||||
$this->installEntitySchema('taxonomy_term');
|
||||
$this->installEntitySchema('file');
|
||||
$this->installConfig(static::$modules);
|
||||
$this->installSchema('node', ['node_access']);
|
||||
$this->installSchema('system', ['sequences']);
|
||||
|
@ -51,6 +52,7 @@ class MigrateNodeTest extends MigrateDrupal7TestBase {
|
|||
'd7_field',
|
||||
'd7_field_instance',
|
||||
'd7_node__test_content_type',
|
||||
'd7_node__article',
|
||||
]);
|
||||
}
|
||||
|
||||
|
@ -134,6 +136,17 @@ class MigrateNodeTest extends MigrateDrupal7TestBase {
|
|||
$this->assertIdentical('Some more text', $node->field_text_list[0]->value);
|
||||
$this->assertIdentical('7', $node->field_integer_list[0]->value);
|
||||
$this->assertIdentical('qwerty', $node->field_text->value);
|
||||
$this->assertIdentical('2', $node->field_file->target_id);
|
||||
$this->assertIdentical('file desc', $node->field_file->description);
|
||||
$this->assertTrue($node->field_file->display);
|
||||
$this->assertIdentical('1', $node->field_images->target_id);
|
||||
$this->assertIdentical('alt text', $node->field_images->alt);
|
||||
$this->assertIdentical('title text', $node->field_images->title);
|
||||
$this->assertIdentical('93', $node->field_images->width);
|
||||
$this->assertIdentical('93', $node->field_images->height);
|
||||
|
||||
$node = Node::load(2);
|
||||
$this->assertIdentical("...is that it's the absolute best show ever. Trust me, I would know.", $node->body->value);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -26,4 +26,13 @@ class NodeAccessGrantsTest extends NodeAccessTest {
|
|||
*/
|
||||
public static $modules = array('node_access_test_empty');
|
||||
|
||||
/**
|
||||
* Test operations not supported by node grants.
|
||||
*/
|
||||
function testUnsupportedOperation() {
|
||||
$web_user = $this->drupalCreateUser(['access content']);
|
||||
$node = $this->drupalCreateNode();
|
||||
$this->assertNodeAccess(['random_operation' => FALSE], $node, $web_user);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Reference in a new issue