From 9e80c052fb60ca05e3f255ce15f4a139e66a1ede Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Tue, 23 Aug 2016 00:20:26 -0700 Subject: [PATCH] CiviEndToEndTestcase - Base class --- CRM/Core/ClassLoader.php | 1 + tests/README.md | 2 +- .../phpunit/CiviTest/CiviEndToEndTestCase.php | 24 +++++++++++++++++++ 3 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 tests/phpunit/CiviTest/CiviEndToEndTestCase.php diff --git a/CRM/Core/ClassLoader.php b/CRM/Core/ClassLoader.php index cbd3799f29..9bbcd0fbb5 100644 --- a/CRM/Core/ClassLoader.php +++ b/CRM/Core/ClassLoader.php @@ -79,6 +79,7 @@ class CRM_Core_ClassLoader { 'CiviSeleniumTestCase', 'CiviTestSuite', 'CiviUnitTestCase', + 'CiviEndToEndTestCase', 'Contact', 'ContributionPage', 'Custom', diff --git a/tests/README.md b/tests/README.md index e5fe2ab941..d48407dd46 100644 --- a/tests/README.md +++ b/tests/README.md @@ -28,7 +28,7 @@ and fill in missing test data: | PHPUnit |`api_v3_AllTests`|`headless`|Agnostic|`CiviUnitTestCase`|Requires `CIVICRM_UF=UnitTests`| | PHPUnit |`Civi\AllTests`|`headless`|Agnostic|`CiviUnitTestCase`|Requires `CIVICRM_UF=UnitTests`| | PHPUnit |`CRM_AllTests`|`headless`|Agnostic|`CiviUnitTestCase`|Requires `CIVICRM_UF=UnitTests`| -| PHPUnit |`E2E_AllTests`|`e2e`|Agnostic|`PHPUnit_Framework_TestCase`|Useful for command-line scripts and web-services| +| PHPUnit |`E2E_AllTests`|`e2e`|Agnostic|`CiviEndToEndTestCase`|Useful for command-line scripts and web-services| | PHPUnit |`WebTest_AllTests`|`e2e`|Drupal|`CiviSeleniumTestCase`|Useful for tests which require a full web-browser| | Karma ||`unit`|Agnostic||| | QUnit ||`e2e`|Agnostic||Run each test in a browser. See README.| diff --git a/tests/phpunit/CiviTest/CiviEndToEndTestCase.php b/tests/phpunit/CiviTest/CiviEndToEndTestCase.php new file mode 100644 index 0000000000..27350c3621 --- /dev/null +++ b/tests/phpunit/CiviTest/CiviEndToEndTestCase.php @@ -0,0 +1,24 @@ + $GLOBALS['_CV']['ADMIN_USER'], + 'pass' => $GLOBALS['_CV']['ADMIN_PASS'], + )); + + parent::setUp(); + } + +} -- 2.25.1