13.
Filtrar los dinos hambrientos
Keep on Learning!
If you liked what you've learned so far, dive in! Subscribe to get access to this tutorial plus video, code and script downloads.
If you liked what you've learned so far, dive in! Subscribe to get access to this tutorial plus video, code and script downloads.
Whoops, an error! Please, try again later.
2 Comments
Hi, one question.
When we rename de method to
testIsAcceptingVisitorsBasedOnHealthStatus()I think the data provider must add¿Why? Because with this state is accepting visitors (as says de method)
Hey Jesus,
Actually, probably the reverse :) We do want to test cases with
HealthStatus::SICKandHealthStatus::HUNGRYhere, so probably the better test name would be totestIsNotAcceptingVisitorsBasedOnHealthStatus()... but it's minor and the current name technically also good because we made this test name kind of generic, i.e. saying in general here. The actual "value" of the expected visitor status should is passed as the 2nd argument and either true or false base on the given status.I hope this clarify things for you :)
Cheers!
"Houston: no signs of life"
Start the conversation!