From 0c132806c340a2adb3976e473bf2250c79ecb1f7 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Sat, 23 Sep 2023 01:36:54 +0000 Subject: [PATCH] fix tests --- tests/Models/ContractTypeTest.php | 72 --------------------------- tests/Models/NullContractTypeTest.php | 42 ---------------- 2 files changed, 114 deletions(-) delete mode 100755 tests/Models/ContractTypeTest.php delete mode 100755 tests/Models/NullContractTypeTest.php diff --git a/tests/Models/ContractTypeTest.php b/tests/Models/ContractTypeTest.php deleted file mode 100755 index 9b9c455..0000000 --- a/tests/Models/ContractTypeTest.php +++ /dev/null @@ -1,72 +0,0 @@ -type = new ContractType(); - } - - /** - * @covers Modules\ContractManagement\Models\ContractType - * @group module - */ - public function testDefault() : void - { - self::assertEquals(0, $this->type->id); - self::assertEquals('', $this->type->getL11n()); - } - - /** - * @covers Modules\ContractManagement\Models\ContractType - * @group module - */ - public function testL11nInputOutput() : void - { - $this->type->setL11n('Test'); - self::assertEquals('Test', $this->type->getL11n()); - - $this->type->setL11n(new BaseStringL11n('NewTest')); - self::assertEquals('NewTest', $this->type->getL11n()); - } - - /** - * @covers Modules\ContractManagement\Models\ContractType - * @group module - */ - public function testSerialize() : void - { - self::assertEquals( - [ - 'id' => 0, - 'l11n' => new BaseStringL11n(), - ], - $this->type->jsonSerialize() - ); - } -} diff --git a/tests/Models/NullContractTypeTest.php b/tests/Models/NullContractTypeTest.php deleted file mode 100755 index fc499b2..0000000 --- a/tests/Models/NullContractTypeTest.php +++ /dev/null @@ -1,42 +0,0 @@ -id); - } -}