format('Y-m-d'), $group->createdAt->format('Y-m-d')); self::assertEquals(0, $group->createdBy->getId()); self::assertEquals('', $group->descriptionRaw); 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->descriptionRaw = 'Some test'; self::assertEquals('Some test', $group->descriptionRaw); } /** * @testdox The creator can be set and returned * @covers Modules\Admin\Models\Group * @group module */ public function testCreatorInputOutput() : void { $group = new Group(); $group->createdBy = new NullAccount(3); self::assertEquals(3, $group->createdBy->getId()); } }