You are here

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

File

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

Class

DbConnectionsTest

Namespace

Auth0\Tests\API\Authentication

Code

public function testChangePassword() {
  $env = self::getEnv();
  $api = new Authentication($env['DOMAIN'], $env['APP_CLIENT_ID']);
  $email = $this->email;
  $connection = $this->connection;
  $response = $api
    ->dbconnections_change_password($email, $connection);
  $this
    ->assertNotEmpty($response);
  $this
    ->assertContains('email', $response);
}