dbxapp 4.1.3
CMS, Shop, Workflows und modulare Geschäftsanwendungen
Loading...
Searching...
No Matches
dbxKiBundleService_cms_url_test.php
Go to the documentation of this file.
1<?php
2
3require_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
12if ($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');
19 'lng' => 'de',
20 'step_results' => array(array('page_id' => 51, 'lng' => 'de')),
21), false, '', '?dbx_modul=dbxKi&dbx_run1=bundle');
22
23if (strpos($footer, 'cid=51&amp;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
28echo "OK dbxKi CMS URL\n";
foreach( $iterator as $file) if(! $groups) $expected
if($url !==$expected||strpos($url, 'dbx_ajax') !==false) $footerMethod
exit
Definition index.php:146