Definition at line 32 of file ProvideWithdrawalTest.php.
◆ testBeginProcessURL()
ILIAS\LegalDocuments\test\Provide\ProvideWithdrawalTest::testBeginProcessURL |
( |
| ) |
|
Definition at line 45 of file ProvideWithdrawalTest.php.
References $params.
47 $instance =
new ProvideWithdrawal(
49 $this->mock(ilCtrl::class),
50 $this->mock(ilAuthSession::class),
51 function (array
$params):
string {
52 $this->assertSame([
'withdraw_consent' =>
'foo'], $params);
57 $this->assertSame(
'logout url', $instance->beginProcessURL());
if(! $DIC->user() ->getId()||!ilLTIConsumerAccess::hasCustomProviderCreationAccess()) $params
◆ testConstruct()
ILIAS\LegalDocuments\test\Provide\ProvideWithdrawalTest::testConstruct |
( |
| ) |
|
Definition at line 36 of file ProvideWithdrawalTest.php.
38 $this->assertInstanceOf(ProvideWithdrawal::class,
new ProvideWithdrawal(
40 $this->mock(ilCtrl::class),
41 $this->mock(ilAuthSession::class)
◆ testFinishAndLogout()
ILIAS\LegalDocuments\test\Provide\ProvideWithdrawalTest::testFinishAndLogout |
( |
| ) |
|
Definition at line 60 of file ProvideWithdrawalTest.php.
References ILIAS\LegalDocuments\Provide\ProvideWithdrawal\finishAndLogout(), and ilSession\SESSION_CLOSE_USER.
64 $auth_session = $this->mock(ilAuthSession::class);
65 $auth_session->expects(self::once())->method(
'logout');
67 $ctrl = $this->mock(ilCtrl::class);
68 $ctrl->expects(self::once())->method(
'redirectToURL')->with(
'login.php?bar=baz&withdrawal_finished=foo&cmd=force_login');
70 $instance =
new ProvideWithdrawal(
75 function (
int $x) use (&$called) {
81 $instance->finishAndLogout([
'bar' =>
'baz']);
83 $this->assertTrue($called);
The documentation for this class was generated from the following file: