19declare(strict_types=1);
26use PHPUnit\Framework\Attributes\DataProvider;
27use PHPUnit\Framework\TestCase;
40 $this->assertStringContainsString(
'status', $activity->getDescription()->getRawRepresentation());
41 $this->assertNotNull($activity->getOutputDescription(
new DescriptionFactory()));
47 public static function users(): array
51 'the root user' => [6],
60 #[DataProvider('users')]
65 $this->assertFalse($activity->isAllowedToPerform($usr_id, []));
67 $result = $activity->maybePerformAs($this->createStub(InputFactory::class), $usr_id, []);
69 $this->assertTrue($result->isError());
70 $this->assertSame(403, $result->error()->getCode());
testItDescribesItselfWithoutFailing()
testNobodyIsAllowedYet(int $usr_id)
What the setup knows is nothing for everybody with a session - as long as there is no check for admin...
This is a stub: the status of the installation is not collected yet.