This commit is contained in:
18
tests/session/ExampleSessionTest.php
Normal file
18
tests/session/ExampleSessionTest.php
Normal file
@@ -0,0 +1,18 @@
|
||||
<?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'));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user