-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from itmaxxx/PC-4_Messages_endpoints
PC-4 Messages endpoints lost commits
- Loading branch information
Showing
8 changed files
with
153 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,5 +7,5 @@ | |
"user" => "root", | ||
"pass" => "root", | ||
"name" => "web_chat", | ||
"charset" => "utf8", | ||
"charset" => "utf8mb4", | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
<?php | ||
|
||
@include_once __DIR__ . "/chats.php"; | ||
@include_once __DIR__ . "/users.php"; | ||
|
||
global $MaxAndIlyaChat, $MaxDmitriev, $IlyaMehof, $DeletedChatWithMaxAndMatvey, $MatveyGorelik, $GymPartyPublicChat; | ||
|
||
$MaxMessageInChatWithIlya = [ | ||
"id" => "message000000001", | ||
"chatId" => $MaxAndIlyaChat["id"], | ||
"userId" => $MaxDmitriev["id"], | ||
"content" => "Hi there, it's our first message" | ||
]; | ||
|
||
$IlyaMessageInChatWithMax = [ | ||
"id" => "message000000002", | ||
"chatId" => $MaxAndIlyaChat["id"], | ||
"userId" => $IlyaMehof["id"], | ||
"content" => "Hi Max! Nice to meet you here!" | ||
]; | ||
|
||
$MaxPhotoMessageInChatWithIlya = [ | ||
"id" => "message000000003", | ||
"chatId" => $MaxAndIlyaChat["id"], | ||
"userId" => $MaxDmitriev["id"], | ||
"contentType" => 1, | ||
"content" => "https://ixbt.online/live/images/original/04/19/16/2022/01/23/14e5fd3c80.jpg" | ||
]; | ||
|
||
$MaxMessageInDeletedChatWithMatvey = [ | ||
"id" => "message000000004", | ||
"chatId" => $DeletedChatWithMaxAndMatvey["id"], | ||
"userId" => $MaxDmitriev["id"], | ||
"content" => "Hi Matvey, how are you?" | ||
]; | ||
|
||
$MatveyMessageInDeletedChatWithMax = [ | ||
"id" => "message000000005", | ||
"chatId" => $DeletedChatWithMaxAndMatvey["id"], | ||
"userId" => $MatveyGorelik["id"], | ||
"content" => "Hi, I'm fine, can you call me now? I'll delete this chat now" | ||
]; | ||
|
||
$MaxMessageInGymChat = [ | ||
"id" => "message000000006", | ||
"chatId" => $GymPartyPublicChat["id"], | ||
"userId" => $MaxDmitriev["id"], | ||
"content" => "Salam aleykum! Todzhiko ikei vatan, duri mi duhom padat nakin" | ||
]; | ||
|
||
$IlyaMessageInGymChat = [ | ||
"id" => "message000000007", | ||
"chatId" => $GymPartyPublicChat["id"], | ||
"userId" => $IlyaMehof["id"], | ||
"content" => "Nas nikogda nikto ne slomaet" | ||
]; | ||
|
||
$messagesFixtures = [ | ||
$MaxMessageInChatWithIlya, | ||
$IlyaMessageInChatWithMax, | ||
$MaxPhotoMessageInChatWithIlya, | ||
$MaxMessageInDeletedChatWithMatvey, | ||
$MatveyMessageInDeletedChatWithMax, | ||
$IlyaMessageInGymChat, | ||
$MaxMessageInGymChat | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters