Definition at line 36 of file ConsumerTest.php.
 
◆ testConstruct()
      
        
          | ILIAS\TermsOfService\test\ConsumerTest::testConstruct  | 
          ( | 
           | ) | 
           | 
        
      
 
Definition at line 40 of file ConsumerTest.php.
   42         $this->assertInstanceOf(Consumer::class, 
new Consumer($this->mock(Container::class)));
  
 
 
◆ testDisabledUses()
      
        
          | ILIAS\TermsOfService\test\ConsumerTest::testDisabledUses  | 
          ( | 
           | ) | 
           | 
        
      
 
Definition at line 50 of file ConsumerTest.php.
References $container.
   52         $by_trying = $this->mockTree(ByTrying::class, [
'transform' => 
false]);
    53         $settings = $this->mockMethod(ilSetting::class, 
'get', [
'tos_status', 
''], 
'false');
    55         $container = $this->mockTree(Container::class, [
    56             'settings' => $settings,
    57             'refinery' => [
'byTrying' => $by_trying],
    59         $container->method(
'offsetGet')->with(
'ilObjDataCache')->willReturn($this->mock(ilObjectDataCache::class));
    61         $slot = $this->mock(UseSlot::class);
    62         $slot->expects(self::once())->method(
'hasDocuments')->willReturn($slot);
    63         $slot->expects(self::once())->method(
'hasHistory')->willReturn($slot);
    64         $slot->expects(self::once())->method(
'hasPublicApi')->willReturn($slot);
    65         $slot->expects(self::once())->method(
'hasPublicPage')->willReturn($slot);
    69         $this->assertSame($slot, $instance->uses($slot, $this->mock(LazyProvide::class)));
 
 
 
 
◆ testId()
      
        
          | ILIAS\TermsOfService\test\ConsumerTest::testId  | 
          ( | 
           | ) | 
           | 
        
      
 
 
◆ testUses()
      
        
          | ILIAS\TermsOfService\test\ConsumerTest::testUses  | 
          ( | 
           | ) | 
           | 
        
      
 
Definition at line 72 of file ConsumerTest.php.
References $container.
   74         $by_trying = $this->mockTree(ByTrying::class, [
'transform' => 
true]);
    75         $settings = $this->mockMethod(ilSetting::class, 
'get', [
'tos_status', 
''], 
'true');
    77         $container = $this->mockTree(Container::class, [
    78             'settings' => $settings,
    79             'refinery' => [
'byTrying' => $by_trying],
    80             'ctrl' => $this->mock(ilCtrl::class),
    82         $container->method(
'offsetGet')->with(
'ilObjDataCache')->willReturn($this->mock(ilObjectDataCache::class));
    84         $slot = $this->mock(UseSlot::class);
    85         $slot->expects(self::once())->method(
'hasDocuments')->willReturn($slot);
    86         $slot->expects(self::once())->method(
'hasHistory')->willReturn($slot);
    87         $slot->expects(self::once())->method(
'canWithdraw')->willReturn($slot);
    88         $slot->expects(self::once())->method(
'hasAgreement')->willReturn($slot);
    89         $slot->expects(self::once())->method(
'showInFooter')->willReturn($slot);
    90         $slot->expects(self::once())->method(
'showOnLoginPage')->willReturn($slot);
    91         $slot->expects(self::once())->method(
'onSelfRegistration')->willReturn($slot);
    92         $slot->expects(self::once())->method(
'hasOnlineStatusFilter')->willReturn($slot);
    93         $slot->expects(self::once())->method(
'hasUserManagementFields')->willReturn($slot);
    94         $slot->expects(self::once())->method(
'hasPublicApi')->willReturn($slot);
    95         $slot->expects(self::once())->method(
'canReadInternalMails')->willReturn($slot);
    96         $slot->expects(self::once())->method(
'canUseSoapApi')->willReturn($slot);
   100         $this->assertSame($slot, $instance->uses($slot, $this->mock(LazyProvide::class)));
 
 
 
 
The documentation for this class was generated from the following file: