Skip to content

Commit

Permalink
UHF-9454: Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
hyrsky committed Dec 19, 2023
1 parent a5037bc commit 215ec59
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions tests/src/Functional/ServiceTranslationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public function testPublish() : void {
$this->drupalGet(Url::fromRoute('entity.tpr_service.edit_form', ['tpr_service' => 1]), [
'query' => ['language' => 'fi'],
]);
$this->assertSession()->fieldValueEquals('content_translation[status]', $expected_status);
$this->assertSession()->fieldValueEquals('content_translation[status]', (string) $expected_status);
}

// Run migrate to update existing service entity and translations.
Expand All @@ -65,7 +65,7 @@ public function testPublish() : void {
$this->drupalGet(Url::fromRoute('entity.tpr_service.edit_form', ['tpr_service' => 1]), [
'query' => ['language' => $language],
]);
$this->assertSession()->fieldValueEquals('content_translation[status]', $expected_status);
$this->assertSession()->fieldValueEquals('content_translation[status]', (string) $expected_status);
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions tests/src/Functional/UnitTranslationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public function testPublish() : void {
$this->drupalGet(Url::fromRoute('entity.tpr_unit.edit_form', ['tpr_unit' => 1]), [
'query' => ['language' => 'fi'],
]);
$this->assertSession()->fieldValueEquals('content_translation[status]', $expected_status);
$this->assertSession()->fieldValueEquals('content_translation[status]', (string) $expected_status);
}

// Run migrate to update existing unit entity andtranslations.
Expand All @@ -65,7 +65,7 @@ public function testPublish() : void {
$this->drupalGet(Url::fromRoute('entity.tpr_unit.edit_form', ['tpr_unit' => 1]), [
'query' => ['language' => $language],
]);
$this->assertSession()->fieldValueEquals('content_translation[status]', $expected_status);
$this->assertSession()->fieldValueEquals('content_translation[status]', (string) $expected_status);
}
}
}
Expand Down

0 comments on commit 215ec59

Please sign in to comment.