@@ -30,10 +30,10 @@ public function testSetUpOk()
30
30
{
31
31
$ dropbox = new Dropbox ();
32
32
$ 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 ' => '/ '
37
37
]);
38
38
39
39
$ this ->assertTrue (true , 'no exception should occur ' );
@@ -50,10 +50,10 @@ public function testSlasherizePath()
50
50
51
51
$ dropbox = new Dropbox ();
52
52
$ 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 '
57
57
]);
58
58
59
59
$ resultStub = $ this ->createMock (Result::class);
@@ -85,10 +85,10 @@ public function testSync()
85
85
$ dropbox ->method ('createClient ' )->willReturn ($ clientMock );
86
86
87
87
$ 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 ' => '/ '
92
92
]);
93
93
94
94
$ dropbox ->sync ($ target , $ result );
@@ -117,7 +117,7 @@ public function testSyncWithCleanup()
117
117
$ dropbox ->method ('createClient ' )->willReturn ($ clientMock );
118
118
119
119
$ dropbox ->setup ([
120
- 'token ' => 'this-is-no-token ' ,
120
+ 'refreshToken ' => 'this-is-no-token ' ,
121
121
'appKey ' => 'this-is-no-key ' ,
122
122
'appSecret ' => 'this-is-no-secret ' ,
123
123
'path ' => '/ ' ,
@@ -144,10 +144,10 @@ public function testSyncFail()
144
144
$ dropbox ->method ('createClient ' )->willReturn ($ clientMock );
145
145
146
146
$ 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 ' => '/ '
151
151
]);
152
152
153
153
$ dropbox ->sync ($ target , $ result );
@@ -160,10 +160,10 @@ public function testSimulate()
160
160
{
161
161
$ dropbox = new Dropbox ();
162
162
$ 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 ' => '/ '
167
167
]);
168
168
169
169
$ resultStub = $ this ->createMock (Result::class);
@@ -194,9 +194,9 @@ public function testSetUpNoPath()
194
194
$ dropbox = new Dropbox ();
195
195
$ dropbox ->setup (
196
196
[
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 '
200
200
]
201
201
);
202
202
}
0 commit comments