From d04401c12b2560f7e486f55b9aab454bc8d51ac3 Mon Sep 17 00:00:00 2001 From: Ribas160 Date: Tue, 22 Jul 2025 22:33:04 +0300 Subject: [PATCH] Fix configuration combinations test errors --- CHANGELOG.md | 1 + bin/configuration-test-generator | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3198255d..c375be84 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,7 @@ * CHANGED: Set bootstrap5 template as default for PrivateBin (#1572) * FIXED: Name mismatches in attached files (#1584) * FIXED: Unable to paste attachments from clipboard (#1589) +* FIXED: Configuration combinations test errors ## 1.7.8 (2025-06-30) * FIXED: Duplicate attachment for every comment (#1577) diff --git a/bin/configuration-test-generator b/bin/configuration-test-generator index 9b3de8f9..6fcdb55f 100755 --- a/bin/configuration-test-generator +++ b/bin/configuration-test-generator @@ -536,7 +536,8 @@ EOT; break; case 'Delete': $code .= PHP_EOL . <<<'EOT' - $this->_model->create(Helper::getPasteId(), Helper::getPaste()); + $paste = Helper::getPaste(); + $this->_model->create(Helper::getPasteId(), $paste); $this->assertTrue($this->_model->exists(Helper::getPasteId()), 'paste exists before deleting data'); $_GET['pasteid'] = Helper::getPasteId(); $_GET['deletetoken'] = hash_hmac('sha256', Helper::getPasteId(), $this->_model->read(Helper::getPasteId())['meta']['salt']); @@ -574,7 +575,7 @@ EOT; $code .= <<<'EOT' $this->assertMatchesRegularExpression( - '#]*id="status"[^>]*>.*Paste was properly deleted[^<]*#s', + '#]*id="status"[^>]*>.*Paste was properly deleted[^<]*()#s', $content, 'outputs deleted status correctly' );