Completed
Push — master ( 67d6bf...156008 )
by Reginaldo
39:41
created

VendaControllerTest   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2
Metric Value
wmc 2
lcom 1
cbo 2
dl 0
loc 18
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setUp() 0 5 1
A testRecoverDataDuringOneWeekToDashboard() 0 5 1
1
<?php
2
3
require(APP . 'Controller/AppController.php');
4
require(APP . 'Controller/VendaController.php');
5
6
/**
7
* VendaControllerTest
8
*/
9
class VendaControllerTest extends PHPUnit_Framework_TestCase
10
{
11
12
	protected $VendaController;
13
14
	public function setUp()
15
	{
16
		$this->VendaController = new VendaController;
17
		parent::setUp();
18
	}
19
20
    public function testRecoverDataDuringOneWeekToDashboard()
21
    {
22
        $data = $this->VendaController->recoverDataToDashboardOneWeek();
23
        $this->assertNotEmpty($data);
24
    }
25
26
}
27