Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add tests to Domain\Preference\Preference.php #89

Conversation

marcelo-lipienski
Copy link
Contributor

No description provided.


public function testIdNotGiven(): void {
$this->assertNull($this->preference->getId());
$this->assertSame(null, $this->preference->getId());
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

..?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pq assertNull e dps assertSame? (o segundo tá errado hehe)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Errado não está, mas também não está certo hahaha

(-) Remove unnecessary assertion when expected value is null
(-) Remove unused variable when destructuring at the test consumer,
    the array containing test data from the test producer.
@flavioheleno flavioheleno merged commit 0b3d163 into package-health:develop Jul 13, 2022
@marcelo-lipienski marcelo-lipienski deleted the add-tests-to-preference-class branch July 13, 2022 12:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants