Uploaded October 2019 | Updated December 2026, 14 minutes ago
☆☆ ABOUT THIS VIDEO ☆☆
In the third part of the course, Fundamentals of ES6, Michael King teaches us about some new function parameter types. He runs through the new way of using default parameters, and how to use the spread operator.
Fundamentals of ES6 Full Course:
youtube.com/playlist?list=PLrIm-p2rpV0FqN8z8zOjuOL9_inbWWlMK
Laravel Tutorials:
youtube.com/playlist?list=PLrIm-p2rpV0FmbeNsYYh_4Fcb4Ibq29tJ
2 - 3 min Developer Quick Tips Series:
youtube.com/playlist?list=PLrIm-p2rpV0F6yyK99B9TU6yVhnPdzelB
PHP Developer Tutorials:
youtube.com/playlist?list=PLrIm-p2rpV0Fy93MCcC1Co0BuccJk6QqX
☆☆ FOLLOW US ONLINE ☆☆
twitter.com/michaelking0191
LinkedIn: linkedin.com/in/reval-govender-0ba14860
Twitter: twitter.com/RevalGovender
☆☆ SPONSORSHIP ☆☆
Does your company want to sponsor a video? Contact me by twitter or LinkedIn
☆☆ ABOUT THIS VIDEO ☆☆
In the third part of the course, Fundamentals of ES6, Michael King teaches us about some new function parameter types. He runs through the new way of using default parameters, and how to use the spread operator.
Fundamentals of ES6 Full Course:
youtube.com/playlist?list=PLrIm-p2rpV0FqN8z8zOjuOL9_inbWWlMK
Laravel Tutorials:
youtube.com/playlist?list=PLrIm-p2rpV0FmbeNsYYh_4Fcb4Ibq29tJ
2 - 3 min Developer Quick Tips Series:
youtube.com/playlist?list=PLrIm-p2rpV0F6yyK99B9TU6yVhnPdzelB
PHP Developer Tutorials:
youtube.com/playlist?list=PLrIm-p2rpV0Fy93MCcC1Co0BuccJk6QqX
☆☆ FOLLOW US ONLINE ☆☆
twitter.com/michaelking0191
LinkedIn: linkedin.com/in/reval-govender-0ba14860
Twitter: twitter.com/RevalGovender
☆☆ SPONSORSHIP ☆☆
Does your company want to sponsor a video? Contact me by twitter or LinkedIn


![Part 19 - Implement Codeception Data Providers [How to use TDD to build a REST API in Laravel 6]
We know we have other required parameters, but we don’t want to write a test for each one.
We know we are only testing against the Title Attribute. This is where Codeception Data providers come into play.
We can declare our Data Provider as an assertion above our test. We are basically declaring what method we will be using as our data provider. The method will return an array of arrays.
We can then pass this into our test. We will replace the existing constant with the data coming back from our data provider.
When we run our tests, Codeception thinks it has multiple tests rather than the one test we have.
Watch the next video here:
https://youtu.be/Je224_lLSsY
Watch this course in full here:
https://www.youtube.com/playlist?list=PLrIm-p2rpV0F-rl4NPjNslEmW-D83AHOr
Laravel Tutorials:
https://www.youtube.com/playlist?list=PLrIm-p2rpV0FmbeNsYYh_4Fcb4Ibq29tJ
2 - 3 min Developer Quick Tips Series:
https://www.youtube.com/playlist?list=PLrIm-p2rpV0F6yyK99B9TU6yVhnPdzelBWatch this course in full here:
https://www.youtube.com/playlist?list=PLrIm-p2rpV0F-rl4NPjNslEmW-D83AHOr Part 19 - Implement Codeception Data Providers [How to use TDD to build a REST API in Laravel 6]](https://i.ytimg.com/vi/iIrrrUCAM1w/mqdefault.jpg)







