Skip to content

Commit

Permalink
Merge pull request #2257 from tarlepp/e2e-rest-anon-tests
Browse files Browse the repository at this point in the history
Skip "invalid users" test cases within anon action tests
  • Loading branch information
tarlepp committed Mar 26, 2023
2 parents 6e72c77 + 0207b2c commit c22afde
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions tests/E2E/Rest/Traits/Actions/AnonActionsTest.php
Expand Up @@ -22,6 +22,51 @@ class AnonActionsTest extends RestTraitTestCase
{
protected static string $route = '/test_anon_actions';

/**
* @noinspection PhpMissingParentCallCommonInspection
*/
public function testThatCountRouteDoesNotAllowInvalidUser(
?string $u = null,
?string $p = null,
?string $m = null
): void {
static::markTestSkipped('There isn\'t invalid users, so cannot test this.');
}

/**
* @noinspection PhpMissingParentCallCommonInspection
*/
public function testThatRootRouteDoesNotAllowInvalidUser(
?string $u = null,
?string $p = null,
?string $m = null
): void {
static::markTestSkipped('There isn\'t invalid users, so cannot test this.');
}

/**
* @noinspection PhpMissingParentCallCommonInspection
*/
public function testThatUuidRouteWithIdDoesNotAllowInvalidUser(
string $uuid = '',
?string $u = null,
?string $p = null,
?string $m = null
): void {
static::markTestSkipped('There isn\'t invalid users, so cannot test this.');
}

/**
* @noinspection PhpMissingParentCallCommonInspection
*/
public function testThatIdsRouteDoesNotAllowInvalidUser(
?string $u = null,
?string $p = null,
?string $m = null
): void {
static::markTestSkipped('There isn\'t invalid users, so cannot test this.');
}

public function getValidUsers(): Generator
{
yield [null, null];
Expand Down

0 comments on commit c22afde

Please sign in to comment.