Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
0.00% covered (danger)
0.00%
0 / 344
0.00% covered (danger)
0.00%
0 / 11
CRAP
0.00% covered (danger)
0.00%
0 / 1
Common_test
0.00% covered (danger)
0.00%
0 / 344
0.00% covered (danger)
0.00%
0 / 11
156
0.00% covered (danger)
0.00%
0 / 1
 __construct
n/a
0 / 0
n/a
0 / 0
1
 test_login
0.00% covered (danger)
0.00%
0 / 14
0.00% covered (danger)
0.00%
0 / 1
2
 test_BrowecenterUserMultiBranch
0.00% covered (danger)
0.00%
0 / 33
0.00% covered (danger)
0.00%
0 / 1
2
 test_ทดสอบบราวซ์สินค้าค้าจากหน้าจอใบปรับราคาขาย
0.00% covered (danger)
0.00%
0 / 33
0.00% covered (danger)
0.00%
0 / 1
2
 test_ทดสอบบราวซ์สินค้าค้าจากหน้าจอใบปรับราคาขายและกรองข้อมูลสินค้าด้วยรหัสสินค้า
0.00% covered (danger)
0.00%
0 / 33
0.00% covered (danger)
0.00%
0 / 1
2
 test_ทดสอบบราวซ์สินค้าค้าจากหน้าจอใบปรับราคาขายและกรองข้อมูลสินค้าด้วยชื่อสินค้า
0.00% covered (danger)
0.00%
0 / 33
0.00% covered (danger)
0.00%
0 / 1
2
 test_ทดสอบบราวซ์สินค้าค้าจากหน้าจอใบปรับราคาขายและกรองข้อมูลสินค้าด้วยรหัสบสร์โค้ด
0.00% covered (danger)
0.00%
0 / 33
0.00% covered (danger)
0.00%
0 / 1
2
 test_ทดสอบบราวซ์สินค้าค้าจากหน้าจอใบปรับราคาขายและกรองข้อมูลสินค้าด้วยกลุ่มสินค้า
0.00% covered (danger)
0.00%
0 / 33
0.00% covered (danger)
0.00%
0 / 1
2
 test_ทดสอบบราวซ์สินค้าค้าจากหน้าจอใบปรับราคาขายและกรองข้อมูลสินค้าด้วยประเภทสินค้า
0.00% covered (danger)
0.00%
0 / 33
0.00% covered (danger)
0.00%
0 / 1
2
 test_ทดสอบบราวซ์สินค้าค้าจากหน้าจอใบปรับราคาขายและกรองข้อมูลสินค้าด้วยยี่ห้อสินค้า
0.00% covered (danger)
0.00%
0 / 33
0.00% covered (danger)
0.00%
0 / 1
2
 test_ทดสอบบราวซ์สินค้าค้าจากหน้าจอใบปรับราคาขายและกรองข้อมูลสินค้าไม่เคลื่อนไหว
0.00% covered (danger)
0.00%
0 / 33
0.00% covered (danger)
0.00%
0 / 1
2
 test_ทดสอบบราวซ์สินค้าค้าจากหน้าจอใบปรับราคาขายและกรองข้อมูลสินค้าไม่เคลื่อนไหวและกรองชื่อสินค้า
0.00% covered (danger)
0.00%
0 / 33
0.00% covered (danger)
0.00%
0 / 1
2
1<?php
2/**
3 * Part of ci-phpunit-test
4 *
5 * @author     Kenji Suzuki <https://github.com/kenjis>
6 * @license    MIT License
7 * @copyright  2015 Kenji Suzuki
8 * @link       https://github.com/kenjis/ci-phpunit-test
9 */
10
11class Common_test extends TestCase
12{
13    /** 
14     *@codeCoverageIgnore
15    */
16    public function __construct() {
17        parent::__construct();
18        $ci = &get_instance();
19        $ci->load->database();
20        $ci->load->helper('validator_helper');
21        $_SESSION['tSesUsername'] = '';
22        $_SESSION['tLangID'] = 1;
23        $this->code = substr(md5(uniqid(mt_rand(), true)), 0, 5);
24        $ci->load->model('authen/login/Login_model');
25        $tSQL = "SELECT
26                FTUsrCode,
27                COUNT (FTBchCode) AS nBch
28            FROM
29                TCNTUsrGroup
30            GROUP BY
31                FTUsrCode
32            HAVING
33                COUNT (FTBchCode) > 1";
34        $aResult = $ci->db->query($tSQL);//หาผู้ใช้ที่มีสาขามากกว่า 1 สาขา
35        $aUsrData  = $aResult->row_array();
36     
37        $aDataUsrGroup = $ci->Login_model->FSaMLOGGetDataUserLoginGroup($aUsrData['FTUsrCode']);
38        $tUsrBchCodeMulti     = $ci->Login_model->FStMLOGMakeArrayToString($aDataUsrGroup,'FTBchCode','value');
39        $tUsrBchNameMulti     = $ci->Login_model->FStMLOGMakeArrayToString($aDataUsrGroup,'FTBchName','value');
40        $tUsrShpCodeMulti     = $ci->Login_model->FStMLOGMakeArrayToString($aDataUsrGroup,'FTShpCode','value');
41        $tUsrShpNameMulti     = $ci->Login_model->FStMLOGMakeArrayToString($aDataUsrGroup,'FTShpName','value');
42        $_SESSION =array (
43            '__ci_last_regenerate' => 1674475513,
44            'lang' => 'th',
45            'tLangID' => 1,
46            'tSesUserLogin' => '009',
47            'tSesUsrRoleCodeMulti' => '\'00002\'',
48            'nSesUsrRoleLevel' => 99,
49            'tSesUsrAgnCode' => NULL,
50            'tSesUsrAgnName' => NULL,
51            'tSesUsrMerCode' => NULL,
52            'tSesUsrMerName' => NULL,
53            'tSesUsrBchCodeDefault' => '00001',
54            'tSesUsrBchNameDefault' => 'AdaSoft00001',
55            'tSesUsrBchCodeMulti' => $tUsrBchCodeMulti,
56            'tSesUsrBchNameMulti' => $tUsrBchNameMulti,
57            'nSesUsrBchCount' => 0,
58            'tSesUsrShpCodeDefault' => '00014',
59            'tSesUsrShpNameDefault' => 'รันไทม์ช็อป',
60            'tSesUsrShpCodeMulti' => $tUsrShpCodeMulti,
61            'tSesUsrShpNameMulti' => $tUsrShpNameMulti,
62            'nSesUsrShpCount' => 0,
63            'tSesUsrWahCode' => '00001',
64            'tSesUsrWahName' => 'คลังขาย',
65            'tSesUsrLoginLevel' => 'BCH',
66            'tSesUsrLoginAgency' => 0,
67            'bSesLogIn' => 1,
68            'tSesUserCode' => $aUsrData['FTUsrCode'],
69            'tSesUsername' => $aUsrData['FTUsrCode'],
70            'tSesUsrDptName' => NULL,
71            'tSesUsrDptCode' => NULL,
72            'tSesUsrUsername' => 'Adasoft',
73            'tSesUsrImagePerson' => NULL,
74            'tSesUsrInfo' => 
75            array (
76              'FTUsrStaActive' => 1,
77              'FTUsrLogType' => 1,
78              'FTStaError' => 0,
79              'FTUsrCode' => $aUsrData['FTUsrCode'],
80              'FTUsrName' => 'Adasoft',
81              'FTDptCode' => NULL,
82              'FTDptName' => NULL,
83              'FTImgObj' => NULL,
84            ),
85            'tSesUsrGroup' => 
86            array (
87              0 => 
88              array (
89                'FTUsrCode' => '00002',
90                'FTAgnCode' => NULL,
91                'FTAgnName' => NULL,
92                'FTBchCode' => NULL,
93                'FTBchName' => NULL,
94                'FTShpCode' => NULL,
95                'FTShpName' => NULL,
96                'FTMerCode' => NULL,
97                'FTMerName' => NULL,
98                'FTWahCode' => NULL,
99                'FTWahName' => NULL,
100                'FTLoginLevel' => 'BCH',
101                'FTStaLoginAgn' => 0,
102              ),
103            ),
104            'tSesSessionID' => '0000220230123185822',
105            'tSesSessionDate' => '2023-01-23 18:58:22',
106            'tLangEdit' => 1,
107            'bIsHaveAgn' => NULL,
108            'tSesUsrLevel' => 'BCH',
109            'tSesUsrRoleSpcCodeMulti' => '\'00002\',\'00003\',\'00004\',\'00005\',\'00006\',\'00007\',\'00008\',\'00009\',\'00010\',\'00011\',\'00012\',\'00013\',\'00014\',\'00016\',\'00017\',\'00018\',\'00019\',\'00020\',\'00021\',\'00022\',\'00023\',\'00024\',\'00025\',\'00026\',\'00027\',\'00028\',\'00029\',\'00030\',\'00031\',\'00032\',\'00033\',\'00034\',\'00035\',\'00036\',\'00037\',\'00038\'',
110            'bShpEnabled' => 1,
111            'bAgnEnabled' => 1,
112            'bLockerEnabled' => NULL,
113            'bPdtFasionEnabled' => NULL,
114            'tSesHQBchCode' => '00001',
115            'bSesRegStaLicense' => 1,
116            'tSesCstKey' => '52a8a4705e6c',
117            'bSesRegStaBuyPackage' => 1,
118        );
119
120
121    }
122
123    public function test_login(){
124        print " 1.เข้าสู่ระบบด้วย ผู้ใช้ 009\n";
125        $_SESSION['tSesUsername'] = '';
126        $_SESSION['tLangID'] = 1;
127        
128        $aParam = array(
129            'oetUsername' => '009',
130            'oetPasswordhidden'  => 'L2lAf14Fp/jQlypugDBNoA==',
131        );
132        $oOutput = $this->request(
133            'POST',
134            'authen/login/Login_controller/FSaCLOGChkLogin',
135            $aParam
136        );
137        $this->assertStringContainsString('"tMsgReturn":"Found Data"', $oOutput);
138        $this->assertResponseCode(200);
139    }
140
141
142    public function test_BrowecenterUserMultiBranch(){
143        print "2.ทดสอบ Browse สินค้าด้วยผู้ใช้ มากวก่า 1 สาขา\n";
144        $aParam = array(
145            'tPagename'=> '',
146            'nPage'=> 1,
147            'nRow'=> 10,
148            'aPriceType'=> '["Pricesell",""]',
149            'BCH'=> '',
150            'SHP'=> '',
151            'MER'=> '',
152            'SPL'=> '',
153            'DISTYPE'=> '',
154            'SelectTier'=> 'Barcode',
155            'ReturnType'=> 'M',
156            'aNotinItem'=>  '',
157            'PDTMoveon'=> 1,
158            'tSearchText'=>  '',
159            'tSearchSelect'=> 'FTPdtCode',
160            'nTotalResult'=> '',
161            'ProductCode'=> '',
162            'AgenCode'=> '',
163            'tNotInPdtType'=> null,
164            'tWhere' => array( 'AND PPCZ.FTPdtStaAlwSale = 1  AND PBAR.FTBarStaUse= 1 AND PBAR.FTBarStaAlwSale = 1 AND ( CONVERT(VARCHAR(10),GETDATE(),121) BETWEEN CONVERT(VARCHAR(10), Products.FDPdtSaleStart, 121) AND CONVERT(VARCHAR(10), Products.FDPdtSaleStop, 121) )' ),
165            'tVatInOrEx'=> '',
166            'cVatRacte'=> '',
167            'nBWStaTopPdt'=> 1,
168        );
169        $oOutput = $this->request(
170            'POST',
171            'common/Browserpdtcallview_controller/FSxGetProductfotPDT',
172            $aParam
173        );
174        $this->assertStringContainsString('otbBrowserListPDT', $oOutput);
175        $this->assertResponseCode(200);
176    }
177
178
179    public function test_ทดสอบบราวซ์สินค้าค้าจากหน้าจอใบปรับราคาขาย(){
180        print "3.test_ทดสอบบราวซ์สินค้าค้าจากหน้าจอใบปรับราคาขาย\n";
181        $aParam = array(
182            'tPagename' => '',
183            'nPage' => '1',
184            'nRow' => '10',
185            'aPriceType'=> '["Pricesell",""]',
186            'BCH' => '',
187            'SHP' => '',
188            'MER' => '',
189            'SPL' => '',
190            'DISTYPE' => '',
191            'SelectTier' => 'PDT',
192            'ReturnType' => 'M',
193            'aNotinItem' => '',
194            'PDTMoveon' => '1',
195            'tSearchText' => '',
196            'tSearchSelect' => 'FTPdtCode',
197            'nTotalResult' => '',
198            'ProductCode' => '',
199            'AgenCode' => '',
200            'tNotInPdtType' => 'null',
201            'tWhere' => '',
202            'tVatInOrEx' => '',
203            'cVatRacte' => '',
204            'nBWStaTopPdt' => '1',
205          );
206        $oOutput = $this->request(
207            'POST',
208            'common/Browserpdtcallview_controller/FSxGetProductfotPDT',
209            $aParam
210        );
211        $this->assertStringContainsString('otbBrowserListPDT', $oOutput);
212        $this->assertResponseCode(200);
213    }
214
215
216    public function test_ทดสอบบราวซ์สินค้าค้าจากหน้าจอใบปรับราคาขายและกรองข้อมูลสินค้าด้วยรหัสสินค้า(){
217        print "4.test_ทดสอบบราวซ์สินค้าค้าจากหน้าจอใบปรับราคาขายและกรองข้อมูลสินค้าด้วยรหัสสินค้า\n";
218        $aParam = array(
219            'tPagename' => '',
220            'nPage' => '1',
221            'nRow' => '10',
222              'aPriceType'=> '["Pricesell",""]',
223            'BCH' => '',
224            'SHP' => '',
225            'MER' => '',
226            'SPL' => '',
227            'DISTYPE' => '',
228            'SelectTier' => 'PDT',
229            'ReturnType' => 'M',
230            'aNotinItem' => '',
231            'PDTMoveon' => '1',
232            'tSearchText' => 'กาแฟแก้ว 22',
233            'tSearchSelect' => 'FTPdtName',
234            'nTotalResult' => '2',
235            'ProductCode' => '',
236            'AgenCode' => '',
237            'tNotInPdtType' => 'null',
238            'tWhere' => '',
239            'tVatInOrEx' => '',
240            'cVatRacte' => '',
241            'nBWStaTopPdt' => '1',
242          );
243        $oOutput = $this->request(
244            'POST',
245            'common/Browserpdtcallview_controller/FSxGetProductfotPDT',
246            $aParam
247        );
248        $this->assertStringContainsString('otbBrowserListPDT', $oOutput);
249        $this->assertResponseCode(200);
250    }
251
252
253    public function test_ทดสอบบราวซ์สินค้าค้าจากหน้าจอใบปรับราคาขายและกรองข้อมูลสินค้าด้วยชื่อสินค้า(){
254        print "5.test_ทดสอบบราวซ์สินค้าค้าจากหน้าจอใบปรับราคาขายและกรองข้อมูลสินค้าด้วยชื่อสินค้า\n";
255        $aParam = array(
256            'tPagename' => '',
257            'nPage' => '1',
258            'nRow' => '10',
259            'aPriceType'=> '["Pricesell",""]',
260            'BCH' => '',
261            'SHP' => '',
262            'MER' => '',
263            'SPL' => '',
264            'DISTYPE' => '',
265            'SelectTier' => 'PDT',
266            'ReturnType' => 'M',
267            'aNotinItem' => '',
268            'PDTMoveon' => '1',
269            'tSearchText' => 'กาแฟแก้ว 22',
270            'tSearchSelect' => 'FTPdtName',
271            'nTotalResult' => '2',
272            'ProductCode' => '',
273            'AgenCode' => '',
274            'tNotInPdtType' => 'null',
275            'tWhere' => '',
276            'tVatInOrEx' => '',
277            'cVatRacte' => '',
278            'nBWStaTopPdt' => '1',
279          );
280        $oOutput = $this->request(
281            'POST',
282            'common/Browserpdtcallview_controller/FSxGetProductfotPDT',
283            $aParam
284        );
285        $this->assertStringContainsString('otbBrowserListPDT', $oOutput);
286        $this->assertResponseCode(200);
287    }
288 
289    public function test_ทดสอบบราวซ์สินค้าค้าจากหน้าจอใบปรับราคาขายและกรองข้อมูลสินค้าด้วยรหัสบสร์โค้ด(){
290        print "6.test_ทดสอบบราวซ์สินค้าค้าจากหน้าจอใบปรับราคาขายและกรองข้อมูลสินค้าด้วยรหัสบสร์โค้ด\n";
291        $aParam = array(
292            'tPagename' => '',
293            'nPage' => '1',
294            'nRow' => '10',
295            'aPriceType'=> '["Pricesell",""]',
296            'BCH' => '',
297            'SHP' => '',
298            'MER' => '',
299            'SPL' => '',
300            'DISTYPE' => '',
301            'SelectTier' => 'PDT',
302            'ReturnType' => 'M',
303            'aNotinItem' => '',
304            'PDTMoveon' => '1',
305            'tSearchText' => '8851907115272',
306            'tSearchSelect' => 'FTBarCode',
307            'nTotalResult' => '2',
308            'ProductCode' => '',
309            'AgenCode' => '',
310            'tNotInPdtType' => 'null',
311            'tWhere' => '',
312            'tVatInOrEx' => '',
313            'cVatRacte' => '',
314            'nBWStaTopPdt' => '1',
315          );
316        $oOutput = $this->request(
317            'POST',
318            'common/Browserpdtcallview_controller/FSxGetProductfotPDT',
319            $aParam
320        );
321        $this->assertStringContainsString('otbBrowserListPDT', $oOutput);
322        $this->assertResponseCode(200);
323    }
324
325
326    public function test_ทดสอบบราวซ์สินค้าค้าจากหน้าจอใบปรับราคาขายและกรองข้อมูลสินค้าด้วยกลุ่มสินค้า(){
327        print "8.test_ทดสอบบราวซ์สินค้าค้าจากหน้าจอใบปรับราคาขายและกรองข้อมูลสินค้าด้วยกลุ่มสินค้า\n";
328        $aParam = array(
329            'tPagename' => '',
330            'nPage' => '1',
331            'nRow' => '10',
332            'aPriceType'=> '["Pricesell",""]',
333            'BCH' => '',
334            'SHP' => '',
335            'MER' => '',
336            'SPL' => '',
337            'DISTYPE' => '',
338            'SelectTier' => 'PDT',
339            'ReturnType' => 'M',
340            'aNotinItem' => '',
341            'PDTMoveon' => '1',
342            'tSearchText' => '00040',
343            'tSearchSelect' => 'FTPgpCode',
344            'nTotalResult' => '2',
345            'ProductCode' => '',
346            'AgenCode' => '',
347            'tNotInPdtType' => 'null',
348            'tWhere' => '',
349            'tVatInOrEx' => '',
350            'cVatRacte' => '',
351            'nBWStaTopPdt' => '1',
352          );
353        $oOutput = $this->request(
354            'POST',
355            'common/Browserpdtcallview_controller/FSxGetProductfotPDT',
356            $aParam
357        );
358        $this->assertStringContainsString('otbBrowserListPDT', $oOutput);
359        $this->assertResponseCode(200);
360    }
361
362
363    public function test_ทดสอบบราวซ์สินค้าค้าจากหน้าจอใบปรับราคาขายและกรองข้อมูลสินค้าด้วยประเภทสินค้า(){
364        print "9.test_ทดสอบบราวซ์สินค้าค้าจากหน้าจอใบปรับราคาขายและกรองข้อมูลสินค้าด้วยประเภทสินค้า\n";
365        $aParam = array(
366            'tPagename' => '',
367            'nPage' => '1',
368            'nRow' => '10',
369            'aPriceType'=> '["Pricesell",""]',
370            'BCH' => '',
371            'SHP' => '',
372            'MER' => '',
373            'SPL' => '',
374            'DISTYPE' => '',
375            'SelectTier' => 'PDT',
376            'ReturnType' => 'M',
377            'aNotinItem' => '',
378            'PDTMoveon' => '1',
379            'tSearchText' => '00040',
380            'tSearchSelect' => 'FTPtyCode',
381            'nTotalResult' => '50',
382            'ProductCode' => '',
383            'AgenCode' => '',
384            'tNotInPdtType' => 'null',
385            'tWhere' => '',
386            'tVatInOrEx' => '',
387            'cVatRacte' => '',
388            'nBWStaTopPdt' => '1',
389          );
390        $oOutput = $this->request(
391            'POST',
392            'common/Browserpdtcallview_controller/FSxGetProductfotPDT',
393            $aParam
394        );
395        $this->assertStringContainsString('otbBrowserListPDT', $oOutput);
396        $this->assertResponseCode(200);
397    }
398
399    public function test_ทดสอบบราวซ์สินค้าค้าจากหน้าจอใบปรับราคาขายและกรองข้อมูลสินค้าด้วยยี่ห้อสินค้า(){
400        print "10.test_ทดสอบบราวซ์สินค้าค้าจากหน้าจอใบปรับราคาขายและกรองข้อมูลสินค้าด้วยยี่ห้อสินค้า\n";
401        $aParam = array(
402            'tPagename' => '',
403            'nPage' => '1',
404            'nRow' => '10',
405            'aPriceType'=> '["Pricesell",""]',
406            'BCH' => '',
407            'SHP' => '',
408            'MER' => '',
409            'SPL' => '',
410            'DISTYPE' => '',
411            'SelectTier' => 'PDT',
412            'ReturnType' => 'M',
413            'aNotinItem' => '',
414            'PDTMoveon' => '1',
415            'tSearchText' => '00001',
416            'tSearchSelect' => 'FTPbnCode',
417            'nTotalResult' => '50',
418            'ProductCode' => '',
419            'AgenCode' => '',
420            'tNotInPdtType' => 'null',
421            'tWhere' => '',
422            'tVatInOrEx' => '',
423            'cVatRacte' => '',
424            'nBWStaTopPdt' => '1',
425          );
426        $oOutput = $this->request(
427            'POST',
428            'common/Browserpdtcallview_controller/FSxGetProductfotPDT',
429            $aParam
430        );
431        $this->assertStringContainsString('otbBrowserListPDT', $oOutput);
432        $this->assertResponseCode(200);
433    }
434
435
436    public function test_ทดสอบบราวซ์สินค้าค้าจากหน้าจอใบปรับราคาขายและกรองข้อมูลสินค้าไม่เคลื่อนไหว(){
437        print "11.test_ทดสอบบราวซ์สินค้าค้าจากหน้าจอใบปรับราคาขายและกรองข้อมูลสินค้าไม่เคลื่อนไหว\n";
438        $aParam = array(
439            'tPagename' => '',
440            'nPage' => '1',
441            'nRow' => '10',
442            'aPriceType'=> '["Pricesell",""]',
443            'BCH' => '',
444            'SHP' => '',
445            'MER' => '',
446            'SPL' => '',
447            'DISTYPE' => '',
448            'SelectTier' => 'PDT',
449            'ReturnType' => 'M',
450            'aNotinItem' => '',
451            'PDTMoveon' => '2',
452            'tSearchText' => '',
453            'tSearchSelect' => 'FTPdtCode',
454            'nTotalResult' => '50',
455            'ProductCode' => '',
456            'AgenCode' => '',
457            'tNotInPdtType' => 'null',
458            'tWhere' => '',
459            'tVatInOrEx' => '',
460            'cVatRacte' => '',
461            'nBWStaTopPdt' => '1',
462          );
463        $oOutput = $this->request(
464            'POST',
465            'common/Browserpdtcallview_controller/FSxGetProductfotPDT',
466            $aParam
467        );
468        $this->assertStringContainsString('otbBrowserListPDT', $oOutput);
469        $this->assertResponseCode(200);
470    }
471
472
473
474    public function test_ทดสอบบราวซ์สินค้าค้าจากหน้าจอใบปรับราคาขายและกรองข้อมูลสินค้าไม่เคลื่อนไหวและกรองชื่อสินค้า(){
475        print "12.test_ทดสอบบราวซ์สินค้าค้าจากหน้าจอใบปรับราคาขายและกรองข้อมูลสินค้าไม่เคลื่อนไหวและกรองชื่อสินค้า\n";
476        $aParam = array(
477            'tPagename' => '',
478            'nPage' => '1',
479            'nRow' => '10',
480            'aPriceType'=> '["Pricesell",""]',
481            'BCH' => '',
482            'SHP' => '',
483            'MER' => '',
484            'SPL' => '',
485            'DISTYPE' => '',
486            'SelectTier' => 'PDT',
487            'ReturnType' => 'M',
488            'aNotinItem' => '',
489            'PDTMoveon' => '2',
490            'tSearchText' => '0001',
491            'tSearchSelect' => 'FTPdtName',
492            'nTotalResult' => '50',
493            'ProductCode' => '',
494            'AgenCode' => '',
495            'tNotInPdtType' => 'null',
496            'tWhere' => '',
497            'tVatInOrEx' => '',
498            'cVatRacte' => '',
499            'nBWStaTopPdt' => '1',
500          );
501        $oOutput = $this->request(
502            'POST',
503            'common/Browserpdtcallview_controller/FSxGetProductfotPDT',
504            $aParam
505        );
506        $this->assertStringContainsString('otbBrowserListPDT', $oOutput);
507        $this->assertResponseCode(200);
508    }
509
510}