mirror of
https://github.com/silverstripe/silverstripe-subsites
synced 2024-10-22 11:05:55 +02:00
13 lines
302 B
PHP
13 lines
302 B
PHP
<?php
|
|
class BaseSubsiteTest extends SapphireTest {
|
|
/**
|
|
* Avoid subsites filtering on fixture fetching.
|
|
*/
|
|
function objFromFixture($class, $id) {
|
|
Subsite::disable_subsite_filter(true);
|
|
$obj = parent::objFromFixture($class, $id);
|
|
Subsite::disable_subsite_filter(false);
|
|
|
|
return $obj;
|
|
}
|
|
} |