format('Y-m-d'), $group->getCreatedAt()->format('Y-m-d')); self::assertEquals(0, $group->getCreatedBy()->getId()); self::assertEquals('', $group->getDescriptionRaw()); self::assertEquals([], $group->getAccounts()); } /** * @testdox The description can be set and returned * @covers Modules\Admin\Models\Group * @group module */ public function testDescriptionInputOutput() : void { $group = new Group(); $group->setDescriptionRaw('Some test'); self::assertEquals('Some test', $group->getDescriptionRaw()); } /** * @testdox The creator can be set and returned * @covers Modules\Admin\Models\Group * @group module */ public function testCreatorInputOutput() : void { $group = new Group(); $group->setCreatedBy(new NullAccount(3)); self::assertEquals(3, $group->getCreatedBy()->getId()); } }