コード例 #1
0
 public function testGetSyncedExtendedMergeVars()
 {
     $this->assertEmpty($this->entity->getExtendedMergeVars());
     $var1 = new ExtendedMergeVar();
     $var2 = new ExtendedMergeVar();
     $var1->markSynced();
     $var2->markDropped();
     $this->entity->addExtendedMergeVar($var1);
     $this->entity->addExtendedMergeVar($var2);
     $extendedMergeVars = $this->entity->getSyncedExtendedMergeVars();
     $this->assertCount(1, $extendedMergeVars);
     $this->assertContainsOnly($var1, $extendedMergeVars);
 }