ci4-example-auth/tests/session/ExampleSessionTest.php
2022-11-28 13:24:51 +01:00

19 lines
339 B
PHP

<?php
use CodeIgniter\Test\CIUnitTestCase;
use Config\Services;
/**
* @internal
*/
final class ExampleSessionTest extends CIUnitTestCase
{
public function testSessionSimple()
{
$session = Services::session();
$session->set('logged_in', 123);
$this->assertSame(123, $session->get('logged_in'));
}
}