Skip to content

Commit

Permalink
Fix Name
Browse files Browse the repository at this point in the history
  • Loading branch information
rullzer committed May 23, 2016
1 parent 7ef21b0 commit e03e492
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
4 changes: 4 additions & 0 deletions .htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -72,3 +72,7 @@ Options -Indexes
<IfModule pagespeed_module>
ModPagespeed Off
</IfModule>
#### DO NOT CHANGE ANYTHING ABOVE THIS LINE ####

ErrorDocument 403 /core/templates/403.php
ErrorDocument 404 /core/templates/404.php
8 changes: 4 additions & 4 deletions lib/private/Files/Mount/ObjectHomeMountProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@ public function __construct(IConfig $config) {
*/
public function getHomeMountForUser(IUser $user, IStorageFactory $loader) {

$config = $this->multiBucketObjectStore($user);
$config = $this->getMultiBucketObjectStoreConfig($user);
if ($config === null) {
$config = $this->singleBucketObjectStore($user);
$config = $this->getSingleBucketObjectStoreConfig($user);
}

if ($config === null) {
Expand All @@ -69,7 +69,7 @@ public function getHomeMountForUser(IUser $user, IStorageFactory $loader) {
* @param IUser $user
* @return array|null
*/
private function singleBucketObjectStore(IUser $user) {
private function getSingleBucketObjectStoreConfig(IUser $user) {
$config = $this->config->getSystemValue('objectstore');
if (!is_array($config)) {
return null;
Expand All @@ -93,7 +93,7 @@ private function singleBucketObjectStore(IUser $user) {
* @param IUser $user
* @return array|null
*/
private function multiBucketObjectStore(IUser $user) {
private function getMultiBucketObjectStoreConfig(IUser $user) {
$config = $this->config->getSystemValue('objectstore_multibucket');
if (!is_array($config)) {
return null;
Expand Down
6 changes: 3 additions & 3 deletions tests/lib/Files/Mount/ObjectHomeMountProviderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public function testSingleBucket() {
$this->user->expects($this->never())->method($this->anything());
$this->loader->expects($this->never())->method($this->anything());

$config = $this->invokePrivate($this->provider, 'singleBucketObjectStore', [$this->user, $this->loader]);
$config = $this->invokePrivate($this->provider, 'getSingleBucketObjectStoreConfig', [$this->user, $this->loader]);

$this->assertArrayHasKey('class', $config);
$this->assertEquals($config['class'], 'Test\Files\Mount\FakeObjectStore');
Expand All @@ -66,7 +66,7 @@ public function testMultiBucket() {
->willReturn('uid');
$this->loader->expects($this->never())->method($this->anything());

$config = $this->invokePrivate($this->provider, 'multiBucketObjectStore', [$this->user, $this->loader]);
$config = $this->invokePrivate($this->provider, 'getMultiBucketObjectStoreConfig', [$this->user, $this->loader]);

$this->assertArrayHasKey('class', $config);
$this->assertEquals($config['class'], 'Test\Files\Mount\FakeObjectStore');
Expand Down Expand Up @@ -95,7 +95,7 @@ public function testMultiBucketWithPrefix() {
->willReturn('uid');
$this->loader->expects($this->never())->method($this->anything());

$config = $this->invokePrivate($this->provider, 'multiBucketObjectStore', [$this->user, $this->loader]);
$config = $this->invokePrivate($this->provider, 'getMultiBucketObjectStoreConfig', [$this->user, $this->loader]);

$this->assertArrayHasKey('class', $config);
$this->assertEquals($config['class'], 'Test\Files\Mount\FakeObjectStore');
Expand Down

0 comments on commit e03e492

Please sign in to comment.