only in patch2: unchanged: --- a/core/modules/rdf/src/Tests/StandardProfileTest.php +++ b/core/modules/rdf/src/Tests/StandardProfileTest.php @@ -98,6 +98,11 @@ class StandardProfileTest extends WebTestBase { protected $articleCommentUri; /** + * @var array + */ + public static $modules = array('field_ui'); + + /** * @var string */ protected $commenterUri; @@ -117,6 +122,7 @@ protected function setUp() { 'administer comments', 'access comments', 'access content', + 'administer node display', )); $this->webUser = $this->drupalCreateUser(array( 'access comments', @@ -276,9 +282,23 @@ protected function doPageRdfaTests() { // The standard profile hides the created date on pages. Revert display to // true for testing. // @todo Clean-up standard profile defaults. - $node_type = NodeType::load('page'); - $node_type->setDisplaySubmitted(TRUE); - $node_type->save(); + + $this->drupalLogin($this->adminUser); + + // Change the node type setting to hide submitted by information. + $this->drupalGet('admin/structure/types/manage/page/display'); + + // Hide the author field. + $edit = array('fields[uid][type]' => 'author', 'refresh_rows' => 'uid'); + $this->drupalPostAjaxForm(NULL, $edit, array('op' => t('Refresh'))); + + // Hide the submitted on field. + $edit = array('fields[created][type]' => 'timestamp', 'refresh_rows' => 'created'); + $this->drupalPostAjaxForm(NULL, $edit, array('op' => t('Refresh'))); + + // Save the new configuration. + $this->drupalPostForm(NULL, array(), t('Save')); + $this->drupalLogout(); // Feed the HTML into the parser. $graph = $this->getRdfGraph($this->page->urlInfo()); only in patch2: unchanged: --- a/core/profiles/standard/config/install/rdf.mapping.node.article.yml +++ b/core/profiles/standard/config/install/rdf.mapping.node.article.yml @@ -30,6 +30,7 @@ fieldMappings: uid: properties: - 'schema:author' + mapping_type: rel comment: properties: - 'schema:comment'