Prechádzať zdrojové kódy

Merge pull request #36266 from nextcloud/bugfix/noid/fix-double-where-in-custom-property-test

Fix double where in CustomProperiesBackendTest
Joas Schilling 1 rok pred
rodič
commit
13846ac2a8

+ 1 - 1
apps/dav/tests/unit/DAV/CustomPropertiesBackendTest.php

@@ -107,7 +107,7 @@ class CustomPropertiesBackendTest extends TestCase {
 		$query->select('propertyname', 'propertyvalue')
 			->from('properties')
 			->where($query->expr()->eq('userid', $query->createNamedParameter($user)))
-			->where($query->expr()->eq('propertypath', $query->createNamedParameter($this->formatPath($path))));
+			->andWhere($query->expr()->eq('propertypath', $query->createNamedParameter($this->formatPath($path))));
 
 		$result = $query->execute();
 		$data = [];