Avoid usage of not() and add unit tests.
This commit is contained in:
parent
9e8fe55a90
commit
a7f3fb9c38
7 changed files with 58 additions and 6 deletions
|
|
@ -0,0 +1,21 @@
|
|||
/*
|
||||
* Copyright 2025 New Vector Ltd.
|
||||
*
|
||||
* SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial
|
||||
* Please see LICENSE files in the repository root for full details.
|
||||
*/
|
||||
|
||||
package io.element.android.libraries.matrix.test.auth
|
||||
|
||||
import io.element.android.libraries.matrix.api.auth.MatrixHomeServerDetails
|
||||
import io.element.android.libraries.matrix.test.A_HOMESERVER_URL
|
||||
|
||||
fun aMatrixHomeServerDetails(
|
||||
url: String = A_HOMESERVER_URL,
|
||||
supportsPasswordLogin: Boolean = false,
|
||||
supportsOidcLogin: Boolean = false,
|
||||
) = MatrixHomeServerDetails(
|
||||
url = url,
|
||||
supportsPasswordLogin = supportsPasswordLogin,
|
||||
supportsOidcLogin = supportsOidcLogin,
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue