Skip to content

Commit

Permalink
LP-102 registration create or store test done
Browse files Browse the repository at this point in the history
  • Loading branch information
mah-shamim committed Oct 13, 2023
1 parent abd919b commit 6c8fe9b
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions tests/Feature/RegistrationTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
<?php

use Illuminate\Support\Str;

use function Pest\Laravel\deleteJson;
use function Pest\Laravel\getJson;
use function Pest\Laravel\postJson;
use function Pest\Laravel\putJson;

test('registration', function () {
postJson('/api/auth/register', [
"name" => "MT TECHNOLOGIES",
"mobile" => "01700000001",
"email" => "[email protected]",
"login_id" => "01700000001",
"pin" => "123456",
"password" => "12345678",
"app_version" => "0.0.1",
"language" => "bd",
"currency" => "BDT",
"father_name" => "MT",
"mother_name" => "TECHNOLOGIES",
"gender" => "male",
"marital_status" => "unmarried",
"occupation" => "service",
"source_of_income" => "salary",
"id_type" => "passport",
"id_no" => "1234567890",
"id_issue_country" => "BANGLADESH",
"id_expired_at" => "2030-12-31",
"id_issue_at" => "2020-01-01",
"date_of_birth" => "1985-02-19",
"permanent_address" => "DHAKA",
"city_id" => "1",
"state_id" => "1",
"country_id" => "18",
"post_code" => "1100",
"present_address" => "DHAKA",
"present_city_id" => "1",
"present_state_id" => "1",
"present_country_id" => "18",
"present_post_code" => "1100",
"nationality" => "BANGLADESHI"
])->dd();
//assertStatus(201);
});

0 comments on commit 6c8fe9b

Please sign in to comment.