silverstripe-subsites/tests/php/SiteTreeSubsitesTest/TestErrorPage.php
2024-06-05 17:26:56 +12:00

21 lines
460 B
PHP

<?php
namespace SilverStripe\Subsites\Tests\SiteTreeSubsitesTest;
use SilverStripe\Dev\TestOnly;
use SilverStripe\ErrorPage\ErrorPage;
class TestErrorPage extends ErrorPage implements TestOnly
{
/**
* Helper method to call protected members
*
* @param int $statusCode
* @return string
*/
public static function get_error_filename_spy($statusCode)
{
return TestErrorPage::get_error_filename($statusCode);
}
}