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

AOP_Case_EventsTest   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 testAOP_Case_Events() 0 17 1
1
<?PHP
2
3
class AOP_Case_EventsTest 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 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
	
23
}
24
?>