/**
  * @param bool $dirty
  */
 public function setDirty($dirty)
 {
     $this->record->setDirty($dirty);
 }
Beispiel #2
0
 /**
  * @test
  */
 public function testSetDirty()
 {
     $storage = new Record(['nickname' => 'foo']);
     $storage->nickname = 'bar';
     $changes = $storage->getChanges();
     $this->assertEquals(['nickname' => 'bar'], $changes);
     $storage->setDirty(false);
     $changes = $storage->getChanges();
     $this->assertEquals([], $changes);
 }