. */ declare(strict_types=1); namespace Fisharebest\Webtrees; /** * Test harness for the class Note * * @covers \Fisharebest\Webtrees\Note */ class NoteTest extends TestCase { protected static bool $uses_database = true; /** * Test that the class exists * * @return void */ public function testClassExists(): void { self::assertTrue(class_exists(Note::class)); } public function testNoteName(): void { $tree = $this->createStub(Tree::class); $note = new Note('X123', "0 @X123@ NOTE 1\n1 CONT\n1 CONT 2\n1 CONT 3\n1 CONT 4", null, $tree); self::assertSame('1', $note->fullName()); } }