@@ -6180,8 +6180,8 @@ public function testGetLandingPageHTML()
6180
6180
6181
6181
// Check that the <html> tag wasn't replaced, as this isn't a legacy landing page.
6182
6182
// 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 );
6185
6185
}
6186
6186
6187
6187
/**
@@ -6201,11 +6201,6 @@ public function testGetLandingPageWithCharacterEncodingHTML()
6201
6201
6202
6202
// Check that rocket-loader.min.js has been removed, as including it breaks landing page redirects.
6203
6203
$ 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> ' );
6209
6204
}
6210
6205
6211
6206
/**
@@ -6224,7 +6219,7 @@ public function testGetLegacyLandingPageHTML()
6224
6219
$ this ->assertStringNotContainsString ('rocket-loader.min.js ' , $ result );
6225
6220
6226
6221
// 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 );
6228
6223
}
6229
6224
6230
6225
/**
0 commit comments