comparison core/modules/tracker/tests/src/Functional/TrackerTest.php @ 16:c2387f117808

Routine composer update
author Chris Cannam
date Tue, 10 Jul 2018 15:07:59 +0100
parents 4c8ae668cc8c
children 129ea1e6d783
comparison
equal deleted inserted replaced
15:e200cb7efeb3 16:c2387f117808
359 'subject[0][value]' => $this->randomMachineName(), 359 'subject[0][value]' => $this->randomMachineName(),
360 'comment_body[0][value]' => $this->randomMachineName(20), 360 'comment_body[0][value]' => $this->randomMachineName(20),
361 ]; 361 ];
362 $this->drupalPostForm('comment/reply/node/' . $nodes[3]->id() . '/comment', $comment, t('Save')); 362 $this->drupalPostForm('comment/reply/node/' . $nodes[3]->id() . '/comment', $comment, t('Save'));
363 363
364 // Start indexing backwards from node 3. 364 // Create an unpublished node.
365 \Drupal::state()->set('tracker.index_nid', 3); 365 $unpublished = $this->drupalCreateNode([
366 'title' => $this->randomMachineName(8),
367 'status' => 0,
368 ]);
369
370 // Start indexing backwards from node 4.
371 \Drupal::state()->set('tracker.index_nid', 4);
366 372
367 // Clear the current tracker tables and rebuild them. 373 // Clear the current tracker tables and rebuild them.
368 db_delete('tracker_node') 374 db_delete('tracker_node')
369 ->execute(); 375 ->execute();
370 db_delete('tracker_user') 376 db_delete('tracker_user')