/**
  * @param string $fromMemberId
  * @return array
  */
 public function getMembersWhiteList($fromMemberId)
 {
     $memberId = Identifier::any();
     if (!is_null($fromMemberId)) {
         $memberId = Identifier::fromString($fromMemberId);
     }
     return array_keys($this->getMembersChoicesExcluding($memberId));
 }
 /** @test */
 function it_should_show_transfer_funds_form()
 {
     $responder = Mockery::mock(TransferFundsWebResponder::class);
     $responder->shouldReceive('respondEnterTransferInformation')->once();
     $responder->shouldReceive('response')->once()->andReturn(new Response());
     $controller = new TransferFundsAction($responder);
     $response = $controller->showForm(Identifier::any());
     $this->assertEquals(200, $response->getStatusCode());
 }
 /** @test */
 function it_should_subscribe_to_all_event_types()
 {
     $subscriber = new PersistEventsSubscriber(Mockery::mock(EventStore::class), Mockery::mock(StoredEventFactory::class));
     $this->assertTrue($subscriber->isSubscribedTo(new InstantaneousEvent(Identifier::any(), Money::MXN(100000), new DateTime('now'))));
     $this->assertTrue($subscriber->isSubscribedTo(A::transferWasMadeEvent()->build()));
 }