-
Notifications
You must be signed in to change notification settings - Fork 59
[LuatVD] Create UT for Ex3 -> Ex7 #30
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?
[LuatVD] Create UT for Ex3 -> Ex7 #30
Conversation
| public function testIndex() | ||
| { | ||
| $response = $this->get(action([Exercise05Controller::class, 'index'])); | ||
| $response->assertViewIs('exercise05::index'); |
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.
nên check thêm các variable được truyền vào view nữa thì tốt hơn e ạ
| parent::setUp(); // TODO: Change the autogenerated stub | ||
| } | ||
|
|
||
| public function testIndex() |
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.
Tên function nên thể hiện được phục vụ test case nào và expect của test case của test case đó
VÍ dụ ở đây:
test_index_return_view_success
| * | ||
| * @dataProvider providerDataStore | ||
| */ | ||
|
|
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.
remove blank line e ơi :D
Purpose/Notes
Screenshot
Checklist (*)