public function assertDestinationCorrect(ezcWebdavMemoryBackend $backend)
 {
     PHPUnit_Framework_Assert::assertTrue($backend->nodeExists('/other_collection/moved_resource.html'));
     $prop = $backend->getProperty('/other_collection/moved_resource.html', 'lockdiscovery');
     PHPUnit_Framework_Assert::assertNotNull($prop, 'Lock discovery property not available on destination.');
     PHPUnit_Framework_Assert::assertEquals(0, count($prop->activeLock), 'Active lock available on destination.');
 }
 public function assertDestinationCorrect(ezcWebdavMemoryBackend $backend)
 {
     PHPUnit_Framework_Assert::assertTrue($backend->nodeExists('/other_collection/moved_resource.html'));
     $prop = $backend->getProperty('/other_collection/moved_resource.html', 'lockdiscovery');
     PHPUnit_Framework_Assert::assertNotNull($prop, 'Lock discovery property not available on destination.');
     PHPUnit_Framework_Assert::assertType('ezcWebdavLockDiscoveryProperty', $prop);
     PHPUnit_Framework_Assert::assertEquals(1, count($prop->activeLock), 'Active lock element not available on destination.');
     PHPUnit_Framework_Assert::assertEquals('opaquelocktoken:5678', $prop->activeLock[0]->token->__toString(), 'Active lock token on destination incorrect.');
 }
 public function assertTargetStillExisst(ezcWebdavMemoryBackend $backend)
 {
     PHPUnit_Framework_Assert::assertTrue($backend->nodeExists('/collection/resource.html'));
 }
 public function assertLockNullResourceNotRemoved(ezcWebdavMemoryBackend $backend)
 {
     PHPUnit_Framework_Assert::assertTrue($backend->nodeExists('/collection/resource.html'), 'Lock null resource /collection/resource.html not gone.');
     PHPUnit_Framework_Assert::assertTrue($backend->nodeExists('/collection'), 'Collection /collection is gone.');
 }
 public function assertDestinationNotExists(ezcWebdavMemoryBackend $backend)
 {
     PHPUnit_Framework_Assert::assertFalse($backend->nodeExists('/other_collection/moved_resource.html'));
 }
 public function assertLockNullStillExists(ezcWebdavMemoryBackend $backend)
 {
     PHPUnit_Framework_Assert::assertTrue($backend->nodeExists('/collection/newcollection'));
 }
 public function assertCollectionNotCreated(ezcWebdavMemoryBackend $backend)
 {
     PHPUnit_Framework_Assert::assertFalse($backend->nodeExists('/collection/newcollection'));
 }
 public function assertCollectionCreated(ezcWebdavMemoryBackend $backend)
 {
     PHPUnit_Framework_Assert::assertTrue($backend->nodeExists('/collection/newresource'));
 }
 public function assertTargetGone(ezcWebdavMemoryBackend $backend)
 {
     PHPUnit_Framework_Assert::assertFalse($backend->nodeExists('/collection'));
 }