Created
December 19, 2018 22:39
-
-
Save devmsh/95772563085533c3707f7b426b934a98 to your computer and use it in GitHub Desktop.
DeleteNotVerifiedUsersTest.php
This file contains hidden or 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 | |
| class DeleteNotVerifiedUsersTest extends TestCase | |
| { | |
| public function test_can_delete_unverified_user_with_specific_mobile_number() | |
| { | |
| $unverifiedUser = $this->newUnVerifiedUser(["mobile" => "970567940999"]); | |
| $userMobile = factory(UserMobile::class)->create(["mobile" => "970567940999"]); | |
| $event = new DeleteNotVerifiedUsers($userMobile); | |
| (new DeleteNotVerifiedUsers())->handle($event); | |
| $this->assertNull($unverifiedUser->fresh()); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment