Ejemplo n.º 1
0
 /**
  * {@inheritdoc}
  */
 public function fetch(Query $query)
 {
     $this->stack = clone $this->filters;
     $this->pipe(QueryMessage::create($query));
     $results = $this->results;
     $this->results = null;
     return $results;
 }
Ejemplo n.º 2
0
 public function test_that_create_returns_message_from_query()
 {
     $data = $this->getMessageData();
     $query = UserByEmailQuery::fromArray($data['payload']);
     $message = QueryMessage::create($query);
     /** @var UserByEmailQuery $payload */
     $payload = $message->payload();
     $this->assertSame('*****@*****.**', $payload->email());
 }