I want to make a simple phpunit test but something goes wrong.
...
<testsuites>
<testsuite name="MyPlugin Test">
<directory>./plugins/myplugin/userext/tests</directory>
</testsuite>
</testsuites>
...
use PluginTestCase;
class MyTest extends PluginTestCase
{
protected $baseUrl = 'http://mysite.dev';
public function testDisplaySite()
{
$this->visit('/');
dd($this->response);
}
}
Among other page details I am still getting this wrong content:
My Webpage
. That is not a page I am requesting....
#content: "<h1>My Webpage</h1>"
#version: "1.1"
#statusCode: 200
#statusText: "OK"
#charset: null
...
Last updated