Files
php-flasher/Tests/Storage/StorageTest.php
T
2020-12-02 00:57:12 +01:00

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());
}
}