| Conditions | 1 |
| Paths | 1 |
| Total Lines | 19 |
| Code Lines | 13 |
| Lines | 19 |
| Ratio | 100 % |
| 1 | <?php |
||
| 13 | View Code Duplication | 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 | |||
| 66 | } |