[tests ↪ refactor] 5 commits

spip/tests | 5 commits

Par Cerdic, le 20 juillet 2021 à 11h54min :

ne pas s’appuyer sur la localisation du fichier test_fonctions.php

Modifié
index.php
test_fonctions.php

Détails : ne pas s'appuyer sur la localisation du fichier test_fonctions.php · 3ab199b173 - tests - SPIP on GIT

==============================
Par Cerdic, le 20 juillet 2021 à 12h04min :

deplacement du fichier _fonctions

Modifié
index.php
test.inc

Détails : deplacement du fichier _fonctions · 82a7168bc0 - tests - SPIP on GIT

==============================
Par Cerdic, le 20 juillet 2021 à 12h05min :

Fix remontee quand on run en cli

Modifié
tests/legacy/unit/connect_sql/id_table_objet.php
tests/legacy/unit/connect_sql/objet_type.php
tests/legacy/unit/connect_sql/query_echappe_textes.php
tests/legacy/unit/connect_sql/table_objet.php
tests/legacy/unit/connect_sql/table_objet_sql.php
tests/legacy/unit/distant/need_proxy.php
tests/legacy/unit/distant/url_to_ascii.php
tests/legacy/unit/distant/valider_url_distante.php
tests/legacy/unit/editer_liens/objet_associable.php
tests/legacy/unit/editer_liens/objet_associer.php
tests/legacy/unit/editer_liens/objet_dissocier.php
tests/legacy/unit/editer_liens/objet_qualifier_liens.php
tests/legacy/unit/entrees_sorties/flock_sous_repertoire.php
tests/legacy/unit/entrees_sorties/spip_nfslock.php
tests/legacy/unit/filtres/affdate.php
tests/legacy/unit/filtres/affdate_court.php
tests/legacy/unit/filtres/affdate_debut_fin.php
tests/legacy/unit/filtres/affdate_heure.php
tests/legacy/unit/filtres/affdate_jourcourt.php
tests/legacy/unit/filtres/affdate_mois_annee.php
tests/legacy/unit/filtres/ajouter_class.php
tests/legacy/unit/filtres/annee.php
tests/legacy/unit/filtres/antispam.php
tests/legacy/unit/filtres/appliquer_filtre.php
tests/legacy/unit/filtres/attribut_html.php
tests/legacy/unit/filtres/chercher_filtre.php
tests/legacy/unit/filtres/code.php
tests/legacy/unit/filtres/commuter_class.php
tests/legacy/unit/filtres/corriger_entites_html.php
tests/legacy/unit/filtres/date_ical.php
tests/legacy/unit/filtres/date_interface.php
tests/legacy/unit/filtres/date_iso.php
tests/legacy/unit/filtres/date_relative.php
tests/legacy/unit/filtres/div.php
tests/legacy/unit/filtres/echapper_tags.php
tests/legacy/unit/filtres/entites_html.php
tests/legacy/unit/filtres/extraire_attribut.php
tests/legacy/unit/filtres/extraire_balise.php
tests/legacy/unit/filtres/extraire_date.php
tests/legacy/unit/filtres/extraire_multi.php
tests/legacy/unit/filtres/filtre_balise_img_dist.php
tests/legacy/unit/filtres/filtrer_entites.php
tests/legacy/unit/filtres/form_hidden_arbo.php
tests/legacy/unit/filtres/form_hidden_html.php
tests/legacy/unit/filtres/form_hidden_libres.php
tests/legacy/unit/filtres/form_hidden_page.php
tests/legacy/unit/filtres/form_hidden_propres.php
tests/legacy/unit/filtres/form_hidden_propres_qs.php
tests/legacy/unit/filtres/form_hidden_standard.php
tests/legacy/unit/filtres/hauteur.php
tests/legacy/unit/filtres/heures.php
tests/legacy/unit/filtres/heures_minutes.php
tests/legacy/unit/filtres/identifiant_slug.php
tests/legacy/unit/filtres/inserer_attribut.php
tests/legacy/unit/filtres/jour.php
tests/legacy/unit/filtres/journum.php
tests/legacy/unit/filtres/largeur.php
tests/legacy/unit/filtres/lien_ou_expose.php
tests/legacy/unit/filtres/liens_absolus.php
tests/legacy/unit/filtres/minutes.php
tests/legacy/unit/filtres/modulo.php
tests/legacy/unit/filtres/moins.php
tests/legacy/unit/filtres/mois.php
tests/legacy/unit/filtres/mult.php
tests/legacy/unit/filtres/nom_jour.php
tests/legacy/unit/filtres/nom_mois.php
tests/legacy/unit/filtres/normaliser_date.php
tests/legacy/unit/filtres/plus.php
tests/legacy/unit/filtres/post_autobr.php
tests/legacy/unit/filtres/proteger_amp.php
tests/legacy/unit/filtres/recup_date.php
tests/legacy/unit/filtres/recup_heure.php
tests/legacy/unit/filtres/recuperer_numero.php
tests/legacy/unit/filtres/saison.php
tests/legacy/unit/filtres/secondes.php
tests/legacy/unit/filtres/sinon.php
tests/legacy/unit/filtres/spip_htmlentities.php
tests/legacy/unit/filtres/spip_htmlspecialchars.php
tests/legacy/unit/filtres/suivre_liens.php
tests/legacy/unit/filtres/supprimer_class.php
tests/legacy/unit/filtres/supprimer_numero.php
tests/legacy/unit/filtres/supprimer_tags.php
tests/legacy/unit/filtres/taille_en_octets.php
tests/legacy/unit/filtres/taille_image.php
tests/legacy/unit/filtres/texte_backend.php
tests/legacy/unit/filtres/texte_backendq.php
tests/legacy/unit/filtres/textebrut.php
tests/legacy/unit/filtres/typo.php
tests/legacy/unit/filtres/vider_date.php
tests/legacy/unit/filtres/wrap.php
tests/legacy/unit/filtres_mime/filtre_text_csv_dist.php
tests/legacy/unit/filtres_mime/filtre_text_dist.php
tests/legacy/unit/filtres_mini/protocole_verifier.php
tests/legacy/unit/formulaire_/protege_champ.php
tests/legacy/unit/json/var2js.php
tests/legacy/unit/path/creer_chemin.php
tests/legacy/unit/plugin/dir_plugins_suppl.php
tests/legacy/unit/plugin/plugin_version_compatible.php
tests/legacy/unit/plugin/spip_version_compare.php
tests/legacy/unit/propre/chevron_ouvrant.php
tests/legacy/unit/propre/code-imbrique.php
tests/legacy/unit/propre/echappe_html.php
tests/legacy/unit/propre/liens.php
tests/legacy/unit/propre/liens_classes.php
tests/legacy/unit/propre/traiter_raccourcis.php
tests/legacy/unit/propre/traiter_tableau.php
tests/legacy/unit/simpletest/spipTest/lanceur_spip.php
tests/legacy/unit/simpletest/core/lanceur_spip.php
tests/legacy/unit/simpletest/dist/balises/lanceur_spip.php
tests/legacy/unit/simpletest/dist/boucles/lanceur_spip.php
tests/legacy/unit/simpletest/lanceur_spip.php
tests/legacy/unit/syndication/analyse_atom.php
tests/legacy/unit/syndication/analyse_backend.php
tests/legacy/unit/syndication/analyse_rss.php
tests/legacy/unit/syndication/dailymotion.php
tests/legacy/unit/syndication/flux.php
tests/legacy/unit/texte/interdire_script.php
tests/legacy/unit/texte/propre.php
tests/legacy/unit/utils/parametre_url.php
tests/legacy/unit/utils/tester_url_absolue.php
tests/legacy/unit/utils/url_de
.php
tests/legacy/unit/xml/spip_xml_parse.php
tests/legacy/unit/xml/xmlhack_recuperer_fond.php
tests/legacy/unit/z_todo/NA_echappements.php
tests/legacy/unit/z_todo/NA_email_valide.php
tests/legacy/unit/z_todo/NA_email_valide_5322.php

