| 1 | <?php |
||
| 7 | // @todo add translatable namespace |
||
| 8 | use Translatable; |
||
| 9 | |||
| 10 | /** |
||
| 11 | * Extend this class when writing unit tests which are compatible with other modules. |
||
| 12 | * All compatibility code goes here. |
||
| 13 | */ |
||
| 14 | abstract class ContentReviewBaseTest extends FunctionalTest |
||
| 15 | { |
||
| 16 | /** |
||
| 17 | * @var bool |
||
| 18 | */ |
||
| 19 | protected $translatableEnabledBefore; |
||
| 20 | |||
| 21 | protected function setUp() |
||
| 40 | |||
| 41 | protected function tearDown() |
||
| 42 | { |
||
| 43 | if (class_exists(Translatable::class)) { |
||
| 44 | if ($this->translatableEnabledBefore) { |
||
| 45 | SiteTree::add_extension(Translatable::class); |
||
| 52 |