Completed
Push — CI ( ee6bd7...0f01dd )
by Adam
22:32
created

AOD_IndexEventTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Coupling/Cohesion

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A testAOD_IndexEvent() 0 17 1
1
<?PHP
2
3
class AOD_IndexEventTest extends PHPUnit_Framework_TestCase {
0 ignored issues
show
Coding Style Compatibility introduced by
PSR1 recommends that each class must be in a namespace of at least one level to avoid collisions.

You can fix this by adding a namespace to your class:

namespace YourVendor;

class YourClass { }

When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.

Loading history...
4
	
5
	public function testAOD_IndexEvent(){
6
		
7
		//execute the contructor and check for the Object type and type attribute
8
		$aod_indexEvent = new AOD_IndexEvent();
9
		$this->assertInstanceOf('AOD_IndexEvent',$aod_indexEvent);
10
		$this->assertInstanceOf('Basic',$aod_indexEvent);
11
		$this->assertInstanceOf('SugarBean',$aod_indexEvent);
12
		
13
		$this->assertAttributeEquals('AOD_IndexEvent', 'module_dir', $aod_indexEvent);
14
		$this->assertAttributeEquals('AOD_IndexEvent', 'object_name', $aod_indexEvent);
15
		$this->assertAttributeEquals('aod_indexevent', 'table_name', $aod_indexEvent);
16
		$this->assertAttributeEquals(true, 'new_schema', $aod_indexEvent);
17
		$this->assertAttributeEquals(true, 'disable_row_level_security', $aod_indexEvent);
18
		$this->assertAttributeEquals(false, 'importable', $aod_indexEvent);
19
		$this->assertAttributeEquals(false, 'tracker_visibility', $aod_indexEvent);
20
		
21
	}
22
	
23
}
24
?>