forked from rrze-mmz/Tides
-
Notifications
You must be signed in to change notification settings - Fork 0
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 rrze-mmz#60 from rrze-mmz/increase-test-coverage
Add more tests to increase test coverage
- Loading branch information
Showing
29 changed files
with
2,668 additions
and
53 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -95,12 +95,16 @@ [email protected]:/tides/tides.git | |
DEPLOY_BRANCH=testing | ||
DEPLOY_BASE_DIR=/srv/www | ||
|
||
|
||
ADMIN_MAIL_ADDRESS=[email protected] | ||
DEV_MAIL_ADDRESS=[email protected] | ||
SUPPORT_MAIL_ADDRESS=[email protected] | ||
|
||
CHECK_FAUTV_VIDEOLINKS=true | ||
FAUTV_USER_IP=127.0.0.1 | ||
DEFAULT_IMAGE_ID=1 | ||
CDN_SERVER_URL=http://localhost/ | ||
CDN_SERVER_SECRET='YOUR_SERVER_SECRET' | ||
|
||
FEEDS_DEFAULT_OWNER_NAME = Tides | ||
FEEDS_DEFAULT_OWNER_EMAIL = [email protected] | ||
|
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
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 was deleted.
Oops, something went wrong.
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
2 changes: 1 addition & 1 deletion
2
app/Http/Requests/UploadAssetRequest.php → app/Models/Traits/UploadAssetRequest.php
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 |
---|---|---|
|
@@ -13,6 +13,8 @@ | |
'deploy_repo' => env('DEPLOY_REPO', '[email protected]/mmz/tides'), | ||
'deploy_branch' => env('DEPLOY_BRANCH', 'main'), | ||
'admin_main_address' => env('ADMIN_MAIL_ADDRESS', '[email protected]'), | ||
'cdn_server_url' => env('CDN_SERVER_URL', 'http://localhost/'), | ||
'cdn_server_secret' => env('CDN_SERVER_SECRET', 'dsnJ23fjeq!'), | ||
], | ||
'user' => [ | ||
'accept_use_terms' => false, | ||
|
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,31 @@ | ||
<?php | ||
|
||
namespace Database\Factories; | ||
|
||
use App\Models\Notification; | ||
use App\Models\User; | ||
use Illuminate\Database\Eloquent\Factories\Factory; | ||
|
||
/** | ||
* @extends Factory<Notification> | ||
*/ | ||
class NotificationFactory extends Factory | ||
{ | ||
protected $model = Notification::class; | ||
|
||
/** | ||
* Define the model's default state. | ||
* | ||
* @return array<string, mixed> | ||
*/ | ||
public function definition(): array | ||
{ | ||
return [ | ||
'id' => '1', | ||
'type' => 'notification_type', | ||
'notifiable_type' => 'user', | ||
'notifiable_id' => User::factory()->create()->id, | ||
'data' => 'data', | ||
]; | ||
} | ||
} |
Oops, something went wrong.