コード例 #1
0
ファイル: UnitOfWorkTest.php プロジェクト: potfur/journal
 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));
 }