Test Driven Laravel
Introduction, PHPUnit Setup & Books Test Part 1
In this lesson, we are starting a project from scratch including setting up sqlite for testing, initializing Git and writing our first tests to add Books into our library.
Deleting a Record, Asserting Instance Of & Carbon Parse
First of, let's post our project up to Github and then start by implementing the delete sequence for a book. Then let's explore how to parse a date and return a Carbon instance. Finally, let's create a path helper for our book model and refactor.
Implementing a firstOrCreate Author Record With TDD
Let's dig through the code and find a way to create authors on the fly for our books. The idea being that a user could type into a "predictive" box in the UI and get a filtered author's list.
Book Checkout & Book Checkin Flow With TDD
It's time for us to drive out the checkout and checkin functionality for our app. Let's start with the flow of checking out a book and then the flow for checking one out. Let's also handle some edge cases along the way using test driven development to guide us.
Book Checkout & Book Checkin Flow Feature Test With TDD - Part 2
From unit tests into features test. Let's handle the actual endpoints that our app will consume to checkout and checkin some books.
Testing Validation, Importing Vue.js & Tailwind CSS
Let's take care of some last minute validation for our Authors flow and then let's shift our focus to the front-end. First, we remove all remains of Bootstrap and then install Vue and Tailwind CSS. Finally, we get to see all of our code that we've written through TDD be accessible through the browser.