You are here

protected function OAuth2ServerAdminTestCase::updateClient in OAuth2 Server 7

Edit a client in the UI.

Parameters

\OAuth2ServerClient $client: The client entity.

array $values: New values.

1 call to OAuth2ServerAdminTestCase::updateClient()
OAuth2ServerAdminTestCase::testEditingClientSecret in tests/oauth2_server.test

File

tests/oauth2_server.test, line 1167
OAuth2 tests.

Class

OAuth2ServerAdminTestCase
Test administration forms.

Code

protected function updateClient(\OAuth2ServerClient $client, array $values) {
  $this
    ->drupalPost('admin/structure/oauth2-servers/manage/' . $client->server . '/clients/' . $client
    ->internalIdentifier() . '/edit', $values, t('Save client'));
}