Skip to content

Commit da76ff2

Browse files
Mario Aguiarravichdev
authored andcommitted
Add basic php test
1 parent f5bf936 commit da76ff2

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

plugin/assets/fonts/icons.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

plugin/tests/phpunit/php/updates/class-test-update-fonts.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,4 +168,13 @@ public function mock_font_request( $preempt, $args, $url ) /* phpcs:ignore WordP
168168
public function mock_file_json() {
169169
return json_encode( json_decode( '{"ABeeZee":{"variants":["regular","italic"],"category":"sans-serif"}}' ), JSON_PRETTY_PRINT ); /* phpcs:ignore */
170170
}
171+
172+
/**
173+
* Test get_api_slug
174+
*/
175+
public function test_get_api_slug() {
176+
$result = $this->api_force_http->get_api_slug();
177+
178+
$this->assertEquals( 'google_fonts_api_key', $result );
179+
}
171180
}

0 commit comments

Comments
 (0)