Skip to content

Instantly share code, notes, and snippets.

@devmsh
Created December 19, 2018 22:39
Show Gist options
  • Select an option

  • Save devmsh/95772563085533c3707f7b426b934a98 to your computer and use it in GitHub Desktop.

Select an option

Save devmsh/95772563085533c3707f7b426b934a98 to your computer and use it in GitHub Desktop.
DeleteNotVerifiedUsersTest.php
<?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