load() public méthode

public load ( StreamName $streamName, null | integer $minVersion = null ) : Stream | null
$streamName Prooph\EventStore\Stream\StreamName
$minVersion null | integer
Résultat Prooph\EventStore\Stream\Stream | null
 /**
  * @test
  */
 public function it_returns_nothing_when_trying_to_load_non_existing_stream()
 {
     $streamName = $this->prophesize(StreamName::class);
     $streamName->toString()->willReturn('test');
     $this->assertNull($this->adapter->load($streamName->reveal()));
 }