Skip to content

Commit

Permalink
added inbox component tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gwleuverink committed May 20, 2024
1 parent b7b0897 commit 4450432
Show file tree
Hide file tree
Showing 9 changed files with 475 additions and 42 deletions.
1 change: 1 addition & 0 deletions app/Livewire/Inbox.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ public function restartServer(?int $port = null)
// NativePHP's supervisor seems to be delayed slightly.
// We'll invoke the serve command immediately and
// use the scheduler as a restart mechanism.
// NOTE: Explore pcntl fork approach.
Artisan::queue('smtp:serve');
}

Expand Down
3 changes: 3 additions & 0 deletions app/Models/Message.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,16 @@
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Database\Eloquent\Casts\Attribute;
use ZBateson\MailMimeParser\Message as ParsedMessage;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use ZBateson\MailMimeParser\IMessage as ParsedMessageContract;

/**
* @property ParsedMessageContract $parsed
*/
class Message extends Model
{
use HasFactory;

protected $fillable = [
'bookmarked',
'content',
Expand Down
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
"nunomaduro/collision": "^8.0",
"pestphp/pest": "^2.34",
"pestphp/pest-plugin-laravel": "^2.3",
"pestphp/pest-plugin-livewire": "^2.1",
"spatie/laravel-ignition": "^2.4",
"squizlabs/php_codesniffer": "^3.9",
"tightenco/duster": "^2.7",
Expand Down
Loading

0 comments on commit 4450432

Please sign in to comment.