aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLouis Chemineau <louis@chmn.me>2024-09-30 17:56:24 +0200
committerLouis Chemineau <louis@chmn.me>2024-09-30 18:30:35 +0200
commitfc6ab739575b415527e3b06f886805fb2888a8d3 (patch)
treec42da7b7eade389678d01958cd729b276168f318
parentaf57c1b36c0c2f9fba600bf082a6eacc736fafc3 (diff)
downloadnextcloud-server-backport/48297/stable25.tar.gz
nextcloud-server-backport/48297/stable25.zip
fix: Disable constructor in ErrorPagePluginTestbackport/48297/stable25
Signed-off-by: Louis Chemineau <louis@chmn.me>
-rw-r--r--apps/dav/tests/unit/DAV/ErrorPagePluginTest.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/dav/tests/unit/DAV/ErrorPagePluginTest.php b/apps/dav/tests/unit/DAV/ErrorPagePluginTest.php
index 0d298f461ae..87f989220c2 100644
--- a/apps/dav/tests/unit/DAV/ErrorPagePluginTest.php
+++ b/apps/dav/tests/unit/DAV/ErrorPagePluginTest.php
@@ -36,7 +36,7 @@ class ErrorPagePluginTest extends \Test\TestCase {
*/
public function test($expectedCode, $exception) {
/** @var ErrorPagePlugin | \PHPUnit\Framework\MockObject\MockObject $plugin */
- $plugin = $this->getMockBuilder(ErrorPagePlugin::class)->setMethods(['sendResponse', 'generateBody'])->getMock();
+ $plugin = $this->getMockBuilder(ErrorPagePlugin::class)->disableOriginalConstructor()->setMethods(['sendResponse', 'generateBody'])->getMock();
$plugin->expects($this->once())->method('generateBody')->willReturn(':boom:');
$plugin->expects($this->once())->method('sendResponse');
/** @var \Sabre\DAV\Server | \PHPUnit\Framework\MockObject\MockObject $server */