Skip to content
Extraits de code Groupes Projets
Valider 9e411fd3 rédigé par cerdic's avatar cerdic Validation de marcimat
Parcourir les fichiers

tests: syntaxe de @depends + un inclusion manquante

parent b1580eef
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -8,6 +8,11 @@ use Spip\Core\Testing\SquelettesTestCase; ...@@ -8,6 +8,11 @@ use Spip\Core\Testing\SquelettesTestCase;
class ExposeTest extends SquelettesTestCase class ExposeTest extends SquelettesTestCase
{ {
public static function setUpBeforeClass(): void
{
include_spip('base/abstract_sql');
}
public function testExposerRubrique(): void public function testExposerRubrique(): void
{ {
$id_rubrique = sql_getfetsel('id_rubrique', 'spip_rubriques', [ $id_rubrique = sql_getfetsel('id_rubrique', 'spip_rubriques', [
...@@ -45,7 +50,7 @@ class ExposeTest extends SquelettesTestCase ...@@ -45,7 +50,7 @@ class ExposeTest extends SquelettesTestCase
} }
/** /**
* @depends testExposerRubrique test * @depends testExposerRubrique
*/ */
public function testExposerRubriqueInclus(): void public function testExposerRubriqueInclus(): void
{ {
......
...@@ -22,7 +22,7 @@ class IntroductionTest extends SquelettesTestCase ...@@ -22,7 +22,7 @@ class IntroductionTest extends SquelettesTestCase
} }
/** /**
* @depends testArticleLongExiste test * @depends testArticleLongExiste
*/ */
public function testCoupeIntroduction(): void public function testCoupeIntroduction(): void
{ {
...@@ -34,7 +34,7 @@ class IntroductionTest extends SquelettesTestCase ...@@ -34,7 +34,7 @@ class IntroductionTest extends SquelettesTestCase
} }
/** /**
* @depends testArticleLongExiste test * @depends testArticleLongExiste
*/ */
public function testCoupeIntroductionSuite(): void public function testCoupeIntroductionSuite(): void
{ {
...@@ -52,7 +52,7 @@ class IntroductionTest extends SquelettesTestCase ...@@ -52,7 +52,7 @@ class IntroductionTest extends SquelettesTestCase
} }
/** /**
* @depends testCoupeIntroduction test * @depends testCoupeIntroduction
*/ */
public function testCoupeIntroductionConstante(): void public function testCoupeIntroductionConstante(): void
{ {
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter