tests: console commands

This commit is contained in:
HDVinnie
2020-02-25 13:01:48 -05:00
parent 111c2306ff
commit ad3ec8de19
57 changed files with 283 additions and 711 deletions
+2
View File
@@ -35,3 +35,5 @@ PUSHER_APP_ID=
PUSHER_APP_KEY=
PUSHER_APP_SECRET=
PUSHER_APP_CLUSTER=mt1
TMDB_API_KEY=aa8b43b8cbce9d1689bef3d0c3087e4d
+1
View File
@@ -74,5 +74,6 @@ class AutoBan extends Command
Mail::to($ban->warneduser->email)->send(new BanUser($ban->warneduser->email, $logban));
}
}
$this->comment('Automated User Banning Command Complete');
}
}
@@ -263,5 +263,6 @@ class AutoBonAllocation extends Command
$user->seedbonus += $value;
$user->save();
}
$this->comment('Automated BON Allocation Command Complete');
}
}
@@ -58,5 +58,6 @@ class AutoCorrectHistory extends Command
$h->seeder = false;
$h->save();
}
$this->comment('Automated History Record Correction Command Complete');
}
}
@@ -57,5 +57,6 @@ class AutoDeactivateWarning extends Command
$pm->message = 'The [b]WARNING[/b] you received relating to Torrent '.$warning->torrenttitle->name.' has expired! Try not to get more! [color=red][b]THIS IS AN AUTOMATED SYSTEM MESSAGE, PLEASE DO NOT REPLY![/b][/color]';
$pm->save();
}
$this->comment('Automated Warning Deativation Command Complete');
}
}
@@ -72,5 +72,6 @@ class AutoDisableInactiveUsers extends Command
}
}
}
$this->comment('Automated User Disable Command Complete');
}
}
+1
View File
@@ -62,5 +62,6 @@ class AutoFlushPeers extends Command
}
$peer->delete();
}
$this->comment('Automated Flush Ghost Peers Command Complete');
}
}
+1
View File
@@ -95,5 +95,6 @@ class AutoGraveyard extends Command
$pm->save();
}
}
$this->comment('Automated Graveyard Rewards Command Complete');
}
}
+1
View File
@@ -105,5 +105,6 @@ class AutoGroup extends Command
$user->save();
}
}
$this->comment('Automated User Group Command Complete');
}
}
@@ -57,5 +57,6 @@ class AutoHighspeedTag extends Command
unset($torrent);
}
}
$this->comment('Automated High Speed Torrents Command Complete');
}
}
+1
View File
@@ -143,5 +143,6 @@ class AutoNerdStat extends Command
// Auto Shout Nerd Stat
$this->chat->systemMessage(sprintf('%s', $statArray[$selected]), 2);
}
$this->comment('Automated Nerd Stat Command Complete');
}
}
+1
View File
@@ -81,5 +81,6 @@ class AutoPreWarning extends Command
}
}
}
$this->comment('Automated User Pre-Warning Command Complete');
}
}
@@ -46,5 +46,6 @@ class AutoRecycleAudits extends Command
foreach ($audits as $audit) {
$audit->delete();
}
$this->comment('Automated Purge Old Audits Command Complete');
}
}
@@ -76,5 +76,6 @@ class AutoRecycleClaimedTorrentRequests extends Command
$torrentRequest->save();
}
}
$this->comment('Automated Request Claim Reset Command Complete');
}
}
@@ -46,5 +46,6 @@ class AutoRecycleFailedLogins extends Command
foreach ($failedLogins as $failedLogin) {
$failedLogin->delete();
}
$this->comment('Automated Purge Old Failed Logins Command Complete');
}
}
@@ -46,5 +46,6 @@ class AutoRecycleInvites extends Command
foreach ($invites as $invite) {
$invite->delete();
}
$this->comment('Automated Purge Unaccepted Invites Command Complete');
}
}
@@ -75,5 +75,6 @@ class AutoRemoveFeaturedTorrent extends Command
// Delete The Record From DB
$featured_torrent->delete();
}
$this->comment('Automated Removal Featured Torrents Command Complete');
}
}
@@ -56,5 +56,6 @@ class AutoRemovePersonalFreeleech extends Command
// Delete The Record From DB
$pfl->delete();
}
$this->comment('Automated Removal User Personal Freeleech Command Complete');
}
}
@@ -70,5 +70,6 @@ class AutoRevokePermissions extends Command
$deny->warneduser->save();
}
}
$this->comment('Automated User Permissions Revoke Command Complete');
}
}
@@ -71,5 +71,6 @@ class AutoSoftDeleteDisabledUsers extends Command
$user->delete();
}
}
$this->comment('Automated Soft Delete Disabled Users Command Complete');
}
}
+1
View File
@@ -90,5 +90,6 @@ class AutoWarning extends Command
}
}
}
$this->comment('Automated User Warning Command Complete');
}
}
+151 -1
View File
@@ -52,7 +52,7 @@ class DemoSeed extends Command
*/
public function handle()
{
$this->alert('Demo Seeder v1.0 (Author: Poppabear)');
$this->alert('Demo Seeder v2.0 (Author: Poppabear)');
$this->warn('*** This process could take a few minutes ***');
$this->warn('Press CTRL + C to abort');
@@ -81,6 +81,156 @@ class DemoSeed extends Command
'slug' => Str::slug($r->title),
'description' => $r->plot,
'category_id' => 1,
'featured' => false,
'mediainfo' => '
Complete name : Double.Impact.1991.1080p.BluRay.DD+5.1.x264-LoRD.mkv
Format : Matroska
Format version : Version 4
File size : 14.1 GiB
Duration : 1 h 49 min
Overall bit rate : 18.5 Mb/s
Encoded date : UTC 2020-02-24 10:07:15
Writing application : mkvmerge v43.0.0 (\'The Quartermaster\') 64-bit
Writing library : libebml v1.3.10 + libmatroska v1.5.2
Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L4.1
Format settings : CABAC / 4 Ref Frames
Format settings, CABAC : Yes
Format settings, Reference frames : 4 frames
Codec ID : V_MPEG4/ISO/AVC
Duration : 1 h 49 min
Bit rate : 17.5 Mb/s
Width : 1 920 pixels
Height : 1 040 pixels
Display aspect ratio : 1.85:1
Frame rate mode : Constant
Frame rate : 23.976 (24000/1001) FPS
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.366
Stream size : 13.4 GiB (94%)
Title : LoRD
Writing library : x264 core 159 r2991+49 ~ LoRD
Encoding settings : cabac=1 / ref=4 / deblock=1:-3:-3 / analyse=0x3:0x133 / me=umh / subme=10 / psy=1 / fade_compensate=0.00 / psy_rd=1.10:0.00 / mixed_ref=1 / me_range=32 / chroma_me=1 / trellis=2 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=0 / chroma_qp_offset=-2 / threads=12 / lookahead_threads=2 / sliced_threads=0 / nr=0 / decimate=0 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / fgo=0 / bframes=9 / b_pyramid=2 / b_adapt=2 / b_bias=0 / direct=3 / weightb=1 / open_gop=0 / weightp=2 / keyint=250 / keyint_min=23 / scenecut=40 / intra_refresh=0 / rc_lookahead=60 / rc=2pass / mbtree=0 / bitrate=17500 / ratetol=1.0 / qcomp=0.70 / qpmin=0:0:0 / qpmax=69:69:69 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / vbv_maxrate=62500 / vbv_bufsize=78125 / nal_hrd=none / filler=0 / ip_ratio=1.25 / pb_ratio=1.20 / aq=3:0.55 / aq-sensitivity=10.00 / aq-factor=1.00:1.00:1.00 / aq2=0 / aq3=0
Language : English
Default : Yes
Forced : No
Audio
ID : 2
Format : E-AC-3
Format/Info : Enhanced AC-3
Commercial name : Dolby Digital Plus
Codec ID : A_EAC3
Duration : 1 h 49 min
Bit rate mode : Constant
Bit rate : 1 023 kb/s
Channel(s) : 6 channels
Channel layout : L R C LFE Ls Rs
Sampling rate : 48.0 kHz
Frame rate : 93.750 FPS (512 SPF)
Compression mode : Lossy
Stream size : 803 MiB (6%)
Title : DD+5.1
Language : English
Service kind : Complete Main
Default : Yes
Forced : No
Text #1
ID : 3
Format : UTF-8
Codec ID : S_TEXT/UTF8
Codec ID/Info : UTF-8 Plain Text
Duration : 1 h 41 min
Bit rate : 26 b/s
Count of elements : 669
Stream size : 19.9 KiB (0%)
Language : English
Default : No
Forced : No
Text #2
ID : 4
Format : UTF-8
Codec ID : S_TEXT/UTF8
Codec ID/Info : UTF-8 Plain Text
Duration : 1 h 48 min
Bit rate : 30 b/s
Count of elements : 872
Stream size : 24.1 KiB (0%)
Title : SDH
Language : English
Default : No
Forced : No
Text #3
ID : 5
Format : UTF-8
Codec ID : S_TEXT/UTF8
Codec ID/Info : UTF-8 Plain Text
Duration : 1 h 41 min
Bit rate : 26 b/s
Count of elements : 659
Stream size : 19.9 KiB (0%)
Language : French
Default : No
Forced : No
Text #4
ID : 6
Format : UTF-8
Codec ID : S_TEXT/UTF8
Codec ID/Info : UTF-8 Plain Text
Duration : 1 h 41 min
Bit rate : 24 b/s
Count of elements : 668
Stream size : 18.3 KiB (0%)
Title : european
Language : Portuguese
Default : No
Forced : No
Text #5
ID : 7
Format : UTF-8
Codec ID : S_TEXT/UTF8
Codec ID/Info : UTF-8 Plain Text
Duration : 1 h 42 min
Bit rate : 26 b/s
Count of elements : 765
Stream size : 19.5 KiB (0%)
Title : latin
Language : Spanish
Default : No
Forced : No
Menu
00:00:00.000 : en:Logo/Title/Intro
00:03:24.037 : en:"My Babies!"
00:09:45.918 : en:Life In L.A.
00:13:08.621 : en:"He\'s Your Brother!"
00:21:01.510 : en:Fencing Benzes
00:29:05.118 : en:Mistaken Identity
00:37:34.627 : en:Fishing Expedition
00:42:22.039 : en:The Drop
00:50:05.711 : en:Bad Cognac
00:58:56.032 : en:On the Run
01:07:33.549 : en:Sibling Rivalry
01:17:59.174 : en:Hotel Invasion
01:23:51.443 : en:A Captive Audience
01:28:49.532 : en:One-On-One Combat
01:34:15.858 : en:Who Gets Away?
01:44:15.249 : en:End Credits
',
'created_at' => now(),
'updated_at' => now(),
]);
} catch (Exception $e) {
$abort = true;
+1
View File
@@ -77,5 +77,6 @@ class FetchGenres extends Command
// sleep for 1 second
sleep(1);
}
$this->comment('Torrent Genres Command Complete');
}
}
@@ -126,5 +126,6 @@ class FetchReleaseYears extends Command
// sleep for 1 second
sleep(1);
}
$this->comment('Torrent Release Year Command Complete');
}
}
+1
View File
@@ -59,5 +59,6 @@ class SyncPeers extends Command
$torrent->leechers = $torrent->peers->where('left', '>', '0')->count();
$torrent->save();
}
$this->comment('Torrent Peer Syncing Command Complete');
}
}
Generated
+99 -120
View File
@@ -197,16 +197,16 @@
},
{
"name": "arcanedev/support",
"version": "5.1.1",
"version": "5.2.0",
"source": {
"type": "git",
"url": "https://github.com/ARCANEDEV/Support.git",
"reference": "cf731be18e7d0138223bd8e134f623a9d8c674d7"
"reference": "1845603e86d7fc705c7159612b87a278c971789f"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/ARCANEDEV/Support/zipball/cf731be18e7d0138223bd8e134f623a9d8c674d7",
"reference": "cf731be18e7d0138223bd8e134f623a9d8c674d7",
"url": "https://api.github.com/repos/ARCANEDEV/Support/zipball/1845603e86d7fc705c7159612b87a278c971789f",
"reference": "1845603e86d7fc705c7159612b87a278c971789f",
"shasum": ""
},
"require": {
@@ -248,7 +248,7 @@
"laravel",
"support"
],
"time": "2019-10-02T18:20:38+00:00"
"time": "2020-02-14T16:40:44+00:00"
},
{
"name": "bandwidth-throttle/token-bucket",
@@ -903,16 +903,16 @@
},
{
"name": "egulias/email-validator",
"version": "2.1.16",
"version": "2.1.17",
"source": {
"type": "git",
"url": "https://github.com/egulias/EmailValidator.git",
"reference": "5065fafc8c29d229ff207f2a89b02175f479a909"
"reference": "ade6887fd9bd74177769645ab5c474824f8a418a"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/egulias/EmailValidator/zipball/5065fafc8c29d229ff207f2a89b02175f479a909",
"reference": "5065fafc8c29d229ff207f2a89b02175f479a909",
"url": "https://api.github.com/repos/egulias/EmailValidator/zipball/ade6887fd9bd74177769645ab5c474824f8a418a",
"reference": "ade6887fd9bd74177769645ab5c474824f8a418a",
"shasum": ""
},
"require": {
@@ -957,7 +957,7 @@
"validation",
"validator"
],
"time": "2020-02-12T22:28:28+00:00"
"time": "2020-02-13T22:36:52+00:00"
},
{
"name": "elhebert/laravel-sri",
@@ -1092,6 +1092,7 @@
"smilies",
"unicode"
],
"abandoned": true,
"time": "2019-02-15T01:32:20+00:00"
},
{
@@ -1143,24 +1144,24 @@
},
{
"name": "fideloper/proxy",
"version": "4.2.2",
"version": "4.3.0",
"source": {
"type": "git",
"url": "https://github.com/fideloper/TrustedProxy.git",
"reference": "790194d5d3da89a713478875d2e2d05855a90a81"
"reference": "ec38ad69ee378a1eec04fb0e417a97cfaf7ed11a"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/fideloper/TrustedProxy/zipball/790194d5d3da89a713478875d2e2d05855a90a81",
"reference": "790194d5d3da89a713478875d2e2d05855a90a81",
"url": "https://api.github.com/repos/fideloper/TrustedProxy/zipball/ec38ad69ee378a1eec04fb0e417a97cfaf7ed11a",
"reference": "ec38ad69ee378a1eec04fb0e417a97cfaf7ed11a",
"shasum": ""
},
"require": {
"illuminate/contracts": "^5.0|^6.0|^7.0",
"illuminate/contracts": "^5.0|^6.0|^7.0|^8.0",
"php": ">=5.4.0"
},
"require-dev": {
"illuminate/http": "^5.0|^6.0|^7.0",
"illuminate/http": "^5.0|^6.0|^7.0|^8.0",
"mockery/mockery": "^1.0",
"phpunit/phpunit": "^6.0"
},
@@ -1193,7 +1194,7 @@
"proxy",
"trusted proxy"
],
"time": "2019-12-20T13:11:11+00:00"
"time": "2020-02-22T01:51:47+00:00"
},
{
"name": "gstt/laravel-achievements",
@@ -1699,16 +1700,16 @@
},
{
"name": "laravel/framework",
"version": "v6.15.1",
"version": "v6.17.0",
"source": {
"type": "git",
"url": "https://github.com/laravel/framework.git",
"reference": "b7c152e3327c03428fb68d5abb63ca8b3eca8422"
"reference": "40fd590b93f060f2ebe407b3e6d29e66b0e57fbb"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/laravel/framework/zipball/b7c152e3327c03428fb68d5abb63ca8b3eca8422",
"reference": "b7c152e3327c03428fb68d5abb63ca8b3eca8422",
"url": "https://api.github.com/repos/laravel/framework/zipball/40fd590b93f060f2ebe407b3e6d29e66b0e57fbb",
"reference": "40fd590b93f060f2ebe407b3e6d29e66b0e57fbb",
"shasum": ""
},
"require": {
@@ -1776,7 +1777,7 @@
"aws/aws-sdk-php": "^3.0",
"doctrine/dbal": "^2.6",
"filp/whoops": "^2.4",
"guzzlehttp/guzzle": "^6.3",
"guzzlehttp/guzzle": "^6.3|^7.0",
"league/flysystem-cached-adapter": "^1.0",
"mockery/mockery": "^1.3.1",
"moontoast/math": "^1.1",
@@ -1796,7 +1797,7 @@
"ext-redis": "Required to use the Redis cache and queue drivers.",
"filp/whoops": "Required for friendly error pages in development (^2.4).",
"fzaninotto/faker": "Required to use the eloquent factory builder (^1.9.1).",
"guzzlehttp/guzzle": "Required to use the Mailgun mail driver and the ping methods on schedules (^6.0).",
"guzzlehttp/guzzle": "Required to use the Mailgun mail driver and the ping methods on schedules (^6.0|^7.0).",
"laravel/tinker": "Required to use the tinker console command (^2.0).",
"league/flysystem-aws-s3-v3": "Required to use the Flysystem S3 driver (^1.0).",
"league/flysystem-cached-adapter": "Required to use the Flysystem cache (^1.0).",
@@ -1841,7 +1842,7 @@
"framework",
"laravel"
],
"time": "2020-02-12T21:56:14+00:00"
"time": "2020-02-25T15:07:46+00:00"
},
{
"name": "laravel/tinker",
@@ -2066,40 +2067,30 @@
},
{
"name": "malkusch/lock",
"version": "v1.4",
"version": "1.0.0",
"source": {
"type": "git",
"url": "https://github.com/php-lock/lock.git",
"reference": "96cd2d82180fc87bd8ad45aac25486f82d9fbf4b"
"url": "https://github.com/malkusch/lock.git",
"reference": "5555f291092a0ed5ab4f02d8be7031b877d8d165"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/php-lock/lock/zipball/96cd2d82180fc87bd8ad45aac25486f82d9fbf4b",
"reference": "96cd2d82180fc87bd8ad45aac25486f82d9fbf4b",
"url": "https://api.github.com/repos/malkusch/lock/zipball/5555f291092a0ed5ab4f02d8be7031b877d8d165",
"reference": "5555f291092a0ed5ab4f02d8be7031b877d8d165",
"shasum": ""
},
"require": {
"paragonie/random_compat": "^1|^2",
"php": ">=5.6",
"psr/log": "^1"
},
"require-dev": {
"eloquent/liberator": "^2.0",
"ext-memcached": "*",
"ext-pcntl": "*",
"ext-pdo_mysql": "*",
"ext-pdo_sqlite": "*",
"ext-redis": "*",
"johnkary/phpunit-speedtrap": "^1.0",
"ext-redis": "^2.2.4|^3",
"kriswallsmith/spork": "^0.3",
"mikey179/vfsstream": "^1.5.0",
"php-mock/php-mock-phpunit": "^1",
"phpunit/phpunit": "^5",
"predis/predis": "~1.0",
"squizlabs/php_codesniffer": "^3.2"
},
"suggest": {
"ext-pnctl": "Enables locking with flock without busy waiting in CLI scripts"
"zetacomponents/system-information": "~1.1"
},
"type": "library",
"autoload": {
@@ -2117,30 +2108,21 @@
"email": "markus@malkusch.de",
"homepage": "http://markus.malkusch.de",
"role": "Developer"
},
{
"name": "Willem Stuursma-Ruwen",
"email": "willem@stuursma.name",
"role": "Developer"
}
],
"description": "Mutex library for exclusive code execution.",
"homepage": "https://github.com/malkusch/lock",
"keywords": [
"advisory locks",
"cas",
"flock",
"lock",
"locking",
"memcache",
"mutex",
"mysql",
"postgresql",
"redis",
"redlock",
"semaphore"
],
"time": "2018-07-07T18:43:25+00:00"
"time": "2016-08-05T11:03:36+00:00"
},
{
"name": "marcreichel/igdb-laravel",
@@ -2357,33 +2339,26 @@
},
{
"name": "nelexa/zip",
"version": "3.3.0",
"version": "3.1.12",
"source": {
"type": "git",
"url": "https://github.com/Ne-Lexa/php-zip.git",
"reference": "8fdc21eece8f827ec32b2a4e4cb6a6cb8ddb796e"
"reference": "ca068fa78ff37db9bce0064aed0297079587f43b"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/Ne-Lexa/php-zip/zipball/8fdc21eece8f827ec32b2a4e4cb6a6cb8ddb796e",
"reference": "8fdc21eece8f827ec32b2a4e4cb6a6cb8ddb796e",
"url": "https://api.github.com/repos/Ne-Lexa/php-zip/zipball/ca068fa78ff37db9bce0064aed0297079587f43b",
"reference": "ca068fa78ff37db9bce0064aed0297079587f43b",
"shasum": ""
},
"require": {
"ext-zlib": "*",
"paragonie/random_compat": ">=1 <9.99",
"php": "^5.5.9 || ^7.0",
"psr/http-message": "^1.0",
"symfony/finder": "^3.0|^4.0|^5.0"
"php": "^5.5 || ^7.0",
"psr/http-message": "^1.0"
},
"require-dev": {
"ext-bz2": "*",
"ext-fileinfo": "*",
"ext-openssl": "*",
"ext-xml": "*",
"guzzlehttp/psr7": "^1.6",
"phpunit/phpunit": "^4.8|^5.7",
"symfony/var-dumper": "^3.0|^4.0|^5.0"
"phpunit/phpunit": "~4.8|~5.7",
"zendframework/zend-diactoros": "^1.4"
},
"suggest": {
"ext-bz2": "Needed to support BZIP2 compression",
@@ -2394,7 +2369,7 @@
"type": "library",
"autoload": {
"psr-4": {
"PhpZip\\": "src/"
"PhpZip\\": "src/PhpZip"
}
},
"notification-url": "https://packagist.org/downloads/",
@@ -2419,7 +2394,7 @@
"zipalign",
"ziparchive"
],
"time": "2020-02-04T09:01:18+00:00"
"time": "2019-07-25T20:08:42+00:00"
},
{
"name": "nesbot/carbon",
@@ -2668,33 +2643,29 @@
},
{
"name": "paragonie/random_compat",
"version": "v2.0.18",
"version": "v9.99.99",
"source": {
"type": "git",
"url": "https://github.com/paragonie/random_compat.git",
"reference": "0a58ef6e3146256cc3dc7cc393927bcc7d1b72db"
"reference": "84b4dfb120c6f9b4ff7b3685f9b8f1aa365a0c95"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/paragonie/random_compat/zipball/0a58ef6e3146256cc3dc7cc393927bcc7d1b72db",
"reference": "0a58ef6e3146256cc3dc7cc393927bcc7d1b72db",
"url": "https://api.github.com/repos/paragonie/random_compat/zipball/84b4dfb120c6f9b4ff7b3685f9b8f1aa365a0c95",
"reference": "84b4dfb120c6f9b4ff7b3685f9b8f1aa365a0c95",
"shasum": ""
},
"require": {
"php": ">=5.2.0"
"php": "^7"
},
"require-dev": {
"phpunit/phpunit": "4.*|5.*"
"phpunit/phpunit": "4.*|5.*",
"vimeo/psalm": "^1"
},
"suggest": {
"ext-libsodium": "Provides a modern crypto API that can be used to generate random bytes."
},
"type": "library",
"autoload": {
"files": [
"lib/random.php"
]
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
@@ -2713,7 +2684,7 @@
"pseudorandom",
"random"
],
"time": "2019-01-03T20:59:08+00:00"
"time": "2018-07-02T15:55:56+00:00"
},
{
"name": "phpoption/phpoption",
@@ -3130,16 +3101,16 @@
},
{
"name": "ramsey/uuid",
"version": "3.9.2",
"version": "3.9.3",
"source": {
"type": "git",
"url": "https://github.com/ramsey/uuid.git",
"reference": "7779489a47d443f845271badbdcedfe4df8e06fb"
"reference": "7e1633a6964b48589b142d60542f9ed31bd37a92"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/ramsey/uuid/zipball/7779489a47d443f845271badbdcedfe4df8e06fb",
"reference": "7779489a47d443f845271badbdcedfe4df8e06fb",
"url": "https://api.github.com/repos/ramsey/uuid/zipball/7e1633a6964b48589b142d60542f9ed31bd37a92",
"reference": "7e1633a6964b48589b142d60542f9ed31bd37a92",
"shasum": ""
},
"require": {
@@ -3213,7 +3184,7 @@
"identifier",
"uuid"
],
"time": "2019-12-17T08:18:51+00:00"
"time": "2020-02-21T04:36:14+00:00"
},
{
"name": "spatie/db-dumper",
@@ -3317,16 +3288,16 @@
},
{
"name": "spatie/laravel-backup",
"version": "6.7.7",
"version": "6.7.8",
"source": {
"type": "git",
"url": "https://github.com/spatie/laravel-backup.git",
"reference": "c2aeb1685007ee1cc2b3f86c26315aeb32602a93"
"reference": "48f9310a2396db79d396dd63e20f657e8b11ce4e"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/spatie/laravel-backup/zipball/c2aeb1685007ee1cc2b3f86c26315aeb32602a93",
"reference": "c2aeb1685007ee1cc2b3f86c26315aeb32602a93",
"url": "https://api.github.com/repos/spatie/laravel-backup/zipball/48f9310a2396db79d396dd63e20f657e8b11ce4e",
"reference": "48f9310a2396db79d396dd63e20f657e8b11ce4e",
"shasum": ""
},
"require": {
@@ -3388,7 +3359,7 @@
"laravel-backup",
"spatie"
],
"time": "2020-01-27T13:58:27+00:00"
"time": "2020-02-19T16:54:03+00:00"
},
{
"name": "spatie/laravel-cookie-consent",
@@ -5524,16 +5495,16 @@
},
{
"name": "voku/portable-utf8",
"version": "5.4.39",
"version": "5.4.40",
"source": {
"type": "git",
"url": "https://github.com/voku/portable-utf8.git",
"reference": "e462e8985a80cbd927765fd7e09f52bb103c9797"
"reference": "1b558059a84d566843c8d0a2ba1d9c3051764565"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/voku/portable-utf8/zipball/e462e8985a80cbd927765fd7e09f52bb103c9797",
"reference": "e462e8985a80cbd927765fd7e09f52bb103c9797",
"url": "https://api.github.com/repos/voku/portable-utf8/zipball/1b558059a84d566843c8d0a2ba1d9c3051764565",
"reference": "1b558059a84d566843c8d0a2ba1d9c3051764565",
"shasum": ""
},
"require": {
@@ -5594,7 +5565,7 @@
"utf-8",
"utf8"
],
"time": "2020-01-30T15:12:06+00:00"
"time": "2020-02-22T23:18:32+00:00"
}
],
"packages-dev": [
@@ -6966,16 +6937,16 @@
},
{
"name": "nette/robot-loader",
"version": "v3.2.1",
"version": "v3.2.2",
"source": {
"type": "git",
"url": "https://github.com/nette/robot-loader.git",
"reference": "d2a100e1f5cab390c78bc88709abbc91249c3993"
"reference": "38e8a270567a4ad9fe716b40fcda5a6580afa3c0"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/nette/robot-loader/zipball/d2a100e1f5cab390c78bc88709abbc91249c3993",
"reference": "d2a100e1f5cab390c78bc88709abbc91249c3993",
"url": "https://api.github.com/repos/nette/robot-loader/zipball/38e8a270567a4ad9fe716b40fcda5a6580afa3c0",
"reference": "38e8a270567a4ad9fe716b40fcda5a6580afa3c0",
"shasum": ""
},
"require": {
@@ -7003,8 +6974,8 @@
"notification-url": "https://packagist.org/downloads/",
"license": [
"BSD-3-Clause",
"GPL-2.0",
"GPL-3.0"
"GPL-2.0-only",
"GPL-3.0-only"
],
"authors": [
{
@@ -7025,7 +6996,7 @@
"nette",
"trait"
],
"time": "2019-12-26T22:32:02+00:00"
"time": "2020-02-20T22:17:50+00:00"
},
{
"name": "nette/routing",
@@ -7279,26 +7250,30 @@
},
{
"name": "ondram/ci-detector",
"version": "3.1.1",
"version": "3.2.0",
"source": {
"type": "git",
"url": "https://github.com/OndraM/ci-detector.git",
"reference": "37a2ee68567d5abb92af20df5b93006f4565d904"
"reference": "5356952b4234a5b2123e4ac35075e69ac334ad39"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/OndraM/ci-detector/zipball/37a2ee68567d5abb92af20df5b93006f4565d904",
"reference": "37a2ee68567d5abb92af20df5b93006f4565d904",
"url": "https://api.github.com/repos/OndraM/ci-detector/zipball/5356952b4234a5b2123e4ac35075e69ac334ad39",
"reference": "5356952b4234a5b2123e4ac35075e69ac334ad39",
"shasum": ""
},
"require": {
"php": "^7.1"
},
"require-dev": {
"ergebnis/composer-normalize": "^2.2",
"jakub-onderka/php-parallel-lint": "^1.0",
"lmc/coding-standard": "^1.0",
"phpstan/phpstan-phpunit": "^0.11.2",
"phpstan/phpstan-shim": "^0.11.19",
"phpunit/phpunit": "^7.1 || ^8.0"
"php-coveralls/php-coveralls": "^2.2",
"phpstan/extension-installer": "^1.0.3",
"phpstan/phpstan": "^0.12.0",
"phpstan/phpstan-phpunit": "^0.12.1",
"phpunit/phpunit": "^7.1 || ^8.0 || ^9.0"
},
"type": "library",
"autoload": {
@@ -7323,16 +7298,18 @@
"adapter",
"appveyor",
"bamboo",
"buddy",
"continuous integration",
"continuousphp",
"drone",
"github",
"gitlab",
"interface",
"jenkins",
"teamcity",
"travis"
],
"time": "2019-11-10T23:14:15+00:00"
"time": "2020-02-18T14:48:31+00:00"
},
{
"name": "phar-io/manifest",
@@ -9924,16 +9901,16 @@
},
{
"name": "tracy/tracy",
"version": "v2.7.2",
"version": "v2.7.3",
"source": {
"type": "git",
"url": "https://github.com/nette/tracy.git",
"reference": "d28ebdf7ab8d88f231310aef1e8cce965ea0b2ca"
"reference": "344c77293038173f49678d9a95c27da6cbdbccd0"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/nette/tracy/zipball/d28ebdf7ab8d88f231310aef1e8cce965ea0b2ca",
"reference": "d28ebdf7ab8d88f231310aef1e8cce965ea0b2ca",
"url": "https://api.github.com/repos/nette/tracy/zipball/344c77293038173f49678d9a95c27da6cbdbccd0",
"reference": "344c77293038173f49678d9a95c27da6cbdbccd0",
"shasum": ""
},
"require": {
@@ -9945,7 +9922,9 @@
"nette/di": "<3.0"
},
"require-dev": {
"latte/latte": "^2.5",
"nette/di": "^3.0",
"nette/mail": "^3.0",
"nette/tester": "^2.2",
"nette/utils": "^3.0",
"phpstan/phpstan": "^0.12",
@@ -9991,20 +9970,20 @@
"nette",
"profiler"
],
"time": "2019-12-15T22:48:05+00:00"
"time": "2020-02-23T18:40:15+00:00"
},
{
"name": "webmozart/assert",
"version": "1.6.0",
"version": "1.7.0",
"source": {
"type": "git",
"url": "https://github.com/webmozart/assert.git",
"reference": "573381c0a64f155a0d9a23f4b0c797194805b925"
"reference": "aed98a490f9a8f78468232db345ab9cf606cf598"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/webmozart/assert/zipball/573381c0a64f155a0d9a23f4b0c797194805b925",
"reference": "573381c0a64f155a0d9a23f4b0c797194805b925",
"url": "https://api.github.com/repos/webmozart/assert/zipball/aed98a490f9a8f78468232db345ab9cf606cf598",
"reference": "aed98a490f9a8f78468232db345ab9cf606cf598",
"shasum": ""
},
"require": {
@@ -10039,7 +10018,7 @@
"check",
"validate"
],
"time": "2019-11-24T13:36:37+00:00"
"time": "2020-02-14T12:15:55+00:00"
}
],
"aliases": [],
+2 -2
View File
@@ -121,7 +121,7 @@ return [
*/
'hsts' => [
'enable' => true,
'enable' => false,
'max-age' => 15552000,
@@ -463,7 +463,7 @@ return [
* Note: custom-csp does not support report-only.
*/
'custom-csp' => null,
'custom-csp' => '',
'csp' => [
'report-only' => false,
+1 -1
View File
@@ -189,7 +189,7 @@ use Illuminate\Support\Str;
|
*/
'secure' => env('SESSION_SECURE_COOKIE', true),
'secure' => env('SESSION_SECURE_COOKIE', false),
/*
|--------------------------------------------------------------------------
+2 -2
View File
@@ -41,8 +41,8 @@ $factory->define(App\Models\Torrent::class, function (Faker $faker) {
'moderated_by' => function () {
return factory(App\Models\User::class)->create()->id;
},
'anon' => $faker->randomNumber(4),
'sticky' => $faker->randomNumber(4),
'anon' => $faker->boolean,
'sticky' => $faker->boolean,
'sd' => $faker->boolean,
'internal' => $faker->boolean,
'release_year' => $faker->date('Y'),
@@ -1,25 +0,0 @@
<?php
namespace Tests\Unit\Console\Commands;
use Tests\TestCase;
/**
* @see \App\Console\Commands\AutoBan
*/
class AutoBanTest extends TestCase
{
/**
* @test
*/
public function it_runs_successfully()
{
$this->markTestIncomplete('This test case was generated by Shift. When you are ready, remove this line and complete this test case.');
$this->artisan('auto:ban')
->assertExitCode(0)
->run();
// TODO: perform additional assertions to ensure the command behaved as expected
}
}
@@ -1,25 +0,0 @@
<?php
namespace Tests\Unit\Console\Commands;
use Tests\TestCase;
/**
* @see \App\Console\Commands\AutoBonAllocation
*/
class AutoBonAllocationTest extends TestCase
{
/**
* @test
*/
public function it_runs_successfully()
{
$this->markTestIncomplete('This test case was generated by Shift. When you are ready, remove this line and complete this test case.');
$this->artisan('auto:bon_allocation')
->assertExitCode(0)
->run();
// TODO: perform additional assertions to ensure the command behaved as expected
}
}
@@ -1,25 +0,0 @@
<?php
namespace Tests\Unit\Console\Commands;
use Tests\TestCase;
/**
* @see \App\Console\Commands\AutoCorrectHistory
*/
class AutoCorrectHistoryTest extends TestCase
{
/**
* @test
*/
public function it_runs_successfully()
{
$this->markTestIncomplete('This test case was generated by Shift. When you are ready, remove this line and complete this test case.');
$this->artisan('auto:correct_history')
->assertExitCode(0)
->run();
// TODO: perform additional assertions to ensure the command behaved as expected
}
}
@@ -1,25 +0,0 @@
<?php
namespace Tests\Unit\Console\Commands;
use Tests\TestCase;
/**
* @see \App\Console\Commands\AutoDeactivateWarning
*/
class AutoDeactivateWarningTest extends TestCase
{
/**
* @test
*/
public function it_runs_successfully()
{
$this->markTestIncomplete('This test case was generated by Shift. When you are ready, remove this line and complete this test case.');
$this->artisan('auto:deactivate_warning')
->assertExitCode(0)
->run();
// TODO: perform additional assertions to ensure the command behaved as expected
}
}
@@ -1,25 +0,0 @@
<?php
namespace Tests\Unit\Console\Commands;
use Tests\TestCase;
/**
* @see \App\Console\Commands\AutoDisableInactiveUsers
*/
class AutoDisableInactiveUsersTest extends TestCase
{
/**
* @test
*/
public function it_runs_successfully()
{
$this->markTestIncomplete('This test case was generated by Shift. When you are ready, remove this line and complete this test case.');
$this->artisan('auto:disable_inactive_users')
->assertExitCode(0)
->run();
// TODO: perform additional assertions to ensure the command behaved as expected
}
}
@@ -1,25 +0,0 @@
<?php
namespace Tests\Unit\Console\Commands;
use Tests\TestCase;
/**
* @see \App\Console\Commands\AutoFlushPeers
*/
class AutoFlushPeersTest extends TestCase
{
/**
* @test
*/
public function it_runs_successfully()
{
$this->markTestIncomplete('This test case was generated by Shift. When you are ready, remove this line and complete this test case.');
$this->artisan('auto:flush_peers')
->assertExitCode(0)
->run();
// TODO: perform additional assertions to ensure the command behaved as expected
}
}
@@ -1,25 +0,0 @@
<?php
namespace Tests\Unit\Console\Commands;
use Tests\TestCase;
/**
* @see \App\Console\Commands\AutoGraveyard
*/
class AutoGraveyardTest extends TestCase
{
/**
* @test
*/
public function it_runs_successfully()
{
$this->markTestIncomplete('This test case was generated by Shift. When you are ready, remove this line and complete this test case.');
$this->artisan('auto:graveyard')
->assertExitCode(0)
->run();
// TODO: perform additional assertions to ensure the command behaved as expected
}
}
@@ -1,25 +0,0 @@
<?php
namespace Tests\Unit\Console\Commands;
use Tests\TestCase;
/**
* @see \App\Console\Commands\AutoGroup
*/
class AutoGroupTest extends TestCase
{
/**
* @test
*/
public function it_runs_successfully()
{
$this->markTestIncomplete('This test case was generated by Shift. When you are ready, remove this line and complete this test case.');
$this->artisan('auto:group')
->assertExitCode(0)
->run();
// TODO: perform additional assertions to ensure the command behaved as expected
}
}
@@ -1,25 +0,0 @@
<?php
namespace Tests\Unit\Console\Commands;
use Tests\TestCase;
/**
* @see \App\Console\Commands\AutoHighspeedTag
*/
class AutoHighspeedTagTest extends TestCase
{
/**
* @test
*/
public function it_runs_successfully()
{
$this->markTestIncomplete('This test case was generated by Shift. When you are ready, remove this line and complete this test case.');
$this->artisan('auto:highspeed_tag')
->assertExitCode(0)
->run();
// TODO: perform additional assertions to ensure the command behaved as expected
}
}
@@ -17,9 +17,8 @@ class AutoNerdStatTest extends TestCase
$this->markTestIncomplete('This test case was generated by Shift. When you are ready, remove this line and complete this test case.');
$this->artisan('auto:nerdstat')
->expectsOutput('Automated Nerd Stat Command Complete')
->assertExitCode(0)
->run();
// TODO: perform additional assertions to ensure the command behaved as expected
}
}
@@ -1,25 +0,0 @@
<?php
namespace Tests\Unit\Console\Commands;
use Tests\TestCase;
/**
* @see \App\Console\Commands\AutoPreWarning
*/
class AutoPreWarningTest extends TestCase
{
/**
* @test
*/
public function it_runs_successfully()
{
$this->markTestIncomplete('This test case was generated by Shift. When you are ready, remove this line and complete this test case.');
$this->artisan('auto:prewarning')
->assertExitCode(0)
->run();
// TODO: perform additional assertions to ensure the command behaved as expected
}
}
@@ -1,25 +0,0 @@
<?php
namespace Tests\Unit\Console\Commands;
use Tests\TestCase;
/**
* @see \App\Console\Commands\AutoRecycleAudits
*/
class AutoRecycleAuditsTest extends TestCase
{
/**
* @test
*/
public function it_runs_successfully()
{
$this->markTestIncomplete('This test case was generated by Shift. When you are ready, remove this line and complete this test case.');
$this->artisan('auto:recycle_activity_log')
->assertExitCode(0)
->run();
// TODO: perform additional assertions to ensure the command behaved as expected
}
}
@@ -1,25 +0,0 @@
<?php
namespace Tests\Unit\Console\Commands;
use Tests\TestCase;
/**
* @see \App\Console\Commands\AutoRecycleClaimedTorrentRequests
*/
class AutoRecycleClaimedTorrentRequestsTest extends TestCase
{
/**
* @test
*/
public function it_runs_successfully()
{
$this->markTestIncomplete('This test case was generated by Shift. When you are ready, remove this line and complete this test case.');
$this->artisan('auto:recycle_claimed_torrent_requests')
->assertExitCode(0)
->run();
// TODO: perform additional assertions to ensure the command behaved as expected
}
}
@@ -1,25 +0,0 @@
<?php
namespace Tests\Unit\Console\Commands;
use Tests\TestCase;
/**
* @see \App\Console\Commands\AutoRecycleFailedLogins
*/
class AutoRecycleFailedLoginsTest extends TestCase
{
/**
* @test
*/
public function it_runs_successfully()
{
$this->markTestIncomplete('This test case was generated by Shift. When you are ready, remove this line and complete this test case.');
$this->artisan('auto:recycle_failed_logins')
->assertExitCode(0)
->run();
// TODO: perform additional assertions to ensure the command behaved as expected
}
}
@@ -1,25 +0,0 @@
<?php
namespace Tests\Unit\Console\Commands;
use Tests\TestCase;
/**
* @see \App\Console\Commands\AutoRecycleInvites
*/
class AutoRecycleInvitesTest extends TestCase
{
/**
* @test
*/
public function it_runs_successfully()
{
$this->markTestIncomplete('This test case was generated by Shift. When you are ready, remove this line and complete this test case.');
$this->artisan('auto:recycle_invites')
->assertExitCode(0)
->run();
// TODO: perform additional assertions to ensure the command behaved as expected
}
}
@@ -1,25 +0,0 @@
<?php
namespace Tests\Unit\Console\Commands;
use Tests\TestCase;
/**
* @see \App\Console\Commands\AutoRemoveFeaturedTorrent
*/
class AutoRemoveFeaturedTorrentTest extends TestCase
{
/**
* @test
*/
public function it_runs_successfully()
{
$this->markTestIncomplete('This test case was generated by Shift. When you are ready, remove this line and complete this test case.');
$this->artisan('auto:remove_featured_torrent')
->assertExitCode(0)
->run();
// TODO: perform additional assertions to ensure the command behaved as expected
}
}
@@ -1,25 +0,0 @@
<?php
namespace Tests\Unit\Console\Commands;
use Tests\TestCase;
/**
* @see \App\Console\Commands\AutoRemovePersonalFreeleech
*/
class AutoRemovePersonalFreeleechTest extends TestCase
{
/**
* @test
*/
public function it_runs_successfully()
{
$this->markTestIncomplete('This test case was generated by Shift. When you are ready, remove this line and complete this test case.');
$this->artisan('auto:remove_personal_freeleech')
->assertExitCode(0)
->run();
// TODO: perform additional assertions to ensure the command behaved as expected
}
}
@@ -17,9 +17,8 @@ class AutoRevokePermissionsTest extends TestCase
$this->markTestIncomplete('This test case was generated by Shift. When you are ready, remove this line and complete this test case.');
$this->artisan('auto:revoke_permissions')
->expectsOutput('Automated User Permissions Revoke Command Complete')
->assertExitCode(0)
->run();
// TODO: perform additional assertions to ensure the command behaved as expected
}
}
@@ -1,25 +0,0 @@
<?php
namespace Tests\Unit\Console\Commands;
use Tests\TestCase;
/**
* @see \App\Console\Commands\AutoSoftDeleteDisabledUsers
*/
class AutoSoftDeleteDisabledUsersTest extends TestCase
{
/**
* @test
*/
public function it_runs_successfully()
{
$this->markTestIncomplete('This test case was generated by Shift. When you are ready, remove this line and complete this test case.');
$this->artisan('auto:softdelete_disabled_users')
->assertExitCode(0)
->run();
// TODO: perform additional assertions to ensure the command behaved as expected
}
}
@@ -1,25 +0,0 @@
<?php
namespace Tests\Unit\Console\Commands;
use Tests\TestCase;
/**
* @see \App\Console\Commands\AutoWarning
*/
class AutoWarningTest extends TestCase
{
/**
* @test
*/
public function it_runs_successfully()
{
$this->markTestIncomplete('This test case was generated by Shift. When you are ready, remove this line and complete this test case.');
$this->artisan('auto:warning')
->assertExitCode(0)
->run();
// TODO: perform additional assertions to ensure the command behaved as expected
}
}
@@ -1,25 +0,0 @@
<?php
namespace Tests\Unit\Console\Commands;
use Tests\TestCase;
/**
* @see \App\Console\Commands\ClearCache
*/
class ClearCacheTest extends TestCase
{
/**
* @test
*/
public function it_runs_successfully()
{
$this->markTestIncomplete('This test case was generated by Shift. When you are ready, remove this line and complete this test case.');
$this->artisan('clear:all_cache')
->assertExitCode(0)
->run();
// TODO: perform additional assertions to ensure the command behaved as expected
}
}
@@ -1,25 +0,0 @@
<?php
namespace Tests\Unit\Console\Commands;
use Tests\TestCase;
/**
* @see \App\Console\Commands\FetchGenres
*/
class FetchGenresTest extends TestCase
{
/**
* @test
*/
public function it_runs_successfully()
{
$this->markTestIncomplete('This test case was generated by Shift. When you are ready, remove this line and complete this test case.');
$this->artisan('fetch:genres')
->assertExitCode(0)
->run();
// TODO: perform additional assertions to ensure the command behaved as expected
}
}
@@ -1,25 +0,0 @@
<?php
namespace Tests\Unit\Console\Commands;
use Tests\TestCase;
/**
* @see \App\Console\Commands\FetchReleaseYears
*/
class FetchReleaseYearsTest extends TestCase
{
/**
* @test
*/
public function it_runs_successfully()
{
$this->markTestIncomplete('This test case was generated by Shift. When you are ready, remove this line and complete this test case.');
$this->artisan('fetch:release_years')
->assertExitCode(0)
->run();
// TODO: perform additional assertions to ensure the command behaved as expected
}
}
@@ -19,7 +19,5 @@ class GitUpdaterTest extends TestCase
$this->artisan('git:update')
->assertExitCode(0)
->run();
// TODO: perform additional assertions to ensure the command behaved as expected
}
}
@@ -1,25 +0,0 @@
<?php
namespace Tests\Unit\Console\Commands;
use Tests\TestCase;
/**
* @see \App\Console\Commands\SetCache
*/
class SetCacheTest extends TestCase
{
/**
* @test
*/
public function it_runs_successfully()
{
$this->markTestIncomplete('This test case was generated by Shift. When you are ready, remove this line and complete this test case.');
$this->artisan('set:all_cache')
->assertExitCode(0)
->run();
// TODO: perform additional assertions to ensure the command behaved as expected
}
}
@@ -1,25 +0,0 @@
<?php
namespace Tests\Unit\Console\Commands;
use Tests\TestCase;
/**
* @see \App\Console\Commands\SyncPeers
*/
class SyncPeersTest extends TestCase
{
/**
* @test
*/
public function it_runs_successfully()
{
$this->markTestIncomplete('This test case was generated by Shift. When you are ready, remove this line and complete this test case.');
$this->artisan('auto:sync_peers')
->assertExitCode(0)
->run();
// TODO: perform additional assertions to ensure the command behaved as expected
}
}
@@ -19,7 +19,5 @@ class TestMailSettingsTest extends TestCase
$this->artisan('test:email')
->assertExitCode(0)
->run();
// TODO: perform additional assertions to ensure the command behaved as expected
}
}
@@ -17,9 +17,8 @@ class VendorCleanupTest extends TestCase
$this->markTestIncomplete('This test case was generated by Shift. When you are ready, remove this line and complete this test case.');
$this->artisan('vendor:cleanup')
->expectsOutput('Vendor Cleanup Done!')
->assertExitCode(0)
->run();
// TODO: perform additional assertions to ensure the command behaved as expected
}
}