Skip to content

Conversation

@phongtt-1837
Copy link

@phongtt-1837 phongtt-1837 commented May 2, 2021

Ex2:
image
image

Ex3:
image
image

Ex8:
image
image

Product::OTHER_TYPE => 1,
];
$result = $this->productService->calculateDiscount($totalProducts);
$this->assertEquals($result, 0);

Choose a reason for hiding this comment

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

sao chỗ này k gọi constant như này mà lại truyền 0 vào em ơi $this->productService::CRAVAT_WHITE_SHIRT_DISCOUNT

Copy link
Author

Choose a reason for hiding this comment

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

Không có constant value = 0 đâu anh

@phongtt-1837 phongtt-1837 force-pushed the U3-PhongTT-Exercises_2_3_8 branch from 75fc4de to 1750d08 Compare May 10, 2021 14:11
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.

2 participants