Skip to content

Commit c329eca

Browse files
committed
Fix one more assertion
1 parent 9cb1c2e commit c329eca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/Sabre/DAV/Locks/PluginTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,7 @@ public function testLockPutBadToken()
451451
$this->server->exec();
452452

453453
self::assertEquals('application/xml; charset=utf-8', $this->response->getHeader('Content-Type'));
454-
self::assertTrue(1 === preg_match('/^<opaquelocktoken:(.*)>$/', $this->response->getHeader('Lock-Token')), 'We did not get a valid Locktoken back ('.$this->response->getHeader('Lock-Token').')');
454+
self::assertFalse($this->response->hasHeader('Lock-Token'), 'We did get unexpected Lock-Token header back in PUT response');
455455

456456
// self::assertEquals('412 Precondition failed',$this->response->status);
457457
self::assertEquals(423, $this->response->status);

0 commit comments

Comments
 (0)