mirror of
https://github.com/ad-aures/castopod.git
synced 2026-04-02 14:29:11 +02:00
chore: update CodeIgniter to latest dev version after 4.1.6
This commit is contained in:
parent
de19317138
commit
1fc3da139e
29 changed files with 276 additions and 336 deletions
|
|
@ -4,21 +4,16 @@ declare(strict_types=1);
|
|||
|
||||
namespace Tests\Session;
|
||||
|
||||
use Tests\Support\SessionTestCase;
|
||||
use CodeIgniter\Test\CIUnitTestCase;
|
||||
use Config\Services;
|
||||
|
||||
class ExampleSessionTest extends SessionTestCase
|
||||
class ExampleSessionTest extends CIUnitTestCase
|
||||
{
|
||||
protected function setUp(): void
|
||||
{
|
||||
parent::setUp();
|
||||
}
|
||||
|
||||
public function testSessionSimple(): void
|
||||
{
|
||||
$this->session->set('logged_in', 123);
|
||||
$session = Services::session();
|
||||
|
||||
$value = $this->session->get('logged_in');
|
||||
|
||||
$this->assertSame(123, $value);
|
||||
$session->set('logged_in', 123);
|
||||
$this->assertSame(123, $session->get('logged_in'));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue