forked from facile-it/mongodb-bundle
-
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.
Update matthiasnoback/symfony-dependency-injection-test requirement f…
…rom ^4 to ^5 (facile-it#169) * Update matthiasnoback/symfony-dependency-injection-test requirement Updates the requirements on [matthiasnoback/symfony-dependency-injection-test](https://github.com/matthiasnoback/SymfonyDependencyInjectionTest) to permit the latest version. - [Release notes](https://github.com/matthiasnoback/SymfonyDependencyInjectionTest/releases) - [Changelog](https://github.com/SymfonyTest/SymfonyDependencyInjectionTest/blob/master/CHANGELOG.md) - [Commits](SymfonyTest/SymfonyDependencyInjectionTest@4.0.0...5.1.0) --- updated-dependencies: - dependency-name: matthiasnoback/symfony-dependency-injection-test dependency-type: direct:development ... Signed-off-by: dependabot[bot] <[email protected]> * Allow both major versions * Rework CI matrix to mark Symfony 7 and Mongo 7 * Rework ProfileControllerTest into full functional test * Add Monolog to E2E tests to avoid logs in stdout * Drop usage of ContainerAwareInterface * Simplify E2E app configuration * Silence deprecation from 5.1 * Require dom-crawler explicitly * Use Symfony Flex to lock Symfony version in CI --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Alessandro Lai <[email protected]> Co-authored-by: Ilario Pierbattista <[email protected]>
- Loading branch information
1 parent
7badee0
commit 9ee761a
Showing
20 changed files
with
232 additions
and
172 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Facile\MongoDbBundle\Tests\Functional\TestApp; | ||
|
||
use MongoDB\Database; | ||
use Symfony\Component\HttpFoundation\Response; | ||
|
||
class MainController | ||
{ | ||
private Database $database; | ||
|
||
public function __construct(Database $database) | ||
{ | ||
$this->database = $database; | ||
} | ||
|
||
public function noop(): Response | ||
{ | ||
return new Response('Hello there'); | ||
} | ||
|
||
public function triggerQuery(): Response | ||
{ | ||
$this->database->selectCollection('test_collection') | ||
->insertOne(['foo' => 'bar']); | ||
|
||
return new Response('Hello there'); | ||
} | ||
} |
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.