dbxapp 4.1.3
CMS, Shop, Workflows und modulare Geschäftsanwendungen
Loading...
Searching...
No Matches
dbxActiveUiLanguageContract_test.php File Reference

Go to the source code of this file.

Variables

 $root = dirname(__DIR__, 2)
 Architekturvertrag für sprachabhängige aktive Formulare und Listen.
 $fail
 $contracts
foreach($contracts as $relative=> $requiredFragments) $shopSource
foreach(array('Shop Cart Report', 'Shop Checkout Form', 'Noch keine Bestellungen', 'Ihre gespeicherten Shop-Bestellungen.', 'Aktuell ist keine Zahlungsart aktiv',) as $obsoleteText) $coreJs = file_get_contents($root . '/js/lib/core.js')
 $confirmJs = file_get_contents($root . '/js/lib/confirm.js')
 if (!str_contains((string) $coreJs, 'dbx.translate')||!str_contains((string) $confirmJs, 'dbx.translate'))

Variable Documentation

◆ $confirmJs

$confirmJs = file_get_contents($root . '/js/lib/confirm.js')

Definition at line 98 of file dbxActiveUiLanguageContract_test.php.

◆ $contracts

$contracts

Definition at line 18 of file dbxActiveUiLanguageContract_test.php.

◆ $coreJs

foreach (array( 'Shop Cart Report', 'Shop Checkout Form', 'Noch keine Bestellungen', 'Ihre gespeicherten Shop-Bestellungen.', 'Aktuell ist keine Zahlungsart aktiv',) as $obsoleteText) $coreJs = file_get_contents($root . '/js/lib/core.js')

Definition at line 97 of file dbxActiveUiLanguageContract_test.php.

◆ $fail

$fail
Initial value:
= static function (string $message): void {
fwrite(STDERR, "FAIL: {$message}\n");
exit(1);
}
exit
Definition index.php:146

Definition at line 13 of file dbxActiveUiLanguageContract_test.php.

◆ $root

$root = dirname(__DIR__, 2)

Architekturvertrag für sprachabhängige aktive Formulare und Listen.

Der Test ergänzt dbxForm_fd_language_messages_test.php: Dort wird die strukturelle Gleichheit aller FD-Sprachen geprüft, hier die Bindung der wichtigsten aktiven Oberflächen an genau diese FDs.

Definition at line 11 of file dbxActiveUiLanguageContract_test.php.

◆ $shopSource

foreach ( $contracts as $relative=> $requiredFragments) $shopSource
Initial value:
= file_get_contents(
$root . '/modules/dbxShop/include/dbxShopService.class.php'
)

Definition at line 82 of file dbxActiveUiLanguageContract_test.php.

◆ if

if(!str_contains((string) $coreJs, 'dbx.translate')||!str_contains((string) $confirmJs, 'dbx.translate')) ( ! str_contains(string) $coreJs, 'dbx.translate')||!str_contains((string) $confirmJs, 'dbx.translate')

Definition at line 99 of file dbxActiveUiLanguageContract_test.php.