First commit
This commit is contained in:
commit
c6e2478c40
13918 changed files with 2303184 additions and 0 deletions
|
@ -0,0 +1,14 @@
|
|||
name = "Drupal code registry test"
|
||||
description = "Support module for testing the code registry."
|
||||
files[] = drupal_autoload_test_interface.inc
|
||||
files[] = drupal_autoload_test_class.inc
|
||||
package = Testing
|
||||
version = VERSION
|
||||
core = 7.x
|
||||
hidden = TRUE
|
||||
|
||||
; Information added by Drupal.org packaging script on 2017-06-21
|
||||
version = "7.56"
|
||||
project = "drupal"
|
||||
datestamp = "1498069849"
|
||||
|
|
@ -0,0 +1,22 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* @file
|
||||
* Test module to check code registry.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Implements hook_registry_files_alter().
|
||||
*/
|
||||
function drupal_autoload_test_registry_files_alter(&$files, $modules) {
|
||||
foreach ($modules as $module) {
|
||||
// Add the drupal_autoload_test_trait.sh file to the registry when PHP 5.4+
|
||||
// is being used.
|
||||
if ($module->name == 'drupal_autoload_test' && version_compare(PHP_VERSION, '5.4') >= 0) {
|
||||
$files["$module->dir/drupal_autoload_test_trait.sh"] = array(
|
||||
'module' => $module->name,
|
||||
'weight' => $module->weight,
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* @file
|
||||
* Test classes for code registry testing.
|
||||
*/
|
||||
|
||||
/**
|
||||
* This class is empty because we only care if Drupal can find it.
|
||||
*/
|
||||
class DrupalAutoloadTestClass implements DrupalAutoloadTestInterface {}
|
|
@ -0,0 +1,11 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* @file
|
||||
* Test interfaces for code registry testing.
|
||||
*/
|
||||
|
||||
/**
|
||||
* This interface is empty because we only care if Drupal can find it.
|
||||
*/
|
||||
interface DrupalAutoloadTestInterface {}
|
|
@ -0,0 +1,16 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* @file
|
||||
* Test traits for code registry testing.
|
||||
*
|
||||
* This file has a non-standard extension to prevent PHP < 5.4 testbots from
|
||||
* trying to run a syntax check on it.
|
||||
* @todo Use a standard extension once the testbots allow it. See
|
||||
* https://www.drupal.org/node/2589649.
|
||||
*/
|
||||
|
||||
/**
|
||||
* This trait is empty because we only care if Drupal can find it.
|
||||
*/
|
||||
trait DrupalAutoloadTestTrait {}
|
Loading…
Add table
Add a link
Reference in a new issue