Code Duplication    Length = 16-19 lines in 2 locations

app/Test/Case/Controller/ApiControllerTest.php 1 location

@@ 19-34 (lines=16) @@
16
        $this->api = new ApiController;
17
    }
18
19
	public function testWishlist()
20
	{
21
		$dados = array(
22
			'nome1' => 'Reginaldo',
23
			'nome2' => 'Luna',
24
			'email' => '[email protected]',
25
			'documento1' => '433.322.038-32',
26
			'documento2' => '35.879.080-2',
27
			'senha' => 'asdf123456',
28
			'data_de_nascimento' => '2014-10-03'
29
		);
30
31
		$result = $this->assertEquals(true, $this->api->wishlist($dados), 'Sim');
32
33
		debug($result);
34
	}
35
36
	public function testSetIdUser()
37
	{

app/Test/Case/Controller/LojaControllerTest.php 1 location

@@ 13-31 (lines=19) @@
10
{
11
	protected $Loja;
12
13
	public function testCreateClienteByLojaController()
14
	{
15
		$this->Loja = new LojaController;
16
		
17
		$data = array(
18
				'nome1' => 'reginaldo',
19
				'nome2' => 'luis',
20
				'email' => '[email protected]',
21
				'documento1' => '123.345.566-89',
22
				'data_de_nascimento' => '1995-03-10',
23
				'ativo' => 1,
24
				'id_usuario' => 23,
25
				'senha' => 'senha123'
26
			);
27
28
29
		$result = $this->Loja->saveClientFromEcommerce($data);
30
		$this->assertEquals(is_numeric($result), true);
31
	}
32
33
	public function testCreateClientByLojaControllerNextCreateAndress()
34
	{