Apply fixes from StyleCI

[ci skip] [skip ci]
This commit is contained in:
HDVinnie
2020-02-13 21:45:47 +00:00
committed by StyleCI Bot
parent 33ad09f488
commit 987bed7a7b
106 changed files with 2349 additions and 2638 deletions

View File

@@ -3,7 +3,6 @@
namespace Tests\Feature\Http\Controllers\API;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Illuminate\Foundation\Testing\WithFaker;
use Tests\TestCase;
/**
@@ -18,13 +17,13 @@ class ChatControllerTest extends TestCase
*/
public function audibles_returns_an_ok_response()
{
$this->markTestIncomplete('This test case was generated by Shift. When you are ready, remove this line and complete this test case.');
$this->markTestIncomplete('This test case was generated by Shift. When you are ready, remove this line and complete this test case.');
$user = factory(\App\Models\User::class)->create();
$user = factory(\App\Models\User::class)->create();
$response = $this->actingAs($user)->get('api/chat/audibles');
$response = $this->actingAs($user)->get('api/chat/audibles');
$response->assertOk();
$response->assertOk();
// TODO: perform additional assertions
}
@@ -34,13 +33,13 @@ $response->assertOk();
*/
public function bot_messages_returns_an_ok_response()
{
$this->markTestIncomplete('This test case was generated by Shift. When you are ready, remove this line and complete this test case.');
$this->markTestIncomplete('This test case was generated by Shift. When you are ready, remove this line and complete this test case.');
$user = factory(\App\Models\User::class)->create();
$user = factory(\App\Models\User::class)->create();
$response = $this->actingAs($user)->get('api/chat/bot/{bot_id}');
$response = $this->actingAs($user)->get('api/chat/bot/{bot_id}');
$response->assertOk();
$response->assertOk();
// TODO: perform additional assertions
}
@@ -50,13 +49,13 @@ $response->assertOk();
*/
public function bots_returns_an_ok_response()
{
$this->markTestIncomplete('This test case was generated by Shift. When you are ready, remove this line and complete this test case.');
$this->markTestIncomplete('This test case was generated by Shift. When you are ready, remove this line and complete this test case.');
$user = factory(\App\Models\User::class)->create();
$user = factory(\App\Models\User::class)->create();
$response = $this->actingAs($user)->get('api/chat/bots');
$response = $this->actingAs($user)->get('api/chat/bots');
$response->assertOk();
$response->assertOk();
// TODO: perform additional assertions
}
@@ -66,13 +65,13 @@ $response->assertOk();
*/
public function config_returns_an_ok_response()
{
$this->markTestIncomplete('This test case was generated by Shift. When you are ready, remove this line and complete this test case.');
$this->markTestIncomplete('This test case was generated by Shift. When you are ready, remove this line and complete this test case.');
$user = factory(\App\Models\User::class)->create();
$user = factory(\App\Models\User::class)->create();
$response = $this->actingAs($user)->get('api/chat/config');
$response = $this->actingAs($user)->get('api/chat/config');
$response->assertOk();
$response->assertOk();
// TODO: perform additional assertions
}
@@ -82,15 +81,15 @@ $response->assertOk();
*/
public function create_message_returns_an_ok_response()
{
$this->markTestIncomplete('This test case was generated by Shift. When you are ready, remove this line and complete this test case.');
$this->markTestIncomplete('This test case was generated by Shift. When you are ready, remove this line and complete this test case.');
$user = factory(\App\Models\User::class)->create();
$user = factory(\App\Models\User::class)->create();
$response = $this->actingAs($user)->post('api/chat/messages', [
$response = $this->actingAs($user)->post('api/chat/messages', [
// TODO: send request data
]);
$response->assertOk();
$response->assertOk();
// TODO: perform additional assertions
}
@@ -100,15 +99,15 @@ $response->assertOk();
*/
public function delete_bot_echo_returns_an_ok_response()
{
$this->markTestIncomplete('This test case was generated by Shift. When you are ready, remove this line and complete this test case.');
$this->markTestIncomplete('This test case was generated by Shift. When you are ready, remove this line and complete this test case.');
$user = factory(\App\Models\User::class)->create();
$user = factory(\App\Models\User::class)->create();
$response = $this->actingAs($user)->post('api/chat/echoes/{user_id}/delete/bot', [
$response = $this->actingAs($user)->post('api/chat/echoes/{user_id}/delete/bot', [
// TODO: send request data
]);
$response->assertOk();
$response->assertOk();
// TODO: perform additional assertions
}
@@ -118,13 +117,13 @@ $response->assertOk();
*/
public function delete_message_returns_an_ok_response()
{
$this->markTestIncomplete('This test case was generated by Shift. When you are ready, remove this line and complete this test case.');
$this->markTestIncomplete('This test case was generated by Shift. When you are ready, remove this line and complete this test case.');
$user = factory(\App\Models\User::class)->create();
$user = factory(\App\Models\User::class)->create();
$response = $this->actingAs($user)->get('api/chat/message/{id}/delete');
$response = $this->actingAs($user)->get('api/chat/message/{id}/delete');
$response->assertOk();
$response->assertOk();
// TODO: perform additional assertions
}
@@ -134,15 +133,15 @@ $response->assertOk();
*/
public function delete_room_echo_returns_an_ok_response()
{
$this->markTestIncomplete('This test case was generated by Shift. When you are ready, remove this line and complete this test case.');
$this->markTestIncomplete('This test case was generated by Shift. When you are ready, remove this line and complete this test case.');
$user = factory(\App\Models\User::class)->create();
$user = factory(\App\Models\User::class)->create();
$response = $this->actingAs($user)->post('api/chat/echoes/{user_id}/delete/chatroom', [
$response = $this->actingAs($user)->post('api/chat/echoes/{user_id}/delete/chatroom', [
// TODO: send request data
]);
$response->assertOk();
$response->assertOk();
// TODO: perform additional assertions
}
@@ -152,15 +151,15 @@ $response->assertOk();
*/
public function delete_target_echo_returns_an_ok_response()
{
$this->markTestIncomplete('This test case was generated by Shift. When you are ready, remove this line and complete this test case.');
$this->markTestIncomplete('This test case was generated by Shift. When you are ready, remove this line and complete this test case.');
$user = factory(\App\Models\User::class)->create();
$user = factory(\App\Models\User::class)->create();
$response = $this->actingAs($user)->post('api/chat/echoes/{user_id}/delete/target', [
$response = $this->actingAs($user)->post('api/chat/echoes/{user_id}/delete/target', [
// TODO: send request data
]);
$response->assertOk();
$response->assertOk();
// TODO: perform additional assertions
}
@@ -170,13 +169,13 @@ $response->assertOk();
*/
public function echoes_returns_an_ok_response()
{
$this->markTestIncomplete('This test case was generated by Shift. When you are ready, remove this line and complete this test case.');
$this->markTestIncomplete('This test case was generated by Shift. When you are ready, remove this line and complete this test case.');
$user = factory(\App\Models\User::class)->create();
$user = factory(\App\Models\User::class)->create();
$response = $this->actingAs($user)->get('api/chat/echoes');
$response = $this->actingAs($user)->get('api/chat/echoes');
$response->assertOk();
$response->assertOk();
// TODO: perform additional assertions
}
@@ -186,13 +185,13 @@ $response->assertOk();
*/
public function messages_returns_an_ok_response()
{
$this->markTestIncomplete('This test case was generated by Shift. When you are ready, remove this line and complete this test case.');
$this->markTestIncomplete('This test case was generated by Shift. When you are ready, remove this line and complete this test case.');
$user = factory(\App\Models\User::class)->create();
$user = factory(\App\Models\User::class)->create();
$response = $this->actingAs($user)->get('api/chat/messages/{room_id}');
$response = $this->actingAs($user)->get('api/chat/messages/{room_id}');
$response->assertOk();
$response->assertOk();
// TODO: perform additional assertions
}
@@ -202,13 +201,13 @@ $response->assertOk();
*/
public function private_messages_returns_an_ok_response()
{
$this->markTestIncomplete('This test case was generated by Shift. When you are ready, remove this line and complete this test case.');
$this->markTestIncomplete('This test case was generated by Shift. When you are ready, remove this line and complete this test case.');
$user = factory(\App\Models\User::class)->create();
$user = factory(\App\Models\User::class)->create();
$response = $this->actingAs($user)->get('api/chat/private/messages/{target_id}');
$response = $this->actingAs($user)->get('api/chat/private/messages/{target_id}');
$response->assertOk();
$response->assertOk();
// TODO: perform additional assertions
}
@@ -218,13 +217,13 @@ $response->assertOk();
*/
public function rooms_returns_an_ok_response()
{
$this->markTestIncomplete('This test case was generated by Shift. When you are ready, remove this line and complete this test case.');
$this->markTestIncomplete('This test case was generated by Shift. When you are ready, remove this line and complete this test case.');
$user = factory(\App\Models\User::class)->create();
$user = factory(\App\Models\User::class)->create();
$response = $this->actingAs($user)->get('api/chat/rooms');
$response = $this->actingAs($user)->get('api/chat/rooms');
$response->assertOk();
$response->assertOk();
// TODO: perform additional assertions
}
@@ -234,13 +233,13 @@ $response->assertOk();
*/
public function statuses_returns_an_ok_response()
{
$this->markTestIncomplete('This test case was generated by Shift. When you are ready, remove this line and complete this test case.');
$this->markTestIncomplete('This test case was generated by Shift. When you are ready, remove this line and complete this test case.');
$user = factory(\App\Models\User::class)->create();
$user = factory(\App\Models\User::class)->create();
$response = $this->actingAs($user)->get('api/chat/statuses');
$response = $this->actingAs($user)->get('api/chat/statuses');
$response->assertOk();
$response->assertOk();
// TODO: perform additional assertions
}
@@ -250,15 +249,15 @@ $response->assertOk();
*/
public function toggle_bot_audible_returns_an_ok_response()
{
$this->markTestIncomplete('This test case was generated by Shift. When you are ready, remove this line and complete this test case.');
$this->markTestIncomplete('This test case was generated by Shift. When you are ready, remove this line and complete this test case.');
$user = factory(\App\Models\User::class)->create();
$user = factory(\App\Models\User::class)->create();
$response = $this->actingAs($user)->post('api/chat/audibles/{user_id}/toggle/bot', [
$response = $this->actingAs($user)->post('api/chat/audibles/{user_id}/toggle/bot', [
// TODO: send request data
]);
$response->assertOk();
$response->assertOk();
// TODO: perform additional assertions
}
@@ -268,15 +267,15 @@ $response->assertOk();
*/
public function toggle_room_audible_returns_an_ok_response()
{
$this->markTestIncomplete('This test case was generated by Shift. When you are ready, remove this line and complete this test case.');
$this->markTestIncomplete('This test case was generated by Shift. When you are ready, remove this line and complete this test case.');
$user = factory(\App\Models\User::class)->create();
$user = factory(\App\Models\User::class)->create();
$response = $this->actingAs($user)->post('api/chat/audibles/{user_id}/toggle/chatroom', [
$response = $this->actingAs($user)->post('api/chat/audibles/{user_id}/toggle/chatroom', [
// TODO: send request data
]);
$response->assertOk();
$response->assertOk();
// TODO: perform additional assertions
}
@@ -286,15 +285,15 @@ $response->assertOk();
*/
public function toggle_target_audible_returns_an_ok_response()
{
$this->markTestIncomplete('This test case was generated by Shift. When you are ready, remove this line and complete this test case.');
$this->markTestIncomplete('This test case was generated by Shift. When you are ready, remove this line and complete this test case.');
$user = factory(\App\Models\User::class)->create();
$user = factory(\App\Models\User::class)->create();
$response = $this->actingAs($user)->post('api/chat/audibles/{user_id}/toggle/target', [
$response = $this->actingAs($user)->post('api/chat/audibles/{user_id}/toggle/target', [
// TODO: send request data
]);
$response->assertOk();
$response->assertOk();
// TODO: perform additional assertions
}
@@ -304,15 +303,15 @@ $response->assertOk();
*/
public function update_user_chat_status_returns_an_ok_response()
{
$this->markTestIncomplete('This test case was generated by Shift. When you are ready, remove this line and complete this test case.');
$this->markTestIncomplete('This test case was generated by Shift. When you are ready, remove this line and complete this test case.');
$user = factory(\App\Models\User::class)->create();
$user = factory(\App\Models\User::class)->create();
$response = $this->actingAs($user)->post('api/chat/user/{id}/status', [
$response = $this->actingAs($user)->post('api/chat/user/{id}/status', [
// TODO: send request data
]);
$response->assertOk();
$response->assertOk();
// TODO: perform additional assertions
}
@@ -322,15 +321,15 @@ $response->assertOk();
*/
public function update_user_room_returns_an_ok_response()
{
$this->markTestIncomplete('This test case was generated by Shift. When you are ready, remove this line and complete this test case.');
$this->markTestIncomplete('This test case was generated by Shift. When you are ready, remove this line and complete this test case.');
$user = factory(\App\Models\User::class)->create();
$user = factory(\App\Models\User::class)->create();
$response = $this->actingAs($user)->post('api/chat/user/{id}/chatroom', [
$response = $this->actingAs($user)->post('api/chat/user/{id}/chatroom', [
// TODO: send request data
]);
$response->assertOk();
$response->assertOk();
// TODO: perform additional assertions
}
@@ -340,15 +339,15 @@ $response->assertOk();
*/
public function update_user_target_returns_an_ok_response()
{
$this->markTestIncomplete('This test case was generated by Shift. When you are ready, remove this line and complete this test case.');
$this->markTestIncomplete('This test case was generated by Shift. When you are ready, remove this line and complete this test case.');
$user = factory(\App\Models\User::class)->create();
$user = factory(\App\Models\User::class)->create();
$response = $this->actingAs($user)->post('api/chat/user/{id}/target', [
$response = $this->actingAs($user)->post('api/chat/user/{id}/target', [
// TODO: send request data
]);
$response->assertOk();
$response->assertOk();
// TODO: perform additional assertions
}