comparison core/modules/node/tests/src/Functional/NodeAccessRebuildNodeGrantsTest.php @ 17:129ea1e6d783

Update, including to Drupal core 8.6.10
author Chris Cannam
date Thu, 28 Feb 2019 13:21:36 +0000
parents 4c8ae668cc8c
children
comparison
equal deleted inserted replaced
16:c2387f117808 17:129ea1e6d783
50 // Create 30 nodes so that _node_access_rebuild_batch_operation() has to run 50 // Create 30 nodes so that _node_access_rebuild_batch_operation() has to run
51 // more than once. 51 // more than once.
52 for ($i = 0; $i < 30; $i++) { 52 for ($i = 0; $i < 30; $i++) {
53 $nodes[] = $this->drupalCreateNode([ 53 $nodes[] = $this->drupalCreateNode([
54 'uid' => $this->webUser->id(), 54 'uid' => $this->webUser->id(),
55 'private' => [['value' => 1]] 55 'private' => [['value' => 1]],
56 ]); 56 ]);
57 } 57 }
58 58
59 /** @var \Drupal\node\NodeGrantDatabaseStorageInterface $grant_storage */ 59 /** @var \Drupal\node\NodeGrantDatabaseStorageInterface $grant_storage */
60 $grant_storage = \Drupal::service('node.grant_storage'); 60 $grant_storage = \Drupal::service('node.grant_storage');