Verified Commit e2b97e56 authored by Dave Long's avatar Dave Long
Browse files

Issue #3472946 by xmacinfo, daffie: Clarify "Database support for JSON"...

Issue #3472946 by xmacinfo, daffie: Clarify "Database support for JSON" success requirement message for Drupal 11
parent b2b6b60d
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -574,7 +574,7 @@ function system_requirements($phase): array {
      'title' => t('Database support for JSON'),
      'severity' => REQUIREMENT_OK,
      'value' => t('Available'),
      'description' => t('Is required in Drupal 10.0.'),
      'description' => t('Drupal requires databases that support JSON storage.'),
    ];

    if (!Database::getConnection()->hasJson()) {
+1 −1
Original line number Diff line number Diff line
@@ -117,7 +117,7 @@ public function testStatusPage(): void {
    // Check if JSON database support is enabled.
    $this->assertSession()->pageTextContains('Database support for JSON');
    $elements = $this->xpath('//details[@class="system-status-report__entry"]//div[contains(text(), :text)]', [
      ':text' => 'Is required in Drupal 10.0.',
      ':text' => 'Drupal requires databases that support JSON storage.',
    ]);
    $this->assertCount(1, $elements);
    $this->assertStringStartsWith('Available', $elements[0]->getParent()->getText());