You are here

public function DbConnectionsTest::testSignup in Auth0 Single Sign On 8.2

File

vendor/auth0/auth0-php/tests/API/Authentication/DbConnectionsTest.php, line 19

Class

DbConnectionsTest

Namespace

Auth0\Tests\API\Authentication

Code

public function testSignup() {
  $env = self::getEnv();
  $api = new Authentication($env['DOMAIN'], $env['APP_CLIENT_ID']);
  $email = $this->email;
  $password = 'Bqn8LEsu68p38TmFvsWW';
  $connection = $this->connection;
  $response = $api
    ->dbconnections_signup($email, $password, $connection);
  $this
    ->assertArrayHasKey('_id', $response);
  $this
    ->assertArrayHasKey('email_verified', $response);
  $this
    ->assertArrayHasKey('email', $response);
  $this
    ->assertEquals($email, $response['email']);
}