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

AOP_Case_EventsTest::testAOP_Case_Events()   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 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
?>