// Check that the deprecated theme link was rendered correctly.
$this->
assertSession()->
elementExists('xpath', "//a[contains(@href, 'http://example.com/deprecated_theme')]"
);
// Uninstall a deprecated theme and confirm the warning is not displayed.
$theme_installer->
uninstall(['test_deprecated_theme'
]);
$this->
drupalGet('admin/reports/status'
);
$session->
pageTextNotContains('Deprecated themes enabled'
);
$session->
pageTextNotContains('Deprecated themes found: Test deprecated theme.'
);
$this->
assertSession()->
elementNotExists('xpath', "//a[contains(@href, 'http://example.com/deprecated_theme')]"
);
// Check if pg_trgm extension is enabled on postgres.
if ($this->
getDatabaseConnection()->
databaseType() == 'pgsql'
) { $this->
assertSession()->
pageTextContains('PostgreSQL pg_trgm extension'
);
$elements =
$this->
xpath('//details[@class="system-status-report__entry"]//div[contains(text(), :text)]',
[ ':text' => 'The pg_trgm PostgreSQL extension is present.',
]);
$this->
assertCount(1,
$elements);
$this->
assertStringStartsWith('Available',
$elements[0
]->
getParent()->
getText());
} } /**
* Tests that the Error counter matches the displayed number of errors.
*/