mirror of
https://github.com/SkillDisplay/PHPToolKit.git
synced 2024-11-14 21:26:09 +01:00
189 lines
78 KiB
PHP
189 lines
78 KiB
PHP
<?php
|
|
|
|
namespace SkillDisplay\PHPToolKit\Tests\Unit\Verification;
|
|
|
|
use Prophecy\PhpUnit\ProphecyTrait;
|
|
use SkillDisplay\PHPToolKit\Configuration\Settings;
|
|
use SkillDisplay\PHPToolKit\Verification\Link;
|
|
use PHPUnit\Framework\TestCase;
|
|
|
|
/**
|
|
* @covers SkillDisplay\PHPToolKit\Verification\Link
|
|
*/
|
|
class LinkTest extends TestCase
|
|
{
|
|
use ProphecyTrait;
|
|
|
|
/**
|
|
* @test
|
|
*/
|
|
public function instanceCanBeCreated()
|
|
{
|
|
$settings = $this->prophesize(Settings::class);
|
|
$subject = new Link(
|
|
$settings->reveal(),
|
|
10
|
|
);
|
|
static::assertInstanceOf(Link::class, $subject);
|
|
}
|
|
|
|
/**
|
|
* @test
|
|
*/
|
|
public function canReturnVerificationLinkForEducational()
|
|
{
|
|
$settings = $this->prophesize(Settings::class);
|
|
$settings->getMySkillDisplayUrl()->willReturn('https://my.example.com/verify');
|
|
|
|
$subject = new Link($settings->reveal(), 10);
|
|
|
|
static::assertSame(
|
|
'https://my.example.com/verify/skillup/skill/10/0/2',
|
|
$subject->getVerificationLink('education')
|
|
);
|
|
}
|
|
|
|
/**
|
|
* @test
|
|
*/
|
|
public function canReturnVerificationLinkForBusiness()
|
|
{
|
|
$settings = $this->prophesize(Settings::class);
|
|
$settings->getMySkillDisplayUrl()->willReturn('https://my.example.com/verify');
|
|
|
|
$subject = new Link($settings->reveal(), 10);
|
|
|
|
static::assertSame(
|
|
'https://my.example.com/verify/skillup/skill/10/0/4',
|
|
$subject->getVerificationLink('business')
|
|
);
|
|
}
|
|
|
|
/**
|
|
* @test
|
|
*/
|
|
public function canReturnVerificationLinkForCertification()
|
|
{
|
|
$settings = $this->prophesize(Settings::class);
|
|
$settings->getMySkillDisplayUrl()->willReturn('https://my.example.com/verify');
|
|
|
|
$subject = new Link($settings->reveal(), 10);
|
|
|
|
static::assertSame(
|
|
'https://my.example.com/verify/skillup/skill/10/0/1',
|
|
$subject->getVerificationLink('certification')
|
|
);
|
|
}
|
|
|
|
/**
|
|
* @test
|
|
*/
|
|
public function canReturnVerificationLinkForSelf()
|
|
{
|
|
$settings = $this->prophesize(Settings::class);
|
|
$settings->getMySkillDisplayUrl()->willReturn('https://my.example.com/verify');
|
|
|
|
$subject = new Link($settings->reveal(), 10);
|
|
|
|
static::assertSame(
|
|
'https://my.example.com/verify/skillup/skill/10/0/3',
|
|
$subject->getVerificationLink('self')
|
|
);
|
|
}
|
|
|
|
/**
|
|
* @test
|
|
*/
|
|
public function canReturnVerificationButtonForEducational()
|
|
{
|
|
$settings = $this->prophesize(Settings::class);
|
|
$settings->getMySkillDisplayUrl()->willReturn('https://my.example.com/verify');
|
|
|
|
$subject = new Link($settings->reveal(), 10);
|
|
|
|
static::assertSame(
|
|
implode(PHP_EOL, [
|
|
' <a href="https://my.example.com/verify/skillup/skill/10/0/2" target="_blank">',
|
|
' <svg width="222" height="50" viewBox="0 0 222 50" fill="none" xmlns="http://www.w3.org/2000/svg">',
|
|
' <rect width="222" height="50" rx="3" fill="#F2F2F2"/>',
|
|
' <path d="M0 3C0 1.34315 1.34315 0 3 0H50V50H3C1.34315 50 0 48.6569 0 47V3Z" fill="#4A89C4"/>',
|
|
' <path d="M68.469 29.894L68.462 31H62.281V20.969H68.462V22.075H63.639V25.407H67.545V26.471H63.639V29.894H68.469ZM74.3863 25.596C74.153 25.2833 73.901 25.0663 73.6303 24.945C73.3596 24.819 73.0563 24.756 72.7203 24.756C72.0623 24.756 71.556 24.9917 71.2013 25.463C70.8466 25.9343 70.6693 26.6063 70.6693 27.479C70.6693 27.941 70.709 28.3377 70.7883 28.669C70.8676 28.9957 70.9843 29.2663 71.1383 29.481C71.2923 29.691 71.4813 29.845 71.7053 29.943C71.9293 30.041 72.1836 30.09 72.4683 30.09C72.879 30.09 73.236 29.9967 73.5393 29.81C73.8473 29.6233 74.1296 29.3597 74.3863 29.019V25.596ZM75.6323 20.689V31H74.8903C74.713 31 74.601 30.9137 74.5543 30.741L74.4423 29.88C74.139 30.244 73.7936 30.538 73.4063 30.762C73.019 30.986 72.571 31.098 72.0623 31.098C71.6563 31.098 71.2876 31.021 70.9563 30.867C70.625 30.7083 70.3426 30.4773 70.1093 30.174C69.876 29.8707 69.6963 29.4927 69.5703 29.04C69.4443 28.5873 69.3813 28.067 69.3813 27.479C69.3813 26.9563 69.4513 26.471 69.5913 26.023C69.7313 25.5703 69.932 25.1783 70.1933 24.847C70.4546 24.5157 70.7743 24.2567 71.1523 24.07C71.535 23.8787 71.9643 23.783 72.4403 23.783C72.8743 23.783 73.2453 23.8577 73.5533 24.007C73.866 24.1517 74.1436 24.3547 74.3863 24.616V20.689H75.6323ZM83.4313 23.909V31H82.6893C82.5119 31 82.3999 30.9137 82.3533 30.741L82.2553 29.978C81.9473 30.3187 81.6019 30.594 81.2193 30.804C80.8366 31.0093 80.3979 31.112 79.9033 31.112C79.5159 31.112 79.1729 31.049 78.8743 30.923C78.5803 30.7923 78.3329 30.6103 78.1323 30.377C77.9316 30.1437 77.7799 29.8613 77.6773 29.53C77.5793 29.1987 77.5303 28.8323 77.5303 28.431V23.909H78.7763V28.431C78.7763 28.9677 78.8976 29.383 79.1403 29.677C79.3876 29.971 79.7633 30.118 80.2673 30.118C80.6359 30.118 80.9789 30.0317 81.2963 29.859C81.6183 29.6817 81.9146 29.439 82.1853 29.131V23.909H83.4313ZM90.3419 25.169C90.3046 25.2203 90.2673 25.26 90.2299 25.288C90.1926 25.316 90.1413 25.33 90.0759 25.33C90.0059 25.33 89.9289 25.302 89.8449 25.246C89.7609 25.1853 89.6559 25.12 89.5299 25.05C89.4086 24.98 89.2569 24.917 89.0749 24.861C88.8976 24.8003 88.6783 24.77 88.4169 24.77C88.0669 24.77 87.7589 24.833 87.4929 24.959C87.2269 25.0803 87.0029 25.2577 86.8209 25.491C86.6436 25.7243 86.5083 26.0067 86.4149 26.338C86.3263 26.6693 86.2819 27.0403 86.2819 27.451C86.2819 27.8803 86.3309 28.263 86.4289 28.599C86.5269 28.9303 86.6646 29.2103 86.8419 29.439C87.0239 29.663 87.2409 29.8357 87.4929 29.957C87.7496 30.0737 88.0366 30.132 88.3539 30.132C88.6573 30.132 88.9069 30.097 89.1029 30.027C89.2989 29.9523 89.4599 29.8707 89.5859 29.782C89.7166 29.6933 89.8239 29.614 89.9079 29.544C89.9966 29.4693 90.0829 29.432 90.1669 29.432C90.2696 29.432 90.3489 29.4717 90.4049 29.551L90.7549 30.006C90.6009 30.1973 90.4259 30.3607 90.2299 30.496C90.0339 30.6313 89.8216 30.7457 89.5929 30.839C89.3689 30.9277 89.1333 30.993 88.8859 31.035C88.6386 31.077 88.3866 31.098 88.1299 31.098C87.6866 31.098 87.2736 31.0163 86.8909 30.853C86.5129 30.6897 86.1839 30.454 85.9039 30.146C85.6239 29.8333 85.4046 29.4507 85.2459 28.998C85.0873 28.5453 85.0079 28.0297 85.0079 27.451C85.0079 26.9237 85.0803 26.436 85.2249 25.988C85.3743 25.54 85.5889 25.155 85.8689 24.833C86.1536 24.5063 86.5013 24.252 86.9119 24.07C87.3273 23.888 87.8033 23.797 88.3399 23.797C88.8393 23.797 89.2779 23.8787 89.6559 24.042C90.0386 24.2007 90.3769 24.427 90.6709 24.721L90.3419 25.169ZM95.9355 27.808C95.3615 27.8267 94.8715 27.8733 94.4655 27.948C94.0641 28.018 93.7351 28.1113 93.4785 28.228C93.2265 28.3447 93.0421 28.4823 92.9255 28.641C92.8135 28.7997 92.7575 28.977 92.7575 29.173C92.7575 29.3597 92.7878 29.5207 92.8485 29.656C92.9091 29.7913 92.9908 29.9033 93.0935 29.992C93.2008 30.076 93.3245 30.139 93.4645 30.181C93.6091 30.2183 93.7631 30.237 93.9265 30.237C94.1458 30.237 94.3465 30.216 94.5285 30.174C94.7105 30.1273 94.8808 30.062 95.0395 29.978C95.2028 29.894 95.3568 29.7937 95.5015 29.677C95.6508 29.5603 95.7955 29.4273 95.9355 29.278V27.808ZM91.9105 24.91C92.3025 24.532 92.7248 24.2497 93.1775 24.063C93.6301 23.8763 94.1318 23.783 94.6825 23.783C95.0791 23.783 95.4315 23.8483 95.7395 23.979C96.0475 24.1097 96.3065 24.2917 96.5165 24.525C96.7265 24.7583 96.8851 25.0407 96.9925 25.372C97.0998 25.7033 97.1535 26.0673 97.1535 26.464V31H96.6005C96.4791 31 96.3858 30.9813 96.3205 30.944C96.2551 30.902 96.2038 30.8227 96.1665 30.706L96.0265 30.034C95.8398 30.2067 95.6578 30.3607 95.4805 30.496C95.3031 30.6267 95.1165 30.7387 94.9205 30.832C94.7245 30.9207 94.5145 30.9883 94.2905 31.035C94.0711 31.0863 93.8261 31.112 93.5555 31.112C93.2801 31.112 93.0211 31.0747 92.7785 31C92.5358 30.9207 92.3235 30.804 92.1415 30.65C91.9641 30.496 91.8218 30.3023 91.7145 30.069C91.6118 29.831 91.5605 29.551 91.5605 29.229C91.5605 28.949 91.6375 28.6807 91.7915 28.424C91.9455 28.1627 92.1951 27.9317 92.5405 27.731C92.8858 27.5303 93.3361 27.367 93.8915 27.241C94.4468 27.1103 95.1281 27.0357 95.9355 27.017V26.464C95.9355 25.9133 95.8165 25.498 95.5785 25.218C95.3405 24.9333 94.9928 24.791 94.5355 24.791C94.2275 24.791 93.9685 24.8307 93.7585 24.91C93.5531 24.9847 93.3735 25.071 93.2195 25.169C93.0701 25.2623 92.9395 25.3487 92.8275 25.428C92.7201 25.5027 92.6128 25.54 92.5055 25.54C92.4215 25.54 92.3491 25.519 92.2885 25.477C92.2278 25.4303 92.1765 25.3743 92.1345 25.309L91.9105 24.91ZM105.536 31H104.29V24.952H100.636V29.208C100.636 29.5067 100.708 29.7283 100.853 29.873C100.997 30.0177 101.184 30.09 101.413 30.09C101.543 30.09 101.655 30.0737 101.749 30.041C101.847 30.0037 101.931 29.964 102.001 29.922C102.071 29.88 102.129 29.8427 102.176 29.81C102.227 29.7727 102.271 29.754 102.309 29.754C102.374 29.754 102.432 29.7937 102.484 29.873L102.848 30.468C102.633 30.6687 102.374 30.8273 102.071 30.944C101.767 31.056 101.455 31.112 101.133 31.112C100.573 31.112 100.141 30.9557 99.8378 30.643C99.5391 30.3303 99.3898 29.88 99.3898 29.292V24.952H98.5358C98.4611 24.952 98.3981 24.931 98.3468 24.889C98.2954 24.8423 98.2698 24.7723 98.2698 24.679V24.182L99.4318 24.028L99.7188 21.844C99.7328 21.774 99.7631 21.718 99.8098 21.676C99.8611 21.6293 99.9264 21.606 100.006 21.606H100.636V24.049H105.536V31ZM105.844 21.634C105.844 21.7553 105.818 21.8697 105.767 21.977C105.72 22.0797 105.655 22.1707 105.571 22.25C105.491 22.3293 105.398 22.3923 105.291 22.439C105.183 22.4857 105.069 22.509 104.948 22.509C104.826 22.509 104.712 22.4857 104.605 22.439C104.502 22.3923 104.411 22.3293 104.332 22.25C104.252 22.1707 104.189 22.0797 104.143 21.977C104.096 21.8697 104.073 21.7553 104.073 21.634C104.073 21.5127 104.096 21.3983 104.143 21.291C104.189 21.179 104.252 21.0833 104.332 21.004C104.411 20.92 104.502 20.8547 104.605 20.808C104.712 20.7613 104.826 20.738 104.948 20.738C105.069 20.738 105.183 20.7613 105.291 20.808C105.398 20.8547 105.491 20.92 105.571 21.004C105.655 21.0833 105.72 21.179 105.767 21.291C105.818 21.3983 105.844 21.5127 105.844 21.634ZM110.572 23.797C111.09 23.797 111.556 23.8833 111.972 24.056C112.387 24.2287 112.742 24.4737 113.036 24.791C113.33 25.1083 113.554 25.4933 113.708 25.946C113.866 26.394 113.946 26.8957 113.946 27.451C113.946 28.011 113.866 28.515 113.708 28.963C113.554 29.411 113.33 29.7937 113.036 30.111C112.742 30.4283 112.387 30.6733 111.972 30.846C111.556 31.014 111.09 31.098 110.572 31.098C110.049 31.098 109.578 31.014 109.158 30.846C108.742 30.6733 108.388 30.4283 108.094 30.111C107.8 29.7937 107.573 29.411 107.415 28.963C107.261 28.515 107.184 28.011 107.184 27.451C107.184 26.8957 107.261 26.394 107.415 25.946C107.573 25.4933 107.8 25.1083 108.094 24.791C108.388 24.4737 108.742 24.2287 109.158 24.056C109.578 23.8833 110.049 23.797 110.572 23.797ZM110.572 30.125C111.272 30.125 111.794 29.8917 112.14 29.425C112.485 28.9537 112.658 28.298 112.658 27.458C112.658 26.6133 112.485 25.9553 112.14 25.484C111.794 25.0127 111.272 24.777 110.572 24.777C110.217 24.777 109.907 24.8377 109.641 24.959C109.379 25.0803 109.16 25.2553 108.983 25.484C108.81 25.7127 108.679 25.995 108.591 26.331C108.507 26.6623 108.465 27.038 108.465 27.458C108.465 28.298 108.637 28.9537 108.983 29.425C109.333 29.8917 109.862 30.125 110.572 30.125ZM116.702 24.938C116.856 24.7653 117.019 24.609 117.192 24.469C117.365 24.329 117.547 24.21 117.738 24.112C117.934 24.0093 118.139 23.9323 118.354 23.881C118.573 23.825 118.809 23.797 119.061 23.797C119.448 23.797 119.789 23.8623 120.083 23.993C120.382 24.119 120.629 24.301 120.825 24.539C121.026 24.7723 121.177 25.0547 121.28 25.386C121.383 25.7173 121.434 26.0837 121.434 26.485V31H120.181V26.485C120.181 25.9483 120.057 25.533 119.81 25.239C119.567 24.9403 119.196 24.791 118.697 24.791C118.328 24.791 117.983 24.8797 117.661 25.057C117.344 25.2343 117.05 25.4747 116.779 25.778V31H115.526V23.909H116.275C116.452 23.909 116.562 23.9953 116.604 24.168L116.702 24.938ZM127.176 27.808C126.602 27.8267 126.112 27.8733 125.706 27.948C125.304 28.018 124.975 28.1113 124.719 28.228C124.467 28.3447 124.282 28.4823 124.166 28.641C124.054 28.7997 123.998 28.977 123.998 29.173C123.998 29.3597 124.028 29.5207 124.089 29.656C124.149 29.7913 124.231 29.9033 124.334 29.992C124.441 30.076 124.565 30.139 124.705 30.181C124.849 30.2183 125.003 30.237 125.167 30.237C125.386 30.237 125.587 30.216 125.769 30.174C125.951 30.1273 126.121 30.062 126.28 29.978C126.443 29.894 126.597 29.7937 126.742 29.677C126.891 29.5603 127.036 29.4273 127.176 29.278V27.808ZM123.151 24.91C123.543 24.532 123.965 24.2497 124.418 24.063C124.87 23.8763 125.372 23.783 125.923 23.783C126.319 23.783 126.672 23.8483 126.98 23.979C127.288 24.1097 127.547 24.2917 127.757 24.525C127.967 24.7583 128.125 25.0407 128.233 25.372C128.34 25.7033 128.394 26.0673 128.394 26.464V31H127.841C127.719 31 127.626 30.9813 127.561 30.944C127.495 30.902 127.444 30.8227 127.407 30.706L127.267 30.034C127.08 30.2067 126.898 30.3607 126.721 30.496C126.543 30.6267 126.357 30.7387 126.161 30.832C125.965 30.9207 125.755 30.9883 125.531 31.035C125.311 31.0863 125.066 31.112 124.796 31.112C124.52 31.112 124.261 31.0747 124.019 31C123.776 30.9207 123.564 30.804 123.382 30.65C123.204 30.496 123.062 30.3023 122.955 30.069C122.852 29.831 122.801 29.551 122.801 29.229C122.801 28.949 122.878 28.6807 123.032 28.424C123.186 28.1627 123.435 27.9317 123.781 27.731C124.126 27.5303 124.576 27.367 125.132 27.241C125.687 27.1103 126.368 27.0357 127.176 27.017V26.464C127.176 25.9133 127.057 25.498 126.819 25.218C126.581 24.9333 126.233 24.791 125.776 24.791C125.468 24.791 125.209 24.8307 124.999 24.91C124.793 24.9847 124.614 25.071 124.46 25.169C124.31 25.2623 124.18 25.3487 124.068 25.428C123.96 25.5027 123.853 25.54 123.746 25.54C123.662 25.54 123.589 25.519 123.529 25.477C123.468 25.4303 123.417 25.3743 123.375 25.309L123.151 24.91ZM131.58 20.689V31H130.334V20.689H131.58ZM145.125 20.969L141.037 31H139.819L135.731 20.969H136.816C136.938 20.969 137.036 20.9993 137.11 21.06C137.185 21.1207 137.241 21.1977 137.278 21.291L140.106 28.368C140.167 28.5267 140.225 28.6993 140.281 28.886C140.342 29.0727 140.396 29.2687 140.442 29.474C140.489 29.2687 140.538 29.0727 140.589 28.886C140.641 28.6993 140.697 28.5267 140.757 28.368L143.578 21.291C143.606 21.2117 143.66 21.1393 143.739 21.074C143.823 21.004 143.924 20.969 144.04 20.969H145.125ZM149.844 26.681C149.844 26.3917 149.802 26.128 149.718 25.89C149.639 25.6473 149.52 25.4397 149.361 25.267C149.207 25.0897 149.018 24.9543 148.794 24.861C148.57 24.763 148.316 24.714 148.031 24.714C147.434 24.714 146.96 24.889 146.61 25.239C146.265 25.5843 146.05 26.065 145.966 26.681H149.844ZM150.852 30.006C150.698 30.1927 150.514 30.356 150.299 30.496C150.085 30.6313 149.854 30.7433 149.606 30.832C149.364 30.9207 149.112 30.986 148.85 31.028C148.589 31.0747 148.33 31.098 148.073 31.098C147.583 31.098 147.131 31.0163 146.715 30.853C146.305 30.685 145.948 30.4423 145.644 30.125C145.346 29.803 145.112 29.4063 144.944 28.935C144.776 28.4637 144.692 27.9223 144.692 27.311C144.692 26.8163 144.767 26.3543 144.916 25.925C145.07 25.4957 145.29 25.1247 145.574 24.812C145.859 24.4947 146.207 24.2473 146.617 24.07C147.028 23.888 147.49 23.797 148.003 23.797C148.428 23.797 148.82 23.8693 149.179 24.014C149.543 24.154 149.856 24.3593 150.117 24.63C150.383 24.896 150.591 25.2273 150.74 25.624C150.89 26.016 150.964 26.464 150.964 26.968C150.964 27.164 150.943 27.2947 150.901 27.36C150.859 27.4253 150.78 27.458 150.663 27.458H145.924C145.938 27.906 145.999 28.2957 146.106 28.627C146.218 28.9583 146.372 29.236 146.568 29.46C146.764 29.6793 146.998 29.845 147.268 29.957C147.539 30.0643 147.842 30.118 148.178 30.118C148.491 30.118 148.759 30.083 148.983 30.013C149.212 29.9383 149.408 29.859 149.571 29.775C149.735 29.691 149.87 29.614 149.977 29.544C150.089 29.4693 150.185 29.432 150.264 29.432C150.367 29.432 150.446 29.4717 150.502 29.551L150.852 30.006ZM153.678 25.33C153.902 24.8447 154.177 24.4667 154.504 24.196C154.83 23.9207 155.229 23.783 155.701 23.783C155.85 23.783 155.992 23.7993 156.128 23.832C156.268 23.8647 156.391 23.916 156.499 23.986L156.408 24.917C156.38 25.0337 156.31 25.092 156.198 25.092C156.132 25.092 156.037 25.078 155.911 25.05C155.785 25.022 155.642 25.008 155.484 25.008C155.26 25.008 155.059 25.0407 154.882 25.106C154.709 25.1713 154.553 25.2693 154.413 25.4C154.277 25.526 154.154 25.6847 154.042 25.876C153.934 26.0627 153.836 26.2773 153.748 26.52V31H152.495V23.909H153.209C153.344 23.909 153.437 23.9347 153.489 23.986C153.54 24.0373 153.575 24.126 153.594 24.252L153.678 25.33ZM158.91 23.909V31H157.664V23.909H158.91ZM159.176 21.683C159.176 21.8043 159.151 21.9187 159.099 22.026C159.053 22.1287 158.987 22.222 158.903 22.306C158.824 22.3853 158.728 22.4483 158.616 22.495C158.509 22.5417 158.395 22.565 158.273 22.565C158.152 22.565 158.038 22.5417 157.93 22.495C157.828 22.4483 157.737 22.3853 157.657 22.306C157.578 22.222 157.515 22.1287 157.468 22.026C157.422 21.9187 157.398 21.8043 157.398 21.683C157.398 21.5617 157.422 21.4473 157.468 21.34C157.515 21.228 157.578 21.1323 157.657 21.053C157.737 20.969 157.828 20.9037 157.93 20.857C158.038 20.8103 158.152 20.787 158.273 20.787C158.395 20.787 158.509 20.8103 158.616 20.857C158.728 20.9037 158.824 20.969 158.903 21.053C158.987 21.1323 159.053 21.228 159.099 21.34C159.151 21.4473 159.176 21.5617 159.176 21.683ZM161.434 31V24.973L160.65 24.882C160.547 24.8587 160.465 24.8237 160.405 24.777C160.344 24.7257 160.314 24.6533 160.314 24.56V24.049H161.434V23.657C161.434 23.223 161.501 22.8263 161.637 22.467C161.772 22.103 161.975 21.7903 162.246 21.529C162.516 21.2677 162.852 21.0647 163.254 20.92C163.66 20.7753 164.129 20.703 164.661 20.703C164.838 20.703 165.02 20.7147 165.207 20.738C165.393 20.7613 165.554 20.7963 165.69 20.843L165.641 21.494C165.636 21.5407 165.617 21.5733 165.585 21.592C165.557 21.6107 165.517 21.6223 165.466 21.627C165.414 21.6317 165.349 21.634 165.27 21.634C165.195 21.6293 165.109 21.627 165.011 21.627C164.18 21.627 163.578 21.7997 163.205 22.145C162.831 22.4857 162.645 23.0013 162.645 23.692V24.049H166.929V31H165.676V24.952H162.68V31H161.434ZM173.904 25.169C173.867 25.2203 173.83 25.26 173.792 25.288C173.755 25.316 173.704 25.33 173.638 25.33C173.568 25.33 173.491 25.302 173.407 25.246C173.323 25.1853 173.218 25.12 173.092 25.05C172.971 24.98 172.819 24.917 172.637 24.861C172.46 24.8003 172.241 24.77 171.979 24.77C171.629 24.77 171.321 24.833 171.055 24.959C170.789 25.0803 170.565 25.2577 170.383 25.491C170.206 25.7243 170.071 26.0067 169.977 26.338C169.889 26.6693 169.844 27.0403 169.844 27.451C169.844 27.8803 169.893 28.263 169.991 28.599C170.089 28.9303 170.227 29.2103 170.404 29.439C170.586 29.663 170.803 29.8357 171.055 29.957C171.312 30.0737 171.599 30.132 171.916 30.132C172.22 30.132 172.469 30.097 172.665 30.027C172.861 29.9523 173.022 29.8707 173.148 29.782C173.279 29.6933 173.386 29.614 173.47 29.544C173.559 29.4693 173.645 29.432 173.729 29.432C173.832 29.432 173.911 29.4717 173.967 29.551L174.317 30.006C174.163 30.1973 173.988 30.3607 173.792 30.496C173.596 30.6313 173.384 30.7457 173.155 30.839C172.931 30.9277 172.696 30.993 172.448 31.035C172.201 31.077 171.949 31.098 171.692 31.098C171.249 31.098 170.836 31.0163 170.453 30.853C170.075 30.6897 169.746 30.454 169.466 30.146C169.186 29.8333 168.967 29.4507 168.808 28.998C168.65 28.5453 168.57 28.0297 168.57 27.451C168.57 26.9237 168.643 26.436 168.787 25.988C168.937 25.54 169.151 25.155 169.431 24.833C169.716 24.5063 170.064 24.252 170.474 24.07C170.89 23.888 171.366 23.797 171.902 23.797C172.402 23.797 172.84 23.8787 173.218 24.042C173.601 24.2007 173.939 24.427 174.233 24.721L173.904 25.169ZM179.498 27.808C178.924 27.8267 178.434 27.8733 178.028 27.948C177.627 28.018 177.298 28.1113 177.041 28.228C176.789 28.3447 176.605 28.4823 176.488 28.641C176.376 28.7997 176.32 28.977 176.32 29.173C176.32 29.3597 176.35 29.5207 176.411 29.656C176.472 29.7913 176.553 29.9033 176.656 29.992C176.763 30.076 176.887 30.139 177.027 30.181C177.172 30.2183 177.326 30.237 177.489 30.237C177.708 30.237 177.909 30.216 178.091 30.174C178.273 30.1273 178.443 30.062 178.602 29.978C178.765 29.894 178.919 29.7937 179.064 29.677C179.213 29.5603 179.358 29.4273 179.498 29.278V27.808ZM175.473 24.91C175.865 24.532 176.287 24.2497 176.74 24.063C177.193 23.8763 177.694 23.783 178.245 23.783C178.642 23.783 178.994 23.8483 179.302 23.979C179.61 24.1097 179.869 24.2917 180.079 24.525C180.289 24.7583 180.448 25.0407 180.555 25.372C180.662 25.7033 180.716 26.0673 180.716 26.464V31H180.163C180.042 31 179.948 30.9813 179.883 30.944C179.818 30.902 179.766 30.8227 179.729 30.706L179.589 30.034C179.402 30.2067 179.22 30.3607 179.043 30.496C178.866 30.6267 178.679 30.7387 178.483 30.832C178.287 30.9207 178.077 30.9883 177.853 31.035C177.634 31.0863 177.389 31.112 177.118 31.112C176.843 31.112 176.584 31.0747 176.341 31C176.098 30.9207 175.886 30.804 175.704 30.65C175.527 30.496 175.384 30.3023 175.277 30.069C175.174 29.831 175.123 29.551 175.123 29.229C175.123 28.949 175.2 28.6807 175.354 28.424C175.508 28.1627 175.758 27.9317 176.103 27.731C176.448 27.5303 176.899 27.367 177.454 27.241C178.009 27.1103 178.691 27.0357 179.498 27.017V26.464C179.498 25.9133 179.379 25.498 179.141 25.218C178.903 24.9333 178.555 24.791 178.098 24.791C177.79 24.791 177.531 24.8307 177.321 24.91C177.116 24.9847 176.936 25.071 176.782 25.169C176.633 25.2623 176.502 25.3487 176.39 25.428C176.283 25.5027 176.175 25.54 176.068 25.54C175.984 25.54 175.912 25.519 175.851 25.477C175.79 25.4303 175.739 25.3743 175.697 25.309L175.473 24.91ZM189.098 31H187.852V24.952H184.198V29.208C184.198 29.5067 184.271 29.7283 184.415 29.873C184.56 30.0177 184.747 30.09 184.975 30.09C185.106 30.09 185.218 30.0737 185.311 30.041C185.409 30.0037 185.493 29.964 185.563 29.922C185.633 29.88 185.692 29.8427 185.738 29.81C185.79 29.7727 185.834 29.754 185.871 29.754C185.937 29.754 185.995 29.7937 186.046 29.873L186.41 30.468C186.196 30.6687 185.937 30.8273 185.633 30.944C185.33 31.056 185.017 31.112 184.695 31.112C184.135 31.112 183.704 30.9557 183.4 30.643C183.102 30.3303 182.952 29.88 182.952 29.292V24.952H182.098C182.024 24.952 181.961 24.931 181.909 24.889C181.858 24.8423 181.832 24.7723 181.832 24.679V24.182L182.994 24.028L183.281 21.844C183.295 21.774 183.326 21.718 183.372 21.676C183.424 21.6293 183.489 21.606 183.568 21.606H184.198V24.049H189.098V31ZM189.406 21.634C189.406 21.7553 189.381 21.8697 189.329 21.977C189.283 22.0797 189.217 22.1707 189.133 22.25C189.054 22.3293 188.961 22.3923 188.853 22.439C188.746 22.4857 188.632 22.509 188.51 22.509C188.389 22.509 188.275 22.4857 188.167 22.439C188.065 22.3923 187.974 22.3293 187.894 22.25C187.815 22.1707 187.752 22.0797 187.705 21.977C187.659 21.8697 187.635 21.7553 187.635 21.634C187.635 21.5127 187.659 21.3983 187.705 21.291C187.752 21.179 187.815 21.0833 187.894 21.004C187.974 20.92 188.065 20.8547 188.167 20.808C188.275 20.7613 188.389 20.738 188.51 20.738C188.632 20.738 188.746 20.7613 188.853 20.808C188.961 20.8547 189.054 20.92 189.133 21.004C189.217 21.0833 189.283 21.179 189.329 21.291C189.381 21.3983 189.406 21.5127 189.406 21.634ZM194.134 23.797C194.652 23.797 195.119 23.8833 195.534 24.056C195.95 24.2287 196.304 24.4737 196.598 24.791C196.892 25.1083 197.116 25.4933 197.27 25.946C197.429 26.394 197.508 26.8957 197.508 27.451C197.508 28.011 197.429 28.515 197.27 28.963C197.116 29.411 196.892 29.7937 196.598 30.111C196.304 30.4283 195.95 30.6733 195.534 30.846C195.119 31.014 194.652 31.098 194.134 31.098C193.612 31.098 193.14 31.014 192.72 30.846C192.305 30.6733 191.95 30.4283 191.656 30.111C191.362 29.7937 191.136 29.411 190.977 28.963C190.823 28.515 190.746 28.011 190.746 27.451C190.746 26.8957 190.823 26.394 190.977 25.946C191.136 25.4933 191.362 25.1083 191.656 24.791C191.95 24.4737 192.305 24.2287 192.72 24.056C193.14 23.8833 193.612 23.797 194.134 23.797ZM194.134 30.125C194.834 30.125 195.357 29.8917 195.702 29.425C196.048 28.9537 196.22 28.298 196.22 27.458C196.22 26.6133 196.048 25.9553 195.702 25.484C195.357 25.0127 194.834 24.777 194.134 24.777C193.78 24.777 193.469 24.8377 193.203 24.959C192.942 25.0803 192.723 25.2553 192.545 25.484C192.373 25.7127 192.242 25.995 192.153 26.331C192.069 26.6623 192.027 27.038 192.027 27.458C192.027 28.298 192.2 28.9537 192.545 29.425C192.895 29.8917 193.425 30.125 194.134 30.125ZM200.265 24.938C200.419 24.7653 200.582 24.609 200.755 24.469C200.927 24.329 201.109 24.21 201.301 24.112C201.497 24.0093 201.702 23.9323 201.917 23.881C202.136 23.825 202.372 23.797 202.624 23.797C203.011 23.797 203.352 23.8623 203.646 23.993C203.944 24.119 204.192 24.301 204.388 24.539C204.588 24.7723 204.74 25.0547 204.843 25.386C204.945 25.7173 204.997 26.0837 204.997 26.485V31H203.744V26.485C203.744 25.9483 203.62 25.533 203.373 25.239C203.13 24.9403 202.759 24.791 202.26 24.791C201.891 24.791 201.546 24.8797 201.224 25.057C200.906 25.2343 200.612 25.4747 200.342 25.778V31H199.089V23.909H199.838C200.015 23.909 200.125 23.9953 200.167 24.168L200.265 24.938Z" fill="#232323"/>',
|
|
' <circle cx="25" cy="25" r="12" fill="#4A89C4" stroke="white" stroke-width="2"/>',
|
|
' </svg></a>',
|
|
]),
|
|
$subject->getVerificationButton('education')
|
|
);
|
|
}
|
|
|
|
/**
|
|
* @test
|
|
*/
|
|
public function canReturnVerificationButtonForBusiness()
|
|
{
|
|
$settings = $this->prophesize(Settings::class);
|
|
$settings->getMySkillDisplayUrl()->willReturn('https://my.example.com/verify');
|
|
|
|
$subject = new Link($settings->reveal(), 10);
|
|
|
|
static::assertSame(
|
|
implode(PHP_EOL, [
|
|
' <a href="https://my.example.com/verify/skillup/skill/10/0/4" target="_blank">',
|
|
' <svg width="222" height="50" viewBox="0 0 222 50" fill="none" xmlns="http://www.w3.org/2000/svg">',
|
|
' <rect width="222" height="50" rx="3" fill="#F2F2F2"/>',
|
|
' <path d="M65.802 29.922C66.1893 29.922 66.523 29.8777 66.803 29.789C67.083 29.7003 67.3117 29.5767 67.489 29.418C67.671 29.2547 67.804 29.0633 67.888 28.844C67.972 28.62 68.014 28.375 68.014 28.109C68.014 27.591 67.8297 27.1827 67.461 26.884C67.0923 26.5807 66.5393 26.429 65.802 26.429H63.632V29.922H65.802ZM63.632 22.04V25.463H65.424C65.8067 25.463 66.138 25.421 66.418 25.337C66.7027 25.253 66.936 25.1363 67.118 24.987C67.3047 24.8377 67.4423 24.658 67.531 24.448C67.6197 24.2333 67.664 24 67.664 23.748C67.664 23.1553 67.4867 22.7237 67.132 22.453C66.7773 22.1777 66.2267 22.04 65.48 22.04H63.632ZM65.48 20.969C66.096 20.969 66.6257 21.0297 67.069 21.151C67.517 21.2723 67.8833 21.445 68.168 21.669C68.4573 21.893 68.6697 22.1683 68.805 22.495C68.9403 22.817 69.008 23.181 69.008 23.587C69.008 23.8343 68.9683 24.0723 68.889 24.301C68.8143 24.525 68.7 24.735 68.546 24.931C68.392 25.127 68.196 25.3043 67.958 25.463C67.7247 25.617 67.4493 25.743 67.132 25.841C67.8693 25.981 68.4223 26.2447 68.791 26.632C69.1643 27.0147 69.351 27.5187 69.351 28.144C69.351 28.5687 69.2717 28.956 69.113 29.306C68.959 29.656 68.7303 29.957 68.427 30.209C68.1283 30.461 67.7597 30.657 67.321 30.797C66.8823 30.9323 66.383 31 65.823 31H62.281V20.969H65.48ZM76.7184 23.909V31H75.9764C75.7991 31 75.6871 30.9137 75.6404 30.741L75.5424 29.978C75.2344 30.3187 74.8891 30.594 74.5064 30.804C74.1237 31.0093 73.6851 31.112 73.1904 31.112C72.8031 31.112 72.4601 31.049 72.1614 30.923C71.8674 30.7923 71.6201 30.6103 71.4194 30.377C71.2187 30.1437 71.0671 29.8613 70.9644 29.53C70.8664 29.1987 70.8174 28.8323 70.8174 28.431V23.909H72.0634V28.431C72.0634 28.9677 72.1847 29.383 72.4274 29.677C72.6747 29.971 73.0504 30.118 73.5544 30.118C73.9231 30.118 74.2661 30.0317 74.5834 29.859C74.9054 29.6817 75.2017 29.439 75.4724 29.131V23.909H76.7184ZM82.824 25.078C82.768 25.1807 82.6817 25.232 82.565 25.232C82.495 25.232 82.4157 25.2063 82.327 25.155C82.2384 25.1037 82.1287 25.0477 81.998 24.987C81.872 24.9217 81.7204 24.8633 81.543 24.812C81.3657 24.756 81.1557 24.728 80.913 24.728C80.703 24.728 80.514 24.756 80.346 24.812C80.178 24.8633 80.0334 24.9357 79.912 25.029C79.7954 25.1223 79.7044 25.232 79.639 25.358C79.5784 25.4793 79.548 25.6123 79.548 25.757C79.548 25.939 79.5994 26.0907 79.702 26.212C79.8094 26.3333 79.9494 26.4383 80.122 26.527C80.2947 26.6157 80.4907 26.695 80.71 26.765C80.9294 26.8303 81.1534 26.9027 81.382 26.982C81.6154 27.0567 81.8417 27.1407 82.061 27.234C82.2804 27.3273 82.4764 27.444 82.649 27.584C82.8217 27.724 82.9594 27.8967 83.062 28.102C83.1694 28.3027 83.223 28.5453 83.223 28.83C83.223 29.1567 83.1647 29.46 83.048 29.74C82.9314 30.0153 82.7587 30.2557 82.53 30.461C82.3014 30.6617 82.0214 30.8203 81.69 30.937C81.3587 31.0537 80.976 31.112 80.542 31.112C80.0474 31.112 79.5994 31.0327 79.198 30.874C78.7967 30.7107 78.456 30.503 78.176 30.251L78.47 29.775C78.5074 29.7143 78.5517 29.6677 78.603 29.635C78.6544 29.6023 78.7197 29.586 78.799 29.586C78.883 29.586 78.9717 29.6187 79.065 29.684C79.1584 29.7493 79.2704 29.8217 79.401 29.901C79.5364 29.9803 79.6997 30.0527 79.891 30.118C80.0824 30.1833 80.3204 30.216 80.605 30.216C80.8477 30.216 81.06 30.1857 81.242 30.125C81.424 30.0597 81.5757 29.9733 81.697 29.866C81.8184 29.7587 81.907 29.635 81.963 29.495C82.0237 29.355 82.054 29.2057 82.054 29.047C82.054 28.851 82.0004 28.69 81.893 28.564C81.7904 28.4333 81.6527 28.3237 81.48 28.235C81.3074 28.1417 81.109 28.0623 80.885 27.997C80.6657 27.927 80.4394 27.8547 80.206 27.78C79.9774 27.7053 79.751 27.6213 79.527 27.528C79.3077 27.43 79.1117 27.3087 78.939 27.164C78.7664 27.0193 78.6264 26.842 78.519 26.632C78.4164 26.4173 78.365 26.1583 78.365 25.855C78.365 25.5843 78.421 25.3253 78.533 25.078C78.645 24.826 78.8084 24.6067 79.023 24.42C79.2377 24.2287 79.5014 24.077 79.814 23.965C80.1267 23.853 80.4837 23.797 80.885 23.797C81.3517 23.797 81.7694 23.8717 82.138 24.021C82.5114 24.1657 82.8334 24.3663 83.104 24.623L82.824 25.078ZM86.0667 23.909V31H84.8207V23.909H86.0667ZM86.3327 21.683C86.3327 21.8043 86.307 21.9187 86.2557 22.026C86.209 22.1287 86.1437 22.222 86.0597 22.306C85.9803 22.3853 85.8847 22.4483 85.7727 22.495C85.6653 22.5417 85.551 22.565 85.4297 22.565C85.3083 22.565 85.194 22.5417 85.0867 22.495C84.984 22.4483 84.893 22.3853 84.8137 22.306C84.7343 22.222 84.6713 22.1287 84.6247 22.026C84.578 21.9187 84.5547 21.8043 84.5547 21.683C84.5547 21.5617 84.578 21.4473 84.6247 21.34C84.6713 21.228 84.7343 21.1323 84.8137 21.053C84.893 20.969 84.984 20.9037 85.0867 20.857C85.194 20.8103 85.3083 20.787 85.4297 20.787C85.551 20.787 85.6653 20.8103 85.7727 20.857C85.8847 20.9037 85.9803 20.969 86.0597 21.053C86.1437 21.1323 86.209 21.228 86.2557 21.34C86.307 21.4473 86.3327 21.5617 86.3327 21.683ZM89.29 24.938C89.444 24.7653 89.6073 24.609 89.78 24.469C89.9526 24.329 90.1346 24.21 90.326 24.112C90.522 24.0093 90.7273 23.9323 90.942 23.881C91.1613 23.825 91.397 23.797 91.649 23.797C92.0363 23.797 92.377 23.8623 92.671 23.993C92.9696 24.119 93.217 24.301 93.413 24.539C93.6136 24.7723 93.7653 25.0547 93.868 25.386C93.9706 25.7173 94.022 26.0837 94.022 26.485V31H92.769V26.485C92.769 25.9483 92.6453 25.533 92.398 25.239C92.1553 24.9403 91.7843 24.791 91.285 24.791C90.9163 24.791 90.571 24.8797 90.249 25.057C89.9316 25.2343 89.6376 25.4747 89.367 25.778V31H88.114V23.909H88.863C89.0403 23.909 89.15 23.9953 89.192 24.168L89.29 24.938ZM100.667 26.681C100.667 26.3917 100.625 26.128 100.541 25.89C100.461 25.6473 100.342 25.4397 100.184 25.267C100.03 25.0897 99.8406 24.9543 99.6166 24.861C99.3926 24.763 99.1383 24.714 98.8536 24.714C98.2563 24.714 97.7826 24.889 97.4326 25.239C97.0873 25.5843 96.8726 26.065 96.7886 26.681H100.667ZM101.675 30.006C101.521 30.1927 101.336 30.356 101.122 30.496C100.907 30.6313 100.676 30.7433 100.429 30.832C100.186 30.9207 99.9339 30.986 99.6726 31.028C99.4113 31.0747 99.1523 31.098 98.8956 31.098C98.4056 31.098 97.9529 31.0163 97.5376 30.853C97.1269 30.685 96.7699 30.4423 96.4666 30.125C96.1679 29.803 95.9346 29.4063 95.7666 28.935C95.5986 28.4637 95.5146 27.9223 95.5146 27.311C95.5146 26.8163 95.5893 26.3543 95.7386 25.925C95.8926 25.4957 96.1119 25.1247 96.3966 24.812C96.6813 24.4947 97.0289 24.2473 97.4396 24.07C97.8503 23.888 98.3123 23.797 98.8256 23.797C99.2503 23.797 99.6423 23.8693 100.002 24.014C100.366 24.154 100.678 24.3593 100.94 24.63C101.206 24.896 101.413 25.2273 101.563 25.624C101.712 26.016 101.787 26.464 101.787 26.968C101.787 27.164 101.766 27.2947 101.724 27.36C101.682 27.4253 101.602 27.458 101.486 27.458H96.7466C96.7606 27.906 96.8213 28.2957 96.9286 28.627C97.0406 28.9583 97.1946 29.236 97.3906 29.46C97.5866 29.6793 97.8199 29.845 98.0906 29.957C98.3613 30.0643 98.6646 30.118 99.0006 30.118C99.3133 30.118 99.5816 30.083 99.8056 30.013C100.034 29.9383 100.23 29.859 100.394 29.775C100.557 29.691 100.692 29.614 100.8 29.544C100.912 29.4693 101.007 29.432 101.087 29.432C101.189 29.432 101.269 29.4717 101.325 29.551L101.675 30.006ZM107.447 25.078C107.391 25.1807 107.305 25.232 107.188 25.232C107.118 25.232 107.039 25.2063 106.95 25.155C106.861 25.1037 106.752 25.0477 106.621 24.987C106.495 24.9217 106.343 24.8633 106.166 24.812C105.989 24.756 105.779 24.728 105.536 24.728C105.326 24.728 105.137 24.756 104.969 24.812C104.801 24.8633 104.656 24.9357 104.535 25.029C104.418 25.1223 104.327 25.232 104.262 25.358C104.201 25.4793 104.171 25.6123 104.171 25.757C104.171 25.939 104.222 26.0907 104.325 26.212C104.432 26.3333 104.572 26.4383 104.745 26.527C104.918 26.6157 105.114 26.695 105.333 26.765C105.552 26.8303 105.776 26.9027 106.005 26.982C106.238 27.0567 106.465 27.1407 106.684 27.234C106.903 27.3273 107.099 27.444 107.272 27.584C107.445 27.724 107.582 27.8967 107.685 28.102C107.792 28.3027 107.846 28.5453 107.846 28.83C107.846 29.1567 107.788 29.46 107.671 29.74C107.554 30.0153 107.382 30.2557 107.153 30.461C106.924 30.6617 106.644 30.8203 106.313 30.937C105.982 31.0537 105.599 31.112 105.165 31.112C104.67 31.112 104.222 31.0327 103.821 30.874C103.42 30.7107 103.079 30.503 102.799 30.251L103.093 29.775C103.13 29.7143 103.175 29.6677 103.226 29.635C103.277 29.6023 103.343 29.586 103.422 29.586C103.506 29.586 103.595 29.6187 103.688 29.684C103.781 29.7493 103.893 29.8217 104.024 29.901C104.159 29.9803 104.323 30.0527 104.514 30.118C104.705 30.1833 104.943 30.216 105.228 30.216C105.471 30.216 105.683 30.1857 105.865 30.125C106.047 30.0597 106.199 29.9733 106.32 29.866C106.441 29.7587 106.53 29.635 106.586 29.495C106.647 29.355 106.677 29.2057 106.677 29.047C106.677 28.851 106.623 28.69 106.516 28.564C106.413 28.4333 106.276 28.3237 106.103 28.235C105.93 28.1417 105.732 28.0623 105.508 27.997C105.289 27.927 105.062 27.8547 104.829 27.78C104.6 27.7053 104.374 27.6213 104.15 27.528C103.931 27.43 103.735 27.3087 103.562 27.164C103.389 27.0193 103.249 26.842 103.142 26.632C103.039 26.4173 102.988 26.1583 102.988 25.855C102.988 25.5843 103.044 25.3253 103.156 25.078C103.268 24.826 103.431 24.6067 103.646 24.42C103.861 24.2287 104.124 24.077 104.437 23.965C104.75 23.853 105.107 23.797 105.508 23.797C105.975 23.797 106.392 23.8717 106.761 24.021C107.134 24.1657 107.456 24.3663 107.727 24.623L107.447 25.078ZM113.504 25.078C113.448 25.1807 113.361 25.232 113.245 25.232C113.175 25.232 113.095 25.2063 113.007 25.155C112.918 25.1037 112.808 25.0477 112.678 24.987C112.552 24.9217 112.4 24.8633 112.223 24.812C112.045 24.756 111.835 24.728 111.593 24.728C111.383 24.728 111.194 24.756 111.026 24.812C110.858 24.8633 110.713 24.9357 110.592 25.029C110.475 25.1223 110.384 25.232 110.319 25.358C110.258 25.4793 110.228 25.6123 110.228 25.757C110.228 25.939 110.279 26.0907 110.382 26.212C110.489 26.3333 110.629 26.4383 110.802 26.527C110.974 26.6157 111.17 26.695 111.39 26.765C111.609 26.8303 111.833 26.9027 112.062 26.982C112.295 27.0567 112.521 27.1407 112.741 27.234C112.96 27.3273 113.156 27.444 113.329 27.584C113.501 27.724 113.639 27.8967 113.742 28.102C113.849 28.3027 113.903 28.5453 113.903 28.83C113.903 29.1567 113.844 29.46 113.728 29.74C113.611 30.0153 113.438 30.2557 113.21 30.461C112.981 30.6617 112.701 30.8203 112.37 30.937C112.038 31.0537 111.656 31.112 111.222 31.112C110.727 31.112 110.279 31.0327 109.878 30.874C109.476 30.7107 109.136 30.503 108.856 30.251L109.15 29.775C109.187 29.7143 109.231 29.6677 109.283 29.635C109.334 29.6023 109.399 29.586 109.479 29.586C109.563 29.586 109.651 29.6187 109.745 29.684C109.838 29.7493 109.95 29.8217 110.081 29.901C110.216 29.9803 110.379 30.0527 110.571 30.118C110.762 30.1833 111 30.216 111.285 30.216C111.527 30.216 111.74 30.1857 111.922 30.125C112.104 30.0597 112.255 29.9733 112.377 29.866C112.498 29.7587 112.587 29.635 112.643 29.495C112.703 29.355 112.734 29.2057 112.734 29.047C112.734 28.851 112.68 28.69 112.573 28.564C112.47 28.4333 112.332 28.3237 112.16 28.235C111.987 28.1417 111.789 28.0623 111.565 27.997C111.345 27.927 111.119 27.8547 110.886 27.78C110.657 27.7053 110.431 27.6213 110.207 27.528C109.987 27.43 109.791 27.3087 109.619 27.164C109.446 27.0193 109.306 26.842 109.199 26.632C109.096 26.4173 109.045 26.1583 109.045 25.855C109.045 25.5843 109.101 25.3253 109.213 25.078C109.325 24.826 109.488 24.6067 109.703 24.42C109.917 24.2287 110.181 24.077 110.494 23.965C110.806 23.853 111.163 23.797 111.565 23.797C112.031 23.797 112.449 23.8717 112.818 24.021C113.191 24.1657 113.513 24.3663 113.784 24.623L113.504 25.078ZM126.956 20.969L122.868 31H121.65L117.562 20.969H118.647C118.768 20.969 118.866 20.9993 118.941 21.06C119.015 21.1207 119.071 21.1977 119.109 21.291L121.937 28.368C121.997 28.5267 122.056 28.6993 122.112 28.886C122.172 29.0727 122.226 29.2687 122.273 29.474C122.319 29.2687 122.368 29.0727 122.42 28.886C122.471 28.6993 122.527 28.5267 122.588 28.368L125.409 21.291C125.437 21.2117 125.49 21.1393 125.57 21.074C125.654 21.004 125.754 20.969 125.871 20.969H126.956ZM131.674 26.681C131.674 26.3917 131.632 26.128 131.548 25.89C131.469 25.6473 131.35 25.4397 131.191 25.267C131.037 25.0897 130.848 24.9543 130.624 24.861C130.4 24.763 130.146 24.714 129.861 24.714C129.264 24.714 128.79 24.889 128.44 25.239C128.095 25.5843 127.88 26.065 127.796 26.681H131.674ZM132.682 30.006C132.528 30.1927 132.344 30.356 132.129 30.496C131.915 30.6313 131.684 30.7433 131.436 30.832C131.194 30.9207 130.942 30.986 130.68 31.028C130.419 31.0747 130.16 31.098 129.903 31.098C129.413 31.098 128.961 31.0163 128.545 30.853C128.135 30.685 127.778 30.4423 127.474 30.125C127.176 29.803 126.942 29.4063 126.774 28.935C126.606 28.4637 126.522 27.9223 126.522 27.311C126.522 26.8163 126.597 26.3543 126.746 25.925C126.9 25.4957 127.12 25.1247 127.404 24.812C127.689 24.4947 128.037 24.2473 128.447 24.07C128.858 23.888 129.32 23.797 129.833 23.797C130.258 23.797 130.65 23.8693 131.009 24.014C131.373 24.154 131.686 24.3593 131.947 24.63C132.213 24.896 132.421 25.2273 132.57 25.624C132.72 26.016 132.794 26.464 132.794 26.968C132.794 27.164 132.773 27.2947 132.731 27.36C132.689 27.4253 132.61 27.458 132.493 27.458H127.754C127.768 27.906 127.829 28.2957 127.936 28.627C128.048 28.9583 128.202 29.236 128.398 29.46C128.594 29.6793 128.828 29.845 129.098 29.957C129.369 30.0643 129.672 30.118 130.008 30.118C130.321 30.118 130.589 30.083 130.813 30.013C131.042 29.9383 131.238 29.859 131.401 29.775C131.565 29.691 131.7 29.614 131.807 29.544C131.919 29.4693 132.015 29.432 132.094 29.432C132.197 29.432 132.276 29.4717 132.332 29.551L132.682 30.006ZM135.508 25.33C135.732 24.8447 136.007 24.4667 136.334 24.196C136.661 23.9207 137.06 23.783 137.531 23.783C137.68 23.783 137.823 23.7993 137.958 23.832C138.098 23.8647 138.222 23.916 138.329 23.986L138.238 24.917C138.21 25.0337 138.14 25.092 138.028 25.092C137.963 25.092 137.867 25.078 137.741 25.05C137.615 25.022 137.473 25.008 137.314 25.008C137.09 25.008 136.889 25.0407 136.712 25.106C136.539 25.1713 136.383 25.2693 136.243 25.4C136.108 25.526 135.984 25.6847 135.872 25.876C135.765 26.0627 135.667 26.2773 135.578 26.52V31H134.325V23.909H135.039C135.174 23.909 135.268 23.9347 135.319 23.986C135.37 24.0373 135.405 24.126 135.424 24.252L135.508 25.33ZM140.741 23.909V31H139.495V23.909H140.741ZM141.007 21.683C141.007 21.8043 140.981 21.9187 140.93 22.026C140.883 22.1287 140.818 22.222 140.734 22.306C140.654 22.3853 140.559 22.4483 140.447 22.495C140.339 22.5417 140.225 22.565 140.104 22.565C139.982 22.565 139.868 22.5417 139.761 22.495C139.658 22.4483 139.567 22.3853 139.488 22.306C139.408 22.222 139.345 22.1287 139.299 22.026C139.252 21.9187 139.229 21.8043 139.229 21.683C139.229 21.5617 139.252 21.4473 139.299 21.34C139.345 21.228 139.408 21.1323 139.488 21.053C139.567 20.969 139.658 20.9037 139.761 20.857C139.868 20.8103 139.982 20.787 140.104 20.787C140.225 20.787 140.339 20.8103 140.447 20.857C140.559 20.9037 140.654 20.969 140.734 21.053C140.818 21.1323 140.883 21.228 140.93 21.34C140.981 21.4473 141.007 21.5617 141.007 21.683ZM143.264 31V24.973L142.48 24.882C142.377 24.8587 142.295 24.8237 142.235 24.777C142.174 24.7257 142.144 24.6533 142.144 24.56V24.049H143.264V23.657C143.264 23.223 143.331 22.8263 143.467 22.467C143.602 22.103 143.805 21.7903 144.076 21.529C144.346 21.2677 144.682 21.0647 145.084 20.92C145.49 20.7753 145.959 20.703 146.491 20.703C146.668 20.703 146.85 20.7147 147.037 20.738C147.223 20.7613 147.384 20.7963 147.52 20.843L147.471 21.494C147.466 21.5407 147.447 21.5733 147.415 21.592C147.387 21.6107 147.347 21.6223 147.296 21.627C147.244 21.6317 147.179 21.634 147.1 21.634C147.025 21.6293 146.939 21.627 146.841 21.627C146.01 21.627 145.408 21.7997 145.035 22.145C144.661 22.4857 144.475 23.0013 144.475 23.692V24.049H148.759V31H147.506V24.952H144.51V31H143.264ZM155.735 25.169C155.697 25.2203 155.66 25.26 155.623 25.288C155.585 25.316 155.534 25.33 155.469 25.33C155.399 25.33 155.322 25.302 155.238 25.246C155.154 25.1853 155.049 25.12 154.923 25.05C154.801 24.98 154.65 24.917 154.468 24.861C154.29 24.8003 154.071 24.77 153.81 24.77C153.46 24.77 153.152 24.833 152.886 24.959C152.62 25.0803 152.396 25.2577 152.214 25.491C152.036 25.7243 151.901 26.0067 151.808 26.338C151.719 26.6693 151.675 27.0403 151.675 27.451C151.675 27.8803 151.724 28.263 151.822 28.599C151.92 28.9303 152.057 29.2103 152.235 29.439C152.417 29.663 152.634 29.8357 152.886 29.957C153.142 30.0737 153.429 30.132 153.747 30.132C154.05 30.132 154.3 30.097 154.496 30.027C154.692 29.9523 154.853 29.8707 154.979 29.782C155.109 29.6933 155.217 29.614 155.301 29.544C155.389 29.4693 155.476 29.432 155.56 29.432C155.662 29.432 155.742 29.4717 155.798 29.551L156.148 30.006C155.994 30.1973 155.819 30.3607 155.623 30.496C155.427 30.6313 155.214 30.7457 154.986 30.839C154.762 30.9277 154.526 30.993 154.279 31.035C154.031 31.077 153.779 31.098 153.523 31.098C153.079 31.098 152.666 31.0163 152.284 30.853C151.906 30.6897 151.577 30.454 151.297 30.146C151.017 29.8333 150.797 29.4507 150.639 28.998C150.48 28.5453 150.401 28.0297 150.401 27.451C150.401 26.9237 150.473 26.436 150.618 25.988C150.767 25.54 150.982 25.155 151.262 24.833C151.546 24.5063 151.894 24.252 152.305 24.07C152.72 23.888 153.196 23.797 153.733 23.797C154.232 23.797 154.671 23.8787 155.049 24.042C155.431 24.2007 155.77 24.427 156.064 24.721L155.735 25.169ZM161.328 27.808C160.754 27.8267 160.264 27.8733 159.858 27.948C159.457 28.018 159.128 28.1113 158.871 28.228C158.619 28.3447 158.435 28.4823 158.318 28.641C158.206 28.7997 158.15 28.977 158.15 29.173C158.15 29.3597 158.18 29.5207 158.241 29.656C158.302 29.7913 158.383 29.9033 158.486 29.992C158.593 30.076 158.717 30.139 158.857 30.181C159.002 30.2183 159.156 30.237 159.319 30.237C159.538 30.237 159.739 30.216 159.921 30.174C160.103 30.1273 160.273 30.062 160.432 29.978C160.595 29.894 160.749 29.7937 160.894 29.677C161.043 29.5603 161.188 29.4273 161.328 29.278V27.808ZM157.303 24.91C157.695 24.532 158.117 24.2497 158.57 24.063C159.023 23.8763 159.524 23.783 160.075 23.783C160.472 23.783 160.824 23.8483 161.132 23.979C161.44 24.1097 161.699 24.2917 161.909 24.525C162.119 24.7583 162.278 25.0407 162.385 25.372C162.492 25.7033 162.546 26.0673 162.546 26.464V31H161.993C161.872 31 161.778 30.9813 161.713 30.944C161.648 30.902 161.596 30.8227 161.559 30.706L161.419 30.034C161.232 30.2067 161.05 30.3607 160.873 30.496C160.696 30.6267 160.509 30.7387 160.313 30.832C160.117 30.9207 159.907 30.9883 159.683 31.035C159.464 31.0863 159.219 31.112 158.948 31.112C158.673 31.112 158.414 31.0747 158.171 31C157.928 30.9207 157.716 30.804 157.534 30.65C157.357 30.496 157.214 30.3023 157.107 30.069C157.004 29.831 156.953 29.551 156.953 29.229C156.953 28.949 157.03 28.6807 157.184 28.424C157.338 28.1627 157.588 27.9317 157.933 27.731C158.278 27.5303 158.729 27.367 159.284 27.241C159.839 27.1103 160.521 27.0357 161.328 27.017V26.464C161.328 25.9133 161.209 25.498 160.971 25.218C160.733 24.9333 160.385 24.791 159.928 24.791C159.62 24.791 159.361 24.8307 159.151 24.91C158.946 24.9847 158.766 25.071 158.612 25.169C158.463 25.2623 158.332 25.3487 158.22 25.428C158.113 25.5027 158.005 25.54 157.898 25.54C157.814 25.54 157.742 25.519 157.681 25.477C157.62 25.4303 157.569 25.3743 157.527 25.309L157.303 24.91ZM170.928 31H169.682V24.952H166.028V29.208C166.028 29.5067 166.101 29.7283 166.245 29.873C166.39 30.0177 166.577 30.09 166.805 30.09C166.936 30.09 167.048 30.0737 167.141 30.041C167.239 30.0037 167.323 29.964 167.393 29.922C167.463 29.88 167.522 29.8427 167.568 29.81C167.62 29.7727 167.664 29.754 167.701 29.754C167.767 29.754 167.825 29.7937 167.876 29.873L168.24 30.468C168.026 30.6687 167.767 30.8273 167.463 30.944C167.16 31.056 166.847 31.112 166.525 31.112C165.965 31.112 165.534 30.9557 165.23 30.643C164.932 30.3303 164.782 29.88 164.782 29.292V24.952H163.928C163.854 24.952 163.791 24.931 163.739 24.889C163.688 24.8423 163.662 24.7723 163.662 24.679V24.182L164.824 24.028L165.111 21.844C165.125 21.774 165.156 21.718 165.202 21.676C165.254 21.6293 165.319 21.606 165.398 21.606H166.028V24.049H170.928V31ZM171.236 21.634C171.236 21.7553 171.211 21.8697 171.159 21.977C171.113 22.0797 171.047 22.1707 170.963 22.25C170.884 22.3293 170.791 22.3923 170.683 22.439C170.576 22.4857 170.462 22.509 170.34 22.509C170.219 22.509 170.105 22.4857 169.997 22.439C169.895 22.3923 169.804 22.3293 169.724 22.25C169.645 22.1707 169.582 22.0797 169.535 21.977C169.489 21.8697 169.465 21.7553 169.465 21.634C169.465 21.5127 169.489 21.3983 169.535 21.291C169.582 21.179 169.645 21.0833 169.724 21.004C169.804 20.92 169.895 20.8547 169.997 20.808C170.105 20.7613 170.219 20.738 170.34 20.738C170.462 20.738 170.576 20.7613 170.683 20.808C170.791 20.8547 170.884 20.92 170.963 21.004C171.047 21.0833 171.113 21.179 171.159 21.291C171.211 21.3983 171.236 21.5127 171.236 21.634ZM175.964 23.797C176.482 23.797 176.949 23.8833 177.364 24.056C177.78 24.2287 178.134 24.4737 178.428 24.791C178.722 25.1083 178.946 25.4933 179.1 25.946C179.259 26.394 179.338 26.8957 179.338 27.451C179.338 28.011 179.259 28.515 179.1 28.963C178.946 29.411 178.722 29.7937 178.428 30.111C178.134 30.4283 177.78 30.6733 177.364 30.846C176.949 31.014 176.482 31.098 175.964 31.098C175.442 31.098 174.97 31.014 174.55 30.846C174.135 30.6733 173.78 30.4283 173.486 30.111C173.192 29.7937 172.966 29.411 172.807 28.963C172.653 28.515 172.576 28.011 172.576 27.451C172.576 26.8957 172.653 26.394 172.807 25.946C172.966 25.4933 173.192 25.1083 173.486 24.791C173.78 24.4737 174.135 24.2287 174.55 24.056C174.97 23.8833 175.442 23.797 175.964 23.797ZM175.964 30.125C176.664 30.125 177.187 29.8917 177.532 29.425C177.878 28.9537 178.05 28.298 178.05 27.458C178.05 26.6133 177.878 25.9553 177.532 25.484C177.187 25.0127 176.664 24.777 175.964 24.777C175.61 24.777 175.299 24.8377 175.033 24.959C174.772 25.0803 174.553 25.2553 174.375 25.484C174.203 25.7127 174.072 25.995 173.983 26.331C173.899 26.6623 173.857 27.038 173.857 27.458C173.857 28.298 174.03 28.9537 174.375 29.425C174.725 29.8917 175.255 30.125 175.964 30.125ZM182.095 24.938C182.249 24.7653 182.412 24.609 182.585 24.469C182.757 24.329 182.939 24.21 183.131 24.112C183.327 24.0093 183.532 23.9323 183.747 23.881C183.966 23.825 184.202 23.797 184.454 23.797C184.841 23.797 185.182 23.8623 185.476 23.993C185.774 24.119 186.022 24.301 186.218 24.539C186.418 24.7723 186.57 25.0547 186.673 25.386C186.775 25.7173 186.827 26.0837 186.827 26.485V31H185.574V26.485C185.574 25.9483 185.45 25.533 185.203 25.239C184.96 24.9403 184.589 24.791 184.09 24.791C183.721 24.791 183.376 24.8797 183.054 25.057C182.736 25.2343 182.442 25.4747 182.172 25.778V31H180.919V23.909H181.668C181.845 23.909 181.955 23.9953 181.997 24.168L182.095 24.938Z" fill="#232323"/>',
|
|
' <path d="M0 3C0 1.34315 1.34315 0 3 0H50V50H3C1.34315 50 0 48.6569 0 47V3Z" fill="#F7BF5D"/>',
|
|
' <circle cx="25" cy="25" r="12" stroke="white" stroke-width="2"/>',
|
|
' </svg></a>',
|
|
]),
|
|
$subject->getVerificationButton('business')
|
|
);
|
|
}
|
|
|
|
/**
|
|
* @test
|
|
*/
|
|
public function canReturnVerificationButtonForCertification()
|
|
{
|
|
$settings = $this->prophesize(Settings::class);
|
|
$settings->getMySkillDisplayUrl()->willReturn('https://my.example.com/verify');
|
|
|
|
$subject = new Link($settings->reveal(), 10);
|
|
|
|
static::assertSame(
|
|
implode(PHP_EOL, [
|
|
' <a href="https://my.example.com/verify/skillup/skill/10/0/1" target="_blank">',
|
|
' <svg width="222" height="50" viewBox="0 0 222 50" fill="none" xmlns="http://www.w3.org/2000/svg">',
|
|
' <rect width="222" height="50" rx="3" fill="#F2F2F2"/>',
|
|
' <path d="M69.323 28.928C69.3977 28.928 69.463 28.9583 69.519 29.019L70.058 29.6C69.6473 30.076 69.148 30.447 68.56 30.713C67.9767 30.979 67.2697 31.112 66.439 31.112C65.7203 31.112 65.067 30.9883 64.479 30.741C63.891 30.489 63.3893 30.139 62.974 29.691C62.5587 29.2383 62.2367 28.697 62.008 28.067C61.7793 27.437 61.665 26.744 61.665 25.988C61.665 25.232 61.784 24.539 62.022 23.909C62.26 23.279 62.5937 22.7377 63.023 22.285C63.457 21.8323 63.975 21.4823 64.577 21.235C65.179 20.983 65.844 20.857 66.572 20.857C67.286 20.857 67.916 20.9713 68.462 21.2C69.008 21.4287 69.4887 21.739 69.904 22.131L69.456 22.754C69.428 22.8007 69.3907 22.8403 69.344 22.873C69.302 22.901 69.2437 22.915 69.169 22.915C69.085 22.915 68.9823 22.8707 68.861 22.782C68.7397 22.6887 68.581 22.586 68.385 22.474C68.189 22.362 67.944 22.2617 67.65 22.173C67.356 22.0797 66.9943 22.033 66.565 22.033C66.047 22.033 65.5733 22.124 65.144 22.306C64.7147 22.4833 64.3437 22.7423 64.031 23.083C63.723 23.4237 63.4827 23.839 63.31 24.329C63.1373 24.819 63.051 25.372 63.051 25.988C63.051 26.6133 63.1397 27.171 63.317 27.661C63.499 28.151 63.744 28.5663 64.052 28.907C64.3647 29.243 64.731 29.4997 65.151 29.677C65.5757 29.8543 66.033 29.943 66.523 29.943C66.8217 29.943 67.09 29.9267 67.328 29.894C67.5707 29.8567 67.7923 29.8007 67.993 29.726C68.1983 29.6513 68.3873 29.558 68.56 29.446C68.7373 29.3293 68.9123 29.1917 69.085 29.033C69.1643 28.963 69.2437 28.928 69.323 28.928ZM75.9478 26.681C75.9478 26.3917 75.9058 26.128 75.8218 25.89C75.7425 25.6473 75.6235 25.4397 75.4648 25.267C75.3108 25.0897 75.1218 24.9543 74.8978 24.861C74.6738 24.763 74.4195 24.714 74.1348 24.714C73.5375 24.714 73.0638 24.889 72.7138 25.239C72.3685 25.5843 72.1538 26.065 72.0698 26.681H75.9478ZM76.9558 30.006C76.8018 30.1927 76.6175 30.356 76.4028 30.496C76.1882 30.6313 75.9572 30.7433 75.7098 30.832C75.4672 30.9207 75.2152 30.986 74.9538 31.028C74.6925 31.0747 74.4335 31.098 74.1768 31.098C73.6868 31.098 73.2342 31.0163 72.8188 30.853C72.4082 30.685 72.0512 30.4423 71.7478 30.125C71.4492 29.803 71.2158 29.4063 71.0478 28.935C70.8798 28.4637 70.7958 27.9223 70.7958 27.311C70.7958 26.8163 70.8705 26.3543 71.0198 25.925C71.1738 25.4957 71.3932 25.1247 71.6778 24.812C71.9625 24.4947 72.3102 24.2473 72.7208 24.07C73.1315 23.888 73.5935 23.797 74.1068 23.797C74.5315 23.797 74.9235 23.8693 75.2828 24.014C75.6468 24.154 75.9595 24.3593 76.2208 24.63C76.4868 24.896 76.6945 25.2273 76.8438 25.624C76.9932 26.016 77.0678 26.464 77.0678 26.968C77.0678 27.164 77.0468 27.2947 77.0048 27.36C76.9628 27.4253 76.8835 27.458 76.7668 27.458H72.0278C72.0418 27.906 72.1025 28.2957 72.2098 28.627C72.3218 28.9583 72.4758 29.236 72.6718 29.46C72.8678 29.6793 73.1012 29.845 73.3718 29.957C73.6425 30.0643 73.9458 30.118 74.2818 30.118C74.5945 30.118 74.8628 30.083 75.0868 30.013C75.3155 29.9383 75.5115 29.859 75.6748 29.775C75.8382 29.691 75.9735 29.614 76.0808 29.544C76.1928 29.4693 76.2885 29.432 76.3678 29.432C76.4705 29.432 76.5498 29.4717 76.6058 29.551L76.9558 30.006ZM79.7813 25.33C80.0053 24.8447 80.2807 24.4667 80.6073 24.196C80.934 23.9207 81.333 23.783 81.8043 23.783C81.9537 23.783 82.096 23.7993 82.2313 23.832C82.3713 23.8647 82.495 23.916 82.6023 23.986L82.5113 24.917C82.4833 25.0337 82.4133 25.092 82.3013 25.092C82.236 25.092 82.1403 25.078 82.0143 25.05C81.8883 25.022 81.746 25.008 81.5873 25.008C81.3633 25.008 81.1627 25.0407 80.9853 25.106C80.8127 25.1713 80.6563 25.2693 80.5163 25.4C80.381 25.526 80.2573 25.6847 80.1453 25.876C80.038 26.0627 79.94 26.2773 79.8513 26.52V31H78.5983V23.909H79.3123C79.4477 23.909 79.541 23.9347 79.5923 23.986C79.6437 24.0373 79.6787 24.126 79.6973 24.252L79.7813 25.33ZM90.2779 31H89.0319V24.952H85.3779V29.208C85.3779 29.5067 85.4503 29.7283 85.5949 29.873C85.7396 30.0177 85.9263 30.09 86.1549 30.09C86.2856 30.09 86.3976 30.0737 86.4909 30.041C86.5889 30.0037 86.6729 29.964 86.7429 29.922C86.8129 29.88 86.8713 29.8427 86.9179 29.81C86.9693 29.7727 87.0136 29.754 87.0509 29.754C87.1163 29.754 87.1746 29.7937 87.2259 29.873L87.5899 30.468C87.3753 30.6687 87.1163 30.8273 86.8129 30.944C86.5096 31.056 86.1969 31.112 85.8749 31.112C85.3149 31.112 84.8833 30.9557 84.5799 30.643C84.2813 30.3303 84.1319 29.88 84.1319 29.292V24.952H83.2779C83.2033 24.952 83.1403 24.931 83.0889 24.889C83.0376 24.8423 83.0119 24.7723 83.0119 24.679V24.182L84.1739 24.028L84.4609 21.844C84.4749 21.774 84.5053 21.718 84.5519 21.676C84.6033 21.6293 84.6686 21.606 84.7479 21.606H85.3779V24.049H90.2779V31ZM90.5859 21.634C90.5859 21.7553 90.5603 21.8697 90.5089 21.977C90.4623 22.0797 90.3969 22.1707 90.3129 22.25C90.2336 22.3293 90.1403 22.3923 90.0329 22.439C89.9256 22.4857 89.8113 22.509 89.6899 22.509C89.5686 22.509 89.4543 22.4857 89.3469 22.439C89.2443 22.3923 89.1533 22.3293 89.0739 22.25C88.9946 22.1707 88.9316 22.0797 88.8849 21.977C88.8383 21.8697 88.8149 21.7553 88.8149 21.634C88.8149 21.5127 88.8383 21.3983 88.8849 21.291C88.9316 21.179 88.9946 21.0833 89.0739 21.004C89.1533 20.92 89.2443 20.8547 89.3469 20.808C89.4543 20.7613 89.5686 20.738 89.6899 20.738C89.8113 20.738 89.9256 20.7613 90.0329 20.808C90.1403 20.8547 90.2336 20.92 90.3129 21.004C90.3969 21.0833 90.4623 21.179 90.5089 21.291C90.5603 21.3983 90.5859 21.5127 90.5859 21.634ZM92.8009 31V24.973L92.0169 24.882C91.9142 24.8587 91.8326 24.8237 91.7719 24.777C91.7112 24.7257 91.6809 24.6533 91.6809 24.56V24.049H92.8009V23.657C92.8009 23.223 92.8686 22.8263 93.0039 22.467C93.1392 22.103 93.3422 21.7903 93.6129 21.529C93.8836 21.2677 94.2196 21.0647 94.6209 20.92C95.0269 20.7753 95.4959 20.703 96.0279 20.703C96.2052 20.703 96.3872 20.7147 96.5739 20.738C96.7606 20.7613 96.9216 20.7963 97.0569 20.843L97.0079 21.494C97.0032 21.5407 96.9846 21.5733 96.9519 21.592C96.9239 21.6107 96.8842 21.6223 96.8329 21.627C96.7816 21.6317 96.7162 21.634 96.6369 21.634C96.5622 21.6293 96.4759 21.627 96.3779 21.627C95.5472 21.627 94.9452 21.7997 94.5719 22.145C94.1986 22.4857 94.0119 23.0013 94.0119 23.692V24.049H98.2959V31H97.0429V24.952H94.0469V31H92.8009ZM105.272 25.169C105.234 25.2203 105.197 25.26 105.16 25.288C105.122 25.316 105.071 25.33 105.006 25.33C104.936 25.33 104.859 25.302 104.775 25.246C104.691 25.1853 104.586 25.12 104.46 25.05C104.338 24.98 104.187 24.917 104.005 24.861C103.827 24.8003 103.608 24.77 103.347 24.77C102.997 24.77 102.689 24.833 102.423 24.959C102.157 25.0803 101.933 25.2577 101.751 25.491C101.573 25.7243 101.438 26.0067 101.345 26.338C101.256 26.6693 101.212 27.0403 101.212 27.451C101.212 27.8803 101.261 28.263 101.359 28.599C101.457 28.9303 101.594 29.2103 101.772 29.439C101.954 29.663 102.171 29.8357 102.423 29.957C102.679 30.0737 102.966 30.132 103.284 30.132C103.587 30.132 103.837 30.097 104.033 30.027C104.229 29.9523 104.39 29.8707 104.516 29.782C104.646 29.6933 104.754 29.614 104.838 29.544C104.926 29.4693 105.013 29.432 105.097 29.432C105.199 29.432 105.279 29.4717 105.335 29.551L105.685 30.006C105.531 30.1973 105.356 30.3607 105.16 30.496C104.964 30.6313 104.751 30.7457 104.523 30.839C104.299 30.9277 104.063 30.993 103.816 31.035C103.568 31.077 103.316 31.098 103.06 31.098C102.616 31.098 102.203 31.0163 101.821 30.853C101.443 30.6897 101.114 30.454 100.834 30.146C100.554 29.8333 100.334 29.4507 100.176 28.998C100.017 28.5453 99.9376 28.0297 99.9376 27.451C99.9376 26.9237 100.01 26.436 100.155 25.988C100.304 25.54 100.519 25.155 100.799 24.833C101.083 24.5063 101.431 24.252 101.842 24.07C102.257 23.888 102.733 23.797 103.27 23.797C103.769 23.797 104.208 23.8787 104.586 24.042C104.968 24.2007 105.307 24.427 105.601 24.721L105.272 25.169ZM110.865 27.808C110.291 27.8267 109.801 27.8733 109.395 27.948C108.994 28.018 108.665 28.1113 108.408 28.228C108.156 28.3447 107.972 28.4823 107.855 28.641C107.743 28.7997 107.687 28.977 107.687 29.173C107.687 29.3597 107.717 29.5207 107.778 29.656C107.839 29.7913 107.92 29.9033 108.023 29.992C108.13 30.076 108.254 30.139 108.394 30.181C108.539 30.2183 108.693 30.237 108.856 30.237C109.075 30.237 109.276 30.216 109.458 30.174C109.64 30.1273 109.81 30.062 109.969 29.978C110.132 29.894 110.286 29.7937 110.431 29.677C110.58 29.5603 110.725 29.4273 110.865 29.278V27.808ZM106.84 24.91C107.232 24.532 107.654 24.2497 108.107 24.063C108.56 23.8763 109.061 23.783 109.612 23.783C110.009 23.783 110.361 23.8483 110.669 23.979C110.977 24.1097 111.236 24.2917 111.446 24.525C111.656 24.7583 111.815 25.0407 111.922 25.372C112.029 25.7033 112.083 26.0673 112.083 26.464V31H111.53C111.409 31 111.315 30.9813 111.25 30.944C111.185 30.902 111.133 30.8227 111.096 30.706L110.956 30.034C110.769 30.2067 110.587 30.3607 110.41 30.496C110.233 30.6267 110.046 30.7387 109.85 30.832C109.654 30.9207 109.444 30.9883 109.22 31.035C109.001 31.0863 108.756 31.112 108.485 31.112C108.21 31.112 107.951 31.0747 107.708 31C107.465 30.9207 107.253 30.804 107.071 30.65C106.894 30.496 106.751 30.3023 106.644 30.069C106.541 29.831 106.49 29.551 106.49 29.229C106.49 28.949 106.567 28.6807 106.721 28.424C106.875 28.1627 107.125 27.9317 107.47 27.731C107.815 27.5303 108.266 27.367 108.821 27.241C109.376 27.1103 110.058 27.0357 110.865 27.017V26.464C110.865 25.9133 110.746 25.498 110.508 25.218C110.27 24.9333 109.922 24.791 109.465 24.791C109.157 24.791 108.898 24.8307 108.688 24.91C108.483 24.9847 108.303 25.071 108.149 25.169C108 25.2623 107.869 25.3487 107.757 25.428C107.65 25.5027 107.542 25.54 107.435 25.54C107.351 25.54 107.279 25.519 107.218 25.477C107.157 25.4303 107.106 25.3743 107.064 25.309L106.84 24.91ZM120.465 31H119.219V24.952H115.565V29.208C115.565 29.5067 115.638 29.7283 115.782 29.873C115.927 30.0177 116.114 30.09 116.342 30.09C116.473 30.09 116.585 30.0737 116.678 30.041C116.776 30.0037 116.86 29.964 116.93 29.922C117 29.88 117.059 29.8427 117.105 29.81C117.157 29.7727 117.201 29.754 117.238 29.754C117.304 29.754 117.362 29.7937 117.413 29.873L117.777 30.468C117.563 30.6687 117.304 30.8273 117 30.944C116.697 31.056 116.384 31.112 116.062 31.112C115.502 31.112 115.071 30.9557 114.767 30.643C114.469 30.3303 114.319 29.88 114.319 29.292V24.952H113.465C113.391 24.952 113.328 24.931 113.276 24.889C113.225 24.8423 113.199 24.7723 113.199 24.679V24.182L114.361 24.028L114.648 21.844C114.662 21.774 114.693 21.718 114.739 21.676C114.791 21.6293 114.856 21.606 114.935 21.606H115.565V24.049H120.465V31ZM120.773 21.634C120.773 21.7553 120.748 21.8697 120.696 21.977C120.65 22.0797 120.584 22.1707 120.5 22.25C120.421 22.3293 120.328 22.3923 120.22 22.439C120.113 22.4857 119.999 22.509 119.877 22.509C119.756 22.509 119.642 22.4857 119.534 22.439C119.432 22.3923 119.341 22.3293 119.261 22.25C119.182 22.1707 119.119 22.0797 119.072 21.977C119.026 21.8697 119.002 21.7553 119.002 21.634C119.002 21.5127 119.026 21.3983 119.072 21.291C119.119 21.179 119.182 21.0833 119.261 21.004C119.341 20.92 119.432 20.8547 119.534 20.808C119.642 20.7613 119.756 20.738 119.877 20.738C119.999 20.738 120.113 20.7613 120.22 20.808C120.328 20.8547 120.421 20.92 120.5 21.004C120.584 21.0833 120.65 21.179 120.696 21.291C120.748 21.3983 120.773 21.5127 120.773 21.634ZM125.501 23.797C126.019 23.797 126.486 23.8833 126.901 24.056C127.317 24.2287 127.671 24.4737 127.965 24.791C128.259 25.1083 128.483 25.4933 128.637 25.946C128.796 26.394 128.875 26.8957 128.875 27.451C128.875 28.011 128.796 28.515 128.637 28.963C128.483 29.411 128.259 29.7937 127.965 30.111C127.671 30.4283 127.317 30.6733 126.901 30.846C126.486 31.014 126.019 31.098 125.501 31.098C124.979 31.098 124.507 31.014 124.087 30.846C123.672 30.6733 123.317 30.4283 123.023 30.111C122.729 29.7937 122.503 29.411 122.344 28.963C122.19 28.515 122.113 28.011 122.113 27.451C122.113 26.8957 122.19 26.394 122.344 25.946C122.503 25.4933 122.729 25.1083 123.023 24.791C123.317 24.4737 123.672 24.2287 124.087 24.056C124.507 23.8833 124.979 23.797 125.501 23.797ZM125.501 30.125C126.201 30.125 126.724 29.8917 127.069 29.425C127.415 28.9537 127.587 28.298 127.587 27.458C127.587 26.6133 127.415 25.9553 127.069 25.484C126.724 25.0127 126.201 24.777 125.501 24.777C125.147 24.777 124.836 24.8377 124.57 24.959C124.309 25.0803 124.09 25.2553 123.912 25.484C123.74 25.7127 123.609 25.995 123.52 26.331C123.436 26.6623 123.394 27.038 123.394 27.458C123.394 28.298 123.567 28.9537 123.912 29.425C124.262 29.8917 124.792 30.125 125.501 30.125ZM131.632 24.938C131.786 24.7653 131.949 24.609 132.122 24.469C132.294 24.329 132.476 24.21 132.668 24.112C132.864 24.0093 133.069 23.9323 133.284 23.881C133.503 23.825 133.739 23.797 133.991 23.797C134.378 23.797 134.719 23.8623 135.013 23.993C135.311 24.119 135.559 24.301 135.755 24.539C135.955 24.7723 136.107 25.0547 136.21 25.386C136.312 25.7173 136.364 26.0837 136.364 26.485V31H135.111V26.485C135.111 25.9483 134.987 25.533 134.74 25.239C134.497 24.9403 134.126 24.791 133.627 24.791C133.258 24.791 132.913 24.8797 132.591 25.057C132.273 25.2343 131.979 25.4747 131.709 25.778V31H130.456V23.909H131.205C131.382 23.909 131.492 23.9953 131.534 24.168L131.632 24.938Z" fill="#232323"/>',
|
|
' <path d="M0 3C0 1.34315 1.34315 0 3 0H50V50H3C1.34315 50 0 48.6569 0 47V3Z" fill="#E04C5D"/>',
|
|
' <circle cx="25" cy="25" r="12" stroke="white" stroke-width="2"/>',
|
|
' </svg></a>',
|
|
]),
|
|
$subject->getVerificationButton('certification')
|
|
);
|
|
}
|
|
|
|
/**
|
|
* @test
|
|
*/
|
|
public function canReturnVerificationButtonForSelf()
|
|
{
|
|
$settings = $this->prophesize(Settings::class);
|
|
$settings->getMySkillDisplayUrl()->willReturn('https://my.example.com/verify');
|
|
|
|
$subject = new Link($settings->reveal(), 10);
|
|
|
|
static::assertSame(
|
|
implode(PHP_EOL, [
|
|
' <a href="https://my.example.com/verify/skillup/skill/10/0/3" target="_blank">',
|
|
' <svg width="222" height="50" viewBox="0 0 222 50" fill="none" xmlns="http://www.w3.org/2000/svg">',
|
|
' <rect width="222" height="50" rx="3" fill="#F2F2F2"/>',
|
|
' <path d="M0 3C0 1.34315 1.34315 0 3 0H50V50H3C1.34315 50 0 48.6569 0 47V3Z" fill="#32BE8C"/>',
|
|
' <circle cx="25" cy="25" r="12" fill="#32BE8C" stroke="white" stroke-width="2"/>',
|
|
' <path d="M67.412 22.537C67.37 22.607 67.3233 22.6607 67.272 22.698C67.2253 22.7307 67.167 22.747 67.097 22.747C67.0177 22.747 66.9243 22.7073 66.817 22.628C66.7097 22.5487 66.5743 22.4623 66.411 22.369C66.2523 22.271 66.0587 22.1823 65.83 22.103C65.606 22.0237 65.333 21.984 65.011 21.984C64.7077 21.984 64.4393 22.026 64.206 22.11C63.9773 22.1893 63.7837 22.299 63.625 22.439C63.471 22.579 63.3543 22.7447 63.275 22.936C63.1957 23.1227 63.156 23.3257 63.156 23.545C63.156 23.825 63.2237 24.0583 63.359 24.245C63.499 24.427 63.681 24.5833 63.905 24.714C64.1337 24.8447 64.3903 24.959 64.675 25.057C64.9643 25.1503 65.2583 25.2483 65.557 25.351C65.8603 25.4537 66.1543 25.5703 66.439 25.701C66.7283 25.827 66.985 25.988 67.209 26.184C67.4377 26.38 67.6197 26.6203 67.755 26.905C67.895 27.1897 67.965 27.5397 67.965 27.955C67.965 28.3937 67.8903 28.8067 67.741 29.194C67.5917 29.5767 67.3723 29.9103 67.083 30.195C66.7983 30.4797 66.446 30.7037 66.026 30.867C65.6107 31.0303 65.137 31.112 64.605 31.112C63.9517 31.112 63.359 30.9953 62.827 30.762C62.295 30.524 61.84 30.2043 61.462 29.803L61.854 29.159C61.8913 29.1077 61.9357 29.0657 61.987 29.033C62.043 28.9957 62.1037 28.977 62.169 28.977C62.2297 28.977 62.2973 29.0027 62.372 29.054C62.4513 29.1007 62.54 29.1613 62.638 29.236C62.736 29.3107 62.848 29.3923 62.974 29.481C63.1 29.5697 63.2423 29.6513 63.401 29.726C63.5643 29.8007 63.7487 29.8637 63.954 29.915C64.1593 29.9617 64.3903 29.985 64.647 29.985C64.969 29.985 65.256 29.9407 65.508 29.852C65.76 29.7633 65.9723 29.6397 66.145 29.481C66.3223 29.3177 66.4577 29.124 66.551 28.9C66.6443 28.676 66.691 28.4263 66.691 28.151C66.691 27.8477 66.621 27.6003 66.481 27.409C66.3457 27.213 66.166 27.0497 65.942 26.919C65.718 26.7883 65.4613 26.6787 65.172 26.59C64.8827 26.4967 64.5887 26.4033 64.29 26.31C63.9913 26.212 63.6973 26.1 63.408 25.974C63.1187 25.848 62.862 25.6847 62.638 25.484C62.414 25.2833 62.232 25.0337 62.092 24.735C61.9567 24.4317 61.889 24.0583 61.889 23.615C61.889 23.2603 61.9567 22.9173 62.092 22.586C62.232 22.2547 62.4327 21.9607 62.694 21.704C62.96 21.4473 63.2843 21.242 63.667 21.088C64.0543 20.934 64.4977 20.857 64.997 20.857C65.557 20.857 66.0657 20.9457 66.523 21.123C66.985 21.3003 67.391 21.557 67.741 21.893L67.412 22.537ZM74.2935 26.681C74.2935 26.3917 74.2515 26.128 74.1675 25.89C74.0882 25.6473 73.9692 25.4397 73.8105 25.267C73.6565 25.0897 73.4675 24.9543 73.2435 24.861C73.0195 24.763 72.7652 24.714 72.4805 24.714C71.8832 24.714 71.4095 24.889 71.0595 25.239C70.7142 25.5843 70.4995 26.065 70.4155 26.681H74.2935ZM75.3015 30.006C75.1475 30.1927 74.9632 30.356 74.7485 30.496C74.5339 30.6313 74.3029 30.7433 74.0555 30.832C73.8129 30.9207 73.5609 30.986 73.2995 31.028C73.0382 31.0747 72.7792 31.098 72.5225 31.098C72.0325 31.098 71.5799 31.0163 71.1645 30.853C70.7539 30.685 70.3969 30.4423 70.0935 30.125C69.7949 29.803 69.5615 29.4063 69.3935 28.935C69.2255 28.4637 69.1415 27.9223 69.1415 27.311C69.1415 26.8163 69.2162 26.3543 69.3655 25.925C69.5195 25.4957 69.7389 25.1247 70.0235 24.812C70.3082 24.4947 70.6559 24.2473 71.0665 24.07C71.4772 23.888 71.9392 23.797 72.4525 23.797C72.8772 23.797 73.2692 23.8693 73.6285 24.014C73.9925 24.154 74.3052 24.3593 74.5665 24.63C74.8325 24.896 75.0402 25.2273 75.1895 25.624C75.3389 26.016 75.4135 26.464 75.4135 26.968C75.4135 27.164 75.3925 27.2947 75.3505 27.36C75.3085 27.4253 75.2292 27.458 75.1125 27.458H70.3735C70.3875 27.906 70.4482 28.2957 70.5555 28.627C70.6675 28.9583 70.8215 29.236 71.0175 29.46C71.2135 29.6793 71.4469 29.845 71.7175 29.957C71.9882 30.0643 72.2915 30.118 72.6275 30.118C72.9402 30.118 73.2085 30.083 73.4325 30.013C73.6612 29.9383 73.8572 29.859 74.0205 29.775C74.1839 29.691 74.3192 29.614 74.4265 29.544C74.5385 29.4693 74.6342 29.432 74.7135 29.432C74.8162 29.432 74.8955 29.4717 74.9515 29.551L75.3015 30.006ZM78.232 20.689V31H76.986V20.689H78.232ZM80.7146 31V24.973L79.9306 24.882C79.8326 24.8587 79.751 24.8237 79.6856 24.777C79.625 24.7257 79.5946 24.6533 79.5946 24.56V24.049H80.7146V23.363C80.7146 22.957 80.7706 22.5977 80.8826 22.285C80.9993 21.9677 81.1626 21.7017 81.3726 21.487C81.5873 21.2677 81.844 21.102 82.1426 20.99C82.4413 20.878 82.7773 20.822 83.1506 20.822C83.468 20.822 83.7596 20.8687 84.0256 20.962L83.9976 21.585C83.9883 21.697 83.9253 21.7577 83.8086 21.767C83.6966 21.7763 83.545 21.781 83.3536 21.781C83.139 21.781 82.943 21.809 82.7656 21.865C82.593 21.921 82.4436 22.012 82.3176 22.138C82.1916 22.264 82.0936 22.4297 82.0236 22.635C81.9583 22.8403 81.9256 23.0947 81.9256 23.398V24.049H83.9696V24.952H81.9676V31H80.7146ZM96.4262 20.969L92.3382 31H91.1202L87.0322 20.969H88.1172C88.2386 20.969 88.3366 20.9993 88.4112 21.06C88.4859 21.1207 88.5419 21.1977 88.5792 21.291L91.4072 28.368C91.4679 28.5267 91.5262 28.6993 91.5822 28.886C91.6429 29.0727 91.6966 29.2687 91.7432 29.474C91.7899 29.2687 91.8389 29.0727 91.8902 28.886C91.9416 28.6993 91.9976 28.5267 92.0582 28.368L94.8792 21.291C94.9072 21.2117 94.9609 21.1393 95.0402 21.074C95.1242 21.004 95.2246 20.969 95.3412 20.969H96.4262ZM101.145 26.681C101.145 26.3917 101.103 26.128 101.019 25.89C100.94 25.6473 100.821 25.4397 100.662 25.267C100.508 25.0897 100.319 24.9543 100.095 24.861C99.8711 24.763 99.6168 24.714 99.3321 24.714C98.7348 24.714 98.2611 24.889 97.9111 25.239C97.5658 25.5843 97.3511 26.065 97.2671 26.681H101.145ZM102.153 30.006C101.999 30.1927 101.815 30.356 101.6 30.496C101.385 30.6313 101.154 30.7433 100.907 30.832C100.664 30.9207 100.412 30.986 100.151 31.028C99.8898 31.0747 99.6308 31.098 99.3741 31.098C98.8841 31.098 98.4314 31.0163 98.0161 30.853C97.6054 30.685 97.2484 30.4423 96.9451 30.125C96.6464 29.803 96.4131 29.4063 96.2451 28.935C96.0771 28.4637 95.9931 27.9223 95.9931 27.311C95.9931 26.8163 96.0678 26.3543 96.2171 25.925C96.3711 25.4957 96.5904 25.1247 96.8751 24.812C97.1598 24.4947 97.5074 24.2473 97.9181 24.07C98.3288 23.888 98.7908 23.797 99.3041 23.797C99.7288 23.797 100.121 23.8693 100.48 24.014C100.844 24.154 101.157 24.3593 101.418 24.63C101.684 24.896 101.892 25.2273 102.041 25.624C102.19 26.016 102.265 26.464 102.265 26.968C102.265 27.164 102.244 27.2947 102.202 27.36C102.16 27.4253 102.081 27.458 101.964 27.458H97.2251C97.2391 27.906 97.2998 28.2957 97.4071 28.627C97.5191 28.9583 97.6731 29.236 97.8691 29.46C98.0651 29.6793 98.2984 29.845 98.5691 29.957C98.8398 30.0643 99.1431 30.118 99.4791 30.118C99.7918 30.118 100.06 30.083 100.284 30.013C100.513 29.9383 100.709 29.859 100.872 29.775C101.035 29.691 101.171 29.614 101.278 29.544C101.39 29.4693 101.486 29.432 101.565 29.432C101.668 29.432 101.747 29.4717 101.803 29.551L102.153 30.006ZM104.979 25.33C105.203 24.8447 105.478 24.4667 105.805 24.196C106.131 23.9207 106.53 23.783 107.002 23.783C107.151 23.783 107.293 23.7993 107.429 23.832C107.569 23.8647 107.692 23.916 107.8 23.986L107.709 24.917C107.681 25.0337 107.611 25.092 107.499 25.092C107.433 25.092 107.338 25.078 107.212 25.05C107.086 25.022 106.943 25.008 106.785 25.008C106.561 25.008 106.36 25.0407 106.183 25.106C106.01 25.1713 105.854 25.2693 105.714 25.4C105.578 25.526 105.455 25.6847 105.343 25.876C105.235 26.0627 105.137 26.2773 105.049 26.52V31H103.796V23.909H104.51C104.645 23.909 104.738 23.9347 104.79 23.986C104.841 24.0373 104.876 24.126 104.895 24.252L104.979 25.33ZM110.211 23.909V31H108.965V23.909H110.211ZM110.477 21.683C110.477 21.8043 110.452 21.9187 110.4 22.026C110.354 22.1287 110.288 22.222 110.204 22.306C110.125 22.3853 110.029 22.4483 109.917 22.495C109.81 22.5417 109.696 22.565 109.574 22.565C109.453 22.565 109.339 22.5417 109.231 22.495C109.129 22.4483 109.038 22.3853 108.958 22.306C108.879 22.222 108.816 22.1287 108.769 22.026C108.723 21.9187 108.699 21.8043 108.699 21.683C108.699 21.5617 108.723 21.4473 108.769 21.34C108.816 21.228 108.879 21.1323 108.958 21.053C109.038 20.969 109.129 20.9037 109.231 20.857C109.339 20.8103 109.453 20.787 109.574 20.787C109.696 20.787 109.81 20.8103 109.917 20.857C110.029 20.9037 110.125 20.969 110.204 21.053C110.288 21.1323 110.354 21.228 110.4 21.34C110.452 21.4473 110.477 21.5617 110.477 21.683ZM112.734 31V24.973L111.95 24.882C111.848 24.8587 111.766 24.8237 111.705 24.777C111.645 24.7257 111.614 24.6533 111.614 24.56V24.049H112.734V23.657C112.734 23.223 112.802 22.8263 112.937 22.467C113.073 22.103 113.276 21.7903 113.546 21.529C113.817 21.2677 114.153 21.0647 114.554 20.92C114.96 20.7753 115.429 20.703 115.961 20.703C116.139 20.703 116.321 20.7147 116.507 20.738C116.694 20.7613 116.855 20.7963 116.99 20.843L116.941 21.494C116.937 21.5407 116.918 21.5733 116.885 21.592C116.857 21.6107 116.818 21.6223 116.766 21.627C116.715 21.6317 116.65 21.634 116.57 21.634C116.496 21.6293 116.409 21.627 116.311 21.627C115.481 21.627 114.879 21.7997 114.505 22.145C114.132 22.4857 113.945 23.0013 113.945 23.692V24.049H118.229V31H116.976V24.952H113.98V31H112.734ZM125.205 25.169C125.168 25.2203 125.131 25.26 125.093 25.288C125.056 25.316 125.005 25.33 124.939 25.33C124.869 25.33 124.792 25.302 124.708 25.246C124.624 25.1853 124.519 25.12 124.393 25.05C124.272 24.98 124.12 24.917 123.938 24.861C123.761 24.8003 123.542 24.77 123.28 24.77C122.93 24.77 122.622 24.833 122.356 24.959C122.09 25.0803 121.866 25.2577 121.684 25.491C121.507 25.7243 121.372 26.0067 121.278 26.338C121.19 26.6693 121.145 27.0403 121.145 27.451C121.145 27.8803 121.194 28.263 121.292 28.599C121.39 28.9303 121.528 29.2103 121.705 29.439C121.887 29.663 122.104 29.8357 122.356 29.957C122.613 30.0737 122.9 30.132 123.217 30.132C123.521 30.132 123.77 30.097 123.966 30.027C124.162 29.9523 124.323 29.8707 124.449 29.782C124.58 29.6933 124.687 29.614 124.771 29.544C124.86 29.4693 124.946 29.432 125.03 29.432C125.133 29.432 125.212 29.4717 125.268 29.551L125.618 30.006C125.464 30.1973 125.289 30.3607 125.093 30.496C124.897 30.6313 124.685 30.7457 124.456 30.839C124.232 30.9277 123.997 30.993 123.749 31.035C123.502 31.077 123.25 31.098 122.993 31.098C122.55 31.098 122.137 31.0163 121.754 30.853C121.376 30.6897 121.047 30.454 120.767 30.146C120.487 29.8333 120.268 29.4507 120.109 28.998C119.951 28.5453 119.871 28.0297 119.871 27.451C119.871 26.9237 119.944 26.436 120.088 25.988C120.238 25.54 120.452 25.155 120.732 24.833C121.017 24.5063 121.365 24.252 121.775 24.07C122.191 23.888 122.667 23.797 123.203 23.797C123.703 23.797 124.141 23.8787 124.519 24.042C124.902 24.2007 125.24 24.427 125.534 24.721L125.205 25.169ZM130.799 27.808C130.225 27.8267 129.735 27.8733 129.329 27.948C128.927 28.018 128.598 28.1113 128.342 28.228C128.09 28.3447 127.905 28.4823 127.789 28.641C127.677 28.7997 127.621 28.977 127.621 29.173C127.621 29.3597 127.651 29.5207 127.712 29.656C127.772 29.7913 127.854 29.9033 127.957 29.992C128.064 30.076 128.188 30.139 128.328 30.181C128.472 30.2183 128.626 30.237 128.79 30.237C129.009 30.237 129.21 30.216 129.392 30.174C129.574 30.1273 129.744 30.062 129.903 29.978C130.066 29.894 130.22 29.7937 130.365 29.677C130.514 29.5603 130.659 29.4273 130.799 29.278V27.808ZM126.774 24.91C127.166 24.532 127.588 24.2497 128.041 24.063C128.493 23.8763 128.995 23.783 129.546 23.783C129.942 23.783 130.295 23.8483 130.603 23.979C130.911 24.1097 131.17 24.2917 131.38 24.525C131.59 24.7583 131.748 25.0407 131.856 25.372C131.963 25.7033 132.017 26.0673 132.017 26.464V31H131.464C131.342 31 131.249 30.9813 131.184 30.944C131.118 30.902 131.067 30.8227 131.03 30.706L130.89 30.034C130.703 30.2067 130.521 30.3607 130.344 30.496C130.166 30.6267 129.98 30.7387 129.784 30.832C129.588 30.9207 129.378 30.9883 129.154 31.035C128.934 31.0863 128.689 31.112 128.419 31.112C128.143 31.112 127.884 31.0747 127.642 31C127.399 30.9207 127.187 30.804 127.005 30.65C126.827 30.496 126.685 30.3023 126.578 30.069C126.475 29.831 126.424 29.551 126.424 29.229C126.424 28.949 126.501 28.6807 126.655 28.424C126.809 28.1627 127.058 27.9317 127.404 27.731C127.749 27.5303 128.199 27.367 128.755 27.241C129.31 27.1103 129.991 27.0357 130.799 27.017V26.464C130.799 25.9133 130.68 25.498 130.442 25.218C130.204 24.9333 129.856 24.791 129.399 24.791C129.091 24.791 128.832 24.8307 128.622 24.91C128.416 24.9847 128.237 25.071 128.083 25.169C127.933 25.2623 127.803 25.3487 127.691 25.428C127.583 25.5027 127.476 25.54 127.369 25.54C127.285 25.54 127.212 25.519 127.152 25.477C127.091 25.4303 127.04 25.3743 126.998 25.309L126.774 24.91ZM140.399 31H139.153V24.952H135.499V29.208C135.499 29.5067 135.571 29.7283 135.716 29.873C135.861 30.0177 136.047 30.09 136.276 30.09C136.407 30.09 136.519 30.0737 136.612 30.041C136.71 30.0037 136.794 29.964 136.864 29.922C136.934 29.88 136.992 29.8427 137.039 29.81C137.09 29.7727 137.135 29.754 137.172 29.754C137.237 29.754 137.296 29.7937 137.347 29.873L137.711 30.468C137.496 30.6687 137.237 30.8273 136.934 30.944C136.631 31.056 136.318 31.112 135.996 31.112C135.436 31.112 135.004 30.9557 134.701 30.643C134.402 30.3303 134.253 29.88 134.253 29.292V24.952H133.399C133.324 24.952 133.261 24.931 133.21 24.889C133.159 24.8423 133.133 24.7723 133.133 24.679V24.182L134.295 24.028L134.582 21.844C134.596 21.774 134.626 21.718 134.673 21.676C134.724 21.6293 134.79 21.606 134.869 21.606H135.499V24.049H140.399V31ZM140.707 21.634C140.707 21.7553 140.681 21.8697 140.63 21.977C140.583 22.0797 140.518 22.1707 140.434 22.25C140.355 22.3293 140.261 22.3923 140.154 22.439C140.047 22.4857 139.932 22.509 139.811 22.509C139.69 22.509 139.575 22.4857 139.468 22.439C139.365 22.3923 139.274 22.3293 139.195 22.25C139.116 22.1707 139.053 22.0797 139.006 21.977C138.959 21.8697 138.936 21.7553 138.936 21.634C138.936 21.5127 138.959 21.3983 139.006 21.291C139.053 21.179 139.116 21.0833 139.195 21.004C139.274 20.92 139.365 20.8547 139.468 20.808C139.575 20.7613 139.69 20.738 139.811 20.738C139.932 20.738 140.047 20.7613 140.154 20.808C140.261 20.8547 140.355 20.92 140.434 21.004C140.518 21.0833 140.583 21.179 140.63 21.291C140.681 21.3983 140.707 21.5127 140.707 21.634ZM145.435 23.797C145.953 23.797 146.42 23.8833 146.835 24.056C147.25 24.2287 147.605 24.4737 147.899 24.791C148.193 25.1083 148.417 25.4933 148.571 25.946C148.73 26.394 148.809 26.8957 148.809 27.451C148.809 28.011 148.73 28.515 148.571 28.963C148.417 29.411 148.193 29.7937 147.899 30.111C147.605 30.4283 147.25 30.6733 146.835 30.846C146.42 31.014 145.953 31.098 145.435 31.098C144.912 31.098 144.441 31.014 144.021 30.846C143.606 30.6733 143.251 30.4283 142.957 30.111C142.663 29.7937 142.437 29.411 142.278 28.963C142.124 28.515 142.047 28.011 142.047 27.451C142.047 26.8957 142.124 26.394 142.278 25.946C142.437 25.4933 142.663 25.1083 142.957 24.791C143.251 24.4737 143.606 24.2287 144.021 24.056C144.441 23.8833 144.912 23.797 145.435 23.797ZM145.435 30.125C146.135 30.125 146.658 29.8917 147.003 29.425C147.348 28.9537 147.521 28.298 147.521 27.458C147.521 26.6133 147.348 25.9553 147.003 25.484C146.658 25.0127 146.135 24.777 145.435 24.777C145.08 24.777 144.77 24.8377 144.504 24.959C144.243 25.0803 144.023 25.2553 143.846 25.484C143.673 25.7127 143.543 25.995 143.454 26.331C143.37 26.6623 143.328 27.038 143.328 27.458C143.328 28.298 143.501 28.9537 143.846 29.425C144.196 29.8917 144.726 30.125 145.435 30.125ZM151.565 24.938C151.719 24.7653 151.883 24.609 152.055 24.469C152.228 24.329 152.41 24.21 152.601 24.112C152.797 24.0093 153.003 23.9323 153.217 23.881C153.437 23.825 153.672 23.797 153.924 23.797C154.312 23.797 154.652 23.8623 154.946 23.993C155.245 24.119 155.492 24.301 155.688 24.539C155.889 24.7723 156.041 25.0547 156.143 25.386C156.246 25.7173 156.297 26.0837 156.297 26.485V31H155.044V26.485C155.044 25.9483 154.921 25.533 154.673 25.239C154.431 24.9403 154.06 24.791 153.56 24.791C153.192 24.791 152.846 24.8797 152.524 25.057C152.207 25.2343 151.913 25.4747 151.642 25.778V31H150.389V23.909H151.138C151.316 23.909 151.425 23.9953 151.467 24.168L151.565 24.938Z" fill="#232323"/>',
|
|
' </svg></a>',
|
|
]),
|
|
$subject->getVerificationButton('self')
|
|
);
|
|
}
|
|
}
|