Browse Source

Permetre aux tests de fonctionner depuis le plugin ou depuis la suite de tests https://git.spip.net/spip/tests Fix #4418

pull/4422/head
Cerdic 10 months ago
parent
commit
83bff85d2b
  1. 5
      tests/AbstractArchiverTest.php
  2. 5
      tests/SpipArchiverTest.php

5
tests/AbstractArchiverTest.php

@ -5,6 +5,11 @@ namespace Spip\Archiver\Tests;
use PHPUnit\Framework\TestCase;
use Spip\Archiver\AbstractArchiver;
// si on lance les tests depuis tests/
if (function_exists('include_spip')) {
include_spip('inc/archives');
}
/**
* @covers \Spip\Archiver\AbstractArchiver
*

5
tests/SpipArchiverTest.php

@ -5,6 +5,11 @@ namespace Spip\Archiver\Tests;
use PHPUnit\Framework\TestCase;
use Spip\Archiver\SpipArchiver;
// si on lance les tests depuis tests/
if (function_exists('include_spip')) {
include_spip('inc/archives');
}
/**
* @covers \Spip\Archiver\AbstractArchiver
* @covers \Spip\Archiver\SpipArchiver

Loading…
Cancel
Save