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

# testUnknownCommand(with:completion:)

## Declaration

```swift
func testUnknownCommand(with params: MTRUnitTestingClusterTestUnknownCommandParams?, completion: @escaping @Sendable ((any Error)?) -> Void)
```

```swift
func testUnknownCommand(with params: MTRUnitTestingClusterTestUnknownCommandParams?) async throws
```
