Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/sylius.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,10 @@ jobs:
-
name: 'Doctrine Schema Validate - Run'
run: 'vendor/bin/console doctrine:schema:validate --skip-sync'
# -
# name: 'Run PHPUnit'
# run: 'make phpunit'
# if: 'always() && steps.end-of-setup-sylius.outcome == ''success'''
-
name: 'Run PHPUnit'
run: 'make phpunit'
if: 'always() && steps.end-of-setup-sylius.outcome == ''success'''
# -
# name: 'Configure Behat'
# run: 'make behat-configure'
Expand Down
8 changes: 2 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ reset: ## Remove dependencies
rm -rf vendor
.PHONY: reset

phpunit: phpunit-configure phpunit-run ## Run PHPUnit
phpunit: ## Run PHPUnit tests
./vendor/bin/phpunit
.PHONY: phpunit

###
Expand All @@ -35,12 +36,7 @@ install-sylius:
${COMPOSER} require --dev sylius/test-application:"^${SYLIUS_VERSION}@alpha" -n -W # TODO: Remove alpha when stable
${COMPOSER} test-application:install

phpunit-configure:
cp phpunit.xml.dist ${TEST_DIRECTORY}/phpunit.xml
echo -e "\nMOCK_SERVER_HOST=localhost\nMOCK_SERVER_PORT=8987\n" >> ${TEST_DIRECTORY}/.env.test.local

phpunit-run:
./vendor/bin/phpunit

behat-configure: ## Configure Behat
(cd ${TEST_DIRECTORY} && cp behat.yml.dist behat.yml)
Expand Down
9 changes: 4 additions & 5 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -1,19 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>

<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/8.5/phpunit.xsd"
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
colors="true"
bootstrap="config/bootstrap.php">
bootstrap="vendor/sylius/test-application/config/bootstrap.php">
<testsuites>
<testsuite name="Test Suite">
<directory>vendor/payplug/sylius-payplug-plugin/tests/PHPUnit</directory>
<directory>tests/PHPUnit</directory>
</testsuite>
</testsuites>

<php>
<ini name="error_reporting" value="-1" />

<server name="KERNEL_CLASS_PATH" value="src/Kernel.php" />
<server name="KERNEL_CLASS_PATH" value="Sylius\TestApplication\Kernel" />
<server name="IS_DOCTRINE_ORM_SUPPORTED" value="true" />

<server name="APP_ENV" value="test" force="true" />
Expand Down
Loading