| Conditions | 1 |
| Paths | 1 |
| Total Lines | 18 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 29 | public function testModulerAjax(): void |
||
| 30 | { |
||
| 31 | new Preludium(); |
||
| 32 | |||
| 33 | /** |
||
| 34 | * Preparera. |
||
| 35 | */ |
||
| 36 | $_REQUEST['uppdatera_moduler'] = 'moduler[]=HG&moduler[]=Autospik&moduler[]=FANN&moduler[]=Andel&moduler[]=System&moduler[]=Distribution&moduler[]=Kluster&moduler[]=TT&moduler[]=Vinstgraf'; |
||
| 37 | new ModulerAjax(); |
||
| 38 | $spel = new Spel(); |
||
| 39 | $tips = new Tips($spel); |
||
| 40 | $moduler = new Moduler($tips->utdelning, $tips->odds, $tips->streck, $tips->matcher); |
||
| 41 | $this->assertCount(9, $moduler->moduler); |
||
| 42 | unset($_REQUEST['uppdatera_moduler']); |
||
| 43 | |||
| 44 | $_REQUEST['uppdatera_moduler'] = false; |
||
| 45 | new ModulerAjax(); |
||
| 46 | unset($_REQUEST['uppdatera_moduler']); |
||
| 47 | } |
||
| 49 |