-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(WebResponse): Expose request attribute `_web_response_item_class…
…` to store WebResponse item class name
- Loading branch information
roadiz-ci
committed
Mar 26, 2024
1 parent
8cf5631
commit cb44b25
Showing
22 changed files
with
617 additions
and
149 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# define your env variables for the test env here | ||
KERNEL_CLASS='App\Kernel' | ||
APP_SECRET='$ecretf0rt3st' | ||
SYMFONY_DEPRECATIONS_HELPER=999999 | ||
PANTHER_APP_ENV=panther | ||
PANTHER_ERROR_SCREENSHOT_DIR=./var/error-screenshots |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,2 @@ | ||
RZ\Roadiz\CoreBundle\Api\Model\WebResponse: | ||
operations: | ||
getByPath: | ||
class: ApiPlatform\Metadata\Get | ||
method: 'GET' | ||
uriTemplate: '/web_response_by_path' | ||
read: false | ||
controller: RZ\Roadiz\CoreBundle\Api\Controller\GetWebResponseByPathController | ||
pagination_enabled: false | ||
normalizationContext: | ||
enable_max_depth: true | ||
pagination_enabled: false | ||
groups: | ||
- get | ||
- web_response | ||
- position | ||
- walker | ||
- walker_level | ||
- meta | ||
- children | ||
- children_count | ||
- nodes_sources | ||
- node_listing | ||
- urls | ||
- tag_base | ||
- translation_base | ||
- document_display | ||
- node_attributes | ||
- document_display_sources | ||
openapiContext: | ||
summary: Get a resource by its path wrapped in a WebResponse object | ||
description: | | ||
Get a resource by its path wrapped in a WebResponse | ||
parameters: | ||
- type: string | ||
name: path | ||
in: query | ||
required: true | ||
description: Resource path, or `/` for home page | ||
schema: | ||
type: string | ||
operations: [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
|
||
<!-- https://phpunit.readthedocs.io/en/latest/configuration.html --> | ||
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd" | ||
backupGlobals="false" | ||
colors="true" | ||
bootstrap="./tests/bootstrap.php" | ||
convertDeprecationsToExceptions="false" | ||
> | ||
<php> | ||
<ini name="display_errors" value="1" /> | ||
<ini name="error_reporting" value="-1" /> | ||
<server name="APP_ENV" value="test" force="true" /> | ||
<server name="SHELL_VERBOSITY" value="-1" /> | ||
<server name="SYMFONY_PHPUNIT_REMOVE" value="" /> | ||
<server name="SYMFONY_PHPUNIT_VERSION" value="9.5" /> | ||
<env name="SYMFONY_DEPRECATIONS_HELPER" value="weak" /> | ||
<!-- ###+ sentry/sentry-symfony ### --> | ||
<env name="SENTRY_DSN" value=""/> | ||
<!-- ###- sentry/sentry-symfony ### --> | ||
|
||
<!-- ###+ lexik/jwt-authentication-bundle ### --> | ||
<env name="JWT_SECRET_KEY" value="%kernel.project_dir%/config/jwt/private.pem"/> | ||
<env name="JWT_PUBLIC_KEY" value="%kernel.project_dir%/config/jwt/public.pem"/> | ||
<env name="JWT_PASSPHRASE" value="6e5690ad7417d7b8dea7d497e6d552f1"/> | ||
<!-- ###- lexik/jwt-authentication-bundle ### --> | ||
|
||
<!-- ###+ nelmio/cors-bundle ### --> | ||
<env name="CORS_ALLOW_ORIGIN" value="'^https?://(localhost|127\.0\.0\.1)(:[0-9]+)?$'"/> | ||
<!-- ###- nelmio/cors-bundle ### --> | ||
|
||
<!--<env name="SYMFONY_DEPRECATIONS_HELPER" value="max[total]=999999"/>--> | ||
|
||
<!-- ###+ symfony/lock ### --> | ||
<!-- Choose one of the stores below --> | ||
<!-- postgresql+advisory://db_user:db_password@localhost/db_name --> | ||
<env name="LOCK_DSN" value="flock"/> | ||
<!-- ###- symfony/lock ### --> | ||
</php> | ||
|
||
<testsuites> | ||
<testsuite name="Roadiz Monorepo Test Suite"> | ||
<directory>src/Test</directory> | ||
</testsuite> | ||
</testsuites> | ||
|
||
<coverage cacheDirectory="coverage" | ||
includeUncoveredFiles="true" | ||
processUncoveredFiles="true" | ||
pathCoverage="false" | ||
ignoreDeprecatedCodeUnits="true" | ||
disableCodeCoverageIgnore="true"> | ||
<include> | ||
<directory suffix=".php">src</directory> | ||
</include> | ||
<report> | ||
<text outputFile="php://stdout"/> | ||
<clover outputFile="coverage/clover.xml"/> | ||
<cobertura outputFile="coverage/cobertura.xml"/> | ||
</report> | ||
</coverage> | ||
|
||
<listeners> | ||
<listener class="Symfony\Bridge\PhpUnit\SymfonyTestsListener" /> | ||
</listeners> | ||
</phpunit> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.