Skip to content

Commit dab05d2

Browse files
committed
Add tests for autocolor
1 parent 5da3093 commit dab05d2

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

tests/ParameterTest.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,4 +98,17 @@ public function can_set_auto_font()
9898

9999
$this->assertNotTrue($avatar->getAutoFont());
100100
}
101+
102+
public function can_set_background_color()
103+
{
104+
$avatar = new InitialAvatar();
105+
106+
$avatar->autoColor();
107+
108+
$this->assertEquals('#eaf042', $avatar->getBackgroundColor());
109+
110+
$this->assertEquals('#000000', $avatar->getColor());
111+
}
112+
113+
101114
}

0 commit comments

Comments
 (0)