Skip to content

Commit

Permalink
[Unit][Admin] Cherry-pick avatar-image tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Rafikooo committed Feb 29, 2024
1 parent 900e8c4 commit e217c79
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions tests/Api/JsonApiTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -156,16 +156,4 @@ protected function assertJsonResponseViolations(Response $response, array $expec
$this->assertContains($expectedViolation['message'], $violationMap[$propertyPath], $responseContent);
}
}

protected function getUploadedFile(
string $path,
string $name,
string $type = 'image/jpg',
): UploadedFile {
return new UploadedFile(
__DIR__ . '/../Resources/' . $path,
$name,
$type,
);
}
}

0 comments on commit e217c79

Please sign in to comment.