Updating Chapter 8 + Demo

This commit is contained in:
Carlos Buenosvinos
2022-03-31 00:24:14 +02:00
parent 41a25c123a
commit 8f9f1c82ba

View File

@@ -88,6 +88,7 @@ final class PostCheepCommandHandlerTest extends TestCase
);
}
//snippet post-cheep-handler-test-testing-events
/** @test */
public function cheepIsPersistedSuccessfully(): void
{
@@ -117,6 +118,7 @@ final class PostCheepCommandHandlerTest extends TestCase
$this->assertSame($authorId, $cheepPosted->authorId());
$this->assertSame($cheepId, $cheepPosted->cheepId());
}
//end-snippet post-cheep-handler-test-testing-events
private function postNewCheep(
string $authorId,
@@ -147,4 +149,4 @@ final class PostCheepCommandHandlerTest extends TestCase
);
}
}
//end-snippet
//end-snippet post-cheep-handler-test