laravel-best-practices icon indicating copy to clipboard operation
laravel-best-practices copied to clipboard

Change test case methods to snake_case and mention Pest support

Open JohnnyWalkerDigital opened this issue 1 year ago • 4 comments

Update naming convention to match official Laravel documentation. (These "best practices" are currently out-of-step with modern Laravel standards.)

Reasoning:

JohnnyWalkerDigital avatar May 19 '23 11:05 JohnnyWalkerDigital

@alexeymezenin You seem to be engaging with this repo again... How about bringing it up to speed with current Laravel standards?

JohnnyWalkerDigital avatar Oct 24 '23 17:10 JohnnyWalkerDigital

Snake case should be used in tests regardless Laravel.

It differs from regular methods and force developer to pay extreme attention to those. It differs from regular (app) methods that should be written following PSR standards. Personally, I comply/obey 100% PSR standards which means I use camelCase for methods, but for testing methods I use snake_case.

Tpojka avatar Oct 24 '23 17:10 Tpojka