Optimized Entities, Controllers and tests

This commit is contained in:
Kevin Frantz
2018-09-06 20:20:29 +02:00
parent 69ea47facd
commit cff5afe018
6 changed files with 13 additions and 7 deletions

View File

@@ -32,7 +32,7 @@ class UserControllerTest extends WebTestCase
public function testLogin(): void
{
$client = static::createClient();
$client->request('GET', '/user/login');
$client->request('GET', '/login');
$this->assertEquals(200, $client->getResponse()->getStatusCode());
}

View File

@@ -24,7 +24,7 @@ class UserTest extends TestCase
public function setUp():void{
$this->user = new User();
$this->user->setPassword(self::PASSWORD);
$this->user->setUsername(self::USERNAME);
$this->user->setUsername(' '.self::USERNAME.' ');
}
public function testUsername():void{