Quellcode durchsuchen

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

Fix double where in CustomProperiesBackendTest
Joas Schilling vor 1 Jahr
Ursprung
Commit
13846ac2a8
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      apps/dav/tests/unit/DAV/CustomPropertiesBackendTest.php

+ 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 = [];