Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions tests/Consent/ConsentGrantTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public function testAnotherSessionIsNotCovered(): void
{
$grant = new ConsentGrant(
operation: new OperationId('config.set'),
principal: 'cli:rod@cm4070',
principal: 'cli:operator@workstation',
session: 'ses-A',
grantedAt: new \DateTimeImmutable('2026-08-13 10:00:00'),
provenance: 'session.question_answered',
Expand All @@ -58,7 +58,7 @@ public function testDifferentArgumentsAreNotCovered(): void
{
$grant = new ConsentGrant(
operation: new OperationId('config.set'),
principal: 'cli:rod@cm4070',
principal: 'cli:operator@workstation',
session: 'ses-A',
grantedAt: new \DateTimeImmutable('2026-08-13 10:00:00'),
provenance: 'session.question_answered',
Expand Down Expand Up @@ -104,7 +104,7 @@ private function grantDe(string $operacion): ConsentGrant
{
return new ConsentGrant(
operation: new OperationId($operacion),
principal: 'cli:rod@cm4070',
principal: 'cli:operator@workstation',
session: 'ses-A',
grantedAt: new \DateTimeImmutable('2026-08-13 10:00:00'),
provenance: 'session.question_answered',
Expand Down
6 changes: 3 additions & 3 deletions tests/Consent/IntentGrantTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public function testAnUngradedGrantCoversButDoesNotAdmit(): void
{
$grant = new ConsentGrant(
operation: new OperationId('capabilities.enable'),
principal: 'cli:rod@cm4070',
principal: 'cli:operator@workstation',
session: 'ses-A',
grantedAt: new \DateTimeImmutable(self::AT),
provenance: 'session.question_answered',
Expand Down Expand Up @@ -165,7 +165,7 @@ public function testAProofBackedGrantMatchesAcrossSpellings(): void
*/
public function testFromVerifiedIntentRefusesAnUnverifiedAdmission(): void
{
$sinPrueba = VerifiedPrincipal::fromTerminal('rod', 'cm4070');
$sinPrueba = VerifiedPrincipal::fromTerminal('operator', 'workstation');

$this->expectException(\InvalidArgumentException::class);

Expand Down Expand Up @@ -219,7 +219,7 @@ public function testAdmissionIsAdditiveForAnOrdinaryGrant(): void
{
$grant = new ConsentGrant(
operation: new OperationId('config.set'),
principal: 'cli:rod@cm4070',
principal: 'cli:operator@workstation',
session: 'ses-A',
grantedAt: new \DateTimeImmutable(self::AT),
provenance: 'session.question_answered',
Expand Down
Loading