Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 5 additions & 12 deletions src/app/User/Tests/User_RegisterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,7 @@ protected function refresh()
}
}

/**
* @test
* @testdox User registration test successfully (some properties are null)
*/
public function test1(): void
public function test_register_user_with_properties_nullable(): void
{
$request = [
'first_name' => 'Cristiano',
Expand All @@ -48,17 +44,14 @@ public function test1(): void

$response = $this
->postJson(
'api/user/register',
'api/users/register',
$request
);

$this->assertEquals(201, $response->getStatusCode());
}

/**
* @test
* @testdox User registration test with invalid data (all properties are requested)
*/
public function test2(): void
public function test_failed_with_invalid_data(): void
{
$request = [
'first_name' => 'Lionel',
Expand All @@ -73,7 +66,7 @@ public function test2(): void

$response = $this
->postJson(
'api/user/register',
'api/users/register',
$request
);

Expand Down