getSlug()); self::assertNull($note->getId()); self::assertNull($note->getNotes()); self::assertNull($note->getUpdatedAt()); } public function testTouchStampsUpdatedAt(): void { $note = new ChapterNote('overview'); $note->setNotes("The party told Maud the cottage was haunted."); $note->touch(); self::assertNotNull($note->getUpdatedAt()); self::assertSame("The party told Maud the cottage was haunted.", $note->getNotes()); } public function testNotesCanBeClearedBackToNull(): void { $note = (new ChapterNote('overview'))->setNotes('something'); $note->setNotes(null); self::assertNull($note->getNotes()); } }