Change the default value to true instead of null

This commit is contained in:
Juan Pablo Villafáñez 2016-06-08 12:48:33 +02:00
parent a2b00582bc
commit 7d85bed1fc
5 changed files with 8 additions and 8 deletions

View File

@ -140,7 +140,7 @@ class GlobalStoragesController extends StoragesController {
$applicableUsers,
$applicableGroups,
$priority,
$testOnly = null
$testOnly = true
) {
$storage = $this->createStorage(
$mountPoint,

View File

@ -238,7 +238,7 @@ abstract class StoragesController extends Controller {
*
* @param StorageConfig $storage storage configuration
*/
protected function updateStorageStatus(StorageConfig &$storage, $testOnly = null) {
protected function updateStorageStatus(StorageConfig &$storage, $testOnly = true) {
try {
$this->manipulateStorageConfig($storage);
@ -294,7 +294,7 @@ abstract class StoragesController extends Controller {
*
* @return DataResponse
*/
public function show($id, $testOnly = null) {
public function show($id, $testOnly = true) {
try {
$storage = $this->service->getStorage($id);

View File

@ -111,7 +111,7 @@ class UserGlobalStoragesController extends StoragesController {
*
* @NoAdminRequired
*/
public function show($id, $testOnly = null) {
public function show($id, $testOnly = true) {
try {
$storage = $this->service->getStorage($id);
@ -147,7 +147,7 @@ class UserGlobalStoragesController extends StoragesController {
public function update(
$id,
$backendOptions,
$testOnly = null
$testOnly = true
) {
try {
$storage = $this->service->getStorage($id);

View File

@ -101,7 +101,7 @@ class UserStoragesController extends StoragesController {
*
* {@inheritdoc}
*/
public function show($id, $testOnly = null) {
public function show($id, $testOnly = true) {
return parent::show($id, $testOnly);
}
@ -171,7 +171,7 @@ class UserStoragesController extends StoragesController {
$authMechanism,
$backendOptions,
$mountOptions,
$testOnly = null
$testOnly = true
) {
$storage = $this->createStorage(
$mountPoint,

View File

@ -215,7 +215,7 @@ class OC_Mount_Config {
* @return int see self::STATUS_*
* @throws Exception
*/
public static function getBackendStatus($class, $options, $isPersonal, $testOnly = null) {
public static function getBackendStatus($class, $options, $isPersonal, $testOnly = true) {
if (self::$skipTest) {
return StorageNotAvailableException::STATUS_SUCCESS;
}