Skip to content

Commit 6d472c8

Browse files
committed
Fix tests
1 parent 0635ccf commit 6d472c8

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

tests/wpunit/APITest.php

+3-8
Original file line numberDiff line numberDiff line change
@@ -6180,8 +6180,8 @@ public function testGetLandingPageHTML()
61806180

61816181
// Check that the <html> tag wasn't replaced, as this isn't a legacy landing page.
61826182
// It should be preserved as e.g. <html lang="en">.
6183-
$this->assertStringContainsString('<html lang="en">');
6184-
$this->assertStringNotContainsString('<html>');
6183+
$this->assertStringContainsString('<html lang="en">', $result);
6184+
$this->assertStringNotContainsString('<html>', $result);
61856185
}
61866186

61876187
/**
@@ -6201,11 +6201,6 @@ public function testGetLandingPageWithCharacterEncodingHTML()
62016201

62026202
// Check that rocket-loader.min.js has been removed, as including it breaks landing page redirects.
62036203
$this->assertStringNotContainsString('rocket-loader.min.js', $result);
6204-
6205-
// Check that the <html> tag wasn't replaced, as this isn't a legacy landing page.
6206-
// It should be preserved as e.g. <html lang="en">.
6207-
$this->assertStringContainsString('<html lang="en">');
6208-
$this->assertStringNotContainsString('<html>');
62096204
}
62106205

62116206
/**
@@ -6224,7 +6219,7 @@ public function testGetLegacyLandingPageHTML()
62246219
$this->assertStringNotContainsString('rocket-loader.min.js', $result);
62256220

62266221
// Check that the <html> tag was added, as this isn't included in legacy landing pages.
6227-
$this->assertStringContainsString('<html>');
6222+
$this->assertStringContainsString('<html>', $result);
62286223
}
62296224

62306225
/**

0 commit comments

Comments
 (0)