Set user agent in codeception cept
<p>I have some features / limitations in project for search bot crawlers and I would like to test them using codeception and I found there is an option to set headers using <code>setHeader</code> method. In my case it doesn't work though. I'm getting <code>[RuntimeException] Call to undefined method FunctionalTester::setHeader</code> error.</p>

<p>Code bellow:</p>

<pre><code>&lt;?php
/** @var \Codeception\Scenario $scenario */
$I = new FunctionalTester($scenario);

$I-&gt;setHeader('User-Agent', 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)');

FileDetailPage::of($I)-&gt;amOnFileDetail(96972088, 'raped.zip');
</code></pre>

<p>According to <a href="https://stackoverflow.com/questions/28055181/authorization-header-not-making-it-through-in-codeception-api-testing">Authorization header not making it through in Codeception API testing</a> I wonder if I have to set user agent header for every request. Isn't there method or configuration option to change <strong>User-Agent</strong> permanently?</p>