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

# testEmitTestEventRequest(with:completion:)

## Declaration

```swift
func testEmitTestEventRequest(with params: MTRUnitTestingClusterTestEmitTestEventRequestParams, completion: @escaping @Sendable (MTRUnitTestingClusterTestEmitTestEventResponseParams?, (any Error)?) -> Void)
```

```swift
func testEmitTestEventRequest(with params: MTRUnitTestingClusterTestEmitTestEventRequestParams) async throws -> MTRUnitTestingClusterTestEmitTestEventResponseParams
```
