@@ -154,11 +154,11 @@ public function testAddToken()
154154 $ inMemoryAppRepository = $ this ->getRepository ();
155155 $ inMemoryAppRepository ->setRepositoryReference (RepositoryReference::create (AppUUID::createById ('xxx ' )));
156156 $ 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 );
159159 $ this ->assertCount (1 , $ inMemoryAppRepository ->getTokens ());
160160 $ token2 = new Token (TokenUUID::createById ('uuu ' ), AppUUID::createById ('xxx ' ));
161- $ inMemoryAppRepository ->addToken ($ token2 );
161+ $ inMemoryAppRepository ->putToken ($ token2 );
162162 $ this ->assertCount (2 , $ inMemoryAppRepository ->getTokens ());
163163 }
164164
@@ -171,7 +171,7 @@ public function testDeleteToken()
171171 $ inMemoryAppRepository ->setRepositoryReference (RepositoryReference::create (AppUUID::createById ('xxx ' )));
172172 $ inMemoryAppRepository ->createIndex (IndexUUID::createById ('yyy ' ), new Config ());
173173 $ token = new Token (TokenUUID::createById ('lll ' ), AppUUID::createById ('xxx ' ));
174- $ inMemoryAppRepository ->addToken ($ token );
174+ $ inMemoryAppRepository ->putToken ($ token );
175175 $ this ->assertCount (1 , $ inMemoryAppRepository ->getTokens ());
176176 $ inMemoryAppRepository ->deleteToken (TokenUUID::createById ('nono ' ));
177177 $ this ->assertCount (1 , $ inMemoryAppRepository ->getTokens ());
@@ -188,9 +188,9 @@ public function testDeleteTokens()
188188 $ inMemoryAppRepository ->setRepositoryReference (RepositoryReference::create (AppUUID::createById ('xxx ' )));
189189 $ inMemoryAppRepository ->createIndex (IndexUUID::createById ('yyy ' ), new Config ());
190190 $ token = new Token (TokenUUID::createById ('lll ' ), AppUUID::createById ('xxx ' ));
191- $ inMemoryAppRepository ->addToken ($ token );
191+ $ inMemoryAppRepository ->putToken ($ token );
192192 $ token2 = new Token (TokenUUID::createById ('uuu ' ), AppUUID::createById ('xxx ' ));
193- $ inMemoryAppRepository ->addToken ($ token2 );
193+ $ inMemoryAppRepository ->putToken ($ token2 );
194194 $ this ->assertCount (2 , $ inMemoryAppRepository ->getTokens ());
195195 $ inMemoryAppRepository ->deleteTokens ();
196196 $ this ->assertCount (0 , $ inMemoryAppRepository ->getTokens ());
0 commit comments