Fix integration tests to properly account for the rule position in the API

This commit is contained in:
Dane Everitt
2020-08-27 21:19:01 -07:00
parent f293c73977
commit 1e19e02398
9 changed files with 14 additions and 13 deletions

View File

@@ -64,7 +64,8 @@ class TwoFactorControllerTest extends ClientApiIntegrationTestCase
]);
$response->assertStatus(Response::HTTP_UNPROCESSABLE_ENTITY);
$response->assertJsonPath('errors.0.code', 'required');
$response->assertJsonPath('errors.0.code', 'ValidationException');
$response->assertJsonPath('errors.0.meta.rule', 'required');
}
/**