ILIAS  trunk Revision v12.0_alpha-377-g3641b37b9db
ILIAS\Test\Setup Namespace Reference

Data Structures

class  DatabaseInconsistencyMetricsCollectedObjective
 
class  ilTestNoHintsDBUpdateSteps
 
class  MoveSettingsTemplatesMigration
 
class  MoveTestSettingsMigration
 
class  RemoveLegacyTestSettingsMigration
 
class  Test10DBUpdateSteps
 
class  Test11DBUpdateSteps
 
class  Test9DBUpdateSteps
 
class  TestSetupAgent
 

Functions

 columnIsNullable (array $column_def)
 
 convertLegacyDate (string|\DateTimeImmutable|null $date)
 

Variables

const T_BOOLEAN = ['type' => \ilDBConstants::T_INTEGER, 'length' => 1, 'default' => 0]
 
const T_TINYINT = ['type' => \ilDBConstants::T_INTEGER, 'length' => 4, 'default' => 0]
 
const T_INT = ['type' => \ilDBConstants::T_INTEGER, 'default' => 0]
 
const T_BIGINT = ['type' => \ilDBConstants::T_INTEGER, 'default' => 0, 'length' => 8]
 
const LEGACY_STORAGE_DATE_FORMAT = 'YmdHis'
 
trait TestSettingsSetup
 

Function Documentation

◆ columnIsNullable()

ILIAS\Test\Setup\columnIsNullable ( array  $column_def)
private

Definition at line 104 of file TestSettingsSetup.php.

104 : bool
105 {
106 return array_key_exists('default', $column_def) && $column_def['default'] === null;
107 }

Referenced by ILIAS\Test\Setup\MoveTestSettingsMigration\step(), and ILIAS\Test\Setup\Test11DBUpdateSteps\step_2().

+ Here is the caller graph for this function:

◆ convertLegacyDate()

ILIAS\Test\Setup\convertLegacyDate ( string|\DateTimeImmutable|null  $date)
private

Definition at line 109 of file TestSettingsSetup.php.

109 : int
110 {
111 if ($date instanceof \DateTimeImmutable) {
112 return $date->getTimestamp();
113 }
114
115 if ($date === '' || $date === null) {
116 return 0;
117 }
118
119 return \DateTimeImmutable::createFromFormat(
121 $date,
122 new \DateTimeZone('UTC')
123 )->getTimestamp();
124 }

References ILIAS\Test\Setup\LEGACY_STORAGE_DATE_FORMAT.

Referenced by ILIAS\Test\Setup\MoveSettingsTemplatesMigration\step(), and ILIAS\Test\Setup\MoveTestSettingsMigration\step().

+ Here is the caller graph for this function:

Variable Documentation

◆ LEGACY_STORAGE_DATE_FORMAT

const ILIAS::Test::Setup\LEGACY_STORAGE_DATE_FORMAT = 'YmdHis'

Definition at line 28 of file TestSettingsSetup.php.

Referenced by ILIAS\Test\Setup\convertLegacyDate().

◆ T_BIGINT

const ILIAS::Test::Setup\T_BIGINT = ['type' => \ilDBConstants::T_INTEGER, 'default' => 0, 'length' => 8]

Definition at line 26 of file TestSettingsSetup.php.

◆ T_BOOLEAN

const ILIAS::Test::Setup\T_BOOLEAN = ['type' => \ilDBConstants::T_INTEGER, 'length' => 1, 'default' => 0]

Definition at line 23 of file TestSettingsSetup.php.

◆ T_INT

const ILIAS::Test::Setup\T_INT = ['type' => \ilDBConstants::T_INTEGER, 'default' => 0]

Definition at line 25 of file TestSettingsSetup.php.

◆ T_TINYINT

const ILIAS::Test::Setup\T_TINYINT = ['type' => \ilDBConstants::T_INTEGER, 'length' => 4, 'default' => 0]

Definition at line 24 of file TestSettingsSetup.php.

◆ TestSettingsSetup

trait ILIAS::Test::Setup\TestSettingsSetup

Definition at line 30 of file TestSettingsSetup.php.