Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
Core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
justinfreeman (Agileware)
Core
Commits
d17310e4
Commit
d17310e4
authored
11 years ago
by
Kurund Jalmi
Browse files
Options
Downloads
Patches
Plain Diff
white space fixes
parent
d0711ea4
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tests/phpunit/WebTest/Event/MultipleEventRegistrationbyCartTest.php
+4
-2
4 additions, 2 deletions
...nit/WebTest/Event/MultipleEventRegistrationbyCartTest.php
tests/phpunit/WebTest/Event/ParticipantCountTest.php
+10
-9
10 additions, 9 deletions
tests/phpunit/WebTest/Event/ParticipantCountTest.php
with
14 additions
and
11 deletions
tests/phpunit/WebTest/Event/MultipleEventRegistrationbyCartTest.php
+
4
−
2
View file @
d17310e4
...
...
@@ -31,7 +31,8 @@ class WebTest_Event_MultipleEventRegistrationbyCartTest extends CiviSeleniumTest
parent
::
setUp
();
}
function
testAuthenticatedMultipleEvent
()
{
// this functionality is broken hence skipping the test
function
skiptestAuthenticatedMultipleEvent
()
{
// Log in using webtestLogin() method
$this
->
webtestLogin
();
...
...
@@ -123,7 +124,8 @@ class WebTest_Event_MultipleEventRegistrationbyCartTest extends CiviSeleniumTest
$this
->
_checkContributionsandEventRegistration
(
$value
[
0
],
$value
[
1
],
$events
);
}
function
testAnonymousMultipleEvent
()
{
// this functionality is broken hence skipping the test
function
skiptestAnonymousMultipleEvent
()
{
// This is the path where our testing install resides.
// The rest of URL is defined in CiviSeleniumTestCase base class, in
// class attributes.
...
...
This diff is collapsed.
Click to expand it.
tests/phpunit/WebTest/Event/ParticipantCountTest.php
+
10
−
9
View file @
d17310e4
...
...
@@ -107,7 +107,6 @@ class WebTest_Event_ParticipantCountTest extends CiviSeleniumTestCase {
}
function
testParticipantCountWithPriceset
()
{
// Log in using webtestLogin() method
$this
->
webtestLogin
();
...
...
@@ -121,14 +120,16 @@ class WebTest_Event_ParticipantCountTest extends CiviSeleniumTestCase {
// create price fields
$fields
=
array
(
'Full Conference'
=>
array
(
'type'
=>
'Text'
,
'Full Conference'
=>
array
(
'type'
=>
'Text'
,
'amount'
=>
'525.00'
,
'count'
=>
'2'
,
),
'Meal Choice'
=>
array
(
'type'
=>
'Select'
,
'options'
=>
array
(
1
=>
array
(
'label'
=>
'Chicken'
,
1
=>
array
(
'label'
=>
'Chicken'
,
'amount'
=>
'525.00'
,
'count'
=>
'2'
,
),
...
...
@@ -142,7 +143,8 @@ class WebTest_Event_ParticipantCountTest extends CiviSeleniumTestCase {
'Pre-conference Meetup?'
=>
array
(
'type'
=>
'Radio'
,
'options'
=>
array
(
1
=>
array
(
'label'
=>
'Yes'
,
1
=>
array
(
'label'
=>
'Yes'
,
'amount'
=>
'50.00'
,
'count'
=>
'2'
,
),
...
...
@@ -155,7 +157,8 @@ class WebTest_Event_ParticipantCountTest extends CiviSeleniumTestCase {
'Evening Sessions'
=>
array
(
'type'
=>
'CheckBox'
,
'options'
=>
array
(
1
=>
array
(
'label'
=>
'First Five'
,
1
=>
array
(
'label'
=>
'First Five'
,
'amount'
=>
'100.00'
,
'count'
=>
'5'
,
),
...
...
@@ -169,7 +172,6 @@ class WebTest_Event_ParticipantCountTest extends CiviSeleniumTestCase {
);
foreach
(
$fields
as
$label
=>
$field
)
{
$this
->
type
(
'label'
,
$label
);
$this
->
select
(
'html_type'
,
"value=
{
$field
[
'type'
]
}
"
);
...
...
@@ -346,7 +348,7 @@ class WebTest_Event_ParticipantCountTest extends CiviSeleniumTestCase {
$this
->
waitForElementPresent
(
'_qf_Fee_upload-bottom'
);
$this
->
click
(
'CIVICRM_QFID_1_is_monetary'
);
$this
->
click
(
"xpath=//tr[@class='crm-event-manage-fee-form-block-payment_processor']/td[2]/label[text()='"
.
$params
[
'payment_processor'
]
.
"']"
);
$this
->
select
(
'financial_type_id'
,
'Event Fee'
);
$this
->
select
(
'financial_type_id'
,
'Event Fee'
);
if
(
array_key_exists
(
'price_set'
,
$params
))
{
$this
->
select
(
'price_set_id'
,
'label='
.
$params
[
'price_set'
]);
}
...
...
@@ -389,8 +391,7 @@ class WebTest_Event_ParticipantCountTest extends CiviSeleniumTestCase {
return
$this
->
getLocation
();
}
function
_testRegisterWithBillingInfo
(
$participant
=
array
(
))
{
function
_testRegisterWithBillingInfo
(
$participant
=
array
())
{
$this
->
waitForElementPresent
(
"credit_card_type"
);
$this
->
select
(
'credit_card_type'
,
'value=Visa'
);
$this
->
type
(
'credit_card_number'
,
'4111111111111111'
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment