---
title: "testNullableOptionalRequest(with:completion:)"
framework: matter
role: symbol
role_heading: Instance Method
path: "matter/mtrbaseclusterunittesting/testnullableoptionalrequest(with:completion:)"
---

# testNullableOptionalRequest(with:completion:)

## Declaration

```swift
func testNullableOptionalRequest(with params: MTRUnitTestingClusterTestNullableOptionalRequestParams?, completion: @escaping @Sendable (MTRUnitTestingClusterTestNullableOptionalResponseParams?, (any Error)?) -> Void)
```

```swift
func testNullableOptionalRequest(with params: MTRUnitTestingClusterTestNullableOptionalRequestParams?) async throws -> MTRUnitTestingClusterTestNullableOptionalResponseParams
```
