Conditions | 1 |
Paths | 1 |
Total Lines | 17 |
Code Lines | 12 |
Lines | 0 |
Ratio | 0 % |
1 | <?PHP |
||
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 | |||
24 | ?> |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.