*
* @package CRM
* @copyright CiviCRM LLC https://civicrm.org/licensing
- * $Id$
- *
*/
$this->loadDataSet('ConformanceTest');
$this->creationParamProvider = \Civi::container()->get('test.param_provider');
parent::setUp();
- // calculateTaxAmount() for contribution triggers a deprecation notice
- \PHPUnit\Framework\Error\Deprecated::$enabled = FALSE;
}
+ /**
+ * Get entities to test.
+ *
+ * @return array
+ *
+ * @throws \API_Exception
+ * @throws \Civi\API\Exception\UnauthorizedException
+ */
public function getEntities() {
return Entity::get()->setCheckPermissions(FALSE)->execute()->column('name');
}
/**
* @param string $entityClass
- * @param $entity
+ * @param string $entity
*/
protected function checkFields($entityClass, $entity) {
$fields = $entityClass::getFields()
/**
* @param string $entityClass
+ *
+ * @return array
*/
protected function checkActions($entityClass) {
$actions = $entityClass::getActions()