[opendebitdeboisson-commits] r394 - trunk/tests

0 views
Skip to first unread message

fmi...@hephaestos.ovh.adullact.org

unread,
Mar 25, 2020, 6:30:20 PM3/25/20
to openmairie-ope...@googlegroups.com
Author: fmichon
Date: 2020-03-25 23:30:19 +0100 (Wed, 25 Mar 2020)
New Revision: 394

Modified:
trunk/tests/testGeneral_common.php
Log:
* Tests : Compatibilite phpunit 7 et phpunit 8.


Modified: trunk/tests/testGeneral_common.php
===================================================================
--- trunk/tests/testGeneral_common.php 2020-03-25 22:28:02 UTC (rev 393)
+++ trunk/tests/testGeneral_common.php 2020-03-25 22:30:19 UTC (rev 394)
@@ -42,16 +42,10 @@
public function test_template() {
// Instance de la classe Utils
require_once "../obj/opendebitdeboisson.class.php";
- @session_start();
- $_SESSION['collectivite'] = 1;
- $_SESSION['login'] = "admin";
- $_SERVER['REQUEST_URI'] = "";
- $f = new opendebitdeboisson("nohtml");
+ $f = new opendebitdeboisson("anonym");
$f->disableLog();
-
// Test
$this->assertEquals(true, true);
-
// Destruction de la classe Utils
$f->__destruct();
}

Reply all
Reply to author
Forward
0 new messages