Move into nested docroot
This commit is contained in:
parent
83a0d3a149
commit
c8b70abde9
13405 changed files with 0 additions and 0 deletions
|
|
@ -0,0 +1,6 @@
|
|||
name: PHPUnit Test
|
||||
type: module
|
||||
description: 'Provides dummy classes for use by SimpleTest tests.'
|
||||
package: Testing
|
||||
version: VERSION
|
||||
core: 8.x
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
<?php
|
||||
|
||||
namespace Drupal\phpunit_test;
|
||||
|
||||
class PhpUnitTestDummyClass {
|
||||
}
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
name: 'Simpletest test'
|
||||
type: module
|
||||
description: 'Support module for Simpletest tests.'
|
||||
package: Testing
|
||||
version: VERSION
|
||||
core: 8.x
|
||||
dependencies:
|
||||
- entity_test
|
||||
|
|
@ -0,0 +1,34 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* @file
|
||||
* Install hooks for test module.
|
||||
*/
|
||||
|
||||
use Drupal\entity_test\Entity\EntityTest;
|
||||
|
||||
/**
|
||||
* Implements hook_install().
|
||||
*/
|
||||
function simpletest_test_install() {
|
||||
$total = 2;
|
||||
$operations = array();
|
||||
for ($i = 1; $i <= $total; $i++) {
|
||||
$operations[] = array('_simpletest_test_callback', array($i));
|
||||
}
|
||||
$batch = array(
|
||||
'operations' => $operations,
|
||||
);
|
||||
batch_set($batch);
|
||||
$batch =& batch_get();
|
||||
$batch['progressive'] = FALSE;
|
||||
batch_process();
|
||||
}
|
||||
|
||||
/**
|
||||
* Callback for batch operations.
|
||||
*/
|
||||
function _simpletest_test_callback($id) {
|
||||
$entity = EntityTest::create(array('id' => $id));
|
||||
$entity->save();
|
||||
}
|
||||
Reference in a new issue