|
7 | 7 | use PHPUnit\Framework\Attributes\CoversClass; |
8 | 8 | use PHPUnit\Framework\Attributes\Group; |
9 | 9 | use PHPUnit\Framework\TestCase; |
10 | | -use SimpleSAML\SOAP\Constants as SOAP; |
| 10 | +use SimpleSAML\SOAP11\Type\MustUnderstandValue; |
11 | 11 | use SimpleSAML\Test\WSSecurity\Constants as C; |
12 | 12 | use SimpleSAML\WSSecurity\XML\wsa_200408\AbstractEndpointReferenceType; |
13 | 13 | use SimpleSAML\WSSecurity\XML\wsa_200408\MessageID; |
@@ -58,16 +58,16 @@ public static function setUpBeforeClass(): void |
58 | 58 | */ |
59 | 59 | public function testMarshalling(): void |
60 | 60 | { |
61 | | - $attr1 = new XMLAttribute(SOAP::NS_SOAP_ENV_11, 'soapenv', 'mustUnderstand', '1'); |
62 | | - $attr2 = new XMLAttribute(C::NAMESPACE, 'ssp', 'attr1', 'testval1'); |
63 | | - $attr3 = new XMLAttribute(C::NAMESPACE, 'ssp', 'attr2', 'testval2'); |
64 | | - $msgId = new MessageID('uuid:d0ccf3cd-2dce-4c1a-a5d6-be8912ecd7de', [$attr1]); |
| 61 | + $mustUnderstand = MustUnderstandValue::fromBoolean(true); |
| 62 | + $msgId = new MessageID('uuid:d0ccf3cd-2dce-4c1a-a5d6-be8912ecd7de', [$mustUnderstand->toAttribute()]); |
65 | 63 |
|
66 | | - $requestSecurityTokenResponse = new RequestSecurityTokenResponse(C::NAMESPACE, [$msgId], [$attr2]); |
| 64 | + $attr1 = new XMLAttribute(C::NAMESPACE, 'ssp', 'attr1', 'testval1'); |
| 65 | + $attr2 = new XMLAttribute(C::NAMESPACE, 'ssp', 'attr2', 'testval2'); |
| 66 | + $requestSecurityTokenResponse = new RequestSecurityTokenResponse(C::NAMESPACE, [$msgId], [$attr1]); |
67 | 67 |
|
68 | 68 | $issuedTokens = new IssuedTokens( |
69 | 69 | [$requestSecurityTokenResponse], |
70 | | - [$attr3], |
| 70 | + [$attr2], |
71 | 71 | ); |
72 | 72 |
|
73 | 73 | $this->assertEquals( |
|
0 commit comments