Apply fixes from StyleCI
[ci skip] [skip ci]
This commit is contained in:
parent
ce2f0ef72d
commit
e6641fe1a9
|
@ -9,7 +9,6 @@ use Symfony\Component\BrowserKit\Response;
|
||||||
|
|
||||||
class Client extends AbstractBrowser
|
class Client extends AbstractBrowser
|
||||||
{
|
{
|
||||||
|
|
||||||
protected function doRequest($request)
|
protected function doRequest($request)
|
||||||
{
|
{
|
||||||
define('BASE_DIR', realpath(__DIR__.'/../').DIRECTORY_SEPARATOR);
|
define('BASE_DIR', realpath(__DIR__.'/../').DIRECTORY_SEPARATOR);
|
||||||
|
@ -22,4 +21,4 @@ class Client extends AbstractBrowser
|
||||||
|
|
||||||
return new Response($response->getBody()->getContents(), $response->getStatusCode(), $response->getHeaders());
|
return new Response($response->getBody()->getContents(), $response->getStatusCode(), $response->getHeaders());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,7 +3,6 @@
|
||||||
|
|
||||||
namespace Tests\Feature;
|
namespace Tests\Feature;
|
||||||
|
|
||||||
|
|
||||||
use Tests\TestCase;
|
use Tests\TestCase;
|
||||||
|
|
||||||
class LoginControllerTest extends TestCase
|
class LoginControllerTest extends TestCase
|
||||||
|
@ -16,5 +15,4 @@ class LoginControllerTest extends TestCase
|
||||||
//$this->client->getResponse();
|
//$this->client->getResponse();
|
||||||
$this->assertSame(200, $this->client->getResponse()->getStatusCode());
|
$this->assertSame(200, $this->client->getResponse()->getStatusCode());
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace Tests;
|
namespace Tests;
|
||||||
|
|
||||||
use PHPUnit\Framework\TestCase as BaseTestCase;
|
use PHPUnit\Framework\TestCase as BaseTestCase;
|
||||||
|
|
||||||
abstract class TestCase extends BaseTestCase
|
abstract class TestCase extends BaseTestCase
|
||||||
|
@ -10,11 +11,9 @@ abstract class TestCase extends BaseTestCase
|
||||||
|
|
||||||
protected function setUp()
|
protected function setUp()
|
||||||
{
|
{
|
||||||
|
|
||||||
$_SERVER['HTTP_HOST'] = 'http://localhost';
|
$_SERVER['HTTP_HOST'] = 'http://localhost';
|
||||||
$_SERVER['HTTPS'] = false;
|
$_SERVER['HTTPS'] = false;
|
||||||
|
|
||||||
$this->client = new Client();
|
$this->client = new Client();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
|
||||||
|
|
Loading…
Reference in a new issue