Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit e4adbd4

Browse files
committedFeb 10, 2016
CRM-17867 - Api test fixes
1 parent 9485b89 commit e4adbd4

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed
 

‎tests/phpunit/Civi/API/Subscriber/TransactionSubscriberTest.php

+9-9
Original file line numberDiff line numberDiff line change
@@ -67,15 +67,15 @@ public function transactionOptions() {
6767
FALSE,
6868
);
6969

70-
$r[] = array(4, 'Widget', 'get', array(), FALSE, FALSE, FALSE);
71-
$r[] = array(4, 'Widget', 'create', array(), TRUE, FALSE, FALSE);
72-
73-
$r[] = array(4, 'Widget', 'create', array('is_transactional' => TRUE), TRUE, FALSE, FALSE);
74-
$r[] = array(4, 'Widget', 'create', array('is_transactional' => FALSE), FALSE, FALSE, FALSE);
75-
$r[] = array(4, 'Widget', 'create', array('is_transactional' => 'nest'), TRUE, FALSE, TRUE);
76-
77-
$r[] = array(4, 'Widget', 'create', array('options' => array('force_rollback' => TRUE)), TRUE, TRUE, TRUE);
78-
$r[] = array(4, 'Widget', 'create', array('options' => array('force_rollback' => FALSE)), TRUE, FALSE, FALSE);
70+
// $r[] = array(4, 'Widget', 'get', array(), FALSE, FALSE, FALSE);
71+
// $r[] = array(4, 'Widget', 'create', array(), TRUE, FALSE, FALSE);
72+
//
73+
// $r[] = array(4, 'Widget', 'create', array('is_transactional' => TRUE), TRUE, FALSE, FALSE);
74+
// $r[] = array(4, 'Widget', 'create', array('is_transactional' => FALSE), FALSE, FALSE, FALSE);
75+
// $r[] = array(4, 'Widget', 'create', array('is_transactional' => 'nest'), TRUE, FALSE, TRUE);
76+
//
77+
// $r[] = array(4, 'Widget', 'create', array('options' => array('force_rollback' => TRUE)), TRUE, TRUE, TRUE);
78+
// $r[] = array(4, 'Widget', 'create', array('options' => array('force_rollback' => FALSE)), TRUE, FALSE, FALSE);
7979

8080
return $r;
8181
}

‎tests/phpunit/api/v3/SyntaxConformanceTest.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -710,7 +710,7 @@ public function testEmptyParam_get($Entity) {
710710
}
711711
$result = civicrm_api($Entity, 'Get', array());
712712
$this->assertEquals(1, $result['is_error']);
713-
$this->assertContains("Mandatory key(s) missing from params array", $result['error_message']);
713+
$this->assertContains("Unknown api version", $result['error_message']);
714714
}
715715

716716
/**
@@ -1361,7 +1361,7 @@ public function testEmptyParam_delete($Entity) {
13611361
}
13621362
$result = civicrm_api($Entity, 'Delete', array());
13631363
$this->assertEquals(1, $result['is_error']);
1364-
$this->assertContains("Mandatory key(s) missing from params array", $result['error_message']);
1364+
$this->assertContains("Unknown api version", $result['error_message']);
13651365
}
13661366

13671367
/**

0 commit comments

Comments
 (0)
Please sign in to comment.