Skip to content

[phpspec-2-phpunit] migration of tests (Doctrine)#928

Merged
GSadee merged 4 commits intoSylius:1.12from
loic425:phpunit-2-phpspec/first-pr
Sep 23, 2024
Merged

[phpspec-2-phpunit] migration of tests (Doctrine)#928
GSadee merged 4 commits intoSylius:1.12from
loic425:phpunit-2-phpspec/first-pr

Conversation

@loic425
Copy link
Copy Markdown
Member

@loic425 loic425 commented Sep 10, 2024

Q A
Bug fix? no
New feature? no
BC breaks? no
Deprecations? no
Related tickets
License MIT

First migrated tests using chatGPT.

@loic425 loic425 requested a review from a team as a code owner September 10, 2024 07:47
@loic425 loic425 changed the title [phpspec-2-phpunit] First migrated tests [phpspec-2-phpunit] First migrated tests (Doctrine) Sep 10, 2024
@loic425 loic425 force-pushed the phpunit-2-phpspec/first-pr branch from f0b6c3f to a2a6146 Compare September 10, 2024 08:30
@loic425 loic425 changed the title [phpspec-2-phpunit] First migrated tests (Doctrine) [phpspec-2-phpunit] migration of tests (Doctrine) Sep 10, 2024
/** @var ObjectProphecy<ResourceInterface> $resource */
$resource = $this->prophesize(ResourceInterface::class);

$this->expectException(\InvalidArgumentException::class);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Outside of scope of current PR, but there should be specialized exception (Not global \InvalidArgumentException) thrown by the repository.

Co-authored-by: Dmitri Perunov <diimpp@gmail.com>
@loic425 loic425 mentioned this pull request Sep 12, 2024
29 tasks
@GSadee GSadee added the Maintenance Configurations, READMEs, releases, etc. label Sep 23, 2024
@GSadee GSadee merged commit ca94223 into Sylius:1.12 Sep 23, 2024
@loic425 loic425 deleted the phpunit-2-phpspec/first-pr branch September 24, 2024 15:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Maintenance Configurations, READMEs, releases, etc.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants