mirror of
https://github.com/elyby/accounts.git
synced 2025-05-31 14:11:46 +05:30
Get rid of mockery library. Still have some troubles with functional tests for api
This commit is contained in:
@ -56,7 +56,7 @@ class OauthClientForm {
|
||||
public function delete(): bool {
|
||||
$transaction = Yii::$app->db->beginTransaction();
|
||||
|
||||
$client = $this->client;
|
||||
$client = $this->getClient();
|
||||
$client->is_deleted = true;
|
||||
Assert::true($client->save(), 'Cannot update oauth client');
|
||||
|
||||
@ -70,7 +70,7 @@ class OauthClientForm {
|
||||
public function reset(bool $regenerateSecret = false): bool {
|
||||
$transaction = Yii::$app->db->beginTransaction();
|
||||
|
||||
$client = $this->client;
|
||||
$client = $this->getClient();
|
||||
if ($regenerateSecret) {
|
||||
$client->generateSecret();
|
||||
Assert::true($client->save(), 'Cannot update oauth client');
|
||||
|
Reference in New Issue
Block a user