// apply to the fallback test.
// Create one node in Hungarian and marked as private.
$node =
$this->
drupalCreateNode([ 'body' =>
[[]],
'langcode' => 'hu',
'private' =>
[['value' => 1
]],
'status' => 1,
]);
// There should be one entry in node_access, with fallback set to hu.
$this->
checkRecords(1, 'hu'
);
// Create a translation user.
$admin =
$this->
drupalCreateUser([ 'bypass node access',
'administer nodes',
'translate any entity',
'administer content translation',
]);
$this->
drupalLogin($admin);
$this->
drupalGet('node/' .
$node->
id() . '/translations'
);
$this->
assertSession()->
statusCodeEquals(200
);