Commit 75dbb936 authored by colemanw's avatar colemanw

APIv4 - Add test coverage for expected fields from join

parent 28f8e24b
......@@ -55,6 +55,9 @@ class OptionValueJoinTest extends UnitTestCase {
$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(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment