19 declare(strict_types=1);
    30 require_once __DIR__ . 
'/../../ContainerMock.php';
    38         $this->assertInstanceOf(PublicApi::class, 
new PublicApi(
false, $this->fail(...)));
    43         $this->assertTrue((
new PublicApi(
true, $this->fail(...)))->active());
    44         $this->assertFalse((
new PublicApi(
false, $this->fail(...)))->active());
    60             'needsToAcceptNewDocument' => !$b,
    74             [
false,  [
'cannotAgree' => 
true, 
'needsToAcceptNewDocument' => 
true]],
    75             [
true, [
'cannotAgree' => 
false, 
'needsToAcceptNewDocument' => 
true]],
    76             [
false, [
'cannotAgree' => 
true, 
'needsToAcceptNewDocument' => 
false]],
    77             [
false, [
'cannotAgree' => 
false, 
'needsToAcceptNewDocument' => 
false]],
    85             [
$d, [
'agreeDate' => [
'value' => 
$d]]],
    86             [null, [
'agreeDate' => [
'value' => null]]],
    93             [
true, $dpro_user_tree(
true)],
    94             [
false, $dpro_user_tree(
false)]
   100         $user = $this->mock(ilObjUser::class);
   101         $dpro_user = fn($ret) => $this->mockTree(User::class, $dpro_user_tree($ret));
   103         foreach ($compare as $pair) {
   104             $this->assertSame($pair[0], (
new PublicApi(
true, fn() => $this->mockTree(User::class, $pair[1])))->$method($user));