@@ -61,12 +61,23 @@ public function it_will_return_the_same_svg_with_a_numeric_or_string_part(): voi
61
61
/** @test */
62
62
public function it_will_return_the_same_svg_with_a_case_insensitive_theme (): void
63
63
{
64
- $ svgLowerTheme = ($ this ->multiavatar )('foobar ' , ['ver ' => ['theme ' => 'a ' ]]);
65
- $ svgUpperTheme = ($ this ->multiavatar )('foobar ' , ['ver ' => ['theme ' => 'A ' ]]);
64
+ $ svgLowerTheme = ($ this ->multiavatar )('foobar ' , ['ver ' => ['part ' => 5 , ' theme ' => 'A ' ]]);
65
+ $ svgUpperTheme = ($ this ->multiavatar )('foobar ' , ['ver ' => ['part ' => ' 05 ' , ' theme ' => 'a ' ]]);
66
66
67
67
self ::assertSame ($ svgLowerTheme , $ svgUpperTheme );
68
68
}
69
69
70
+ /** @test */
71
+ public function it_will_return_the_same_svg_if_the_ver_is_fully_setting_independently_of_the_avatar_id_value (): void
72
+ {
73
+ $ options = ['ver ' => ['theme ' => 'A ' , 'part ' => 3 ]];
74
+
75
+ $ svgWithFixedVer1 = ($ this ->multiavatar )('first-avatar ' , $ options );
76
+ $ svgWithFixedVer2 = ($ this ->multiavatar )('second-avatar ' , $ options );
77
+
78
+ self ::assertSame ($ svgWithFixedVer1 , $ svgWithFixedVer2 );
79
+ }
80
+
70
81
/** @test */
71
82
public function it_will_return_the_same_svg_with_sans_env_truthy_values (): void
72
83
{
@@ -98,6 +109,15 @@ public function it_will_return_different_svg_with_sans_env_values(): void
98
109
self ::assertNotSame ($ svgSansEnvFalse , $ svgSansEnvTrue );
99
110
}
100
111
112
+ /** @test */
113
+ public function it_will_return_the_same_svg_with_avatar_id_numeric_or_string (): void
114
+ {
115
+ $ svgAvatarIdIsString = ($ this ->multiavatar )('1234567890 ' );
116
+ $ svgAvatarIdIsNumeric = ($ this ->multiavatar )(1234567890 );
117
+
118
+ self ::assertSame ($ svgAvatarIdIsNumeric , $ svgAvatarIdIsString );
119
+ }
120
+
101
121
/**
102
122
* @test
103
123
* @dataProvider getEmptySvgProvider
0 commit comments