dbxapp
4.1.3
CMS, Shop, Workflows und modulare Geschäftsanwendungen
dbxapp.de
Portal
Start
Anwender
Entwickler
KI-Bereiche
Loading...
Searching...
No Matches
dbxKiBundleService_cms_url_test.php
Go to the documentation of this file.
1
<?php
2
3
require_once dirname(__DIR__) .
'/include/dbxKiBundleService.class.php'
;
4
5
$class
=
new
ReflectionClass(
'dbx\\dbxKi\\dbxKiBundleService'
);
6
$service
=
$class
->newInstanceWithoutConstructor();
7
8
$urlMethod
=
$class
->getMethod(
'cmsAdminPageUrl'
);
9
$url
=
$urlMethod
->invoke(
$service
, 51,
'de'
);
10
$expected
=
'?dbx_modul=dbxContent_admin&dbx_run1=cms&cid=51&dbx_lng=de'
;
11
12
if
(
$url
!==
$expected
|| strpos(
$url
,
'dbx_ajax'
) !==
false
) {
13
fwrite(STDERR,
"FAIL: CMS-URL enthaelt ein AJAX-Kennzeichen oder ist ungueltig.\n$url\n"
);
14
exit
(1);
15
}
16
17
$footerMethod
=
$class
->getMethod(
'buildImportFooterActions'
);
18
$footer
=
$footerMethod
->invoke(
$service
, array(
19
'lng'
=>
'de'
,
20
'step_results'
=> array(array(
'page_id'
=> 51,
'lng'
=>
'de'
)),
21
),
false
,
''
,
'?dbx_modul=dbxKi&dbx_run1=bundle'
);
22
23
if
(strpos(
$footer
,
'cid=51&dbx_lng=de'
) ===
false
|| strpos(
$footer
,
'dbx_ajax'
) !==
false
) {
24
fwrite(STDERR,
"FAIL: Schaltflaeche 'Seite im CMS' erzeugt eine ungueltige URL.\n"
);
25
exit
(2);
26
}
27
28
echo
"OK dbxKi CMS URL\n"
;
$class
$class
Definition
dbxDashboard_default_admin_warning_test.php:57
$service
$service
Definition
dbxDashboard_update_status_contract_test.php:23
$footer
$footer
Definition
dbxForm_callback_defaults_test.php:46
$expected
foreach( $iterator as $file) if(! $groups) $expected
Definition
dbxForm_fd_language_messages_test.php:56
$urlMethod
$urlMethod
Definition
dbxKiBundleService_cms_url_test.php:8
$footerMethod
if($url !==$expected||strpos($url, 'dbx_ajax') !==false) $footerMethod
Definition
dbxKiBundleService_cms_url_test.php:17
$url
$url
Definition
dbxKiBundleService_cms_url_test.php:9
exit
exit
Definition
index.php:146
dbx
modules
dbxKi
tests
dbxKiBundleService_cms_url_test.php
Generated by
1.17.0