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

Go to the source code of this file.

Classes

class  dbxMissingLogTestDb
class  dbxMissingLogTestApi

Variables

 $fail
 $api = new dbxMissingLogTestApi()
 $_SERVER ['HTTP_REFERER'] = 'https://localhost/dbxapp/home/tutorial?token=secret#bereich'
 $firstId = $api->log_missing('assets/missing.svg')
 $secondId = $api->log_missing('assets/missing.svg')
if( $firstId !==1||$secondId !==1||count( $api->testDb->rows) !==1||(int) $api->testDb->rows[0][ 'count'] !==2) if(($api->testDb->rows[0]['request'] ?? '') !=='https://localhost/dbxapp/home/tutorial') if( $api->testDb->begins !==2||$api->testDb->commits !==2||$api->testDb->rollbacks !==0||$api->testDb->transaction) if ( $api->log_missing('') !==0||$api->testDb->begins !==2||$api->errors !==array())

Variable Documentation

◆ $_SERVER

$_SERVER[ 'HTTP_REFERER'] = 'https://localhost/dbxapp/home/tutorial?token=secret#bereich'

Definition at line 95 of file dbxApi_missing_log_test.php.

◆ $api

$api = new dbxMissingLogTestApi()

Definition at line 94 of file dbxApi_missing_log_test.php.

◆ $fail

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

Definition at line 89 of file dbxApi_missing_log_test.php.

◆ $firstId

$firstId = $api->log_missing('assets/missing.svg')

Definition at line 97 of file dbxApi_missing_log_test.php.

◆ $secondId

$secondId = $api->log_missing('assets/missing.svg')

Definition at line 98 of file dbxApi_missing_log_test.php.

◆ if

if($firstId !==1|| $secondId !==1||count($api->testDb->rows) !==1||(int) $api->testDb->rows[0]['count'] !==2) if(( $api->testDb->rows[0][ 'request'] ?? '') !=='https://localhost/dbxapp/home/tutorial') if($api->testDb->begins !==2|| $api->testDb->commits !==2|| $api->testDb->rollbacks !==0|| $api->testDb->transaction) if($api->log_missing('') !==0|| $api->testDb->begins !==2|| $api->errors !==array()) ( $api->log_missing('') ! = = 0 || $api->testDb->begins !== 2 || $api->errors !== array())