Skip to content

Commit c7ceb46

Browse files
Fix Dropbox tests
1 parent ce3b139 commit c7ceb46

File tree

1 file changed

+24
-24
lines changed

1 file changed

+24
-24
lines changed

tests/phpbu/Backup/Sync/DropboxTest.php

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@ public function testSetUpOk()
3030
{
3131
$dropbox = new Dropbox();
3232
$dropbox->setup([
33-
'token' => 'this-is-no-token',
34-
'appKey' => 'this-is-no-key',
35-
'appSecret' => 'this-is-no-secret',
36-
'path' => '/'
33+
'refreshToken' => 'this-is-no-token',
34+
'appKey' => 'this-is-no-key',
35+
'appSecret' => 'this-is-no-secret',
36+
'path' => '/'
3737
]);
3838

3939
$this->assertTrue(true, 'no exception should occur');
@@ -50,10 +50,10 @@ public function testSlasherizePath()
5050

5151
$dropbox = new Dropbox();
5252
$dropbox->setup([
53-
'token' => 'this-is-no-token',
54-
'appKey' => 'this-is-no-key',
55-
'appSecret' => 'this-is-no-secret',
56-
'path' => 'foo'
53+
'refreshToken' => 'this-is-no-token',
54+
'appKey' => 'this-is-no-key',
55+
'appSecret' => 'this-is-no-secret',
56+
'path' => 'foo'
5757
]);
5858

5959
$resultStub = $this->createMock(Result::class);
@@ -85,10 +85,10 @@ public function testSync()
8585
$dropbox->method('createClient')->willReturn($clientMock);
8686

8787
$dropbox->setup([
88-
'token' => 'this-is-no-token',
89-
'appKey' => 'this-is-no-key',
90-
'appSecret' => 'this-is-no-secret',
91-
'path' => '/'
88+
'refreshToken' => 'this-is-no-token',
89+
'appKey' => 'this-is-no-key',
90+
'appSecret' => 'this-is-no-secret',
91+
'path' => '/'
9292
]);
9393

9494
$dropbox->sync($target, $result);
@@ -117,7 +117,7 @@ public function testSyncWithCleanup()
117117
$dropbox->method('createClient')->willReturn($clientMock);
118118

119119
$dropbox->setup([
120-
'token' => 'this-is-no-token',
120+
'refreshToken' => 'this-is-no-token',
121121
'appKey' => 'this-is-no-key',
122122
'appSecret' => 'this-is-no-secret',
123123
'path' => '/',
@@ -144,10 +144,10 @@ public function testSyncFail()
144144
$dropbox->method('createClient')->willReturn($clientMock);
145145

146146
$dropbox->setup([
147-
'token' => 'this-is-no-token',
148-
'appKey' => 'this-is-no-key',
149-
'appSecret' => 'this-is-no-secret',
150-
'path' => '/'
147+
'refreshToken' => 'this-is-no-token',
148+
'appKey' => 'this-is-no-key',
149+
'appSecret' => 'this-is-no-secret',
150+
'path' => '/'
151151
]);
152152

153153
$dropbox->sync($target, $result);
@@ -160,10 +160,10 @@ public function testSimulate()
160160
{
161161
$dropbox = new Dropbox();
162162
$dropbox->setup([
163-
'token' => 'this-is-no-token',
164-
'appKey' => 'this-is-no-key',
165-
'appSecret' => 'this-is-no-secret',
166-
'path' => '/'
163+
'refreshToken' => 'this-is-no-token',
164+
'appKey' => 'this-is-no-key',
165+
'appSecret' => 'this-is-no-secret',
166+
'path' => '/'
167167
]);
168168

169169
$resultStub = $this->createMock(Result::class);
@@ -194,9 +194,9 @@ public function testSetUpNoPath()
194194
$dropbox = new Dropbox();
195195
$dropbox->setup(
196196
[
197-
'token' => 'this-is-no-token',
198-
'appKey' => 'this-is-no-key',
199-
'appSecret' => 'this-is-no-secret'
197+
'refreshToken' => 'this-is-no-token',
198+
'appKey' => 'this-is-no-key',
199+
'appSecret' => 'this-is-no-secret'
200200
]
201201
);
202202
}

0 commit comments

Comments
 (0)