fix tests

This commit is contained in:
Dennis Eichhorn 2023-09-23 12:50:40 +00:00
parent 0c132806c3
commit 397ea1e26b
2 changed files with 2 additions and 12 deletions

View File

@ -45,7 +45,7 @@ final class ContractMapper extends DataMapperFactory
public const COLUMNS = [ public const COLUMNS = [
'contractmgmt_contract_id' => ['name' => 'contractmgmt_contract_id', 'type' => 'int', 'internal' => 'id'], 'contractmgmt_contract_id' => ['name' => 'contractmgmt_contract_id', 'type' => 'int', 'internal' => 'id'],
'contractmgmt_contract_parent' => ['name' => 'contractmgmt_contract_parent', 'type' => 'int', 'internal' => 'parent'], '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_title' => ['name' => 'contractmgmt_contract_title', 'type' => 'string', 'internal' => 'title', 'autocomplete' => true],
'contractmgmt_contract_description' => ['name' => 'contractmgmt_contract_description', 'type' => 'string', 'internal' => 'description'], 'contractmgmt_contract_description' => ['name' => 'contractmgmt_contract_description', 'type' => 'string', 'internal' => 'description'],
'contractmgmt_contract_account' => ['name' => 'contractmgmt_contract_account', 'type' => 'int', 'internal' => 'account'], 'contractmgmt_contract_account' => ['name' => 'contractmgmt_contract_account', 'type' => 'int', 'internal' => 'account'],

View File

@ -43,16 +43,6 @@ final class ContractTest extends \PHPUnit\Framework\TestCase
self::assertEquals([], $this->contract->files); 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 * @covers Modules\ContractManagement\Models\Contract
* @group module * @group module
@ -78,7 +68,7 @@ final class ContractTest extends \PHPUnit\Framework\TestCase
'warning' => 2, 'warning' => 2,
'responsible' => null, 'responsible' => null,
'costs' => null, 'costs' => null,
'type' => new ContractType(), 'type' => null,
], ],
$serialized $serialized
); );