Skip to content

Commit

Permalink
Merge pull request #26954 from larssandergreen/Fix-saved-search-test-…
Browse files Browse the repository at this point in the history
…where-existing-managed-saved-search-is-present

Fix saved search test when there is an existing managed saved search
  • Loading branch information
seamuslee001 authored Jul 28, 2023
2 parents 68a1ead + fa52d00 commit bc972ca
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/phpunit/CRM/Mailing/Form/Task/AdhocMailingTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,9 @@ public function testCreateHiddenGroupFromSearchBuilder() {
catch (CRM_Core_Exception_PrematureExitException $e) {
// Nothing to see here.
}
$savedSearch = $this->callAPISuccessGetSingle('SavedSearch', ['where' => [['has_base', '=', FALSE]]]);
$this->assertEquals($formValues, $savedSearch['form_values']);
$savedSearch = $this->callAPISuccess('SavedSearch', 'get', ['sequential' => 1, 'options' => ['sort' => "id DESC"]]);
$this->assertGreaterThan(0, $savedSearch['count']);
$this->assertEquals($formValues, $savedSearch['values'][0]['form_values']);
}

}

0 comments on commit bc972ca

Please sign in to comment.