1
0
Fork 0
mirror of https://github.com/archtechx/laravel-tips.git synced 2025-12-11 21:14:02 +00:00

Merge pull request #7 from lukinovec/pest-tips

Add Pest related tips
This commit is contained in:
Samuel Štancl 2021-08-24 18:57:54 +02:00 committed by GitHub
commit 3c3a5fcfd9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 48 additions and 0 deletions

View file

@ -0,0 +1,5 @@
---
username: archtechx
name: 'ARCHTECH'
avatar: 'https://pbs.twimg.com/profile_images/1393303364390227974/uaP8Hoq1_normal.jpg'
---

View file

@ -0,0 +1,7 @@
---
slug: pest-tips
title: 'Pest Tips'
tweet_id: 1427310302656438274
author_username: archtechx
created_at: 2021-08-16T19:09:23+02:00
---

View file

@ -0,0 +1,11 @@
---
title: 'Create a using() helper'
tweet_id: 1426219050250772482
thread_slug: pest-tips
author_username: archtechx
images:
- https://pbs.twimg.com/media/E8ryqTuWEAQT-1H.jpg
created_at: 2021-08-16T19:09:24+02:00
slug: create-a-using-helper
---
Create a using() helper to get perfect IDE support on $this calls inside your tests.

View file

@ -0,0 +1,14 @@
---
title: 'Create helper functions for creating models in tests using factories'
tweet_id: 1425833852480626694
thread_slug: pest-tips
author_username: archtechx
images:
- https://pbs.twimg.com/media/E8mO3a5VEAAsjr1.jpg
created_at: 2021-08-16T19:09:22+02:00
slug: create-helper-functions-for-creating-models-in-tests-using-factories
---
For example:
- invoice() to create an Invoice model
- product() to create a Product model

View file

@ -0,0 +1,11 @@
---
title: 'Use please() instead of using using()'
tweet_id: 1426235640509865986
thread_slug: pest-tips
author_username: archtechx
images:
- https://pbs.twimg.com/media/E8sBPPaXoAYJ9s6.png
created_at: 2021-08-16T19:09:26+02:00
slug: use-please-instead-of-using-using
---
Even nicer than using().