public function testTrack() { $contract = Contract::fromClass(static::class); $identifier = EventStreamIdentifier::fromString('foo'); $root = $this->getMock(AggregateRoot::class); $this->uow->track($contract, $identifier, $root); $this->assertTrue($this->uow->isTracked($contract, $identifier)); }