Commit 0256c39c authored by Rich's avatar Rich
Browse files

update tests a bit WIP

parent dbab4001
......@@ -281,7 +281,7 @@ class CRM_Dataprocessor_Upgrader_Base {
// ******** Hook delegates ********
/**
* @see https://wiki.civicrm.org/confluence/display/CRMDOC/hook_civicrm_install
* @see https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_install
*/
public function onInstall() {
$files = glob($this->extensionDir . '/sql/*_install.sql');
......@@ -308,7 +308,7 @@ class CRM_Dataprocessor_Upgrader_Base {
}
/**
* @see https://wiki.civicrm.org/confluence/display/CRMDOC/hook_civicrm_postInstall
* @see https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_postInstall
*/
public function onPostInstall() {
$revisions = $this->getRevisions();
......@@ -321,7 +321,7 @@ class CRM_Dataprocessor_Upgrader_Base {
}
/**
* @see https://wiki.civicrm.org/confluence/display/CRMDOC/hook_civicrm_uninstall
* @see https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_uninstall
*/
public function onUninstall() {
$files = glob($this->extensionDir . '/sql/*_uninstall.mysql.tpl');
......@@ -342,7 +342,7 @@ class CRM_Dataprocessor_Upgrader_Base {
}
/**
* @see https://wiki.civicrm.org/confluence/display/CRMDOC/hook_civicrm_enable
* @see https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_enable
*/
public function onEnable() {
// stub for possible future use
......@@ -352,7 +352,7 @@ class CRM_Dataprocessor_Upgrader_Base {
}
/**
* @see https://wiki.civicrm.org/confluence/display/CRMDOC/hook_civicrm_disable
* @see https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_disable
*/
public function onDisable() {
// stub for possible future use
......
......@@ -25,7 +25,7 @@
<ver>5.15</ver>
</compatibility>
<classloader>
<psr4 prefix="Civi\" path="Civi" />
<psr4 prefix="Civi\" path="Civi"/>
</classloader>
<civix>
<namespace>CRM/Dataprocessor</namespace>
......
......@@ -24,8 +24,10 @@ class CRM_Dataprocessor_CreateDataProcessorDataSourceTest extends CRM_Dataproces
$data_processor_id = $this->createTestDataProcessorFixture();
// Retrieving the id of data processor
$factory = dataprocessor_get_factory();
if ($factory === NULL) {
$this->fail("Test cannot complete, unable to obtain data processor factory.");
}
$data_sources = $factory->getDataSources();
foreach ($data_sources as $key => $value) {
......
......@@ -19,7 +19,7 @@ use Civi\Test\TransactionalInterface;
*
* @group headless
*/
class CRM_Dataprocessor_TestBase extends \PHPUnit_Framework_TestCase implements HeadlessInterface, HookInterface, TransactionalInterface {
class CRM_Dataprocessor_TestBase extends \PHPUnit\Framework\TestCase implements HeadlessInterface, HookInterface, TransactionalInterface {
/**
* @var array keyed by ID
......
......@@ -2,6 +2,7 @@
ini_set('memory_limit', '2G');
ini_set('safe_mode', 0);
// phpcs:ignore
eval(cv('php:boot --level=classloader', 'phpcode'));
// Allow autoloading of PHPUnit helper classes in this extension.
......
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