ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ILIAS\LegalDocuments\test\Intercept\ConditionalInterceptTest Class Reference
+ Inheritance diagram for ILIAS\LegalDocuments\test\Intercept\ConditionalInterceptTest:
+ Collaboration diagram for ILIAS\LegalDocuments\test\Intercept\ConditionalInterceptTest:

Public Member Functions

 testConstruct ()
 
 testIntercept ()
 
 testId ()
 
 testTarget ()
 

Detailed Description

Definition at line 30 of file ConditionalInterceptTest.php.

Member Function Documentation

◆ testConstruct()

ILIAS\LegalDocuments\test\Intercept\ConditionalInterceptTest::testConstruct ( )

Definition at line 34 of file ConditionalInterceptTest.php.

34 : void
35 {
36 $this->assertInstanceOf(ConditionalIntercept::class, new ConditionalIntercept(
37 $this->fail(...),
38 'foo',
39 $this->mock(Target::class)
40 ));
41 }

◆ testId()

ILIAS\LegalDocuments\test\Intercept\ConditionalInterceptTest::testId ( )

Definition at line 54 of file ConditionalInterceptTest.php.

54 : void
55 {
56 $instance = new ConditionalIntercept(
57 $this->fail(...),
58 'foo',
59 $this->mock(Target::class)
60 );
61
62 $this->assertSame('foo', $instance->id());
63 }

◆ testIntercept()

ILIAS\LegalDocuments\test\Intercept\ConditionalInterceptTest::testIntercept ( )

Definition at line 43 of file ConditionalInterceptTest.php.

43 : void
44 {
45 $instance = new ConditionalIntercept(
46 fn() => true,
47 'foo',
48 $this->mock(Target::class)
49 );
50
51 $this->assertTrue($instance->intercept());
52 }

◆ testTarget()

ILIAS\LegalDocuments\test\Intercept\ConditionalInterceptTest::testTarget ( )

Definition at line 65 of file ConditionalInterceptTest.php.

65 : void
66 {
67 $target = $this->mock(Target::class);
68 $instance = new ConditionalIntercept(
69 $this->fail(...),
70 'foo',
71 $target
72 );
73
74 $this->assertSame($target, $instance->target());
75 }

The documentation for this class was generated from the following file: