You've already forked php-flasher
mirror of
https://github.com/php-flasher/php-flasher.git
synced 2026-04-05 12:32:55 +01:00
22 lines
521 B
PHP
22 lines
521 B
PHP
<?php
|
|
|
|
namespace Flasher\Laravel\Tests\Storage;
|
|
|
|
use Flasher\Laravel\Storage\Storage;
|
|
use Flasher\Laravel\Tests\TestCase;
|
|
use Flasher\Prime\Envelope;
|
|
use Flasher\Prime\Notification\Notification;
|
|
|
|
final class StorageTest extends TestCase
|
|
{
|
|
public function testSimple()
|
|
{
|
|
$session = new Storage($this->app->make('session'));
|
|
|
|
$envelope = new Envelope(new Notification('success', 'message'));
|
|
$session->add($envelope);
|
|
|
|
$this->assertEquals(array($envelope), $session->all());
|
|
}
|
|
}
|