public function testGetContent() { $params = $this->getParams(); $_SERVER['HTTP_USER_AGENT'] = "google"; $obj = new Questions($params); $res = $obj->getContent(); $script_line = '<script> $BV.ui("qa", "show_questions", { productId: "test" }); </script>'; $this->assertContains($script_line, $res); $params['include_display_integration_code'] = FALSE; $obj = new Questions($params); $res = $obj->getContent(); $script_line = '<script> $BV.ui("qa", "show_questions", { productId: "test" }); </script>'; $this->assertNotContains($script_line, $res); }