@@ -154,11 +154,11 @@ public function testAddToken()
154
154
$ inMemoryAppRepository = $ this ->getRepository ();
155
155
$ inMemoryAppRepository ->setRepositoryReference (RepositoryReference::create (AppUUID::createById ('xxx ' )));
156
156
$ token = new Token (TokenUUID::createById ('lll ' ), AppUUID::createById ('xxx ' ));
157
- $ inMemoryAppRepository ->addToken ($ token );
158
- $ inMemoryAppRepository ->addToken ($ token );
157
+ $ inMemoryAppRepository ->putToken ($ token );
158
+ $ inMemoryAppRepository ->putToken ($ token );
159
159
$ this ->assertCount (1 , $ inMemoryAppRepository ->getTokens ());
160
160
$ token2 = new Token (TokenUUID::createById ('uuu ' ), AppUUID::createById ('xxx ' ));
161
- $ inMemoryAppRepository ->addToken ($ token2 );
161
+ $ inMemoryAppRepository ->putToken ($ token2 );
162
162
$ this ->assertCount (2 , $ inMemoryAppRepository ->getTokens ());
163
163
}
164
164
@@ -171,7 +171,7 @@ public function testDeleteToken()
171
171
$ inMemoryAppRepository ->setRepositoryReference (RepositoryReference::create (AppUUID::createById ('xxx ' )));
172
172
$ inMemoryAppRepository ->createIndex (IndexUUID::createById ('yyy ' ), new Config ());
173
173
$ token = new Token (TokenUUID::createById ('lll ' ), AppUUID::createById ('xxx ' ));
174
- $ inMemoryAppRepository ->addToken ($ token );
174
+ $ inMemoryAppRepository ->putToken ($ token );
175
175
$ this ->assertCount (1 , $ inMemoryAppRepository ->getTokens ());
176
176
$ inMemoryAppRepository ->deleteToken (TokenUUID::createById ('nono ' ));
177
177
$ this ->assertCount (1 , $ inMemoryAppRepository ->getTokens ());
@@ -188,9 +188,9 @@ public function testDeleteTokens()
188
188
$ inMemoryAppRepository ->setRepositoryReference (RepositoryReference::create (AppUUID::createById ('xxx ' )));
189
189
$ inMemoryAppRepository ->createIndex (IndexUUID::createById ('yyy ' ), new Config ());
190
190
$ token = new Token (TokenUUID::createById ('lll ' ), AppUUID::createById ('xxx ' ));
191
- $ inMemoryAppRepository ->addToken ($ token );
191
+ $ inMemoryAppRepository ->putToken ($ token );
192
192
$ token2 = new Token (TokenUUID::createById ('uuu ' ), AppUUID::createById ('xxx ' ));
193
- $ inMemoryAppRepository ->addToken ($ token2 );
193
+ $ inMemoryAppRepository ->putToken ($ token2 );
194
194
$ this ->assertCount (2 , $ inMemoryAppRepository ->getTokens ());
195
195
$ inMemoryAppRepository ->deleteTokens ();
196
196
$ this ->assertCount (0 , $ inMemoryAppRepository ->getTokens ());
0 commit comments