Skip to content

Commit 2b3bdb9

Browse files
danrotdbu
authored andcommitted
added check for removed property
1 parent 58221aa commit 2b3bdb9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/Versioning/VersionManagerTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -354,11 +354,13 @@ public function testRestoreBaseProperties()
354354

355355
$node = $this->session->getNode($nodePath);
356356
$this->assertContains('mix:created', $node->getPropertyValue('jcr:mixinTypes'));
357+
$this->assertTrue($node->hasProperty('jcr:created'));
357358

358359
$this->vm->restore(true, $version);
359360

360361
$node = $this->session->getNode($nodePath);
361362
$this->assertEquals(array('mix:versionable'), $node->getPropertyValue('jcr:mixinTypes'));
363+
$this->assertFalse($node->hasProperty('jcr:created'));
362364
}
363365

364366
public function testRestoreWithChildren()

0 commit comments

Comments
 (0)