-
Notifications
You must be signed in to change notification settings - Fork 59
[EUV2][HuuHV] Create UT for Ex3 to Ex7 #33
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
base: master
Are you sure you want to change the base?
[EUV2][HuuHV] Create UT for Ex3 to Ex7 #33
Conversation
| /** | ||
| * @dataProvider inputData | ||
| */ | ||
| public function testCalculate($time, $data) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Name của function nên clear chút nữa ạ
| $this->assertEquals([ | ||
| 'bill' => 'required|integer|min:0', | ||
| 'has_watch' => 'nullable|boolean', | ||
| ], $request->rules()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Viết như này ko sai, nhưng không khuyến khích a ạ
https://sun-unit-test-training.github.io/php-testing-guideline/laravel/03-controller/#unit-test
|
|
||
| function handleDiscountData() | ||
| { | ||
| /*return [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mấy cái comment này ko dùng thì xóa đi thôi a
Purpose/Notes
Screenshot
Checklist (*)