Part 19 - Implement Codeception Data Providers [How to use TDD to build a REST API in Laravel 6] @StudyStreamPlus
Part 19 - Implement Codeception Data Providers [How to use TDD to build a REST API in Laravel 6]  @StudyStreamPlus
Uploaded October 2019 | Updated December 2026, 14 minutes ago
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:
youtu.be/Je224_lLSsY

Watch this course in full here:
youtube.com/playlist?list=PLrIm-p2rpV0F-rl4NPjNslEmW-D83AHOr

Laravel Tutorials:
youtube.com/playlist?list=PLrIm-p2rpV0FmbeNsYYh_4Fcb4Ibq29tJ

2 - 3 min Developer Quick Tips Series:
youtube.com/playlist?list=PLrIm-p2rpV0F6yyK99B9TU6yVhnPdzelBWatch this course in full here:
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]Python CSV Manipulation | How to read, parse, write CSV file to dictionary | Tutorial3min Quick Tip - How to use Conditional Debugging in PhpStorm 2019 Tutorial2min Quick Tip - How to generate code in PhpStorm TutorialHow to code faster with PhpStorm - Tutorial - Part 1How to create a seamless pattern in PhotoShop CC - TutorialGCSE Computer Science Python #2 - Inputs, Outputs and OperatorsGCSE Computer Science Python #1 - Variables, Constants and AssignmentsAgile Scrum Training Part 2 - Roles, Artifacts and MeetingsGCSE Computer Science Python #4 - Lists and DictionariesPart 17 - Slight refactor and clean up [How to use TDD to build a REST API in Laravel 6]PHPUnit within PhpStorm - Setup
StudyStream+ |

Part 19 - Implement Codeception Data Providers [How to use TDD to build a REST API in Laravel 6]

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER