mirror of
https://github.com/Karaka-Management/oms-ContractManagement.git
synced 2026-01-11 09:38:41 +00:00
fix tests
This commit is contained in:
parent
0c132806c3
commit
397ea1e26b
|
|
@ -45,7 +45,7 @@ final class ContractMapper extends DataMapperFactory
|
|||
public const COLUMNS = [
|
||||
'contractmgmt_contract_id' => ['name' => 'contractmgmt_contract_id', 'type' => 'int', 'internal' => 'id'],
|
||||
'contractmgmt_contract_parent' => ['name' => 'contractmgmt_contract_parent', 'type' => 'int', 'internal' => 'parent'],
|
||||
'contractmgmt_contract_template' => ['name' => 'contractmgmt_contract_template', 'type' => 'int', 'internal' => 'isTemplate'],
|
||||
'contractmgmt_contract_template' => ['name' => 'contractmgmt_contract_template', 'type' => 'bool', 'internal' => 'isTemplate'],
|
||||
'contractmgmt_contract_title' => ['name' => 'contractmgmt_contract_title', 'type' => 'string', 'internal' => 'title', 'autocomplete' => true],
|
||||
'contractmgmt_contract_description' => ['name' => 'contractmgmt_contract_description', 'type' => 'string', 'internal' => 'description'],
|
||||
'contractmgmt_contract_account' => ['name' => 'contractmgmt_contract_account', 'type' => 'int', 'internal' => 'account'],
|
||||
|
|
|
|||
|
|
@ -43,16 +43,6 @@ final class ContractTest extends \PHPUnit\Framework\TestCase
|
|||
self::assertEquals([], $this->contract->files);
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Modules\ContractManagement\Models\Contract
|
||||
* @group module
|
||||
*/
|
||||
public function testMediaInputOutput() : void
|
||||
{
|
||||
$this->contract->addFile(new Media());
|
||||
self::assertCount(1, $this->contract->files);
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Modules\ContractManagement\Models\Contract
|
||||
* @group module
|
||||
|
|
@ -78,7 +68,7 @@ final class ContractTest extends \PHPUnit\Framework\TestCase
|
|||
'warning' => 2,
|
||||
'responsible' => null,
|
||||
'costs' => null,
|
||||
'type' => new ContractType(),
|
||||
'type' => null,
|
||||
],
|
||||
$serialized
|
||||
);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user