Skip to content

Commit

Permalink
Format php.
Browse files Browse the repository at this point in the history
  • Loading branch information
jffng committed Nov 27, 2023
1 parent 9f65a16 commit 84ba302
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class Tests_Fonts_WpFontsFamilyUtils_FormatFontFamily extends WP_UnitTestCase {
* @dataProvider data_should_format_font_family
*
* @param string $font_family Font family.
* @param string $expected Expected family.
* @param string $expected Expected family.
*/
public function test_should_format_font_family( $font_family, $expected ) {
$this->assertSame(
Expand All @@ -35,8 +35,8 @@ public function test_should_format_font_family( $font_family, $expected ) {
public function data_should_format_font_family() {
return array(
'data' => array(
'font_family' => "Rock 3D , Open Sans, ,serif",
'expected' => "'Rock 3D', 'Open Sans', , serif",
'font_family' => 'Rock 3D , Open Sans, ,serif',
'expected' => "'Rock 3D', 'Open Sans', , serif",
),
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,7 @@ public function data_install_fonts() {
'fontFamily' => 'Montserrat',
'slug' => 'montserrat',
'name' => 'Montserrat',
'badKey' => 'badValue',
'fontFace' => array(
array(
'fontFamily' => 'Montserrat',
Expand Down

0 comments on commit 84ba302

Please sign in to comment.