Détails : https://git.spip.net/spip/tests/commit/e101ebbb32547591a6e31538bc9a988a98ccdc6a

==============================
Par Cerdic, le 20 juillet 2021 à 12h09min :

Remonter en partant du repertoire du fichier, et pas du repertoire courant

Modifié
tests/legacy/squel.php
tests/legacy/unit/abstract_sql/00_sql_create_drop_view.php
tests/legacy/unit/abstract_sql/10_sql_insert_select.php
tests/legacy/unit/abstract_sql/20_sql_update_delete.php
tests/legacy/unit/abstract_sql/30_sql_alter.php
tests/legacy/unit/abstract_sql/40_sql_divers.php
tests/legacy/unit/abstract_sql/99_sql_types_tables_id.php
tests/legacy/unit/abstract_sql/sql_in.php
tests/legacy/unit/connect_sql/id_table_objet.php
tests/legacy/unit/connect_sql/objet_type.php
tests/legacy/unit/connect_sql/query_echappe_textes.php
tests/legacy/unit/connect_sql/table_objet.php
tests/legacy/unit/connect_sql/table_objet_sql.php
tests/legacy/unit/distant/need_proxy.php
tests/legacy/unit/distant/url_to_ascii.php
tests/legacy/unit/distant/valider_url_distante.php
tests/legacy/unit/editer_liens/objet_associable.php
tests/legacy/unit/editer_liens/objet_associer.php
tests/legacy/unit/editer_liens/objet_dissocier.php
tests/legacy/unit/editer_liens/objet_qualifier_liens.php
tests/legacy/unit/entrees_sorties/flock_sous_repertoire.php
tests/legacy/unit/entrees_sorties/spip_nfslock.php
tests/legacy/unit/filtres/affdate.php
tests/legacy/unit/filtres/affdate_court.php
tests/legacy/unit/filtres/affdate_debut_fin.php
tests/legacy/unit/filtres/affdate_heure.php
tests/legacy/unit/filtres/affdate_jourcourt.php
tests/legacy/unit/filtres/affdate_mois_annee.php
tests/legacy/unit/filtres/ajouter_class.php
tests/legacy/unit/filtres/annee.php
tests/legacy/unit/filtres/antispam.php
tests/legacy/unit/filtres/appliquer_filtre.php
tests/legacy/unit/filtres/attribut_html.php
tests/legacy/unit/filtres/chercher_filtre.php
tests/legacy/unit/filtres/code.php
tests/legacy/unit/filtres/commuter_class.php
tests/legacy/unit/filtres/corriger_entites_html.php
tests/legacy/unit/filtres/date_ical.php
tests/legacy/unit/filtres/date_interface.php
tests/legacy/unit/filtres/date_iso.php
tests/legacy/unit/filtres/date_relative.php
tests/legacy/unit/filtres/div.php
tests/legacy/unit/filtres/echapper_tags.php
tests/legacy/unit/filtres/entites_html.php
tests/legacy/unit/filtres/extraire_attribut.php
tests/legacy/unit/filtres/extraire_balise.php
tests/legacy/unit/filtres/extraire_date.php
tests/legacy/unit/filtres/extraire_multi.php
tests/legacy/unit/filtres/filtre_balise_img_dist.php
tests/legacy/unit/filtres/filtrer_entites.php
tests/legacy/unit/filtres/form_hidden_arbo.php
tests/legacy/unit/filtres/form_hidden_html.php
tests/legacy/unit/filtres/form_hidden_libres.php
tests/legacy/unit/filtres/form_hidden_page.php
tests/legacy/unit/filtres/form_hidden_propres.php
tests/legacy/unit/filtres/form_hidden_propres_qs.php
tests/legacy/unit/filtres/form_hidden_standard.php
tests/legacy/unit/filtres/hauteur.php
tests/legacy/unit/filtres/heures.php
tests/legacy/unit/filtres/heures_minutes.php
tests/legacy/unit/filtres/identifiant_slug.php
tests/legacy/unit/filtres/inserer_attribut.php
tests/legacy/unit/filtres/jour.php
tests/legacy/unit/filtres/journum.php
tests/legacy/unit/filtres/largeur.php
tests/legacy/unit/filtres/lien_ou_expose.php
tests/legacy/unit/filtres/liens_absolus.php
tests/legacy/unit/filtres/minutes.php
tests/legacy/unit/filtres/modulo.php
tests/legacy/unit/filtres/moins.php
tests/legacy/unit/filtres/mois.php
tests/legacy/unit/filtres/mult.php
tests/legacy/unit/filtres/nom_jour.php
tests/legacy/unit/filtres/nom_mois.php
tests/legacy/unit/filtres/normaliser_date.php
tests/legacy/unit/filtres/plus.php
tests/legacy/unit/filtres/post_autobr.php
tests/legacy/unit/filtres/proteger_amp.php
tests/legacy/unit/filtres/recup_date.php
tests/legacy/unit/filtres/recup_heure.php
tests/legacy/unit/filtres/recuperer_numero.php
tests/legacy/unit/filtres/saison.php
tests/legacy/unit/filtres/secondes.php
tests/legacy/unit/filtres/sinon.php
tests/legacy/unit/filtres/spip_htmlentities.php
tests/legacy/unit/filtres/spip_htmlspecialchars.php
tests/legacy/unit/filtres/suivre_liens.php
tests/legacy/unit/filtres/supprimer_class.php
tests/legacy/unit/filtres/supprimer_numero.php
tests/legacy/unit/filtres/supprimer_tags.php
tests/legacy/unit/filtres/taille_en_octets.php
tests/legacy/unit/filtres/taille_image.php
tests/legacy/unit/filtres/texte_backend.php
tests/legacy/unit/filtres/texte_backendq.php
tests/legacy/unit/filtres/textebrut.php
tests/legacy/unit/filtres/typo.php
tests/legacy/unit/filtres/vider_date.php
tests/legacy/unit/filtres/wrap.php
tests/legacy/unit/filtres_mime/filtre_text_csv_dist.php
tests/legacy/unit/filtres_mime/filtre_text_dist.php
tests/legacy/unit/filtres_mini/protocole_verifier.php
tests/legacy/unit/formulaire_/protege_champ.php
tests/legacy/unit/json/var2js.php
tests/legacy/unit/path/creer_chemin.php
tests/legacy/unit/plugin/dir_plugins_suppl.php
tests/legacy/unit/plugin/plugin_version_compatible.php
tests/legacy/unit/plugin/spip_version_compare.php
tests/legacy/unit/propre/chevron_ouvrant.php
tests/legacy/unit/propre/code-imbrique.php
tests/legacy/unit/propre/echappe_html.php
tests/legacy/unit/propre/liens.php
tests/legacy/unit/propre/liens_classes.php
tests/legacy/unit/propre/traiter_raccourcis.php
tests/legacy/unit/propre/traiter_tableau.php
tests/legacy/unit/simpletest/spipTest/lanceur_spip.php
tests/legacy/unit/simpletest/core/lanceur_spip.php
tests/legacy/unit/simpletest/dist/balises/lanceur_spip.php
tests/legacy/unit/simpletest/dist/boucles/lanceur_spip.php
tests/legacy/unit/simpletest/lanceur_spip.php
tests/legacy/unit/syndication/analyse_atom.php
tests/legacy/unit/syndication/analyse_backend.php
tests/legacy/unit/syndication/analyse_rss.php
tests/legacy/unit/syndication/dailymotion.php
tests/legacy/unit/syndication/flux.php
tests/legacy/unit/texte/interdire_script.php
tests/legacy/unit/texte/propre.php
tests/legacy/unit/utils/parametre_url.php
tests/legacy/unit/utils/tester_url_absolue.php
tests/legacy/unit/utils/url_de
.php
tests/legacy/unit/xml/spip_xml_parse.php
tests/legacy/unit/xml/xmlhack_recuperer_fond.php
tests/legacy/unit/z_todo/NA_echappements.php
tests/legacy/unit/z_todo/NA_email_valide.php
tests/legacy/unit/z_todo/NA_email_valide_5322.php

Détails : https://git.spip.net/spip/tests/commit/2f0e8baa13bfa394aba86621228154103d17f564

==============================
Par Cerdic, le 20 juillet 2021 à 13h41min :

Deplacer test.inc dans legacy aussi

Modifié
tests/LegacyUnitHtmlTest.php
tests/LegacyUnitPhpTest.php
tests/legacy/unit/cache/cache_sessions.php
tests/legacy/unit/config/depot_meta.php
tests/legacy/unit/config/depot_meta_perso.php
tests/legacy/unit/config/depot_metapack.php
tests/legacy/unit/config/expliquer_config.php
tests/legacy/unit/entrees_sorties/flock_sous_repertoire.php

Détails : https://git.spip.net/spip/tests/commit/86d2d8cbe647f3e1f7bda34e8ac7b1a82593ae5a