(REF) Convert YAML fixtures to JSON fixtures. Reset symfony/yaml dependency.
authorTim Otten <totten@civicrm.org>
Fri, 14 Jun 2019 02:48:01 +0000 (22:48 -0400)
committerTim Otten <totten@civicrm.org>
Fri, 14 Jun 2019 02:48:01 +0000 (22:48 -0400)
commitb01b546f181a3707691f92eb9873c0128d4c4579
tree7be4970b241e3622bb57ac39820a1b4c61030109
parenteff849bc837a99f8889f407e8c37064a74dd24b2
(REF) Convert YAML fixtures to JSON fixtures. Reset symfony/yaml dependency.

Overview
--------

The test suite includes some tests that read fixture data files (i.e. YAML files). This patch
provides a safer way to address a dependency-management issue with parsing YAML files.

Before
------

* In the last public release (`5.14`), the `symfony/yaml` package was not included with `civicrm-core`.
  However, it was loaded during testing by virtue of running `phpunit6`.
* In the `5.15` RC code, `symfony/yaml` was added -- so that the test suite worked in `phpunit6`.
  However, this also added `symfony/yaml` to the general runtime distribution - which is liable to create conflicts
  with Civi extensions and CMS modules that also bundle `symfony/yaml`. (It's a popular package.)

After
-----

* The test suite no longer uses YAML, and the build no longer requires `symfony/yaml`. Instead, it uses JSON.
13 files changed:
composer.json
composer.lock
tests/fixtures/case.json [new file with mode: 0644]
tests/fixtures/case.yaml [deleted file]
tests/fixtures/case_contact.json [new file with mode: 0644]
tests/fixtures/case_contact.yaml [deleted file]
tests/fixtures/case_relationships.json [new file with mode: 0644]
tests/fixtures/case_relationships.yaml [deleted file]
tests/fixtures/case_types.json [new file with mode: 0644]
tests/fixtures/case_types.yaml [deleted file]
tests/fixtures/contacts.json [new file with mode: 0644]
tests/fixtures/contacts.yaml [deleted file]
tests/phpunit/CiviTest/CiviUnitTestCase.php