| Conditions | 1 |
| Paths | 1 |
| Total Lines | 17 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| 1 | <?PHP |
||
| 5 | public function testAOP_Case_Events(){ |
||
| 6 | |||
| 7 | //execute the contructor and check for the Object type and type attribute |
||
| 8 | $aopCaseEvents = new AOP_Case_Events(); |
||
| 9 | $this->assertInstanceOf('AOP_Case_Events',$aopCaseEvents); |
||
| 10 | $this->assertInstanceOf('Basic',$aopCaseEvents); |
||
| 11 | $this->assertInstanceOf('SugarBean',$aopCaseEvents); |
||
| 12 | |||
| 13 | $this->assertAttributeEquals('AOP_Case_Events', 'module_dir', $aopCaseEvents); |
||
| 14 | $this->assertAttributeEquals('AOP_Case_Events', 'object_name', $aopCaseEvents); |
||
| 15 | $this->assertAttributeEquals('aop_case_events', 'table_name', $aopCaseEvents); |
||
| 16 | $this->assertAttributeEquals(true, 'new_schema', $aopCaseEvents); |
||
| 17 | $this->assertAttributeEquals(true, 'disable_row_level_security', $aopCaseEvents); |
||
| 18 | $this->assertAttributeEquals(false, 'importable', $aopCaseEvents); |
||
| 19 | $this->assertAttributeEquals(false, 'tracker_visibility', $aopCaseEvents); |
||
| 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.