Finish migration to new option library

This commit is contained in:
2024-07-28 19:45:29 -04:00
parent 4d764cbb3f
commit 3d2bc2a904
13 changed files with 72 additions and 148 deletions

View File

@@ -39,7 +39,7 @@ class PatchTest extends TestCase
{
Patch::byId(ThrowawayDb::TABLE, 'one', ['num_value' => 44]);
$doc = Find::byId(ThrowawayDb::TABLE, 'one', TestDocument::class);
$this->assertTrue($doc->isDefined(), 'There should have been a document returned');
$this->assertTrue($doc->isSome(), 'There should have been a document returned');
$this->assertEquals(44, $doc->get()->num_value, 'The updated document is not correct');
}