-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from rk4xxicom/4.4
Bumped symfony to 4.4, revised list of dependencies, minor updates in docker configs
- Loading branch information
Showing
15 changed files
with
118 additions
and
109 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 |
---|---|---|
@@ -1,20 +1,28 @@ | ||
# Docker configuration | ||
HOST_UID= | ||
EXTERNAL_HTTP_PORT=80 | ||
EXTERNAL_POSTGRES_PORT=5432 | ||
EXTERNAL_DB_PORT=5432 | ||
EXTERNAL_SMTP_PORT=1025 | ||
EXTERNAL_SMTP_WEB_PORT=8025 | ||
|
||
# PHP_IDE_CONFIG is necessary for xDebug | ||
# Create server mapping in PHPStorm with name Default | ||
# or change serverName value to appropriate one | ||
PHP_IDE_CONFIG=serverName=Default | ||
|
||
# Postgres credentials | ||
POSTGRES_PASSWORD=dev | ||
POSTGRES_USER=dev | ||
POSTGRES_DB=dev | ||
|
||
###> doctrine/doctrine-bundle ### | ||
# Format described at http://docs.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/configuration.html#connecting-using-a-url | ||
# For an SQLite database, use: "sqlite:///%kernel.project_dir%/var/data.db" | ||
# Configure your db driver and server_version in config/packages/doctrine.yaml | ||
DATABASE_URL=pgsql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@db:5432/${POSTGRES_DB} | ||
DB_HOST=db | ||
DB_PASSWORD=dev | ||
DB_USER=dev | ||
DB_NAME=dev | ||
###< doctrine/doctrine-bundle ### | ||
|
||
###> symfony/mailer ### | ||
MAILER_DSN=smtp://mailhog:1025 | ||
###< symfony/mailer ### | ||
|
||
SYMFONY_PHPUNIT_VERSION=9.1.1 |
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 was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
version: '3.2' | ||
version: '3.7' | ||
|
||
services: | ||
php: | ||
|
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
26 changes: 26 additions & 0 deletions
26
tests/Functional/ApplicationAvailabilityFunctionalTest.php
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,26 @@ | ||
<?php | ||
declare(strict_types=1); | ||
|
||
namespace App\Tests; | ||
|
||
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase; | ||
|
||
final class ApplicationAvailabilityFunctionalTest extends WebTestCase | ||
{ | ||
/** | ||
* @test | ||
* @dataProvider urlProvider | ||
*/ | ||
public function pageIsSuccessful($url) | ||
{ | ||
$client = self::createClient(); | ||
$client->request('GET', $url); | ||
|
||
$this->assertResponseIsSuccessful(); | ||
} | ||
|
||
public function urlProvider() | ||
{ | ||
yield ['/']; | ||
} | ||
} |
Empty file.