phpunit - test login page

pull/3064/head
Julio 5 years ago
parent 9897b7c94a
commit f1641819ee
  1. 17
      tests/CoreBundle/Controller/IndexControllerTest.php

@ -2,17 +2,26 @@
/* For licensing terms, see /license.txt */
namespace Chamilo\CoreBundle\Controller;
namespace Chamilo\Tests\CoreBundle\Controller;
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
use Symfony\Component\HttpFoundation\Response;
class IndexControllerTest extends WebTestCase
{
public function testIndex()
/*public function testIndex()
{
$client = static::createClient([], []);
$client = static::createClient();
$client->request('GET', '/');
$this->assertSame(Response::HTTP_OK, $client->getResponse()->getStatusCode());
//$this->assertSame(Response::HTTP_OK, $client->getResponse()->getStatusCode());
$this->assertEquals(Response::HTTP_OK, $client->getResponse()->getStatusCode());
}*/
public function testLogin()
{
$client = static::createClient();
$client->request('GET', '/login');
//$this->assertSame(Response::HTTP_OK, $client->getResponse()->getStatusCode());
$this->assertEquals(Response::HTTP_OK, $client->getResponse()->getStatusCode());
}
}

Loading…
Cancel
Save