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