You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

44 lines
708 B

<?php
// nom du test
$test = 'sql/sql_types_tables_id';
9 months ago
$remonte = '../';
while (!is_dir($remonte . 'ecrire')) {
$remonte = "../$remonte";
9 months ago
}
require $remonte . 'tests/test.inc';
include_spip('base/connect_sql');
// Des tests
9 months ago
$essais['table_objet'] = [
['breves','breve'],
];
9 months ago
$essais['table_objet_sql'] = [
['spip_breves','breve'],
];
9 months ago
$essais['id_table_objet'] = [
['id_breve','breve'],
];
9 months ago
$essais['objet_type'] = [
['breve','breves'],
];
// hop ! on y va
9 months ago
$err = [];
foreach ($essais as $f => $essai) {
$err = array_merge(tester_fun($f, $essai), $err);
}
// si le tableau $err est pas vide ca va pas
if ($err) {
echo ('<dl>' . join('', $err) . '</dl>');
} else {
9 months ago
echo 'OK';
}