mirror of
https://github.com/php-flasher/php-flasher.git
synced 2026-03-31 15:07:47 +01:00
22 lines
522 B
PHP
22 lines
522 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 test_simple()
|
|
{
|
|
$session = new Storage($this->app->make('session'));
|
|
|
|
$envelope = new Envelope(new Notification('success', 'message'));
|
|
$session->add($envelope);
|
|
|
|
$this->assertEquals(array($envelope), $session->get());
|
|
}
|
|
}
|