Skip to content

Commit

Permalink
fix: behat
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentchalamon committed Nov 5, 2021
1 parent 187b619 commit f2f4241
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ env:
COMPOSER_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COVERAGE: '0'
SYMFONY_DEPRECATIONS_HELPER: disabled=1
# SYMFONY_PHPUNIT_DIR: vendor/bin/.phpunit

jobs:
php-cs-fixer:
Expand Down
2 changes: 0 additions & 2 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
<ini name="error_reporting" value="-1" />
<ini name="memory_limit" value="-1" />
<server name="SYMFONY_DEPRECATIONS_HELPER" value="max[self]=0" />
<!-- This is necessary for GitHub Actions to work properly -->
<server name="SYMFONY_PHPUNIT_DIR" value="vendor/bin/.phpunit" />
<server name="SYMFONY_PHPUNIT_REMOVE" value="symfony/yaml" />
<server name="KERNEL_DIR" value="tests/Fixtures/app/" />
<server name="KERNEL_CLASS" value="AppKernel" />
Expand Down
2 changes: 1 addition & 1 deletion src/Core/Bridge/Doctrine/Orm/CollectionDataProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public function __construct(ManagerRegistry $managerRegistry, iterable $collecti

public function supports(string $resourceClass, string $operationName = null, array $context = []): bool
{
return $this->managerRegistry->getManagerForClass($resourceClass) instanceof EntityManagerInterface && 'collection' === ($context['operation_type'] ?? '');
return $this->managerRegistry->getManagerForClass($resourceClass) instanceof EntityManagerInterface;
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Core/Bridge/Doctrine/Orm/ItemDataProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public function __construct(ManagerRegistry $managerRegistry, PropertyNameCollec

public function supports(string $resourceClass, string $operationName = null, array $context = []): bool
{
return $this->managerRegistry->getManagerForClass($resourceClass) instanceof EntityManagerInterface && 'item' === ($context['operation_type'] ?? '');
return $this->managerRegistry->getManagerForClass($resourceClass) instanceof EntityManagerInterface;
}

/**
Expand Down

0 comments on commit f2f4241

Please sign in to comment.