Skip to content

Commit

Permalink
fix test paths
Browse files Browse the repository at this point in the history
  • Loading branch information
solverat committed Aug 4, 2023
1 parent 550304b commit 52cb301
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,4 @@ php-cgi.core
/tests/_output/*
/tests/_data/*
!/tests/_data/.gitkeep
/tests/_support/_generated/*
/tests/Support/_generated/*
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ This Bundle needs some preparation. Please check out the [Setup](docs/00_Setup.m
- [Google For Jobs](./docs/Connectors/01_GoogleForJobs.md)
- [Facebook Jobs](./docs/Connectors/02_FacebookJobs.md)
- [Feeds](docs/11_Feeds.md)
- [Object Context](docs/12_ObjectContext.md)
- [Object Context](docs/12_ObjectContext.md)g
- [Available Items Resolver](docs/20_AvailableItemsResolver.md)
- [Custom Items Resolver](docs/21_CustomItemsResolver.md) (Expert)
- [Logging](docs/22_Logging.md)
Expand Down
14 changes: 7 additions & 7 deletions docs/20_AvailableItemsResolver.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ After resolving them, they need to return an array with `ResolvedItem`.

## Dynamic Route Request Resolver

| Name | Description
|------|------------|
| `route_name` | Determinates, on which route the job object is available |
| `route_request_identifier` | Which request fragment owns the object identifier (For Example `/?id=123` would be `id` |
| `route_object_identifier` | Determinates, on which object attribute the request identifier should get applied on |
| `is_localized_field` | If true, the object fetcher will look up with `getByLocalizedfields` |
| `must_match_request_locale` | If true, the current request locale must match with the context definition locale |
| Name | Description |
|-----------------------------|-----------------------------------------------------------------------------------------|
| `route_name` | Determinates, on which route the job object is available |
| `route_request_identifier` | Which request fragment owns the object identifier (For Example `/?id=123` would be `id` |
| `route_object_identifier` | Determinates, on which object attribute the request identifier should get applied on |
| `is_localized_field` | If true, the object fetcher will look up with `getByLocalizedfields` |
| `must_match_request_locale` | If true, the current request locale must match with the context definition locale |

### Usage
````yaml
Expand Down
2 changes: 1 addition & 1 deletion phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ parameters:
symfony:
container_xml_path: %currentWorkingDirectory%/var/cache/test/TestKernelTestDebugContainer.xml
constant_hassers: false
excludes_analyse:
excludePaths:
# as long we don't install the dependencies :(
- '*JobsBundle/Seo/Extractor/GoogleForJobsExtractor.php'
- '*JobsBundle/Seo/ResourceProcessor/GoogleJobsProcessor.php'
Expand Down
8 changes: 4 additions & 4 deletions tests/_etc/classes/TestClass.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"bodyStyle": null,
"datatype": "layout",
"permissions": null,
"childs": [
"children": [
{
"fieldtype": "tabpanel",
"border": false,
Expand All @@ -41,7 +41,7 @@
"bodyStyle": "",
"datatype": "layout",
"permissions": null,
"childs": [
"children": [
{
"fieldtype": "panel",
"labelWidth": 100,
Expand All @@ -58,7 +58,7 @@
"bodyStyle": "",
"datatype": "layout",
"permissions": null,
"childs": [
"children": [
{
"fieldtype": "input",
"width": null,
Expand Down Expand Up @@ -106,7 +106,7 @@
"bodyStyle": "",
"datatype": "layout",
"permissions": null,
"childs": [
"children": [
{
"fieldtype": "jobConnectorContext",
"height": null,
Expand Down
1 change: 1 addition & 0 deletions tests/_etc/config.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
bundles:
- { namespace: \Pimcore\Bundle\AdminBundle\PimcoreAdminBundle, priority: 60 }
- { namespace: \Pimcore\Bundle\SeoBundle\PimcoreSeoBundle, priority: 0, execute_installer: true }
- { namespace: \JobsBundle\JobsBundle }
setup_files:
- { path: app/config.yaml, dest: ./config/ }
Expand Down

0 comments on commit 52cb301

Please sign in to comment.