Skip to content

Commit

Permalink
Last attempt to not pass translatables as button labels.
Browse files Browse the repository at this point in the history
  • Loading branch information
rosiel committed Mar 8, 2024
1 parent 9f2277f commit 13bc15e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/src/Functional/IslandoraFunctionalTestBase.php
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ protected function addPresetReaction($context_id, $reaction_type, $action_id) {
*/
protected function postNodeAddForm($bundle_id, $values, $button_text) {
$this->drupalGet("node/add/$bundle_id");
$this->submitForm($values, $this->t('@text', ['@text' => $button_text]));
$this->submitForm($values, $button_text);
$this->assertSession()->statusCodeEquals(200);
}

Expand All @@ -324,7 +324,7 @@ protected function postNodeAddForm($bundle_id, $values, $button_text) {
*/
protected function postTermAddForm($taxomony_id, $values, $button_text) {
$this->drupalGet("admin/structure/taxonomy/manage/$taxomony_id/add");
$this->submitForm($values, $this->t('@text', ['@text' => $button_text]));
$this->submitForm($values, $button_text);
$this->assertSession()->statusCodeEquals(200);
}

Expand All @@ -333,7 +333,7 @@ protected function postTermAddForm($taxomony_id, $values, $button_text) {
*/
protected function postEntityEditForm($entity_url, $values, $button_text) {
$this->drupalGet("$entity_url/edit");
$this->submitForm($values, $this->t('@text', ['@text' => $button_text]));
$this->submitForm($values, $button_text);
$this->assertSession()->statusCodeEquals(200);
}

Expand Down

0 comments on commit 13bc15e

Please sign in to comment.