Go to the source code of this file.
Variables | |
| $base = dirname(__DIR__, 4) | |
| Laufzeit- und Transaktionstest des ausführbaren Referenzmoduls. | |
| $_SERVER ['REQUEST_URI'] | |
| $_SERVER ['HTTP_HOST'] = 'localhost' | |
| $_SERVER ['HTTPS'] = 'on' | |
| $_SERVER ['SCRIPT_NAME'] = '/dbxapp/index.php' | |
| $_SERVER ['REQUEST_METHOD'] = 'GET' | |
| if(!defined( 'dbxSystem')) | if (!defined( 'dbxRunAsAdmin')) |
| $fail | |
| $fixtures | |
| $installed = $fixtures->install(true) | |
| if((int)($installed['ok'] ?? 0) !==1) | $db = dbx()->get_system_obj('dbxDB') |
| $invoiceDd = 'myInvoices|invoice' | |
| $itemDd = 'myInvoices|invoiceItem' | |
| $demo | |
| $demoId = (int)($demo['id'] ?? 0) | |
| if( $demoId<=0) foreach(array('create_date', 'create_uid', 'update_date', 'update_uid', 'owner',) as $systemField) | $items |
| if(!is_array($items)||count($items) !==2) | $calculatedCents = 0 |
| foreach( $items as $item) if($calculatedCents !==4730||(int) round((float) $demo['total_gross'] *100) !==4730) | $service |
| $positionsHtml = $service->positions() | |
| foreach(array('Positionen zu Rechnung DBX-DEMO-1001', '39, 80 EUR', '7, 50 EUR', '47, 30 EUR', 'Endsumme der Positionen',) as $expected) | $reportHtml = $service->report() |
| foreach(array('DBX-DEMO-1001', 'Endsumme der angezeigten Rechnungen', ' | $webApp [modul=myInvoices]dbx_run1=positions &invoice_id=', 'dbxConfirm', 'dbx_token=',) as $expected) = dbx()->get_system_obj('dbxWebApp') |
| $deleteUrl | |
| $deleteRoute = $webApp->action_policy_for_url($deleteUrl) | |
| $deleteToken = (string)($deleteParams['dbx_token'] ?? '') | |
| if(! $deleteRoute||(string)($deleteRoute['source'] ?? '') !=='automatic'||(string)($deleteRoute['action'] ?? '') !=='dbxAction.delete'||(string)($deleteRoute['bindings']['rid'] ?? '') !==(string) $demoId||!dbx() ->check_action_token((string)($deleteRoute['scope'] ?? ''), $deleteToken)) | $tamperedRoute |
| if(! $tamperedRoute||dbx() ->check_action_token((string)($tamperedRoute['scope'] ?? ''), $deleteToken)) | $testNo = 'DBX-TEST-' . date('YmdHis') . '-' . random_int(1000, 9999) |
| $inserted | |
| $testId = (int)$db->_insert_id | |
| if( $inserted !==1) if($db->begin($invoiceDd) !==1) | $firstDelete |
| $secondDelete | |
| $deletedHtml = $service->delete() | |
| $_SERVER[ 'HTTP_HOST'] = 'localhost' |
Definition at line 10 of file myInvoices_integration_test.php.
| $_SERVER[ 'HTTPS'] = 'on' |
Definition at line 11 of file myInvoices_integration_test.php.
| $_SERVER[ 'REQUEST_METHOD'] = 'GET' |
Definition at line 13 of file myInvoices_integration_test.php.
| $_SERVER[ 'REQUEST_URI'] |
Definition at line 8 of file myInvoices_integration_test.php.
| $_SERVER[ 'SCRIPT_NAME'] = '/dbxapp/index.php' |
Definition at line 12 of file myInvoices_integration_test.php.
| $base = dirname(__DIR__, 4) |
Laufzeit- und Transaktionstest des ausführbaren Referenzmoduls.
Definition at line 6 of file myInvoices_integration_test.php.
| if (!is_array( $items)||count( $items) !==2) $calculatedCents = 0 |
Definition at line 88 of file myInvoices_integration_test.php.
Definition at line 50 of file myInvoices_integration_test.php.
| $deletedHtml = $service->delete() |
Definition at line 227 of file myInvoices_integration_test.php.
| $deleteRoute = $webApp->action_policy_for_url($deleteUrl) |
Definition at line 145 of file myInvoices_integration_test.php.
| $deleteToken = (string)($deleteParams['dbx_token'] ?? '') |
Definition at line 147 of file myInvoices_integration_test.php.
| $deleteUrl |
Definition at line 142 of file myInvoices_integration_test.php.
| $demo |
Definition at line 54 of file myInvoices_integration_test.php.
| $demoId = (int)($demo['id'] ?? 0) |
Definition at line 58 of file myInvoices_integration_test.php.
| $fail |
Definition at line 25 of file myInvoices_integration_test.php.
Definition at line 201 of file myInvoices_integration_test.php.
| $fixtures |
Definition at line 37 of file myInvoices_integration_test.php.
Referenced by dbx\myInvoices\myInvoicesService\installation().
| if ( $inserted !==1||$testId<=0) $inserted |
Definition at line 174 of file myInvoices_integration_test.php.
| $installed = $fixtures->install(true) |
Definition at line 41 of file myInvoices_integration_test.php.
| $invoiceDd = 'myInvoices|invoice' |
Definition at line 51 of file myInvoices_integration_test.php.
| $itemDd = 'myInvoices|invoiceItem' |
Definition at line 52 of file myInvoices_integration_test.php.
| if($demoId<=0) foreach (array( 'create_date', 'create_uid', 'update_date', 'update_uid', 'owner',) as $systemField) $items |
Definition at line 77 of file myInvoices_integration_test.php.
Referenced by dbx\dbxAdmin\dbxModuleRegistry\buildDdItems(), dbx\dbxShop\dbxShopRepository\createOrderFromItems(), dbx_copy_recursive(), dbx\dbxSelfTest\dbxSelfTestRunner\history(), dbx\dbxShop_admin\dbxShopAdmin\order_report_next_record(), dbx\dbxContent\dbxContentLngSync\provisionFromPreview(), dbx\dbxContent\dbxContentLngSync\renderLngBar(), and dbx\dbxShop\dbxShopRepository\stockIssuesForItems().
| $positionsHtml = $service->positions() |
Definition at line 107 of file myInvoices_integration_test.php.
| foreach (array( 'Positionen zu Rechnung DBX-DEMO-1001', '39, 80 EUR', '7, 50 EUR', '47, 30 EUR', 'Endsumme der Positionen',) as $expected) $reportHtml = $service->report() |
Definition at line 128 of file myInvoices_integration_test.php.
| $secondDelete |
Definition at line 205 of file myInvoices_integration_test.php.
| foreach($items as $item) if ( $calculatedCents !==4730||(int) round((float) $demo[ 'total_gross'] *100) !==4730) $service |
Definition at line 102 of file myInvoices_integration_test.php.
| if (! $deleteRoute||(string)( $deleteRoute[ 'source'] ?? '') !=='automatic'||(string)( $deleteRoute[ 'action'] ?? '') !=='dbxAction.delete'||(string)( $deleteRoute[ 'bindings'][ 'rid'] ?? '') !==(string) $demoId||!dbx() ->check_action_token((string)( $deleteRoute[ 'scope'] ?? ''), $deleteToken)) $tamperedRoute |
Definition at line 161 of file myInvoices_integration_test.php.
| $testId = (int)$db->_insert_id |
Definition at line 181 of file myInvoices_integration_test.php.
Referenced by dbx\dbxSelfTest\dbxSelfTestRunner\executeRunTest(), and dbx\dbxSelfTest\dbxSelfTestRunner\recordBrowserTestResult().
| if (! $tamperedRoute||dbx() ->check_action_token((string)( $tamperedRoute[ 'scope'] ?? ''), $deleteToken)) $testNo = 'DBX-TEST-' . date('YmdHis') . '-' . random_int(1000, 9999) |
Definition at line 173 of file myInvoices_integration_test.php.
| foreach (array( 'DBX-DEMO-1001', 'Endsumme der angezeigten Rechnungen', ' $webApp[modul=myInvoices]dbx_run1=positions &invoice_id=', 'dbxConfirm', 'dbx_token=',) as $expected) = dbx()->get_system_obj('dbxWebApp') |
Definition at line 141 of file myInvoices_integration_test.php.
| if((int) $db->count($invoiceDd, array('id'=> $testId)) !==0||(int) $db->count($itemDd, array('invoice_id'=> $testId)) !==0||strpos($deletedHtml, 'Rechnung und Positionen wurden gelöscht')===false) | ( | ! | defined 'dbxRunAsAdmin' | ) |
Definition at line 18 of file myInvoices_integration_test.php.