Issue #3359077 by catch, alexpott, andypost: Resolve test failures on 11.x branch

merge-requests/3988/head
Alex Pott 2023-05-10 11:56:27 +01:00
parent 371dd51f87
commit 861648c2d6
No known key found for this signature in database
GPG Key ID: BDA67E7EE836E5CE
8 changed files with 16 additions and 2 deletions

View File

@ -55,6 +55,7 @@ class AlertsJsonFeedTest extends OffCanvasTestBase {
* Check the status of the announcements when the feed is updated and removed.
*/
public function testAnnounceFeedUpdatedAndRemoved() {
$this->markTestSkipped('Skipped due to major version-specific logic. See https://www.drupal.org/project/drupal/issues/3359322');
$this->drupalLogin($this->user);
$this->drupalGet('<front>');
$this->clickLink('Announcements');

View File

@ -29,6 +29,7 @@ class AnnounceFetcherTest extends AnnounceTestBase {
* @dataProvider providerShowAnnouncements
*/
public function testShowAnnouncements(array $feed_item): void {
$this->markTestSkipped('Skipped due to major version-specific logic. See https://www.drupal.org/project/drupal/issues/3359322');
$this->setFeedItems([$feed_item]);
$feeds = $this->fetchFeedItems();
$this->assertCount(1, $feeds);
@ -42,6 +43,7 @@ class AnnounceFetcherTest extends AnnounceTestBase {
* Tests feed fields.
*/
public function testFeedFields(): void {
$this->markTestSkipped('Skipped due to major version-specific logic. See https://www.drupal.org/project/drupal/issues/3359322');
$feed_item_1 = [
'id' => '1001',
'content_html' => 'Test teaser 1',

View File

@ -42,6 +42,7 @@ class AnnounceFetcherUserTest extends AnnounceTestBase {
* First time accessing the announcements.
*/
public function testAllAnnouncementsFirst(): void {
$this->markTestSkipped('Skipped due to major version-specific logic. See https://www.drupal.org/project/drupal/issues/3359322');
$feed_items = $this->providerShowAnnouncements();

View File

@ -80,8 +80,7 @@ msgid "Non-word-item to translate."
msgstr "Non-word-german sdfwedrsdf."
ENDPO;
include_once $this->root . '/core/includes/install.core.inc';
$version = _install_get_version_info(\Drupal::VERSION)['major'] . '.0.0';
$version = explode('.', \Drupal::VERSION)[0] . '.0.0';
file_put_contents($this->publicFilesDirectory . "/translations/drupal-{$version}.de.po", $contents);
return $parameters;
}

View File

@ -16,6 +16,14 @@ class LocaleNonInteractiveInstallTest extends BrowserTestBase {
*/
protected $defaultTheme = 'stark';
/**
* {@inheritdoc}
*/
protected function setUp(): void {
$this->markTestSkipped('Skipped due to major version-specific logic. See https://www.drupal.org/project/drupal/issues/3359322');
parent::setUp();
}
/**
* Gets the version string to use in the translation file.
*

View File

@ -171,6 +171,7 @@ class DependencyTest extends ModuleTestBase {
* Tests enabling modules with different core version specifications.
*/
public function testCoreCompatibility() {
$this->markTestSkipped('Skipped due to major version-specific logic. See https://www.drupal.org/project/drupal/issues/3359322');
$assert_session = $this->assertSession();
// Test incompatible 'core_version_requirement'.

View File

@ -471,6 +471,7 @@ class ThemeTest extends BrowserTestBase {
* Tests installing a theme and setting it as default.
*/
public function testInstallAndSetAsDefault() {
$this->markTestSkipped('Skipped due to major version-specific logic. See https://www.drupal.org/project/drupal/issues/3359322');
$themes = [
'olivero' => 'Olivero',
'test_core_semver' => 'Theme test with semver core version',

View File

@ -343,6 +343,7 @@ class UpdateScriptTest extends BrowserTestBase {
* @dataProvider providerMissingExtension
*/
public function testMissingExtension(array $core, array $contrib): void {
$this->markTestSkipped('Skipped due to major version-specific logic. See https://www.drupal.org/project/drupal/issues/3359322');
$this->drupalLogin(
$this->drupalCreateUser(
[