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

FIX continue browsing button not working correctly #35

Merged
merged 1 commit into from
Jun 6, 2017
Merged

Conversation

fspringveldt
Copy link
Contributor

Fixes #32.

{
return Director::absoluteBaseURL();
}
}
Copy link
Contributor

Choose a reason for hiding this comment

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

what's the semantic difference between a DMSDocumentCartController and a DMSCartController? If this is intended to be a base controller for both maybe call it DMSCartAbstractController or something that indicates that?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good suggestion. Yes, it is intended as a base controller. Will rename as suggested.

{
return Director::absoluteBaseURL();
}
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we have some tests for this class?

{
$this->controller = DMSCheckoutController::create();
$this->assertSame('checkout', $this->controller->Link());
$this->assertSame('checkout/complete', $this->controller->Link('complete'));
Copy link
Contributor

Choose a reason for hiding this comment

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

This behaviour belongs in the checkout controller test class - this test class should test the logic in the abstract controller

Copy link
Contributor

@sachajudd sachajudd left a comment

Choose a reason for hiding this comment

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

When 'updating' the cart items the 'continue browsing' link should go back to the documents not back into the 'checkout' page.

Copy link
Contributor

@robbieaverill robbieaverill left a comment

Choose a reason for hiding this comment

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

Just @sachajudd's comments. Code wise this is good.

{
$this->assertSame('documentcart', $this->controller->Link());
$this->assertSame('documentcart/view', $this->controller->Link('view'));
}
Copy link
Contributor

Choose a reason for hiding this comment

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

This change seems redundant, but is just copy pasting. Please avoid in future.

@sachajudd sachajudd merged commit 824833f into master Jun 6, 2017
@sachajudd sachajudd deleted the issue/32 branch June 6, 2017 04:04
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

3 participants