|
13 | 13 | use OCA\Libresign\Service\Policy\Model\PolicyContext; |
14 | 14 | use OCA\Libresign\Service\Policy\Model\PolicySpec; |
15 | 15 | use OCA\Libresign\Service\Policy\Provider\DocMdp\DocMdpPolicy; |
16 | | -use OCA\Libresign\Service\Policy\Provider\Footer\AddFooterPolicy; |
17 | | -use OCA\Libresign\Service\Policy\Provider\Footer\SignatureFooterPolicyValue; |
| 16 | +use OCA\Libresign\Service\Policy\Provider\Footer\FooterPolicy; |
| 17 | +use OCA\Libresign\Service\Policy\Provider\Footer\FooterPolicyValue; |
18 | 18 | use OCA\Libresign\Service\Policy\Provider\Signature\SignatureFlowPolicy; |
19 | 19 | use OCA\Libresign\Service\Policy\Runtime\PolicyRegistry; |
20 | 20 | use PHPUnit\Framework\TestCase; |
@@ -45,20 +45,20 @@ public function testRegistryReturnsDocMdpDefinition(): void { |
45 | 45 | $this->assertSame(2, $definition->normalizeValue(2)); |
46 | 46 | } |
47 | 47 |
|
48 | | - public function testRegistryReturnsAddFooterDefinition(): void { |
| 48 | + public function testRegistryReturnsFooterDefinition(): void { |
49 | 49 | $container = $this->createMock(ContainerInterface::class); |
50 | | - $container->method('get')->with(AddFooterPolicy::class)->willReturn(new AddFooterPolicy()); |
| 50 | + $container->method('get')->with(FooterPolicy::class)->willReturn(new FooterPolicy()); |
51 | 51 | $registry = new PolicyRegistry($container); |
52 | | - $definition = $registry->get(AddFooterPolicy::KEY); |
| 52 | + $definition = $registry->get(FooterPolicy::KEY); |
53 | 53 |
|
54 | | - $this->assertSame(AddFooterPolicy::KEY, $definition->key()); |
| 54 | + $this->assertSame(FooterPolicy::KEY, $definition->key()); |
55 | 55 | $this->assertSame( |
56 | | - SignatureFooterPolicyValue::encode(SignatureFooterPolicyValue::defaults()), |
| 56 | + FooterPolicyValue::encode(FooterPolicyValue::defaults()), |
57 | 57 | $definition->defaultSystemValue(), |
58 | 58 | ); |
59 | 59 | $this->assertSame([], $definition->allowedValues(new PolicyContext())); |
60 | 60 | $this->assertSame( |
61 | | - SignatureFooterPolicyValue::encode([ |
| 61 | + FooterPolicyValue::encode([ |
62 | 62 | 'enabled' => false, |
63 | 63 | 'writeQrcodeOnFooter' => true, |
64 | 64 | 'validationSite' => '', |
|
0 commit comments