185 search results
Learn APIs
API Platform 3 Part 2: Security for your Treasures
…But that's way too much work. Instead, add one more trait to our test class: use ResetDatabase: This comes from Foundry: the library we've been using to create dummy fixtures via the factory classes. ResetDatabase is amazing. It automatically makes sure that the…
Pro Testing
PHPUnit: Integration Testing with Live Services
…created the $lockDown variable through Foundry, it's wrapped in a Proxy. One of the main features of a Proxy is called "auto-refreshing". Each time you access a property or call a method on your entity, behind the scenes, Foundry queries for the latest…
Learn Symfony 6
Upgrading & What's New in Symfony 6!
…fixed all of the conflicts... and commit! Now, dear friends, we are on the last update. It's zenstruck/foundry. This is an easy one. Run: git status It is, once again, environment configuration going into a main file. So let's commit that. And..…
API Platform 3 Part 3: Custom Resources
… At the end of the test, say NotificationFactory - that's a Foundry factory that I created, ::repository() - to get a repository helper - then ->assert()->count(1). With Foundry, our database is always empty at the start of a test: so checking for 1 row is…
Learn Symfony 5
Doctrine, Symfony & the Database
…especially once you have database relationships where objects are linked to other objects... these classes can get ugly fast. And they're not much fun to write. So, next: let's use a shiny new library called Foundry to create numerous, random, rich dummy data.
Learn Symfony
Upgrading to Symfony 8
PHP 8.4 & Recipe Updates
Doctrine, Symfony 6 & the Database
Foundry: Fixtures You'll Love
Lemon Squeezy Payment Processor
Writing an Integrational Test for Webhooks
Resetting the Database
Custom Resource State Processor
API Platform 2 Part 3: Custom Resources
App & Test Setup
Allow Admin Users to Edit any Treasure
Symfony 5: Mastering Doctrine Relations
Foundry: Always Pass a Factory Instance to a Relation
Foundry Tricks
API Platform 2 Part 1: Serious RESTful APIs
Symfony Security: The Basics
Creating the User Class
Whoops, an error! Please, try again later.