account_id = 1; $oauthSession->client_id = 'mock-client'; $oauthSession->revoked_at = 1601504074; $notification = new OAuthSessionRevokedNotification($oauthSession); $this->assertSame('oauth2.session_revoked', $notification::getType()); $this->assertSame([ 'accountId' => 1, 'clientId' => 'mock-client', 'revoked' => '2020-09-30T22:14:34+00:00', ], $notification->getPayloads()); } }