From c81e2213b6f759a74f8aad4c73b813c5ce5baf3c Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Mon, 12 Jan 2015 15:48:15 -0800 Subject: [PATCH] INFRA-132 - CaseTypeTest - Spacing errors --- tests/phpunit/CRM/Case/BAO/CaseTypeTest.php | 116 +----------------- tests/phpunit/CRM/Case/BAO/xml/empty-defn.xml | 4 + .../phpunit/CRM/Case/BAO/xml/empty-lists.xml | 7 ++ tests/phpunit/CRM/Case/BAO/xml/forkable-0.xml | 5 + tests/phpunit/CRM/Case/BAO/xml/forkable-1.xml | 5 + .../CRM/Case/BAO/xml/one-item-in-each.xml | 29 +++++ .../CRM/Case/BAO/xml/two-items-in-each.xml | 54 ++++++++ 7 files changed, 110 insertions(+), 110 deletions(-) create mode 100644 tests/phpunit/CRM/Case/BAO/xml/empty-defn.xml create mode 100644 tests/phpunit/CRM/Case/BAO/xml/empty-lists.xml create mode 100644 tests/phpunit/CRM/Case/BAO/xml/forkable-0.xml create mode 100644 tests/phpunit/CRM/Case/BAO/xml/forkable-1.xml create mode 100644 tests/phpunit/CRM/Case/BAO/xml/one-item-in-each.xml create mode 100644 tests/phpunit/CRM/Case/BAO/xml/two-items-in-each.xml diff --git a/tests/phpunit/CRM/Case/BAO/CaseTypeTest.php b/tests/phpunit/CRM/Case/BAO/CaseTypeTest.php index 49f65cc25b..6e4605e9c8 100644 --- a/tests/phpunit/CRM/Case/BAO/CaseTypeTest.php +++ b/tests/phpunit/CRM/Case/BAO/CaseTypeTest.php @@ -15,11 +15,7 @@ class CRM_Case_BAO_CaseTypeTest extends CiviUnitTestCase { public function definitionProvider() { $fixtures['empty-defn'] = array( 'json' => json_encode(array()), - 'xml' => ' - - Housing Support - - ', + 'xml' => file_get_contents(__DIR__ . '/xml/empty-defn.xml'), ); $fixtures['empty-lists'] = array( @@ -28,14 +24,7 @@ class CRM_Case_BAO_CaseTypeTest extends CiviUnitTestCase { 'activityTypes' => array(), 'caseRoles' => array(), )), - 'xml' => ' - - Housing Support - - - - - ', + 'xml' => file_get_contents(__DIR__ . '/xml/empty-lists.xml'), ); $fixtures['one-item-in-each'] = array( @@ -57,36 +46,7 @@ class CRM_Case_BAO_CaseTypeTest extends CiviUnitTestCase { array('name' => 'First role', 'creator' => 1, 'manager' => 1), ), )), - 'xml' => ' - - Housing Support - - - First act (foréign éxamplé) - - - - - set1 - - true - - - Open Case - Completed - - - - - - - First role - 1 - 1 - - - - ', + 'xml' => file_get_contents(__DIR__ . '/xml/one-item-in-each.xml'), ); $fixtures['two-items-in-each'] = array( @@ -125,85 +85,21 @@ class CRM_Case_BAO_CaseTypeTest extends CiviUnitTestCase { array('name' => 'Second role'), ), )), - 'xml' => ' - - Housing Support - - - First act - - - Second act - - - - - set1 - - true - - - Open Case - Completed - - - Meeting - Open Case - 1 - newest - - - - - set2 - - true - - - First act - - - Second act - - - - - - - First role - 1 - 1 - - - Second role - - - - ', + 'xml' => file_get_contents(__DIR__ . '/xml/two-items-in-each.xml'), ); $fixtures['forkable-0'] = array( 'json' => json_encode(array( 'forkable' => 0, )), - 'xml' => ' - - Housing Support - 0 - - ', + 'xml' => file_get_contents(__DIR__ . '/xml/forkable-0.xml'), ); $fixtures['forkable-1'] = array( 'json' => json_encode(array( 'forkable' => 1, )), - 'xml' => ' - - Housing Support - 1 - - ', + 'xml' => file_get_contents(__DIR__ . '/xml/forkable-1.xml'), ); $cases = array(); diff --git a/tests/phpunit/CRM/Case/BAO/xml/empty-defn.xml b/tests/phpunit/CRM/Case/BAO/xml/empty-defn.xml new file mode 100644 index 0000000000..575aaa4226 --- /dev/null +++ b/tests/phpunit/CRM/Case/BAO/xml/empty-defn.xml @@ -0,0 +1,4 @@ + + + Housing Support + diff --git a/tests/phpunit/CRM/Case/BAO/xml/empty-lists.xml b/tests/phpunit/CRM/Case/BAO/xml/empty-lists.xml new file mode 100644 index 0000000000..768b6cdb2c --- /dev/null +++ b/tests/phpunit/CRM/Case/BAO/xml/empty-lists.xml @@ -0,0 +1,7 @@ + + + Housing Support + + + + diff --git a/tests/phpunit/CRM/Case/BAO/xml/forkable-0.xml b/tests/phpunit/CRM/Case/BAO/xml/forkable-0.xml new file mode 100644 index 0000000000..a6e6ed1b36 --- /dev/null +++ b/tests/phpunit/CRM/Case/BAO/xml/forkable-0.xml @@ -0,0 +1,5 @@ + + + Housing Support + 0 + diff --git a/tests/phpunit/CRM/Case/BAO/xml/forkable-1.xml b/tests/phpunit/CRM/Case/BAO/xml/forkable-1.xml new file mode 100644 index 0000000000..e1427534a7 --- /dev/null +++ b/tests/phpunit/CRM/Case/BAO/xml/forkable-1.xml @@ -0,0 +1,5 @@ + + + Housing Support + 1 + diff --git a/tests/phpunit/CRM/Case/BAO/xml/one-item-in-each.xml b/tests/phpunit/CRM/Case/BAO/xml/one-item-in-each.xml new file mode 100644 index 0000000000..d5c9dbec81 --- /dev/null +++ b/tests/phpunit/CRM/Case/BAO/xml/one-item-in-each.xml @@ -0,0 +1,29 @@ + + + Housing Support + + + First act (foréign éxamplé) + + + + + set1 + + true + + + Open Case + Completed + + + + + + + First role + 1 + 1 + + + diff --git a/tests/phpunit/CRM/Case/BAO/xml/two-items-in-each.xml b/tests/phpunit/CRM/Case/BAO/xml/two-items-in-each.xml new file mode 100644 index 0000000000..313c6652bf --- /dev/null +++ b/tests/phpunit/CRM/Case/BAO/xml/two-items-in-each.xml @@ -0,0 +1,54 @@ + + + Housing Support + + + First act + + + Second act + + + + + set1 + + true + + + Open Case + Completed + + + Meeting + Open Case + 1 + newest + + + + + set2 + + true + + + First act + + + Second act + + + + + + + First role + 1 + 1 + + + Second role + + + -- 2.25.1