public function UsersMockedTest::testThatExceptionIsThrownWhenDbConnectionHasNoPassword in Auth0 Single Sign On 8.2
File
- vendor/
auth0/ auth0-php/ tests/ API/ Management/ UsersMockedTest.php, line 157
Class
- UsersMockedTest
- Class UsersMockedTest.
Namespace
Auth0\Tests\API\ManagementCode
public function testThatExceptionIsThrownWhenDbConnectionHasNoPassword() {
$api = new Management(uniqid(), uniqid());
try {
$api
->users()
->create([
'connection' => 'auth0',
'email' => uniqid(),
]);
$exception_message = '';
} catch (\Exception $e) {
$exception_message = $e
->getMessage();
}
$this
->assertContains('Missing required "password" field for "auth0" connection', $exception_message);
}