diff options
author | Tim-Hinnerk Heuer <tim@innocraft.com> | 2021-09-16 01:06:46 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-16 01:06:46 +0300 |
commit | eecc8b9bebbd8d63907115c528ee53aa7f9da6de (patch) | |
tree | 2bbe4709a4faa020a231a3f550f3d5095356f011 | |
parent | 4f6275d2b25fee69cc8510558e89066d4a7a8ab2 (diff) |
change bogus user agent that fails on bing.com (#17993)
* change bogus user agent that fails on bing.com
fixes #17919
* only use one user agent for seo test
-rw-r--r-- | plugins/SEO/tests/Integration/SEOTest.php | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/plugins/SEO/tests/Integration/SEOTest.php b/plugins/SEO/tests/Integration/SEOTest.php index 182046764b..2d640e0e75 100644 --- a/plugins/SEO/tests/Integration/SEOTest.php +++ b/plugins/SEO/tests/Integration/SEOTest.php @@ -33,13 +33,7 @@ class SEOTest extends IntegrationTestCase //finally we set the user as a Super User by default FakeAccess::$superUser = true; - $user_agents = array( - 'Mozilla/5.0 (X11; Fedora; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36', - 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.0 Safari/605.1.15', - 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36', - ); - - $_SERVER['HTTP_USER_AGENT'] = $user_agents[mt_rand(0, count($user_agents) - 1)]; + $_SERVER['HTTP_USER_AGENT'] = 'Mozilla/5.0 (X11; Fedora; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36'; } /** |