File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -237,7 +237,7 @@ public function getCommand()
237237 *
238238 * @return int
239239 */
240- public function getUserID ()
240+ public function getUserId ()
241241 {
242242 return $ this ->user_id ;
243243 }
@@ -247,7 +247,7 @@ public function getUserID()
247247 *
248248 * @return int
249249 */
250- public function getChatID ()
250+ public function getChatId ()
251251 {
252252 return $ this ->chat_id ;
253253 }
Original file line number Diff line number Diff line change @@ -50,17 +50,17 @@ protected function setUp(): void
5050 public function testConversationThatDoesntExistPropertiesSetCorrectly ()
5151 {
5252 $ conversation = new Conversation (123 , 456 );
53- $ this ->assertEquals (123 , $ conversation ->getUserID ());
54- $ this ->assertEquals (456 , $ conversation ->getChatID ());
53+ $ this ->assertEquals (123 , $ conversation ->getUseriD ());
54+ $ this ->assertEquals (456 , $ conversation ->getChatId ());
5555 $ this ->assertEquals (null , $ conversation ->getCommand ());
5656 }
5757
5858 public function testConversationThatExistsPropertiesSetCorrectly ()
5959 {
6060 $ info = TestHelpers::startFakeConversation ();
6161 $ conversation = new Conversation ($ info ['user_id ' ], $ info ['chat_id ' ], 'command ' );
62- $ this ->assertEquals ($ info ['user_id ' ], $ conversation ->getUserID ());
63- $ this ->assertEquals ($ info ['chat_id ' ], $ conversation ->getChatID ());
62+ $ this ->assertEquals ($ info ['user_id ' ], $ conversation ->getUserId ());
63+ $ this ->assertEquals ($ info ['chat_id ' ], $ conversation ->getChatId ());
6464 $ this ->assertEquals ('command ' , $ conversation ->getCommand ());
6565 }
6666
You can’t perform that action at this time.
0 commit comments