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

[Behat][Promotion] Removed softdeletable from Promotion #4401

Merged
merged 3 commits into from
Mar 16, 2016

Conversation

NoResponseMate
Copy link
Contributor

Q A
Bug fix? yes
New feature? no
BC breaks? yes
Deprecations? no
Related tickets partially #4140
License MIT
Doc PR -

Based on #4400

$this->itemQuantityModifier->modify($item, 1);

$promotion->setUsed(1);
$order->addPromotion($promotion);
Copy link
Contributor

Choose a reason for hiding this comment

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

The promotion should be attached by orderRecalculator

@NoResponseMate NoResponseMate force-pushed the harden-promotion branch 2 times, most recently from ac4b91f to 988f1de Compare March 9, 2016 14:01
@michalmarcinkowski
Copy link
Contributor

This should fix #1799.

@michalmarcinkowski michalmarcinkowski mentioned this pull request Mar 9, 2016
11 tasks
@NoResponseMate
Copy link
Contributor Author

Don't think so as I don't even touch that constraint. Seems more like #4047 will fix it by not letting you to delete it if the constraint is present.

/**
* Auto-generated Migration: Please modify to your needs!
*/
class Version20160305115221 extends AbstractMigration
Copy link
Member

Choose a reason for hiding this comment

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

Why do you have two migrations? Can you make only one?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

One's from the base branch => #4400

Copy link
Member

Choose a reason for hiding this comment

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

👍

@michalmarcinkowski
Copy link
Contributor

@NeverResponse I missed the fact that this scenario is only implemented at the domain level :)

public function iShouldBeNotifiedOfFailure()
{
expect($this->sharedStorage->get('last_exception'))
->toThrow(ForeignKeyConstraintViolationException::class)
Copy link
Contributor

Choose a reason for hiding this comment

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

toBeInstanceOf?

@michalmarcinkowski
Copy link
Contributor

Rebase needed :)

pjedrzejewski pushed a commit that referenced this pull request Mar 16, 2016
[Behat][Promotion] Removed softdeletable from Promotion
@pjedrzejewski pjedrzejewski merged commit 4e9462c into Sylius:master Mar 16, 2016
@pjedrzejewski
Copy link
Member

Thanks Jasiek! 👍

@NoResponseMate NoResponseMate deleted the harden-promotion branch March 21, 2016 08:03
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

5 participants