Skip to content

Commit

Permalink
fix coverage for Drupal 10.3
Browse files Browse the repository at this point in the history
  • Loading branch information
WengerK committed Apr 14, 2024
1 parent 270a614 commit 7626e7b
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,12 @@ public function testInstall(): void {
$this->drupalGet('admin/modules');
$this->submitForm($edit, 'Install');

$this->assertSession()->pageTextContains('Module Entity to Text - Tika has been enabled.');
if (version_compare(\Drupal::VERSION, '10.3', '>=')) {
$this->assertSession()->pageTextContains('Module Entity to Text - Tika has been installed.');
}
else {
$this->assertSession()->pageTextContains('Module Entity to Text - Tika has been enabled.');
}

// Makes sure the module has been installed.
$this->assertModules(['entity_to_text_tika'], TRUE);
Expand Down

0 comments on commit 7626e7b

Please sign in to comment.