File tree Expand file tree Collapse file tree 1 file changed +20
-10
lines changed Expand file tree Collapse file tree 1 file changed +20
-10
lines changed Original file line number Diff line number Diff line change @@ -469,11 +469,16 @@ public function testAppSecFlow()
469
469
);
470
470
471
471
$ originCountItem = $ cache ->getItem (AbstractCache::ORIGINS_COUNT )->get ();
472
- $ this ->assertEquals (
473
- 1 ,
474
- $ originCountItem ['appsec ' ],
475
- 'The origin count for appsec should be 1 '
476
- );
472
+ if ($ this ->useTls ) {
473
+ $ this ->assertArrayNotHasKey ('appsec ' , $ originCountItem , 'The origin count for appsec should not be present ' );
474
+ } else {
475
+ $ this ->assertEquals (
476
+ 1 ,
477
+ $ originCountItem ['appsec ' ],
478
+ 'The origin count for appsec should be 1 '
479
+ );
480
+ }
481
+
477
482
$ this ->assertEquals (
478
483
1 ,
479
484
$ originCountItem ['clean ' ],
@@ -494,11 +499,16 @@ public function testAppSecFlow()
494
499
);
495
500
496
501
$ originCountItem = $ cache ->getItem (AbstractCache::ORIGINS_COUNT )->get ();
497
- $ this ->assertEquals (
498
- 1 ,
499
- $ originCountItem ['clean_appsec ' ],
500
- 'The origin count for clean_appsec should be 1 '
501
- );
502
+ if ($ this ->useTls ) {
503
+ $ this ->assertArrayNotHasKey ('appsec ' , $ originCountItem , 'The origin count for appsec should not be present ' );
504
+ } else {
505
+ $ this ->assertEquals (
506
+ 1 ,
507
+ $ originCountItem ['clean_appsec ' ],
508
+ 'The origin count for appsec should be 1 '
509
+ );
510
+ }
511
+
502
512
$ this ->assertEquals (
503
513
1 ,
504
514
$ originCountItem ['clean ' ],
You can’t perform that action at this time.
0 commit comments