protected function OAuth2ServerAdminTest::updateClient in OAuth2 Server 2.0.x
Same name and namespace in other branches
- 8 tests/src/Functional/OAuth2ServerAdminTest.php \Drupal\Tests\oauth2_server\Functional\OAuth2ServerAdminTest::updateClient()
Edit a client in the UI.
Parameters
\Drupal\oauth2_server\ClientInterface $client: The client entity.
array $values: New values.
1 call to OAuth2ServerAdminTest::updateClient()
- OAuth2ServerAdminTest::testEditingClientSecret in tests/
src/ Functional/ OAuth2ServerAdminTest.php - Test editing client secret.
File
- tests/
src/ Functional/ OAuth2ServerAdminTest.php, line 102
Class
- OAuth2ServerAdminTest
- The OAuth2 Server admin test case.
Namespace
Drupal\Tests\oauth2_server\FunctionalCode
protected function updateClient(ClientInterface $client, array $values) {
$edit_uri = new Url('entity.oauth2_server.clients.edit_form', [
'oauth2_server' => $client
->getServer()
->id(),
'oauth2_server_client' => $client
->id(),
]);
$this
->drupalPostForm($edit_uri, $values, t('Save client'));
}