Skip to content

Commit

Permalink
Merge pull request #16920 from colemanw/api4test
Browse files Browse the repository at this point in the history
[NFC] APIv4 - Add test coverage for expected fields from join
  • Loading branch information
colemanw committed Mar 29, 2020
2 parents 28f8e24 + 75dbb93 commit 115ab1c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/phpunit/api/v4/Query/OptionValueJoinTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ public function testCommunicationMethodJoin() {
$query->where[] = ['preferred_communication_method', 'IS NOT NULL'];
$results = $query->run();
$first = array_shift($results);
$keys = array_keys($first);
sort($keys);
$this->assertEquals(['first_name', 'id', 'preferred_communication_method'], $keys);
$firstPreferredMethod = array_shift($first['preferred_communication_method']);

$this->assertEquals(
Expand Down

0 comments on commit 115ab1c

Please sign in to comment.