/ExampleTest.php Secret
Last active
May 19, 2020 21:50
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
<?php | |
namespace Tests\Feature; | |
use Illuminate\Mail\Events\MessageSending; | |
use Illuminate\Support\Facades\Event; | |
class ExampleTest extends TestCase | |
{ | |
public function testEmailContainsString() | |
{ | |
// Swapping out the event dispatcher for a fake | |
Event::fake([MessageSending::class]); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment