group = new Group(); } /** * @group module */ #[\PHPUnit\Framework\Attributes\TestDox('The group has the expected default values after initialization')] public function testDefault() : void { self::assertEquals((new \DateTime('now'))->format('Y-m-d'), $this->group->createdAt->format('Y-m-d')); self::assertEquals(0, $this->group->createdBy->id); self::assertEquals('', $this->group->descriptionRaw); self::assertEquals([], $this->group->getAccounts()); } /** * @group module */ #[\PHPUnit\Framework\Attributes\TestDox('The description can be set and returned')] public function testDescriptionInputOutput() : void { $this->group->descriptionRaw = 'Some test'; self::assertEquals('Some test', $this->group->descriptionRaw); } /** * @group module */ #[\PHPUnit\Framework\Attributes\TestDox('The creator can be set and returned')] public function testCreatorInputOutput() : void { $this->group->createdBy = new NullAccount(3); self::assertEquals(3, $this->group->createdBy->id); } }