mirror of
https://github.com/archtechx/laravel-tips.git
synced 2025-12-12 13:24:03 +00:00
Fix content, add command, update readme
This commit is contained in:
parent
3c3a5fcfd9
commit
69d86147d7
12 changed files with 70 additions and 35 deletions
12
content/tips/create-a-using-helper-in-pest.md
Normal file
12
content/tips/create-a-using-helper-in-pest.md
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
---
|
||||
title: 'Another pest tip: Create a using() helper to get perfect IDE support on $this calls inside your tests'
|
||||
tweet_id: '1426219050250772482'
|
||||
thread_slug: 'Pest Tips'
|
||||
author_username: archtechx
|
||||
images:
|
||||
- 'https://pbs.twimg.com/media/E8ryqTuWEAQT-1H.jpg'
|
||||
created_at: 2021-08-16T19:07:26+02:00
|
||||
slug: create-a-using-helper-in-pest
|
||||
---
|
||||
|
||||
Out of the box, @pestphp has amazing IDE support for the expect()->toBe() syntax, but sometimes you need to use $this — usually for things like HTTP calls.
|
||||
|
|
@ -1,11 +0,0 @@
|
|||
---
|
||||
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.
|
||||
|
|
@ -5,8 +5,7 @@ thread_slug: pest-tips
|
|||
author_username: archtechx
|
||||
images:
|
||||
- https://pbs.twimg.com/media/E8mO3a5VEAAsjr1.jpg
|
||||
|
||||
created_at: 2021-08-16T19:09:22+02:00
|
||||
created_at: 2021-08-16T19:07:22+02:00
|
||||
slug: create-helper-functions-for-creating-models-in-tests-using-factories
|
||||
---
|
||||
For example:
|
||||
|
|
|
|||
|
|
@ -1,12 +0,0 @@
|
|||
---
|
||||
title: 'Disable Livewire polling when an element is hidden'
|
||||
tweet_id: '1383079668358725636'
|
||||
thread_slug: ''
|
||||
author_username: abrardev99
|
||||
images:
|
||||
- 'https://i.ibb.co/zZ7rNn8/Livewire-polling.png'
|
||||
created_at: 2021-04-16T17:20:27+02:00
|
||||
slug: disable-livewire-polling-when-an-element-is-hidden
|
||||
---
|
||||
|
||||
Livewire (v2.4.3) landed a new polling modifier that lets you limit polling when an element is not visible in the current viewport.
|
||||
Loading…
Add table
Add a link
Reference in a new issue