expect($author)
->toBeInstanceOf(Author::class)
->and($author->getId())->toBe($authorId)
->and($author->getName())->toBe('Francisco B.')
->and($author->getEmail())->toBe('francisco.b@example.com')
->and($author->getBio())->toBe('A passionate laravel developer')
->and($author->getWebsite())->toBe('https://pinkary.com')
->and($author->getSocialLinks())->toBe(['twitter' => 'francisco.b', 'facebook' => 'francisco.b'])
->and($author->getFeaturedImage())->toBe($featuredImage)
->and($author->getCreatedBy())->toBe($createdBy)
->and($author->getLastUpdatedBy())->toBe($createdBy)
->and($author->getCreatedAt())->toBeInstanceOf(DateTimeImmutable::class)
->and($author->getLastUpdatedAt())->toBeInstanceOf(DateTimeImmutable::class);
Love Pest