expectIdentifier(_:)
Creates an expectation that an app entity is the instance with the specified identifier.
Declaration
func expectIdentifier(_ identifier: String) -> AppEntityIdentifierExpectationParameters
- identifier:
The identifier of the entity instance to expect.
Return Value
An expectation that compares an entity’s identifier to identifier.
Discussion
Use the returned expectation for an intent parameter, an intent result, or a property that holds an entity. Call expect on it to also check the instance’s properties. For example:
let workCalendarExpectation = createEventIntentDefinition.expect(
calendar: calendarEntityDefinition.expectIdentifier(
"edea53fb-90b7-4481-afc7-d86e2dd0d27d"
)
)