/** * @param bool $dirty */ public function setDirty($dirty) { $this->record->setDirty($dirty); }
/** * @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); }