AgenteControllerTest.php
869 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?php
/**
* Created by PhpStorm.
* User: eduardo
* Date: 18/10/14
* Time: 21:14
*/
namespace Cacic\CommonBundle\Tests\Controller;
use Cacic\CommonBundle\Tests\BaseTestCase;
use Symfony\Component\HttpFoundation\Session;
class AgenteControllerTest extends BaseTestCase {
public function setUp() {
// Load setup from BaseTestCase method
parent::setUp();
// Cria o cliente utilizando autenticação HTTP para o usuário admin padrão
$this->client = static::createClient(
array(),
array(
'PHP_AUTH_USER' => 'admin',
'PHP_AUTH_PW' => '123456',
)
);
$this->container = $this->client->getContainer();
}
public function tearDown() {
// Executa método de limpeza de todos os casos de teste
parent::tearDown();
}
}