Issue #3309104: Replace REQUEST_TIME in Functional/FunctionalJavascript tests
5 unresolved threads
Merge request reports
Activity
added 17 commits
-
faeb5312...6b65e07b - 15 commits from branch
project:10.0.x
- 541b13c3 - Merge branch '10.0.x' into 3309104-replace-requesttime-in
- df086378 - Merge branch '3309104-replace-requesttime-in' of...
-
faeb5312...6b65e07b - 15 commits from branch
58 58 */ 59 59 protected $apcuEnsureUniquePrefix = FALSE; 60 60 61 /** 62 * The test request time. 63 */ 64 protected int $testRequestTime; - Comment on lines +61 to +64
changed this line in version 6 of the diff
52 52 $block->setNewRevision(TRUE); 53 53 $block->setRevisionLogMessage($this->randomMachineName(32)); 54 54 $block->setRevisionUser($this->adminUser); 55 $block->setRevisionCreationTime(REQUEST_TIME); 55 $block->setRevisionCreationTime($this->testRequestTime); - Comment on lines -55 to +55
changed this line in version 6 of the diff
70 70 public function testDeterminingChanges() { 71 71 // Initial creation. 72 72 $block = $this->createBlockContent('test_changes'); 73 $this->assertEquals(REQUEST_TIME, $block->getChangedTime(), 'Creating a block sets default "changed" timestamp.'); 73 $this->assertEquals($this->testRequestTime, $block->getChangedTime(), 'Creating a block sets default "changed" timestamp.'); - Comment on lines -73 to +73
changed this line in version 6 of the diff
97 97 $comment->comment_body->format = 'full_html'; 98 98 99 99 // Ensure comments are sorted in ascending order. 100 $time = REQUEST_TIME + ($this->defaultDisplayResults - $i); 100 $time = $this->testRequestTime + ($this->defaultDisplayResults - $i); changed this line in version 6 of the diff
47 47 // Add some test comments, with and without subjects. Because the 10 newest 48 48 // comments should be shown by the block, we create 11 to test that behavior 49 49 // below. 50 $timestamp = REQUEST_TIME; 50 $timestamp = $this->testRequestTime; changed this line in version 6 of the diff
added 1 commit
- 6f0dded0 - Removed testRequestTime property and used drupal time.
added 1 commit
- 5d6c58fd - Replace REQUEST_TIME in Functional/FunctionalJavascript tests.
mentioned in merge request !4317
Please register or sign in to reply