Skip to content
This repository was archived by the owner on Jun 13, 2023. It is now read-only.

Commit b43ca66

Browse files
author
speckmaier
committed
withAnyMessage test function
1 parent bce8339 commit b43ca66

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/Test/TestsRabbitMQ.php

+10-1
Original file line numberDiff line numberDiff line change
@@ -94,4 +94,13 @@ protected function withMessage( $expectedData ) {
9494
return $anyMatch;
9595
} )->once()->andReturnSelf();
9696
}
97-
}
97+
98+
/**
99+
* @param string $event
100+
* @param array $expectedData
101+
*/
102+
protected function withAnyMessage() {
103+
$this->rabbitMQ->shouldReceive( 'onExchange' )->with( $this->expectedExchangeName, $this->expectedRoutingKey )->once()->andReturnSelf();
104+
$this->rabbitMQ->shouldReceive( 'publish' );
105+
}
106+
}

0 commit comments

Comments
 (0)