Created
December 22, 2022 08:21
-
-
Save sohag-pro/66b21ed743b04b1f0380d1275576a924 to your computer and use it in GitHub Desktop.
Laravel Testing Commands and Tips
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# testing env | |
.env.testing | |
# In memory sqlite db | |
DB_CONNECTION=sqlite | |
DB_DATABASE=:memory: # in memory sqlite db | |
# Look for some text | |
$this->assertSee('text'); | |
# Look for some text that should not be present | |
$this->assertDontSee('text'); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment