'twitter', 'username' => 'my_handle', 'email' => 'handle@example.com', 'password' => 'plain-text-password', 'type' => 'post', ]); expect($account->fresh()) ->network->toBe('twitter') ->username->toBe('my_handle') ->email->toBe('handle@example.com') ->password->toBe('plain-text-password') ->type->toBe('post'); }); test('a social account can be created with a null type', function () { $account = SocialAccount::create([ 'network' => 'instagram', 'username' => 'my_handle', 'email' => 'handle@example.com', 'password' => 'plain-text-password', ]); expect($account->fresh()->type)->toBeNull(); });