blob: b618c8adb822970c98754bb9f5619bf9dca2bb12 [file] [log] [blame]
<?php
class ezcWebdavLockPluginClientTestAssertions012
{
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 assertLockDiscoveryPropertyNowhere( ezcWebdavMemoryBackend $backend )
{
$prop = $backend->getProperty( '/collection', 'lockdiscovery' );
PHPUnit_Framework_Assert::assertInstanceOf(
'ezcWebdavLockDiscoveryProperty',
$prop,
'Property has incorrect type.'
);
PHPUnit_Framework_Assert::assertEquals(
0,
count( $prop->activeLock ),
'Active lock element not removed correctly from root.'
);
}
}
return new ezcWebdavLockPluginClientTestAssertions012();
?>