Check term view access before trying to redirect after an update
1 unresolved thread
Closes #3470876
Merge request reports
Activity
added 1 commit
- e8d217bf - Intentionally force fail for this, find all the coverage testing this.
- Resolved by catch
590 $this->drupalGet($term->toUrl('edit-form')); 591 $this->submitForm(edit: [], submit: 'Save'); 592 593 // Updating a term sends user to view the term. 594 $this->assertSession()->addressEquals($term->toUrl()->toString()); 595 $this->assertSession()->pageTextContains('Updated term'); 596 597 // Unless the term is not accessible to the user. 598 // Label triggers forbidden in taxonomy_test_entity_access(). 599 $term = Term::create(['vid' => $this->vocabulary->id(), 'name' => 'Inaccessible view']); 600 $term->save(); 601 $this->drupalGet($term->toUrl('edit-form')); 602 $this->submitForm(edit: [], submit: 'Save'); 603 604 // In which case, the edit form is reloaded. 605 $this->assertSession()->addressEquals($term->toUrl('edit-form')); changed this line in version 5 of the diff
added 9 commits
-
c5d4f548...143acfe4 - 8 commits from branch
project:11.x
- cefa16ba - Merge branch '11.x' into 3470876-term-view-access-before-redirect
-
c5d4f548...143acfe4 - 8 commits from branch
added 17 commits
-
cefa16ba...ae9641c1 - 10 commits from branch
project:11.x
- fd3fe75d - the redirect feature, without tests
- a3e23ad3 - Intentionally force fail for this, find all the coverage testing this.
- b2afd038 - Revert "Intentionally force fail for this, find all the coverage testing this."
- a2642266 - add coverage
- f8547a52 - lint
- fa3b5e1a - Fix test URL failure.
- 857d026e - another
Toggle commit list-
cefa16ba...ae9641c1 - 10 commits from branch
Please register or sign in to reply