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

AOD_IndexEventTest::testAOD_IndexEvent()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 17
Code Lines 12

Duplication

Lines 0
Ratio 0 %
Metric Value
dl 0
loc 17
rs 9.4285
cc 1
eloc 12
nc 1
nop 0
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
?>