sarga/tests/_support/Helper/Bagisto.php

35 lines
678 B
PHP
Raw Normal View History

2020-01-17 13:42:47 +00:00
<?php
namespace Helper;
2020-01-17 13:42:47 +00:00
2022-02-08 08:44:19 +00:00
use Actions\ProductAction;
use Actions\ProductActionContract;
use Codeception\Module\Laravel;
2020-01-17 13:42:47 +00:00
2022-02-08 08:44:19 +00:00
class Bagisto extends Laravel implements ProductActionContract
2020-01-17 13:42:47 +00:00
{
2022-02-08 08:44:19 +00:00
use ProductAction;
2022-02-07 13:37:15 +00:00
/**
* Set all session with the given key and value in the array.
*
* @param array $keyValue
* @return void
*/
public function setSession(array $keyValue): void
{
session($keyValue);
}
/**
* Flush the session data and regenerate the ID
* A logged in user will be logged off.
*
* @return void
*/
public function invalidateSession(): void
{
session()->invalidate();
}
2020-08-27 11:14:31 +00:00
}