mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #6736 from dhensby/pulls/4/phpunit-5
Bump PHPUnit to 5.7
This commit is contained in:
commit
a9e1ce48df
@ -35,6 +35,7 @@ before_script:
|
|||||||
- "if [ \"$PHPCS_TEST\" = \"1\" ]; then pyrus install pear/PHP_CodeSniffer; fi"
|
- "if [ \"$PHPCS_TEST\" = \"1\" ]; then pyrus install pear/PHP_CodeSniffer; fi"
|
||||||
- phpenv rehash
|
- phpenv rehash
|
||||||
- phpenv config-rm xdebug.ini
|
- phpenv config-rm xdebug.ini
|
||||||
|
- echo 'memory_limit = 2048M' >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
|
||||||
- "export DISPLAY=\":99\""
|
- "export DISPLAY=\":99\""
|
||||||
- "export XVFBARGS=\":99 -ac -screen 0 1024x768x16\""
|
- "export XVFBARGS=\":99 -ac -screen 0 1024x768x16\""
|
||||||
- composer install --prefer-dist
|
- composer install --prefer-dist
|
||||||
|
@ -32,7 +32,7 @@
|
|||||||
"vlucas/phpdotenv": "^2.4"
|
"vlucas/phpdotenv": "^2.4"
|
||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"phpunit/PHPUnit": "~4.8",
|
"phpunit/PHPUnit": "^5.7",
|
||||||
"silverstripe/behat-extension": "^2.1.0",
|
"silverstripe/behat-extension": "^2.1.0",
|
||||||
"silverstripe/serve": "dev-master",
|
"silverstripe/serve": "dev-master",
|
||||||
"silverstripe/testsession": "^2.0.0-alpha3",
|
"silverstripe/testsession": "^2.0.0-alpha3",
|
||||||
|
@ -80,7 +80,7 @@ class FunctionalTest extends SapphireTest
|
|||||||
return $this->mainSession->session();
|
return $this->mainSession->session();
|
||||||
}
|
}
|
||||||
|
|
||||||
public function setUp()
|
protected function setUp()
|
||||||
{
|
{
|
||||||
// Skip calling FunctionalTest directly.
|
// Skip calling FunctionalTest directly.
|
||||||
if (get_class($this) == __CLASS__) {
|
if (get_class($this) == __CLASS__) {
|
||||||
@ -107,7 +107,7 @@ class FunctionalTest extends SapphireTest
|
|||||||
SecurityToken::disable();
|
SecurityToken::disable();
|
||||||
}
|
}
|
||||||
|
|
||||||
public function tearDown()
|
protected function tearDown()
|
||||||
{
|
{
|
||||||
SecurityToken::enable();
|
SecurityToken::enable();
|
||||||
|
|
||||||
|
@ -228,7 +228,7 @@ class SapphireTest extends PHPUnit_Framework_TestCase
|
|||||||
|
|
||||||
protected $originalEnv = null;
|
protected $originalEnv = null;
|
||||||
|
|
||||||
public function setUp()
|
protected function setUp()
|
||||||
{
|
{
|
||||||
//nest config and injector for each test so they are effectively sandboxed per test
|
//nest config and injector for each test so they are effectively sandboxed per test
|
||||||
Config::nest();
|
Config::nest();
|
||||||
@ -562,7 +562,7 @@ class SapphireTest extends PHPUnit_Framework_TestCase
|
|||||||
return $path;
|
return $path;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function tearDown()
|
protected function tearDown()
|
||||||
{
|
{
|
||||||
// Preserve memory settings
|
// Preserve memory settings
|
||||||
ini_set('memory_limit', ($this->originalMemoryLimit) ? $this->originalMemoryLimit : -1);
|
ini_set('memory_limit', ($this->originalMemoryLimit) ? $this->originalMemoryLimit : -1);
|
||||||
|
@ -47,7 +47,7 @@ class ControllerTest extends FunctionalTest
|
|||||||
UnsecuredController::class,
|
UnsecuredController::class,
|
||||||
];
|
];
|
||||||
|
|
||||||
public function setUp()
|
protected function setUp()
|
||||||
{
|
{
|
||||||
parent::setUp();
|
parent::setUp();
|
||||||
Director::config()->update('alternate_base_url', '/');
|
Director::config()->update('alternate_base_url', '/');
|
||||||
@ -62,7 +62,7 @@ class ControllerTest extends FunctionalTest
|
|||||||
SSViewer::set_themes($themes);
|
SSViewer::set_themes($themes);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function tearDown()
|
protected function tearDown()
|
||||||
{
|
{
|
||||||
Deprecation::restore_settings($this->depSettings);
|
Deprecation::restore_settings($this->depSettings);
|
||||||
parent::tearDown();
|
parent::tearDown();
|
||||||
|
@ -12,14 +12,14 @@ class CookieTest extends SapphireTest
|
|||||||
|
|
||||||
private $cookieInst;
|
private $cookieInst;
|
||||||
|
|
||||||
public function setUp()
|
protected function setUp()
|
||||||
{
|
{
|
||||||
parent::setUp();
|
parent::setUp();
|
||||||
Injector::nest();
|
Injector::nest();
|
||||||
Injector::inst()->registerService(new CookieJar($_COOKIE), 'SilverStripe\\Control\\Cookie_Backend');
|
Injector::inst()->registerService(new CookieJar($_COOKIE), 'SilverStripe\\Control\\Cookie_Backend');
|
||||||
}
|
}
|
||||||
|
|
||||||
public function tearDown()
|
protected function tearDown()
|
||||||
{
|
{
|
||||||
//restore the cookie_backend
|
//restore the cookie_backend
|
||||||
Injector::unnest();
|
Injector::unnest();
|
||||||
|
@ -32,7 +32,7 @@ class DirectorTest extends SapphireTest
|
|||||||
TestController::class
|
TestController::class
|
||||||
];
|
];
|
||||||
|
|
||||||
public function setUp()
|
protected function setUp()
|
||||||
{
|
{
|
||||||
parent::setUp();
|
parent::setUp();
|
||||||
|
|
||||||
@ -77,7 +77,7 @@ class DirectorTest extends SapphireTest
|
|||||||
Director::config()->set('rules', $this->getExtraRoutes());
|
Director::config()->set('rules', $this->getExtraRoutes());
|
||||||
}
|
}
|
||||||
|
|
||||||
public function tearDown()
|
protected function tearDown()
|
||||||
{
|
{
|
||||||
$_GET = $this->originalGet;
|
$_GET = $this->originalGet;
|
||||||
$_SESSION = $this->originalSession;
|
$_SESSION = $this->originalSession;
|
||||||
|
@ -51,7 +51,9 @@ class SwiftMailerTest extends SapphireTest
|
|||||||
$email->setFrom('from@example.com');
|
$email->setFrom('from@example.com');
|
||||||
$email->setSubject('Subject');
|
$email->setSubject('Subject');
|
||||||
|
|
||||||
$mailer = $this->getMock(SwiftMailer::class, array('sendSwift'));
|
$mailer = $this->getMockBuilder(SwiftMailer::class)
|
||||||
|
->setMethods(array('sendSwift'))
|
||||||
|
->getMock();
|
||||||
$mailer->expects($this->once())->method('sendSwift')->willReturnCallback(function ($message) {
|
$mailer->expects($this->once())->method('sendSwift')->willReturnCallback(function ($message) {
|
||||||
$this->assertInstanceOf(Swift_Message::class, $message);
|
$this->assertInstanceOf(Swift_Message::class, $message);
|
||||||
});
|
});
|
||||||
|
@ -9,7 +9,7 @@ use SilverStripe\Dev\SapphireTest;
|
|||||||
class SwiftPluginTest extends SapphireTest
|
class SwiftPluginTest extends SapphireTest
|
||||||
{
|
{
|
||||||
|
|
||||||
public function setUp()
|
protected function setUp()
|
||||||
{
|
{
|
||||||
parent::setUp();
|
parent::setUp();
|
||||||
|
|
||||||
|
@ -96,7 +96,7 @@ class RSSFeedTest extends SapphireTest
|
|||||||
$this->assertNotContains('<title>Test Custom Template</title>', $content);
|
$this->assertNotContains('<title>Test Custom Template</title>', $content);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function setUp()
|
protected function setUp()
|
||||||
{
|
{
|
||||||
parent::setUp();
|
parent::setUp();
|
||||||
Config::inst()->update(Director::class, 'alternate_base_url', '/');
|
Config::inst()->update(Director::class, 'alternate_base_url', '/');
|
||||||
@ -113,7 +113,7 @@ class RSSFeedTest extends SapphireTest
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function tearDown()
|
protected function tearDown()
|
||||||
{
|
{
|
||||||
parent::tearDown();
|
parent::tearDown();
|
||||||
$_SERVER['HTTP_HOST'] = self::$original_host;
|
$_SERVER['HTTP_HOST'] = self::$original_host;
|
||||||
|
@ -31,7 +31,7 @@ class ClassInfoTest extends SapphireTest
|
|||||||
WithRelation::class,
|
WithRelation::class,
|
||||||
);
|
);
|
||||||
|
|
||||||
public function setUp()
|
protected function setUp()
|
||||||
{
|
{
|
||||||
parent::setUp();
|
parent::setUp();
|
||||||
ClassInfo::reset_db_cache();
|
ClassInfo::reset_db_cache();
|
||||||
|
@ -14,7 +14,7 @@ class CoreTest extends SapphireTest
|
|||||||
|
|
||||||
protected $tempPath;
|
protected $tempPath;
|
||||||
|
|
||||||
public function setUp()
|
protected function setUp()
|
||||||
{
|
{
|
||||||
parent::setUp();
|
parent::setUp();
|
||||||
$this->tempPath = Director::baseFolder() . DIRECTORY_SEPARATOR . 'silverstripe-cache';
|
$this->tempPath = Director::baseFolder() . DIRECTORY_SEPARATOR . 'silverstripe-cache';
|
||||||
@ -51,7 +51,7 @@ class CoreTest extends SapphireTest
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public function tearDown()
|
protected function tearDown()
|
||||||
{
|
{
|
||||||
parent::tearDown();
|
parent::tearDown();
|
||||||
$user = getTempFolderUsername();
|
$user = getTempFolderUsername();
|
||||||
|
@ -4,6 +4,7 @@ namespace SilverStripe\Core\Tests\Injector;
|
|||||||
|
|
||||||
use InvalidArgumentException;
|
use InvalidArgumentException;
|
||||||
use SilverStripe\Core\Config\Config;
|
use SilverStripe\Core\Config\Config;
|
||||||
|
use SilverStripe\Core\Injector\Factory;
|
||||||
use SilverStripe\Core\Injector\Injector;
|
use SilverStripe\Core\Injector\Injector;
|
||||||
use SilverStripe\Core\Injector\SilverStripeServiceConfigurationLocator;
|
use SilverStripe\Core\Injector\SilverStripeServiceConfigurationLocator;
|
||||||
use SilverStripe\Core\Tests\Injector\AopProxyServiceTest\AnotherService;
|
use SilverStripe\Core\Tests\Injector\AopProxyServiceTest\AnotherService;
|
||||||
@ -40,14 +41,14 @@ class InjectorTest extends SapphireTest
|
|||||||
|
|
||||||
protected $nestingLevel = 0;
|
protected $nestingLevel = 0;
|
||||||
|
|
||||||
public function setUp()
|
protected function setUp()
|
||||||
{
|
{
|
||||||
parent::setUp();
|
parent::setUp();
|
||||||
|
|
||||||
$this->nestingLevel = 0;
|
$this->nestingLevel = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function tearDown()
|
protected function tearDown()
|
||||||
{
|
{
|
||||||
|
|
||||||
while ($this->nestingLevel > 0) {
|
while ($this->nestingLevel > 0) {
|
||||||
@ -813,7 +814,7 @@ class InjectorTest extends SapphireTest
|
|||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
$factory = $this->getMock('SilverStripe\\Core\\Injector\\Factory');
|
$factory = $this->getMockBuilder(Factory::class)->getMock();
|
||||||
$factory
|
$factory
|
||||||
->expects($this->once())
|
->expects($this->once())
|
||||||
->method('create')
|
->method('create')
|
||||||
|
@ -32,7 +32,7 @@ class ClassLoaderTest extends SapphireTest
|
|||||||
*/
|
*/
|
||||||
protected $testManifest2;
|
protected $testManifest2;
|
||||||
|
|
||||||
public function setUp()
|
protected function setUp()
|
||||||
{
|
{
|
||||||
parent::setUp();
|
parent::setUp();
|
||||||
|
|
||||||
|
@ -27,7 +27,7 @@ class ClassManifestTest extends SapphireTest
|
|||||||
*/
|
*/
|
||||||
protected $manifestTests;
|
protected $manifestTests;
|
||||||
|
|
||||||
public function setUp()
|
protected function setUp()
|
||||||
{
|
{
|
||||||
parent::setUp();
|
parent::setUp();
|
||||||
|
|
||||||
|
@ -12,7 +12,7 @@ use SilverStripe\Dev\SapphireTest;
|
|||||||
|
|
||||||
class ConfigManifestTest extends SapphireTest
|
class ConfigManifestTest extends SapphireTest
|
||||||
{
|
{
|
||||||
public function setUp()
|
protected function setUp()
|
||||||
{
|
{
|
||||||
parent::setUp();
|
parent::setUp();
|
||||||
|
|
||||||
@ -20,7 +20,7 @@ class ConfigManifestTest extends SapphireTest
|
|||||||
ModuleLoader::instance()->pushManifest($moduleManifest);
|
ModuleLoader::instance()->pushManifest($moduleManifest);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function tearDown()
|
protected function tearDown()
|
||||||
{
|
{
|
||||||
ModuleLoader::instance()->popManifest();
|
ModuleLoader::instance()->popManifest();
|
||||||
parent::tearDown();
|
parent::tearDown();
|
||||||
|
@ -18,7 +18,7 @@ class ModuleManifestTest extends SapphireTest
|
|||||||
*/
|
*/
|
||||||
protected $manifest;
|
protected $manifest;
|
||||||
|
|
||||||
public function setUp()
|
protected function setUp()
|
||||||
{
|
{
|
||||||
parent::setUp();
|
parent::setUp();
|
||||||
|
|
||||||
|
@ -23,7 +23,7 @@ class NamespacedClassManifestTest extends SapphireTest
|
|||||||
*/
|
*/
|
||||||
protected $manifest;
|
protected $manifest;
|
||||||
|
|
||||||
public function setUp()
|
protected function setUp()
|
||||||
{
|
{
|
||||||
parent::setUp();
|
parent::setUp();
|
||||||
|
|
||||||
@ -32,7 +32,7 @@ class NamespacedClassManifestTest extends SapphireTest
|
|||||||
ClassLoader::instance()->pushManifest($this->manifest, false);
|
ClassLoader::instance()->pushManifest($this->manifest, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function tearDown()
|
protected function tearDown()
|
||||||
{
|
{
|
||||||
parent::tearDown();
|
parent::tearDown();
|
||||||
ClassLoader::instance()->popManifest();
|
ClassLoader::instance()->popManifest();
|
||||||
|
@ -29,7 +29,7 @@ class ThemeResourceLoaderTest extends SapphireTest
|
|||||||
/**
|
/**
|
||||||
* Set up manifest before each test
|
* Set up manifest before each test
|
||||||
*/
|
*/
|
||||||
public function setUp()
|
protected function setUp()
|
||||||
{
|
{
|
||||||
parent::setUp();
|
parent::setUp();
|
||||||
|
|
||||||
|
@ -76,7 +76,7 @@ class MemoryLimitTest extends SapphireTest
|
|||||||
|
|
||||||
private $origMemLimit, $origTimeLimit;
|
private $origMemLimit, $origTimeLimit;
|
||||||
|
|
||||||
public function setUp()
|
protected function setUp()
|
||||||
{
|
{
|
||||||
$this->origMemLimit = ini_get('memory_limit');
|
$this->origMemLimit = ini_get('memory_limit');
|
||||||
$this->origTimeLimit = ini_get('max_execution_time');
|
$this->origTimeLimit = ini_get('max_execution_time');
|
||||||
@ -86,7 +86,7 @@ class MemoryLimitTest extends SapphireTest
|
|||||||
set_increase_time_limit_max(-1);
|
set_increase_time_limit_max(-1);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function tearDown()
|
protected function tearDown()
|
||||||
{
|
{
|
||||||
ini_set('memory_limit', $this->origMemLimit);
|
ini_set('memory_limit', $this->origMemLimit);
|
||||||
set_time_limit($this->origTimeLimit);
|
set_time_limit($this->origTimeLimit);
|
||||||
|
@ -26,7 +26,7 @@ use SilverStripe\Control\Controller;
|
|||||||
class ObjectTest extends SapphireTest
|
class ObjectTest extends SapphireTest
|
||||||
{
|
{
|
||||||
|
|
||||||
public function setUp()
|
protected function setUp()
|
||||||
{
|
{
|
||||||
parent::setUp();
|
parent::setUp();
|
||||||
Injector::inst()->unregisterAllObjects();
|
Injector::inst()->unregisterAllObjects();
|
||||||
|
@ -9,7 +9,7 @@ use SilverStripe\Dev\SapphireTest;
|
|||||||
*/
|
*/
|
||||||
class PhpSyntaxTest extends SapphireTest
|
class PhpSyntaxTest extends SapphireTest
|
||||||
{
|
{
|
||||||
public function setUp()
|
protected function setUp()
|
||||||
{
|
{
|
||||||
parent::setUp();
|
parent::setUp();
|
||||||
$this->markTestSkipped('This needs to be written to include only core php files, not test/thirdparty files');
|
$this->markTestSkipped('This needs to be written to include only core php files, not test/thirdparty files');
|
||||||
|
@ -10,7 +10,7 @@ use Exception;
|
|||||||
class ErrorControlChainTest extends SapphireTest
|
class ErrorControlChainTest extends SapphireTest
|
||||||
{
|
{
|
||||||
|
|
||||||
public function setUp()
|
protected function setUp()
|
||||||
{
|
{
|
||||||
|
|
||||||
// Check we can run PHP at all
|
// Check we can run PHP at all
|
||||||
|
@ -26,7 +26,7 @@ class ParameterConfirmationTokenTest extends SapphireTest
|
|||||||
|
|
||||||
protected $oldHost = null;
|
protected $oldHost = null;
|
||||||
|
|
||||||
public function setUp()
|
protected function setUp()
|
||||||
{
|
{
|
||||||
parent::setUp();
|
parent::setUp();
|
||||||
$this->oldHost = $_SERVER['HTTP_HOST'];
|
$this->oldHost = $_SERVER['HTTP_HOST'];
|
||||||
@ -40,7 +40,7 @@ class ParameterConfirmationTokenTest extends SapphireTest
|
|||||||
$_GET['parameterconfirmationtokentest_emptytokentoken'] = '';
|
$_GET['parameterconfirmationtokentest_emptytokentoken'] = '';
|
||||||
}
|
}
|
||||||
|
|
||||||
public function tearDown()
|
protected function tearDown()
|
||||||
{
|
{
|
||||||
foreach ($_GET as $param => $value) {
|
foreach ($_GET as $param => $value) {
|
||||||
if (stripos($param, 'parameterconfirmationtokentest_') === 0) {
|
if (stripos($param, 'parameterconfirmationtokentest_') === 0) {
|
||||||
|
@ -10,7 +10,7 @@ class BulkLoaderResultTest extends SapphireTest
|
|||||||
{
|
{
|
||||||
protected $extraDataObjects = array(Player::class);
|
protected $extraDataObjects = array(Player::class);
|
||||||
|
|
||||||
public function setUp()
|
protected function setUp()
|
||||||
{
|
{
|
||||||
parent::setUp();
|
parent::setUp();
|
||||||
Player::create(array('Name' => 'Vincent', 'Status' => 'Available'))->write();
|
Player::create(array('Name' => 'Vincent', 'Status' => 'Available'))->write();
|
||||||
|
@ -15,7 +15,7 @@ class CSVParserTest extends SapphireTest
|
|||||||
*/
|
*/
|
||||||
protected $csvPath = null;
|
protected $csvPath = null;
|
||||||
|
|
||||||
public function setUp()
|
protected function setUp()
|
||||||
{
|
{
|
||||||
parent::setUp();
|
parent::setUp();
|
||||||
$this->csvPath = __DIR__ . '/CsvBulkLoaderTest/csv/';
|
$this->csvPath = __DIR__ . '/CsvBulkLoaderTest/csv/';
|
||||||
|
@ -30,7 +30,7 @@ class CsvBulkLoaderTest extends SapphireTest
|
|||||||
*/
|
*/
|
||||||
protected $csvPath = null;
|
protected $csvPath = null;
|
||||||
|
|
||||||
public function setUp()
|
protected function setUp()
|
||||||
{
|
{
|
||||||
parent::setUp();
|
parent::setUp();
|
||||||
$this->csvPath = __DIR__ . '/CsvBulkLoaderTest/csv/';
|
$this->csvPath = __DIR__ . '/CsvBulkLoaderTest/csv/';
|
||||||
|
@ -12,7 +12,7 @@ class DeprecationTest extends SapphireTest
|
|||||||
|
|
||||||
static $originalVersionInfo;
|
static $originalVersionInfo;
|
||||||
|
|
||||||
public function setUp()
|
protected function setUp()
|
||||||
{
|
{
|
||||||
parent::setUp();
|
parent::setUp();
|
||||||
|
|
||||||
@ -21,7 +21,7 @@ class DeprecationTest extends SapphireTest
|
|||||||
Deprecation::set_enabled(true);
|
Deprecation::set_enabled(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function tearDown()
|
protected function tearDown()
|
||||||
{
|
{
|
||||||
Deprecation::restore_settings(self::$originalVersionInfo);
|
Deprecation::restore_settings(self::$originalVersionInfo);
|
||||||
parent::tearDown();
|
parent::tearDown();
|
||||||
|
@ -14,7 +14,7 @@ use SilverStripe\Dev\Tests\DevAdminControllerTest\Controller1;
|
|||||||
class DevAdminControllerTest extends FunctionalTest
|
class DevAdminControllerTest extends FunctionalTest
|
||||||
{
|
{
|
||||||
|
|
||||||
public function setUp()
|
protected function setUp()
|
||||||
{
|
{
|
||||||
parent::setUp();
|
parent::setUp();
|
||||||
|
|
||||||
|
@ -11,7 +11,7 @@ use SilverStripe\ORM\FieldType\DBDatetime;
|
|||||||
|
|
||||||
class DateFieldTest extends SapphireTest
|
class DateFieldTest extends SapphireTest
|
||||||
{
|
{
|
||||||
public function setUp()
|
protected function setUp()
|
||||||
{
|
{
|
||||||
parent::setUp();
|
parent::setUp();
|
||||||
i18n::set_locale('en_NZ');
|
i18n::set_locale('en_NZ');
|
||||||
|
@ -19,14 +19,14 @@ class DatetimeFieldTest extends SapphireTest
|
|||||||
{
|
{
|
||||||
protected $timezone = null;
|
protected $timezone = null;
|
||||||
|
|
||||||
public function setUp()
|
protected function setUp()
|
||||||
{
|
{
|
||||||
parent::setUp();
|
parent::setUp();
|
||||||
i18n::set_locale('en_NZ');
|
i18n::set_locale('en_NZ');
|
||||||
$this->timezone = date_default_timezone_get();
|
$this->timezone = date_default_timezone_get();
|
||||||
}
|
}
|
||||||
|
|
||||||
public function tearDown()
|
protected function tearDown()
|
||||||
{
|
{
|
||||||
date_default_timezone_set($this->timezone);
|
date_default_timezone_set($this->timezone);
|
||||||
parent::tearDown(); // TODO: Change the autogenerated stub
|
parent::tearDown(); // TODO: Change the autogenerated stub
|
||||||
|
@ -46,7 +46,7 @@ class FormTest extends FunctionalTest
|
|||||||
ControllerWithStrictPostCheck::class,
|
ControllerWithStrictPostCheck::class,
|
||||||
];
|
];
|
||||||
|
|
||||||
public function setUp()
|
protected function setUp()
|
||||||
{
|
{
|
||||||
parent::setUp();
|
parent::setUp();
|
||||||
|
|
||||||
|
@ -56,7 +56,7 @@ class GridFieldDeleteActionTest extends SapphireTest
|
|||||||
Permissions::class
|
Permissions::class
|
||||||
];
|
];
|
||||||
|
|
||||||
public function setUp()
|
protected function setUp()
|
||||||
{
|
{
|
||||||
parent::setUp();
|
parent::setUp();
|
||||||
$this->list = new DataList(Team::class);
|
$this->list = new DataList(Team::class);
|
||||||
|
@ -51,7 +51,7 @@ class GridFieldEditButtonTest extends SapphireTest
|
|||||||
Permissions::class
|
Permissions::class
|
||||||
);
|
);
|
||||||
|
|
||||||
public function setUp()
|
protected function setUp()
|
||||||
{
|
{
|
||||||
parent::setUp();
|
parent::setUp();
|
||||||
$this->list = new DataList(Team::class);
|
$this->list = new DataList(Team::class);
|
||||||
|
@ -29,7 +29,7 @@ class GridFieldExportButtonTest extends SapphireTest
|
|||||||
NoView::class
|
NoView::class
|
||||||
);
|
);
|
||||||
|
|
||||||
public function setUp()
|
protected function setUp()
|
||||||
{
|
{
|
||||||
parent::setUp();
|
parent::setUp();
|
||||||
|
|
||||||
|
@ -49,7 +49,7 @@ class GridFieldPaginatorTest extends FunctionalTest
|
|||||||
Cheerleader::class,
|
Cheerleader::class,
|
||||||
);
|
);
|
||||||
|
|
||||||
public function setUp()
|
protected function setUp()
|
||||||
{
|
{
|
||||||
parent::setUp();
|
parent::setUp();
|
||||||
$this->list = new DataList(Team::class);
|
$this->list = new DataList(Team::class);
|
||||||
|
@ -19,7 +19,7 @@ class GridFieldPrintButtonTest extends SapphireTest
|
|||||||
TestObject::class
|
TestObject::class
|
||||||
);
|
);
|
||||||
|
|
||||||
public function setUp()
|
protected function setUp()
|
||||||
{
|
{
|
||||||
parent::setUp();
|
parent::setUp();
|
||||||
|
|
||||||
|
@ -37,7 +37,7 @@ class HTMLEditorFieldTest extends FunctionalTest
|
|||||||
|
|
||||||
protected $extraDataObjects = array(TestObject::class);
|
protected $extraDataObjects = array(TestObject::class);
|
||||||
|
|
||||||
public function setUp()
|
protected function setUp()
|
||||||
{
|
{
|
||||||
parent::setUp();
|
parent::setUp();
|
||||||
|
|
||||||
@ -67,7 +67,7 @@ class HTMLEditorFieldTest extends FunctionalTest
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public function tearDown()
|
protected function tearDown()
|
||||||
{
|
{
|
||||||
TestAssetStore::reset();
|
TestAssetStore::reset();
|
||||||
parent::tearDown();
|
parent::tearDown();
|
||||||
|
@ -24,7 +24,7 @@ class HTMLEditorFieldToolbarTest extends SapphireTest
|
|||||||
return new Toolbar(null, '/');
|
return new Toolbar(null, '/');
|
||||||
}
|
}
|
||||||
|
|
||||||
public function setUp()
|
protected function setUp()
|
||||||
{
|
{
|
||||||
parent::setUp();
|
parent::setUp();
|
||||||
|
|
||||||
|
@ -11,7 +11,7 @@ use SilverStripe\ORM\FieldType\DBDatetime;
|
|||||||
|
|
||||||
class SeparatedDateFieldTest extends SapphireTest
|
class SeparatedDateFieldTest extends SapphireTest
|
||||||
{
|
{
|
||||||
public function setUp()
|
protected function setUp()
|
||||||
{
|
{
|
||||||
parent::setUp();
|
parent::setUp();
|
||||||
i18n::set_locale('en_NZ');
|
i18n::set_locale('en_NZ');
|
||||||
|
@ -10,7 +10,7 @@ use SilverStripe\i18n\i18n;
|
|||||||
|
|
||||||
class TimeFieldTest extends SapphireTest
|
class TimeFieldTest extends SapphireTest
|
||||||
{
|
{
|
||||||
public function setUp()
|
protected function setUp()
|
||||||
{
|
{
|
||||||
parent::setUp();
|
parent::setUp();
|
||||||
i18n::set_locale('en_NZ');
|
i18n::set_locale('en_NZ');
|
||||||
|
@ -15,7 +15,7 @@ class DBDateTest extends SapphireTest
|
|||||||
{
|
{
|
||||||
protected $oldError = null;
|
protected $oldError = null;
|
||||||
|
|
||||||
public function setUp()
|
protected function setUp()
|
||||||
{
|
{
|
||||||
parent::setUp();
|
parent::setUp();
|
||||||
$this->oldError = error_reporting();
|
$this->oldError = error_reporting();
|
||||||
@ -24,7 +24,7 @@ class DBDateTest extends SapphireTest
|
|||||||
i18n::set_locale('en_NZ');
|
i18n::set_locale('en_NZ');
|
||||||
}
|
}
|
||||||
|
|
||||||
public function tearDown()
|
protected function tearDown()
|
||||||
{
|
{
|
||||||
$this->restoreNotices();
|
$this->restoreNotices();
|
||||||
parent::tearDown();
|
parent::tearDown();
|
||||||
|
@ -12,7 +12,7 @@ use SilverStripe\Security\Member;
|
|||||||
*/
|
*/
|
||||||
class DBDatetimeTest extends SapphireTest
|
class DBDatetimeTest extends SapphireTest
|
||||||
{
|
{
|
||||||
public function setUp()
|
protected function setUp()
|
||||||
{
|
{
|
||||||
parent::setUp();
|
parent::setUp();
|
||||||
i18n::set_locale('en_NZ');
|
i18n::set_locale('en_NZ');
|
||||||
|
@ -14,7 +14,7 @@ use SilverStripe\View\Parsers\ShortcodeParser;
|
|||||||
class DBHTMLTextTest extends SapphireTest
|
class DBHTMLTextTest extends SapphireTest
|
||||||
{
|
{
|
||||||
|
|
||||||
public function setUp()
|
protected function setUp()
|
||||||
{
|
{
|
||||||
parent::setUp();
|
parent::setUp();
|
||||||
|
|
||||||
@ -24,7 +24,7 @@ class DBHTMLTextTest extends SapphireTest
|
|||||||
ShortcodeParser::set_active('htmltest');
|
ShortcodeParser::set_active('htmltest');
|
||||||
}
|
}
|
||||||
|
|
||||||
public function tearDown()
|
protected function tearDown()
|
||||||
{
|
{
|
||||||
ShortcodeParser::set_active('default');
|
ShortcodeParser::set_active('default');
|
||||||
parent::tearDown();
|
parent::tearDown();
|
||||||
|
@ -10,7 +10,7 @@ use SilverStripe\Security\Member;
|
|||||||
|
|
||||||
class DBTimeTest extends SapphireTest
|
class DBTimeTest extends SapphireTest
|
||||||
{
|
{
|
||||||
public function setUp()
|
protected function setUp()
|
||||||
{
|
{
|
||||||
parent::setUp();
|
parent::setUp();
|
||||||
i18n::set_locale('en_NZ');
|
i18n::set_locale('en_NZ');
|
||||||
|
@ -20,7 +20,7 @@ class DataDifferencerTest extends SapphireTest
|
|||||||
DataDifferencerTest\HasOneRelationObject::class
|
DataDifferencerTest\HasOneRelationObject::class
|
||||||
);
|
);
|
||||||
|
|
||||||
public function setUp()
|
protected function setUp()
|
||||||
{
|
{
|
||||||
parent::setUp();
|
parent::setUp();
|
||||||
|
|
||||||
@ -39,7 +39,7 @@ class DataDifferencerTest extends SapphireTest
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public function tearDown()
|
protected function tearDown()
|
||||||
{
|
{
|
||||||
TestAssetStore::reset();
|
TestAssetStore::reset();
|
||||||
parent::tearDown();
|
parent::tearDown();
|
||||||
|
@ -15,7 +15,7 @@ class DecimalTest extends SapphireTest
|
|||||||
DecimalTest\TestObject::class
|
DecimalTest\TestObject::class
|
||||||
);
|
);
|
||||||
|
|
||||||
public function setUp()
|
protected function setUp()
|
||||||
{
|
{
|
||||||
parent::setUp();
|
parent::setUp();
|
||||||
$this->testDataObject = $this->objFromFixture(DecimalTest\TestObject::class, 'test-dataobject');
|
$this->testDataObject = $this->objFromFixture(DecimalTest\TestObject::class, 'test-dataobject');
|
||||||
|
@ -21,13 +21,13 @@ class ManyManyThroughListTest extends SapphireTest
|
|||||||
ManyManyThroughListTest\VersionedObject::class,
|
ManyManyThroughListTest\VersionedObject::class,
|
||||||
];
|
];
|
||||||
|
|
||||||
public function setUp()
|
protected function setUp()
|
||||||
{
|
{
|
||||||
parent::setUp();
|
parent::setUp();
|
||||||
DataObject::reset();
|
DataObject::reset();
|
||||||
}
|
}
|
||||||
|
|
||||||
public function tearDown()
|
protected function tearDown()
|
||||||
{
|
{
|
||||||
DataObject::reset();
|
DataObject::reset();
|
||||||
parent::tearDown();
|
parent::tearDown();
|
||||||
|
@ -6,6 +6,7 @@ use SilverStripe\ORM\ArrayList;
|
|||||||
use SilverStripe\ORM\DataObject;
|
use SilverStripe\ORM\DataObject;
|
||||||
use SilverStripe\ORM\PaginatedList;
|
use SilverStripe\ORM\PaginatedList;
|
||||||
use SilverStripe\Dev\SapphireTest;
|
use SilverStripe\Dev\SapphireTest;
|
||||||
|
use SilverStripe\ORM\Queries\SQLSelect;
|
||||||
use SilverStripe\ORM\Tests\DataObjectTest\Player;
|
use SilverStripe\ORM\Tests\DataObjectTest\Player;
|
||||||
use SilverStripe\View\ArrayData;
|
use SilverStripe\View\ArrayData;
|
||||||
|
|
||||||
@ -58,7 +59,7 @@ class PaginatedListTest extends SapphireTest
|
|||||||
|
|
||||||
public function testSetPaginationFromQuery()
|
public function testSetPaginationFromQuery()
|
||||||
{
|
{
|
||||||
$query = $this->getMock('SilverStripe\\ORM\\Queries\\SQLSelect');
|
$query = $this->getMockBuilder(SQLSelect::class)->getMock();
|
||||||
$query->expects($this->once())
|
$query->expects($this->once())
|
||||||
->method('getLimit')
|
->method('getLimit')
|
||||||
->will($this->returnValue(array('limit' => 15, 'start' => 30)));
|
->will($this->returnValue(array('limit' => 15, 'start' => 30)));
|
||||||
|
@ -23,13 +23,13 @@ class SQLSelectTest extends SapphireTest
|
|||||||
|
|
||||||
protected $oldDeprecation = null;
|
protected $oldDeprecation = null;
|
||||||
|
|
||||||
public function setUp()
|
protected function setUp()
|
||||||
{
|
{
|
||||||
parent::setUp();
|
parent::setUp();
|
||||||
$this->oldDeprecation = Deprecation::dump_settings();
|
$this->oldDeprecation = Deprecation::dump_settings();
|
||||||
}
|
}
|
||||||
|
|
||||||
public function tearDown()
|
protected function tearDown()
|
||||||
{
|
{
|
||||||
Deprecation::restore_settings($this->oldDeprecation);
|
Deprecation::restore_settings($this->oldDeprecation);
|
||||||
parent::tearDown();
|
parent::tearDown();
|
||||||
|
@ -11,7 +11,7 @@ use SilverStripe\ORM\Search\FulltextSearchable;
|
|||||||
class FulltextSearchableTest extends SapphireTest
|
class FulltextSearchableTest extends SapphireTest
|
||||||
{
|
{
|
||||||
|
|
||||||
public function setUp()
|
protected function setUp()
|
||||||
{
|
{
|
||||||
parent::setUp();
|
parent::setUp();
|
||||||
|
|
||||||
@ -23,7 +23,7 @@ class FulltextSearchableTest extends SapphireTest
|
|||||||
* properly at the end of the test. This becomes apparent when a later test tries to
|
* properly at the end of the test. This becomes apparent when a later test tries to
|
||||||
* ALTER TABLE File and add fulltext indexes with the InnoDB table type.
|
* ALTER TABLE File and add fulltext indexes with the InnoDB table type.
|
||||||
*/
|
*/
|
||||||
public function tearDown()
|
protected function tearDown()
|
||||||
{
|
{
|
||||||
parent::tearDown();
|
parent::tearDown();
|
||||||
|
|
||||||
|
@ -30,7 +30,7 @@ class VersionedOwnershipTest extends SapphireTest
|
|||||||
|
|
||||||
protected static $fixture_file = 'VersionedOwnershipTest.yml';
|
protected static $fixture_file = 'VersionedOwnershipTest.yml';
|
||||||
|
|
||||||
public function setUp()
|
protected function setUp()
|
||||||
{
|
{
|
||||||
parent::setUp();
|
parent::setUp();
|
||||||
|
|
||||||
|
@ -24,7 +24,7 @@ class BasicAuthTest extends FunctionalTest
|
|||||||
ControllerSecuredWithoutPermission::class,
|
ControllerSecuredWithoutPermission::class,
|
||||||
];
|
];
|
||||||
|
|
||||||
public function setUp()
|
protected function setUp()
|
||||||
{
|
{
|
||||||
parent::setUp();
|
parent::setUp();
|
||||||
|
|
||||||
|
@ -25,7 +25,7 @@ class MemberAuthenticatorTest extends SapphireTest
|
|||||||
protected $defaultUsername = null;
|
protected $defaultUsername = null;
|
||||||
protected $defaultPassword = null;
|
protected $defaultPassword = null;
|
||||||
|
|
||||||
public function setUp()
|
protected function setUp()
|
||||||
{
|
{
|
||||||
parent::setUp();
|
parent::setUp();
|
||||||
|
|
||||||
@ -35,7 +35,7 @@ class MemberAuthenticatorTest extends SapphireTest
|
|||||||
Security::setDefaultAdmin('admin', 'password');
|
Security::setDefaultAdmin('admin', 'password');
|
||||||
}
|
}
|
||||||
|
|
||||||
public function tearDown()
|
protected function tearDown()
|
||||||
{
|
{
|
||||||
Security::setDefaultAdmin($this->defaultUsername, $this->defaultPassword);
|
Security::setDefaultAdmin($this->defaultUsername, $this->defaultPassword);
|
||||||
parent::tearDown();
|
parent::tearDown();
|
||||||
|
@ -49,7 +49,7 @@ class MemberTest extends FunctionalTest
|
|||||||
/**
|
/**
|
||||||
* @skipUpgrade
|
* @skipUpgrade
|
||||||
*/
|
*/
|
||||||
public function setUp()
|
protected function setUp()
|
||||||
{
|
{
|
||||||
parent::setUp();
|
parent::setUp();
|
||||||
|
|
||||||
@ -58,7 +58,7 @@ class MemberTest extends FunctionalTest
|
|||||||
Member::set_password_validator(null);
|
Member::set_password_validator(null);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function tearDown()
|
protected function tearDown()
|
||||||
{
|
{
|
||||||
Member::config()->unique_identifier_field = $this->orig['Member_unique_identifier_field'];
|
Member::config()->unique_identifier_field = $this->orig['Member_unique_identifier_field'];
|
||||||
parent::tearDown();
|
parent::tearDown();
|
||||||
|
@ -12,7 +12,7 @@ use SilverStripe\Security\Tests\PasswordEncryptorTest\TestEncryptor;
|
|||||||
|
|
||||||
class PasswordEncryptorTest extends SapphireTest
|
class PasswordEncryptorTest extends SapphireTest
|
||||||
{
|
{
|
||||||
public function tearDown()
|
protected function tearDown()
|
||||||
{
|
{
|
||||||
parent::tearDown();
|
parent::tearDown();
|
||||||
PasswordEncryptor_Blowfish::set_cost(10);
|
PasswordEncryptor_Blowfish::set_cost(10);
|
||||||
|
@ -15,7 +15,7 @@ class SecurityDefaultAdminTest extends SapphireTest
|
|||||||
protected $defaultUsername = null;
|
protected $defaultUsername = null;
|
||||||
protected $defaultPassword = null;
|
protected $defaultPassword = null;
|
||||||
|
|
||||||
public function setUp()
|
protected function setUp()
|
||||||
{
|
{
|
||||||
parent::setUp();
|
parent::setUp();
|
||||||
|
|
||||||
@ -33,7 +33,7 @@ class SecurityDefaultAdminTest extends SapphireTest
|
|||||||
Permission::flush_permission_cache();
|
Permission::flush_permission_cache();
|
||||||
}
|
}
|
||||||
|
|
||||||
public function tearDown()
|
protected function tearDown()
|
||||||
{
|
{
|
||||||
Security::setDefaultAdmin($this->defaultUsername, $this->defaultPassword);
|
Security::setDefaultAdmin($this->defaultUsername, $this->defaultPassword);
|
||||||
Permission::flush_permission_cache();
|
Permission::flush_permission_cache();
|
||||||
|
@ -45,7 +45,7 @@ class SecurityTest extends FunctionalTest
|
|||||||
SecurityTest\SecuredController::class,
|
SecurityTest\SecuredController::class,
|
||||||
];
|
];
|
||||||
|
|
||||||
public function setUp()
|
protected function setUp()
|
||||||
{
|
{
|
||||||
// This test assumes that MemberAuthenticator is present and the default
|
// This test assumes that MemberAuthenticator is present and the default
|
||||||
$this->priorAuthenticators = Authenticator::get_authenticators();
|
$this->priorAuthenticators = Authenticator::get_authenticators();
|
||||||
@ -70,7 +70,7 @@ class SecurityTest extends FunctionalTest
|
|||||||
Config::inst()->update('SilverStripe\\Control\\Director', 'alternate_base_url', '/');
|
Config::inst()->update('SilverStripe\\Control\\Director', 'alternate_base_url', '/');
|
||||||
}
|
}
|
||||||
|
|
||||||
public function tearDown()
|
protected function tearDown()
|
||||||
{
|
{
|
||||||
// Restore selected authenticator
|
// Restore selected authenticator
|
||||||
|
|
||||||
|
@ -11,7 +11,7 @@ class ShortcodeParserTest extends SapphireTest
|
|||||||
protected $arguments, $contents, $tagName, $parser;
|
protected $arguments, $contents, $tagName, $parser;
|
||||||
protected $extra = array();
|
protected $extra = array();
|
||||||
|
|
||||||
public function setUp()
|
protected function setUp()
|
||||||
{
|
{
|
||||||
ShortcodeParser::get('test')->register('test_shortcode', array($this, 'shortcodeSaver'));
|
ShortcodeParser::get('test')->register('test_shortcode', array($this, 'shortcodeSaver'));
|
||||||
$this->parser = ShortcodeParser::get('test');
|
$this->parser = ShortcodeParser::get('test');
|
||||||
@ -19,7 +19,7 @@ class ShortcodeParserTest extends SapphireTest
|
|||||||
parent::setUp();
|
parent::setUp();
|
||||||
}
|
}
|
||||||
|
|
||||||
public function tearDown()
|
protected function tearDown()
|
||||||
{
|
{
|
||||||
ShortcodeParser::get('test')->unregister('test_shortcode');
|
ShortcodeParser::get('test')->unregister('test_shortcode');
|
||||||
|
|
||||||
@ -314,7 +314,8 @@ class ShortcodeParserTest extends SapphireTest
|
|||||||
|
|
||||||
public function testNoParseAttemptIfNoCode()
|
public function testNoParseAttemptIfNoCode()
|
||||||
{
|
{
|
||||||
$stub = $this->getMock('SilverStripe\\View\\Parsers\\ShortcodeParser', array('replaceElementTagsWithMarkers'));
|
$stub = $this->getMockBuilder(ShortcodeParser::class)->setMethods(array('replaceElementTagsWithMarkers'))
|
||||||
|
->getMock();
|
||||||
$stub->register(
|
$stub->register(
|
||||||
'test',
|
'test',
|
||||||
function () {
|
function () {
|
||||||
|
@ -20,13 +20,13 @@ class RequirementsTest extends SapphireTest
|
|||||||
|
|
||||||
static $html_template = '<html><head></head><body></body></html>';
|
static $html_template = '<html><head></head><body></body></html>';
|
||||||
|
|
||||||
public function setUp()
|
protected function setUp()
|
||||||
{
|
{
|
||||||
parent::setUp();
|
parent::setUp();
|
||||||
TestAssetStore::activate('RequirementsTest'); // Set backend root to /RequirementsTest
|
TestAssetStore::activate('RequirementsTest'); // Set backend root to /RequirementsTest
|
||||||
}
|
}
|
||||||
|
|
||||||
public function tearDown()
|
protected function tearDown()
|
||||||
{
|
{
|
||||||
TestAssetStore::reset();
|
TestAssetStore::reset();
|
||||||
parent::tearDown();
|
parent::tearDown();
|
||||||
|
@ -45,7 +45,7 @@ class SSViewerTest extends SapphireTest
|
|||||||
SSViewerTest\TestObject::class,
|
SSViewerTest\TestObject::class,
|
||||||
);
|
);
|
||||||
|
|
||||||
public function setUp()
|
protected function setUp()
|
||||||
{
|
{
|
||||||
parent::setUp();
|
parent::setUp();
|
||||||
SSViewer::config()->update('source_file_comments', false);
|
SSViewer::config()->update('source_file_comments', false);
|
||||||
@ -54,7 +54,7 @@ class SSViewerTest extends SapphireTest
|
|||||||
$this->oldServer = $_SERVER;
|
$this->oldServer = $_SERVER;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function tearDown()
|
protected function tearDown()
|
||||||
{
|
{
|
||||||
$_SERVER = $this->oldServer;
|
$_SERVER = $this->oldServer;
|
||||||
TestAssetStore::reset();
|
TestAssetStore::reset();
|
||||||
@ -201,7 +201,8 @@ class SSViewerTest extends SapphireTest
|
|||||||
|
|
||||||
public function testRequirements()
|
public function testRequirements()
|
||||||
{
|
{
|
||||||
$requirements = $this->getMock("SilverStripe\\View\\Requirements_Backend", array("javascript", "css"));
|
$requirements = $this->getMockBuilder(Requirements_Backend::class)->setMethods(array("javascript", "css"))
|
||||||
|
->getMock();
|
||||||
$jsFile = FRAMEWORK_DIR . '/tests/forms/a.js';
|
$jsFile = FRAMEWORK_DIR . '/tests/forms/a.js';
|
||||||
$cssFile = FRAMEWORK_DIR . '/tests/forms/a.js';
|
$cssFile = FRAMEWORK_DIR . '/tests/forms/a.js';
|
||||||
|
|
||||||
|
@ -17,13 +17,13 @@ class i18nTest extends SapphireTest
|
|||||||
{
|
{
|
||||||
use i18nTestManifest;
|
use i18nTestManifest;
|
||||||
|
|
||||||
public function setUp()
|
protected function setUp()
|
||||||
{
|
{
|
||||||
parent::setUp();
|
parent::setUp();
|
||||||
$this->setupManifest();
|
$this->setupManifest();
|
||||||
}
|
}
|
||||||
|
|
||||||
public function tearDown()
|
protected function tearDown()
|
||||||
{
|
{
|
||||||
$this->tearDownManifest();
|
$this->tearDownManifest();
|
||||||
parent::tearDown();
|
parent::tearDown();
|
||||||
|
@ -20,7 +20,7 @@ class i18nTextCollectorTest extends SapphireTest
|
|||||||
*/
|
*/
|
||||||
protected $alternateBaseSavePath = null;
|
protected $alternateBaseSavePath = null;
|
||||||
|
|
||||||
public function setUp()
|
protected function setUp()
|
||||||
{
|
{
|
||||||
parent::setUp();
|
parent::setUp();
|
||||||
$this->setupManifest();
|
$this->setupManifest();
|
||||||
@ -29,7 +29,7 @@ class i18nTextCollectorTest extends SapphireTest
|
|||||||
Filesystem::makeFolder($this->alternateBaseSavePath);
|
Filesystem::makeFolder($this->alternateBaseSavePath);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function tearDown()
|
protected function tearDown()
|
||||||
{
|
{
|
||||||
if (is_dir($this->alternateBaseSavePath)) {
|
if (is_dir($this->alternateBaseSavePath)) {
|
||||||
Filesystem::removeFolder($this->alternateBaseSavePath);
|
Filesystem::removeFolder($this->alternateBaseSavePath);
|
||||||
|
Loading…
Reference in New Issue
Block a user