◆ testLimitedPolicy()
UploadPolicyResolverTest::testLimitedPolicy |
( |
| ) |
|
Definition at line 28 of file UploadPolicyResolverTest.php.
References $resolver, UploadPolicy\AUDIENCE_TYPE_ALL_USERS, null, and UploadPolicy\SCOPE_DEFINITION_GLOBAL.
30 $rbac_mock = $this->createMock(\ilRbacReview::class);
31 $user_mock = $this->createMock(\ilObjUser::class);
33 $general_policy = new \UploadPolicy(
48 $specifiy_policy = new \UploadPolicy(
66 [$general_policy, $specifiy_policy]
69 $this->assertEquals(1000,
$resolver->getUserUploadSizeLimitInBytes() / 1000 / 1000);
71 $specifiy_policy_expired = new \UploadPolicy(
89 [$general_policy, $specifiy_policy_expired]
92 $this->assertEquals(10,
$resolver->getUserUploadSizeLimitInBytes() / 1000 / 1000);
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
const AUDIENCE_TYPE_ALL_USERS
const SCOPE_DEFINITION_GLOBAL
foreach($components as $component) $resolver
The documentation for this class was generated from the following file: