| 1 | <?php |
| 2 | |
| 3 | |
| 4 | |
| 5 | |
| 6 | |
| 7 | |
| 8 | |
| 9 | |
| 10 | |
| 11 | class Settingconfig_test extends TestCase |
| 12 | { |
| 13 | |
| 14 | |
| 15 | |
| 16 | public function __construct() { |
| 17 | parent::__construct(); |
| 18 | $ci = &get_instance(); |
| 19 | $ci->load->helper('validator_helper'); |
| 20 | $this->code = substr(md5(uniqid(mt_rand(), true)), 0, 5); |
| 21 | $_SESSION =array ( |
| 22 | '__ci_last_regenerate' => 1674475513, |
| 23 | 'lang' => 'th', |
| 24 | 'tLangID' => 1, |
| 25 | 'tSesUserLogin' => '009', |
| 26 | 'tSesUsrRoleCodeMulti' => '\'00002\'', |
| 27 | 'nSesUsrRoleLevel' => 99, |
| 28 | 'tSesUsrAgnCode' => NULL, |
| 29 | 'tSesUsrAgnName' => NULL, |
| 30 | 'tSesUsrMerCode' => NULL, |
| 31 | 'tSesUsrMerName' => NULL, |
| 32 | 'tSesUsrBchCodeDefault' => '00001', |
| 33 | 'tSesUsrBchNameDefault' => 'AdaSoft00001', |
| 34 | 'tSesUsrBchCodeMulti' => '\'00001\'', |
| 35 | 'tSesUsrBchNameMulti' => '\'AdaSoft00001\'', |
| 36 | 'nSesUsrBchCount' => 0, |
| 37 | 'tSesUsrShpCodeDefault' => '00014', |
| 38 | 'tSesUsrShpNameDefault' => 'รันไทม์ช็อป', |
| 39 | 'tSesUsrShpCodeMulti' => '\'00014\'', |
| 40 | 'tSesUsrShpNameMulti' => '\'รันไทม์ช็อป\'', |
| 41 | 'nSesUsrShpCount' => 0, |
| 42 | 'tSesUsrWahCode' => '00001', |
| 43 | 'tSesUsrWahName' => 'คลังขาย', |
| 44 | 'tSesUsrLoginLevel' => 'HQ', |
| 45 | 'tSesUsrLoginAgency' => 0, |
| 46 | 'bSesLogIn' => 1, |
| 47 | 'tSesUserCode' => '00002', |
| 48 | 'tSesUsername' => '00002', |
| 49 | 'tSesUsrDptName' => NULL, |
| 50 | 'tSesUsrDptCode' => NULL, |
| 51 | 'tSesUsrUsername' => 'Adasoft', |
| 52 | 'tSesUsrImagePerson' => NULL, |
| 53 | 'tSesUsrInfo' => |
| 54 | array ( |
| 55 | 'FTUsrStaActive' => 1, |
| 56 | 'FTUsrLogType' => 1, |
| 57 | 'FTStaError' => 0, |
| 58 | 'FTUsrCode' => '00002', |
| 59 | 'FTUsrName' => 'Adasoft', |
| 60 | 'FTDptCode' => NULL, |
| 61 | 'FTDptName' => NULL, |
| 62 | 'FTImgObj' => NULL, |
| 63 | ), |
| 64 | 'tSesUsrGroup' => |
| 65 | array ( |
| 66 | 0 => |
| 67 | array ( |
| 68 | 'FTUsrCode' => '00002', |
| 69 | 'FTAgnCode' => NULL, |
| 70 | 'FTAgnName' => NULL, |
| 71 | 'FTBchCode' => NULL, |
| 72 | 'FTBchName' => NULL, |
| 73 | 'FTShpCode' => NULL, |
| 74 | 'FTShpName' => NULL, |
| 75 | 'FTMerCode' => NULL, |
| 76 | 'FTMerName' => NULL, |
| 77 | 'FTWahCode' => NULL, |
| 78 | 'FTWahName' => NULL, |
| 79 | 'FTLoginLevel' => 'HQ', |
| 80 | 'FTStaLoginAgn' => 0, |
| 81 | ), |
| 82 | ), |
| 83 | 'tSesSessionID' => '0000220230123185822', |
| 84 | 'tSesSessionDate' => '2023-01-23 18:58:22', |
| 85 | 'tLangEdit' => 1, |
| 86 | 'bIsHaveAgn' => NULL, |
| 87 | 'tSesUsrLevel' => 'HQ', |
| 88 | '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\'', |
| 89 | 'bShpEnabled' => 1, |
| 90 | 'bAgnEnabled' => 1, |
| 91 | 'bLockerEnabled' => NULL, |
| 92 | 'bPdtFasionEnabled' => NULL, |
| 93 | 'tSesHQBchCode' => '00001', |
| 94 | 'bSesRegStaLicense' => 1, |
| 95 | 'tSesCstKey' => '52a8a4705e6c', |
| 96 | 'bSesRegStaBuyPackage' => 1, |
| 97 | ); |
| 98 | |
| 99 | $_COOKIE['nBrwTopWebCookie_00002'] = 50; |
| 100 | $_COOKIE['nSesTopPdt_00002'] = 50; |
| 101 | } |
| 102 | |
| 103 | |
| 104 | |
| 105 | |
| 106 | |
| 107 | |
| 108 | |
| 109 | |
| 110 | |
| 111 | |
| 112 | |
| 113 | |
| 114 | |
| 115 | public function test_เข้าหน้าแรก(){ |
| 116 | print " 1.เข้าหน้า index สำเร็จ\n"; |
| 117 | $output = $this->request( |
| 118 | 'POST', |
| 119 | 'settingconfig/settingconfig/Settingconfig_controller/index/0/0' |
| 120 | ); |
| 121 | $this->assertStringContainsString('oetSettingConfigStaBrowse', $output); |
| 122 | $this->assertResponseCode(200); |
| 123 | } |
| 124 | |
| 125 | |
| 126 | public function test_โหลดแทบหน้าเมนู(){ |
| 127 | print " 2.โหลดแทบหน้าเมนู สำเร็จ\n"; |
| 128 | $output = $this->request( |
| 129 | 'POST', |
| 130 | 'settingconfig/settingconfig/Settingconfig_controller/FSvSETGetPageList' |
| 131 | ); |
| 132 | $this->assertStringContainsString('odvSettingConfig', $output); |
| 133 | $this->assertResponseCode(200); |
| 134 | } |
| 135 | |
| 136 | |
| 137 | public function test_โหลดตัวกรองเพื่อแสดง(){ |
| 138 | print " 3.โหลดตัวกรองเพื่อแสดง สำเร็จ\n"; |
| 139 | $aParam = array( |
| 140 | 'ptTypePage' => 'Main' |
| 141 | ); |
| 142 | $output = $this->request( |
| 143 | 'POST', |
| 144 | 'settingconfig/settingconfig/Settingconfig_controller/FSvSETGetPageListSearch', |
| 145 | $aParam |
| 146 | ); |
| 147 | $this->assertStringContainsString('ohdSETTypePage', $output); |
| 148 | $this->assertResponseCode(200); |
| 149 | } |
| 150 | |
| 151 | |
| 152 | |
| 153 | |
| 154 | public function test_แสดงตารางข้อมูลการตั้งค่า(){ |
| 155 | print " 4.แสดงตารางข้อมูลการตั้งค่า สำเร็จ\n"; |
| 156 | $aParam = array( |
| 157 | 'tAppType' => '0', |
| 158 | 'tSearch' => '', |
| 159 | 'ptTypePage' => 'Main', |
| 160 | 'ptAgnCode' => '', |
| 161 | ); |
| 162 | $output = $this->request( |
| 163 | 'POST', |
| 164 | 'settingconfig/settingconfig/Settingconfig_controller/FSvSETSettingGetTable', |
| 165 | $aParam |
| 166 | ); |
| 167 | $this->assertStringContainsString('table-responsive', $output); |
| 168 | $this->assertResponseCode(200); |
| 169 | } |
| 170 | |
| 171 | |
| 172 | |
| 173 | |
| 174 | public function test_แสดงตารางข้อมูลการตั้งค่าและกรองระบบเจ้าหนี้(){ |
| 175 | print " 5.แสดงตารางข้อมูลการตั้งค่าและกรองระบบเจ้าหนี้ สำเร็จ\n"; |
| 176 | $aParam = array( |
| 177 | 'tAppType' => 'AP', |
| 178 | 'tSearch' => '', |
| 179 | 'ptTypePage' => 'Main', |
| 180 | 'ptAgnCode' => '', |
| 181 | ); |
| 182 | $output = $this->request( |
| 183 | 'POST', |
| 184 | 'settingconfig/settingconfig/Settingconfig_controller/FSvSETSettingGetTable', |
| 185 | $aParam |
| 186 | ); |
| 187 | $this->assertStringContainsString('table-responsive', $output); |
| 188 | $this->assertResponseCode(200); |
| 189 | } |
| 190 | |
| 191 | |
| 192 | public function test_แสดงตารางข้อมูลการตั้งค่าและกรองระบบลูกหนี้(){ |
| 193 | print " 6.แสดงตารางข้อมูลการตั้งค่าและกรองระบบลูกหนี้ สำเร็จ\n"; |
| 194 | $aParam = array( |
| 195 | 'tAppType' => 'AR', |
| 196 | 'tSearch' => '', |
| 197 | 'ptTypePage' => 'Main', |
| 198 | 'ptAgnCode' => '', |
| 199 | ); |
| 200 | $output = $this->request( |
| 201 | 'POST', |
| 202 | 'settingconfig/settingconfig/Settingconfig_controller/FSvSETSettingGetTable', |
| 203 | $aParam |
| 204 | ); |
| 205 | $this->assertStringContainsString('table-responsive', $output); |
| 206 | $this->assertResponseCode(200); |
| 207 | } |
| 208 | |
| 209 | |
| 210 | public function test_แสดงตารางข้อมูลการตั้งค่าและกรองส่วนกลาง(){ |
| 211 | print " 7.แสดงตารางข้อมูลการตั้งค่าและกรองส่วนกลาง สำเร็จ\n"; |
| 212 | $aParam = array( |
| 213 | 'tAppType' => 'CN', |
| 214 | 'tSearch' => '', |
| 215 | 'ptTypePage' => 'Main', |
| 216 | 'ptAgnCode' => '', |
| 217 | ); |
| 218 | $output = $this->request( |
| 219 | 'POST', |
| 220 | 'settingconfig/settingconfig/Settingconfig_controller/FSvSETSettingGetTable', |
| 221 | $aParam |
| 222 | ); |
| 223 | $this->assertStringContainsString('table-responsive', $output); |
| 224 | $this->assertResponseCode(200); |
| 225 | } |
| 226 | |
| 227 | |
| 228 | public function test_แสดงตารางข้อมูลการตั้งค่าและกรองระบบแคชเชียร์(){ |
| 229 | print " 8.แสดงตารางข้อมูลการตั้งค่าและกรองระบบแคชเชียร์ สำเร็จ\n"; |
| 230 | $aParam = array( |
| 231 | 'tAppType' => 'FC', |
| 232 | 'tSearch' => '', |
| 233 | 'ptTypePage' => 'Main', |
| 234 | 'ptAgnCode' => '', |
| 235 | ); |
| 236 | $output = $this->request( |
| 237 | 'POST', |
| 238 | 'settingconfig/settingconfig/Settingconfig_controller/FSvSETSettingGetTable', |
| 239 | $aParam |
| 240 | ); |
| 241 | $this->assertStringContainsString('table-responsive', $output); |
| 242 | $this->assertResponseCode(200); |
| 243 | } |
| 244 | |
| 245 | |
| 246 | public function test_แสดงตารางข้อมูลการตั้งค่าและกรองระบบสมาชิก(){ |
| 247 | print " 9.แสดงตารางข้อมูลการตั้งค่าและกรอระบบสมาชิก สำเร็จ\n"; |
| 248 | $aParam = array( |
| 249 | 'tAppType' => 'MB', |
| 250 | 'tSearch' => '', |
| 251 | 'ptTypePage' => 'Main', |
| 252 | 'ptAgnCode' => '', |
| 253 | ); |
| 254 | $output = $this->request( |
| 255 | 'POST', |
| 256 | 'settingconfig/settingconfig/Settingconfig_controller/FSvSETSettingGetTable', |
| 257 | $aParam |
| 258 | ); |
| 259 | $this->assertStringContainsString('table-responsive', $output); |
| 260 | $this->assertResponseCode(200); |
| 261 | } |
| 262 | |
| 263 | |
| 264 | public function test_แสดงตารางข้อมูลการตั้งค่าและกรองระบบขาย(){ |
| 265 | print " 10.แสดงตารางข้อมูลการตั้งค่าและกรอระบบขาย สำเร็จ\n"; |
| 266 | $aParam = array( |
| 267 | 'tAppType' => 'PS', |
| 268 | 'tSearch' => '', |
| 269 | 'ptTypePage' => 'Main', |
| 270 | 'ptAgnCode' => '', |
| 271 | ); |
| 272 | $output = $this->request( |
| 273 | 'POST', |
| 274 | 'settingconfig/settingconfig/Settingconfig_controller/FSvSETSettingGetTable', |
| 275 | $aParam |
| 276 | ); |
| 277 | $this->assertStringContainsString('table-responsive', $output); |
| 278 | $this->assertResponseCode(200); |
| 279 | } |
| 280 | |
| 281 | |
| 282 | |
| 283 | public function test_แสดงตารางข้อมูลการตั้งค่าและกรองระบบหลังบ้าน(){ |
| 284 | print " 11.แสดงตารางข้อมูลการตั้งค่าและกรอระบบหลังบ้าน สำเร็จ\n"; |
| 285 | $aParam = array( |
| 286 | 'tAppType' => 'SB', |
| 287 | 'tSearch' => '', |
| 288 | 'ptTypePage' => 'Main', |
| 289 | 'ptAgnCode' => '', |
| 290 | ); |
| 291 | $output = $this->request( |
| 292 | 'POST', |
| 293 | 'settingconfig/settingconfig/Settingconfig_controller/FSvSETSettingGetTable', |
| 294 | $aParam |
| 295 | ); |
| 296 | $this->assertStringContainsString('table-responsive', $output); |
| 297 | $this->assertResponseCode(200); |
| 298 | } |
| 299 | |
| 300 | |
| 301 | public function test_แสดงตารางข้อมูลการตั้งค่าและกรองระบบขายไร้พนักงาน(){ |
| 302 | print " 12.แสดงตารางข้อมูลการตั้งค่าและกรอระบบขายไร้พนักงาน สำเร็จ\n"; |
| 303 | $aParam = array( |
| 304 | 'tAppType' => 'SCO', |
| 305 | 'tSearch' => '', |
| 306 | 'ptTypePage' => 'Main', |
| 307 | 'ptAgnCode' => '', |
| 308 | ); |
| 309 | $output = $this->request( |
| 310 | 'POST', |
| 311 | 'settingconfig/settingconfig/Settingconfig_controller/FSvSETSettingGetTable', |
| 312 | $aParam |
| 313 | ); |
| 314 | $this->assertStringContainsString('table-responsive', $output); |
| 315 | $this->assertResponseCode(200); |
| 316 | } |
| 317 | |
| 318 | |
| 319 | |
| 320 | |
| 321 | public function test_แสดงตารางข้อมูลการตั้งค่าและกรองระบบตู้ฝาก(){ |
| 322 | print " 12.แสดงตารางข้อมูลการตั้งค่าและกรอระบบตู้ฝาก สำเร็จ\n"; |
| 323 | $aParam = array( |
| 324 | 'tAppType' => 'SL', |
| 325 | 'tSearch' => '', |
| 326 | 'ptTypePage' => 'Main', |
| 327 | 'ptAgnCode' => '', |
| 328 | ); |
| 329 | $output = $this->request( |
| 330 | 'POST', |
| 331 | 'settingconfig/settingconfig/Settingconfig_controller/FSvSETSettingGetTable', |
| 332 | $aParam |
| 333 | ); |
| 334 | $this->assertStringContainsString('table-responsive', $output); |
| 335 | $this->assertResponseCode(200); |
| 336 | } |
| 337 | |
| 338 | |
| 339 | |
| 340 | |
| 341 | public function test_แสดงตารางข้อมูลการตั้งค่าและกรองระบบตู้ขาย(){ |
| 342 | print " 13.แสดงตารางข้อมูลการตั้งค่าและกรอระบบตู้ขาย สำเร็จ\n"; |
| 343 | $aParam = array( |
| 344 | 'tAppType' => 'VD', |
| 345 | 'tSearch' => '', |
| 346 | 'ptTypePage' => 'Main', |
| 347 | 'ptAgnCode' => '', |
| 348 | ); |
| 349 | $output = $this->request( |
| 350 | 'POST', |
| 351 | 'settingconfig/settingconfig/Settingconfig_controller/FSvSETSettingGetTable', |
| 352 | $aParam |
| 353 | ); |
| 354 | $this->assertStringContainsString('table-responsive', $output); |
| 355 | $this->assertResponseCode(200); |
| 356 | } |
| 357 | |
| 358 | |
| 359 | public function test_แสดงตารางข้อมูลการตั้งค่าและกรองระบบตหน่วยรถ(){ |
| 360 | print " 14.แสดงตารางข้อมูลการตั้งค่าและกรอระบบตหน่วยรถ สำเร็จ\n"; |
| 361 | $aParam = array( |
| 362 | 'tAppType' => 'VS', |
| 363 | 'tSearch' => '', |
| 364 | 'ptTypePage' => 'Main', |
| 365 | 'ptAgnCode' => '', |
| 366 | ); |
| 367 | $output = $this->request( |
| 368 | 'POST', |
| 369 | 'settingconfig/settingconfig/Settingconfig_controller/FSvSETSettingGetTable', |
| 370 | $aParam |
| 371 | ); |
| 372 | $this->assertStringContainsString('table-responsive', $output); |
| 373 | $this->assertResponseCode(200); |
| 374 | } |
| 375 | |
| 376 | |
| 377 | |
| 378 | |
| 379 | public function test_แสดงตารางข้อมูลการตั้งค่าและกรองด้วยชื่อ(){ |
| 380 | print " 15.แสดงตารางข้อมูลการตั้งค่าและกรองด้วยชื่อ สำเร็จ\n"; |
| 381 | $aParam = array( |
| 382 | 'tAppType' => '0', |
| 383 | 'tSearch' => 'มีจำนวนสั่งซื้อเป็น 0', |
| 384 | 'ptTypePage' => 'Main', |
| 385 | 'ptAgnCode' => '', |
| 386 | ); |
| 387 | $output = $this->request( |
| 388 | 'POST', |
| 389 | 'settingconfig/settingconfig/Settingconfig_controller/FSvSETSettingGetTable', |
| 390 | $aParam |
| 391 | ); |
| 392 | $this->assertStringContainsString('table-responsive', $output); |
| 393 | $this->assertResponseCode(200); |
| 394 | } |
| 395 | |
| 396 | |
| 397 | |
| 398 | |
| 399 | public function test_แสดงตารางข้อมูลการตั้งค่าและกรองด้วยชื่อและกรองด้วยระบบเจ้าหนี้(){ |
| 400 | print " 16.แสดงตารางข้อมูลการตั้งค่าและกรองด้วยชื่อและกรองด้วยระบบเจ้าหนี้ สำเร็จ\n"; |
| 401 | $aParam = array( |
| 402 | 'tAppType' => 'AP', |
| 403 | 'tSearch' => 'มีจำนวนสั่งซื้อเป็น 0', |
| 404 | 'ptTypePage' => 'Main', |
| 405 | 'ptAgnCode' => '', |
| 406 | ); |
| 407 | $output = $this->request( |
| 408 | 'POST', |
| 409 | 'settingconfig/settingconfig/Settingconfig_controller/FSvSETSettingGetTable', |
| 410 | $aParam |
| 411 | ); |
| 412 | $this->assertStringContainsString('table-responsive', $output); |
| 413 | $this->assertResponseCode(200); |
| 414 | } |
| 415 | |
| 416 | |
| 417 | |
| 418 | |
| 419 | public function test_แสดงตารางข้อมูลการตั้งค่าและกรองด้วยชื่อและกรองด้วยระบบลูกหนี้(){ |
| 420 | print " 17.แสดงตารางข้อมูลการตั้งค่าและกรองด้วยชื่อและกรองด้วยระบบลูกหนี้ สำเร็จ\n"; |
| 421 | $aParam = array( |
| 422 | 'tAppType' => 'AR', |
| 423 | 'tSearch' => 'มีจำนวนสั่งซื้อเป็น 0', |
| 424 | 'ptTypePage' => 'Main', |
| 425 | 'ptAgnCode' => '', |
| 426 | ); |
| 427 | $output = $this->request( |
| 428 | 'POST', |
| 429 | 'settingconfig/settingconfig/Settingconfig_controller/FSvSETSettingGetTable', |
| 430 | $aParam |
| 431 | ); |
| 432 | $this->assertStringContainsString('table-responsive', $output); |
| 433 | $this->assertResponseCode(200); |
| 434 | } |
| 435 | |
| 436 | |
| 437 | public function test_แสดงตารางข้อมูลการตั้งค่าและกรองด้วยชื่อและกรองส่วนกลาง(){ |
| 438 | print " 18.แสดงตารางข้อมูลการตั้งค่าและกรองด้วยชื่อและกรองส่วนกลาง สำเร็จ\n"; |
| 439 | $aParam = array( |
| 440 | 'tAppType' => 'CN', |
| 441 | 'tSearch' => 'มีจำนวนสั่งซื้อเป็น 0', |
| 442 | 'ptTypePage' => 'Main', |
| 443 | 'ptAgnCode' => '', |
| 444 | ); |
| 445 | $output = $this->request( |
| 446 | 'POST', |
| 447 | 'settingconfig/settingconfig/Settingconfig_controller/FSvSETSettingGetTable', |
| 448 | $aParam |
| 449 | ); |
| 450 | $this->assertStringContainsString('table-responsive', $output); |
| 451 | $this->assertResponseCode(200); |
| 452 | } |
| 453 | |
| 454 | |
| 455 | |
| 456 | public function test_แสดงตารางข้อมูลการตั้งค่าและกรองด้วยชื่อและกรองระบบแคชเชียร์(){ |
| 457 | print " 19.แสดงตารางข้อมูลการตั้งค่าและกรองด้วยชื่อและกรองระบบแคชเชียร์ สำเร็จ\n"; |
| 458 | $aParam = array( |
| 459 | 'tAppType' => 'FC', |
| 460 | 'tSearch' => 'มีจำนวนสั่งซื้อเป็น 0', |
| 461 | 'ptTypePage' => 'Main', |
| 462 | 'ptAgnCode' => '', |
| 463 | ); |
| 464 | $output = $this->request( |
| 465 | 'POST', |
| 466 | 'settingconfig/settingconfig/Settingconfig_controller/FSvSETSettingGetTable', |
| 467 | $aParam |
| 468 | ); |
| 469 | $this->assertStringContainsString('table-responsive', $output); |
| 470 | $this->assertResponseCode(200); |
| 471 | } |
| 472 | |
| 473 | |
| 474 | public function test_แสดงตารางข้อมูลการตั้งค่าและกรองด้วยชื่อและกรองระบบสมาชิก(){ |
| 475 | print " 19.แสดงตารางข้อมูลการตั้งค่าและกรองด้วยชื่อและกรองระบบสมาชิก สำเร็จ\n"; |
| 476 | $aParam = array( |
| 477 | 'tAppType' => 'MC', |
| 478 | 'tSearch' => 'มีจำนวนสั่งซื้อเป็น 0', |
| 479 | 'ptTypePage' => 'Main', |
| 480 | 'ptAgnCode' => '', |
| 481 | ); |
| 482 | $output = $this->request( |
| 483 | 'POST', |
| 484 | 'settingconfig/settingconfig/Settingconfig_controller/FSvSETSettingGetTable', |
| 485 | $aParam |
| 486 | ); |
| 487 | $this->assertStringContainsString('table-responsive', $output); |
| 488 | $this->assertResponseCode(200); |
| 489 | } |
| 490 | |
| 491 | |
| 492 | |
| 493 | public function test_แสดงตารางข้อมูลการตั้งค่าและกรองด้วยชื่อและกรองระบบขาย(){ |
| 494 | print " 20.แสดงตารางข้อมูลการตั้งค่าและกรองด้วยชื่อและกรองระบบขาย สำเร็จ\n"; |
| 495 | $aParam = array( |
| 496 | 'tAppType' => 'PS', |
| 497 | 'tSearch' => 'มีจำนวนสั่งซื้อเป็น 0', |
| 498 | 'ptTypePage' => 'Main', |
| 499 | 'ptAgnCode' => '', |
| 500 | ); |
| 501 | $output = $this->request( |
| 502 | 'POST', |
| 503 | 'settingconfig/settingconfig/Settingconfig_controller/FSvSETSettingGetTable', |
| 504 | $aParam |
| 505 | ); |
| 506 | $this->assertStringContainsString('table-responsive', $output); |
| 507 | $this->assertResponseCode(200); |
| 508 | } |
| 509 | } |