$this->assertEquals('new employer org', $result['current_employer']);
}
+ /**
+ * Check deceased contacts are not retrieved
+ * Note at time of writing the default is to return default. This should possibly be changed & test added
+ *
+ */
+ function testGetDeceasedNotRetrieved() {
+ $c1 = $this->callAPISuccess($this->_entity, 'create', $this->_params);
+ $c2 = $this->callAPISuccess($this->_entity, 'create', array('first_name' => 'bb', 'last_name' => 'ccc', 'contact_type' => 'Individual', 'is_deceased' => 1));
+ $result = $this->callAPISuccess($this->_entity, 'get', array('is_deceased' => 0));
+ $this->assertFalse(array_key_exists($c2['id'], $result['values']));
+ }
/*
* Test that sort works - old syntax