mirror of
https://github.com/ad-aures/castopod.git
synced 2026-04-04 07:19:03 +02:00
19 lines
370 B
PHP
19 lines
370 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Tests\Session;
|
|
|
|
use CodeIgniter\Test\CIUnitTestCase;
|
|
use Config\Services;
|
|
|
|
class ExampleSessionTest extends CIUnitTestCase
|
|
{
|
|
public function testSessionSimple(): void
|
|
{
|
|
$session = Services::session();
|
|
|
|
$session->set('logged_in', 123);
|
|
$this->assertSame(123, $session->get('logged_in'));
|
|
}
|
|
}
|