Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Tests] Migrated deprecated PHPUnit configuration #429

Merged
merged 1 commit into from
Sep 28, 2024
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
63 changes: 27 additions & 36 deletions phpunit-integration-legacy-solr.xml
Original file line number Diff line number Diff line change
@@ -1,37 +1,28 @@
<?xml version = '1.0' encoding = 'utf-8'?>
<phpunit backupGlobals="false"
backupStaticAttributes="false"
bootstrap="bootstrap.php"
processIsolation="false"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
beStrictAboutTestsThatDoNotTestAnything="false"
colors="true"
>
<php>
<env name="setupFactory" value="Ibexa\Tests\Solr\SetupFactory\LegacySetupFactory" />
<env name="backendVersion" value="5" />
<env name="fixtureDir" value="Solr" />
<env name="solrServer" value="http://localhost:8983/" />
<env name="CORES_SETUP" value="dedicated" />
<env name="SYMFONY_DEPRECATIONS_HELPER" value="disabled"/>
<ini name="error_reporting" value="-1" />
<env name="KERNEL_CLASS" value="Ibexa\Contracts\Solr\Test\IbexaSolrTestKernel"/>
<env name="SEARCH_ENGINE" value="solr"/>
<env name="DATABASE_URL" value="sqlite://:memory:" />
<env name="SYMFONY_DEPRECATIONS_HELPER" value="disabled"/>
</php>
<testsuites>
<!-- Search service is used all over the place, so we must run entire integration test suite -->
<testsuite name="integration_repository">
<directory>tests/integration/Core</directory>
<exclude>tests/integration/Core/Repository/Filtering</exclude>
</testsuite>
</testsuites>
<filter>
<whitelist>
<directory suffix=".php">tests/integration</directory>
</whitelist>
</filter>
<?xml version="1.0" encoding="utf-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" backupGlobals="false" backupStaticAttributes="false" bootstrap="bootstrap.php" processIsolation="false" convertErrorsToExceptions="true" convertNoticesToExceptions="true" convertWarningsToExceptions="true" beStrictAboutTestsThatDoNotTestAnything="false" colors="true" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
<coverage>
<include>
<directory suffix=".php">tests/integration</directory>
</include>
</coverage>
<php>
<env name="setupFactory" value="Ibexa\Tests\Solr\SetupFactory\LegacySetupFactory"/>
<env name="backendVersion" value="5"/>
<env name="fixtureDir" value="Solr"/>
<env name="solrServer" value="http://localhost:8983/"/>
<env name="CORES_SETUP" value="dedicated"/>
<env name="SYMFONY_DEPRECATIONS_HELPER" value="disabled"/>
<ini name="error_reporting" value="-1"/>
<env name="KERNEL_CLASS" value="Ibexa\Contracts\Solr\Test\IbexaSolrTestKernel"/>
<env name="SEARCH_ENGINE" value="solr"/>
<env name="DATABASE_URL" value="sqlite://:memory:"/>
<env name="SYMFONY_DEPRECATIONS_HELPER" value="disabled"/>
</php>
<testsuites>
<!-- Search service is used all over the place, so we must run entire integration test suite -->
<testsuite name="integration_repository">
<directory>tests/integration/Core</directory>
<exclude>tests/integration/Core/Repository/Filtering</exclude>
</testsuite>
</testsuites>
</phpunit>
79 changes: 35 additions & 44 deletions phpunit-integration-legacy.xml
Original file line number Diff line number Diff line change
@@ -1,45 +1,36 @@
<?xml version = '1.0' encoding = 'utf-8'?>
<phpunit backupGlobals="false"
backupStaticAttributes="false"
bootstrap="bootstrap.php"
processIsolation="false"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
beStrictAboutTestsThatDoNotTestAnything="false"
colors="true"
>
<php>
<env name="setupFactory" value="\Ibexa\Contracts\Core\Test\Repository\SetupFactory\Legacy" />
<env name="backendVersion" value="5" />
<env name="fixtureDir" value="Legacy" />
<env name="SYMFONY_DEPRECATIONS_HELPER" value="disabled"/>
<ini name="error_reporting" value="-1" />
<env name="DATABASE_URL" value="sqlite://:memory:" />
<env name="KERNEL_CLASS" value="Ibexa\Contracts\Core\Test\IbexaTestKernel"/>
<env name="SEARCH_ENGINE" value="legacy"/>
<env name="SYMFONY_DEPRECATIONS_HELPER" value="disabled"/>
</php>
<testsuites>
<testsuite name="integration_core">
<directory>tests/integration/Core</directory>
</testsuite>
<testsuite name="integration_debug">
<directory>tests/integration/Debug</directory>
</testsuite>
<testsuite name="integration_io">
<directory>tests/integration/IO</directory>
</testsuite>
<testsuite name="integration_legacy_search_engine">
<directory>tests/integration/LegacySearchEngine</directory>
</testsuite>
<testsuite name="integration_repository_installer">
<directory>tests/integration/RepositoryInstaller</directory>
</testsuite>
</testsuites>
<filter>
<whitelist>
<directory suffix=".php">tests/integration</directory>
</whitelist>
</filter>
<?xml version="1.0" encoding="utf-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" backupGlobals="false" backupStaticAttributes="false" bootstrap="bootstrap.php" processIsolation="false" convertErrorsToExceptions="true" convertNoticesToExceptions="true" convertWarningsToExceptions="true" beStrictAboutTestsThatDoNotTestAnything="false" colors="true" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
<coverage>
<include>
<directory suffix=".php">tests/integration</directory>
</include>
</coverage>
<php>
<env name="setupFactory" value="\Ibexa\Contracts\Core\Test\Repository\SetupFactory\Legacy"/>
<env name="backendVersion" value="5"/>
<env name="fixtureDir" value="Legacy"/>
<env name="SYMFONY_DEPRECATIONS_HELPER" value="disabled"/>
<ini name="error_reporting" value="-1"/>
<env name="DATABASE_URL" value="sqlite://:memory:"/>
<env name="KERNEL_CLASS" value="Ibexa\Contracts\Core\Test\IbexaTestKernel"/>
<env name="SEARCH_ENGINE" value="legacy"/>
<env name="SYMFONY_DEPRECATIONS_HELPER" value="disabled"/>
</php>
<testsuites>
<testsuite name="integration_core">
<directory>tests/integration/Core</directory>
</testsuite>
<testsuite name="integration_debug">
<directory>tests/integration/Debug</directory>
</testsuite>
<testsuite name="integration_io">
<directory>tests/integration/IO</directory>
</testsuite>
<testsuite name="integration_legacy_search_engine">
<directory>tests/integration/LegacySearchEngine</directory>
</testsuite>
<testsuite name="integration_repository_installer">
<directory>tests/integration/RepositoryInstaller</directory>
</testsuite>
</testsuites>
</phpunit>
Loading