1 | <?php |
||
8 | class ContractTest extends TestCase |
||
9 | { |
||
10 | |||
11 | /** |
||
12 | * @var Contract |
||
13 | */ |
||
14 | private $contract; |
||
15 | |||
16 | protected function setUp() |
||
17 | { |
||
18 | $this->contract = new Contract(); |
||
19 | } |
||
20 | |||
21 | protected function tearDown() |
||
22 | { |
||
23 | $this->contract = null; |
||
24 | } |
||
25 | |||
26 | /** |
||
27 | * @expectedException \Brownie\BpmOnline\Exception\ValidateException |
||
28 | */ |
||
29 | public function testValidateException() |
||
30 | { |
||
31 | $this->contract->validate(); |
||
32 | } |
||
33 | |||
34 | public function testSetGetRootSchemaName() |
||
35 | { |
||
36 | $this->contract->setRootSchemaName('TestRootSchemaName'); |
||
37 | $this->assertEquals('TestRootSchemaName', $this->contract->getRootSchemaName()); |
||
38 | } |
||
39 | |||
40 | public function testSetGetOperationType() |
||
41 | { |
||
42 | $this->contract->setOperationType('TestOperationType'); |
||
43 | $this->assertEquals('TestOperationType', $this->contract->getOperationType()); |
||
44 | } |
||
45 | |||
46 | public function testSetGetContractType() |
||
47 | { |
||
48 | $this->contract->setContractType('TestContractType'); |
||
49 | $this->assertEquals('TestContractType', $this->contract->getContractType()); |
||
50 | } |
||
51 | } |
||
52 |