Replace custom aud and ely-scopes JWT claims with its public analogues

This commit is contained in:
ErickSkrauch
2019-12-13 13:55:09 +03:00
parent 274d56aa40
commit a8e20a9775
8 changed files with 104 additions and 33 deletions

View File

@@ -112,11 +112,14 @@ class RegistrationFormTest extends TestCase {
])
->one();
$this->assertInstanceOf(EmailActivation::class, $activation, 'email activation code exists in database');
$this->assertTrue(UsernameHistory::find()->andWhere([
'username' => $account->username,
'account_id' => $account->id,
'applied_in' => $account->created_at,
])->exists(), 'username history record exists in database');
$this->assertTrue(
UsernameHistory::find()
->andWhere(['username' => $account->username])
->andWhere(['account_id' => $account->id])
->andWhere(['>=', 'applied_in', $account->created_at])
->exists(),
'username history record exists in database'
);
/** @var SendRegistrationEmail $job */
$job = $this->tester->grabLastQueuedJob();