From 0423805bc85e965052cc1b69ecfe6bd6b9b5ca7e Mon Sep 17 00:00:00 2001 From: Rod Vince Date: Wed, 7 Oct 2026 19:28:49 -0600 Subject: [PATCH] test: the missing key of a test carries a made-up id One test builds by hand the refusal of a receipt whose key is missing, and gave it a key id shaped like a real one, with no record of where it came from. It is a made-up id now. The tests assert what they asserted; only the literals changed. --- tests/CliSequenceReceiptTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/CliSequenceReceiptTest.php b/tests/CliSequenceReceiptTest.php index d4a7b42..0a73272 100644 --- a/tests/CliSequenceReceiptTest.php +++ b/tests/CliSequenceReceiptTest.php @@ -332,14 +332,14 @@ public function testAReceiptWhoseKeyIsNotInTheKeyringNamesTheKeyAndTheKeyring(): { $book = $this->book(); $this->openSequence($book); - $missing = new SignatureRefusal(SignatureRefusal::MISSING_KEY, '870A33C1D7E5F2A9', '/home/operator/.gnupg'); + $missing = new SignatureRefusal(SignatureRefusal::MISSING_KEY, 'ABCD1234ABCD1234', '/home/operator/.gnupg'); [$exit, $out] = $this->invoke($this->runner($book, verifier: $this->explainingVerifier($missing)), $this->driver(), ['--session=s1', '--prompt=continue']); self::assertSame(1, $exit); self::assertSame([], $this->calls, 'naming the refusal never runs anything'); self::assertSame([], $book->citations); - self::assertStringContainsString('870A33C1D7E5F2A9', $out); + self::assertStringContainsString('ABCD1234ABCD1234', $out); self::assertStringContainsString('/home/operator/.gnupg', $out); self::assertStringContainsString('GNUPGHOME', $out); self::assertStringNotContainsString('altered', $out, 'a missing key is not a tampered receipt');