Skip to content
Closed
Changes from 1 commit
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
5fc7dfa
Copy files from core patch
aristath Nov 11, 2021
6078f5e
load the webfonts API
aristath Nov 11, 2021
8b855a7
add missing textdomain
aristath Nov 11, 2021
c3115f2
CS & path fixes
aristath Nov 11, 2021
4f359b4
Should be an instance of WP_Webfonts_Controller
aristath Nov 11, 2021
2739d60
Register webfonts from theme.json (#35625)
aristath Nov 11, 2021
9fdc963
Update theme.json implementation
aristath Nov 11, 2021
93e8f37
Switches test fixtures back to native.
hellofromtonya Nov 12, 2021
df31267
remove unused vars
aristath Nov 12, 2021
bb45144
minify fontface css for local & bugfix (missing ;)
aristath Nov 12, 2021
070ff83
require some xtra files
aristath Nov 12, 2021
ab87605
Now prints minified styles
aristath Nov 12, 2021
0e0cb47
style does not include type
aristath Nov 12, 2021
3f08abb
Split function & add some caching
aristath Nov 19, 2021
5fc6322
function was renamed to _wp_to_kebab_case
aristath Nov 19, 2021
01135e3
create function to add missing webfonts to global styles
aristath Nov 19, 2021
87c279c
Add registered webfonts to the font-family picker
aristath Nov 22, 2021
a3ceb6f
Testing for notices is not yet implemented in Gutenberg
aristath Nov 22, 2021
3341803
Move hook to wp_loaded - fixes some failing tests
aristath Nov 22, 2021
9c8d7ac
Add webfonts global styles
aristath Nov 22, 2021
c2bbba5
Add wp_block_styles_preset_vars filter
aristath Nov 22, 2021
9b65a90
simplify implementation
aristath Nov 22, 2021
9416b07
rename function
aristath Nov 22, 2021
944ba98
Use empty instead of isset
aristath Nov 22, 2021
2c458ac
combine & simplify
aristath Nov 22, 2021
22671d5
Update phpunit/webfonts-api/class-wp-webfonts-schema-validator-test.php
aristath Nov 23, 2021
5a83bc4
Revert "Testing for notices is not yet implemented in Gutenberg"
aristath Nov 23, 2021
4861efd
use expectException
aristath Nov 23, 2021
f5e8ce9
should be strict
aristath Nov 23, 2021
5907d76
Can't check for error messages
aristath Nov 23, 2021
db3c8a1
Remove the theme_json_data filter
aristath Nov 24, 2021
cb32b30
revert strict
aristath Nov 24, 2021
56dcf19
pluck out the google-fonts provider.
aristath Nov 24, 2021
71e9a30
resolve rebase error
aristath Dec 2, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update phpunit/webfonts-api/class-wp-webfonts-schema-validator-test.php
Co-authored-by: Tonya Mork <[email protected]>
  • Loading branch information
aristath and Tonya Mork committed Dec 2, 2021
commit 22671d5d0ae681c0cfc708fa2f3228a8a1573b04
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,8 @@ public function data_is_valid_schema_with_valid() {
*/
public function test_is_valid_schema_with_invalid( array $webfont, $expected_message ) { // phpcs:ignore VariableAnalysis

/*
$this->expectNotice();
$this->expectNoticeMessage( $expected_message );
*/
$this->expectException( Notice::class );
$this->expectException( $expected_message );

$this->assertFalse( self::$validator->is_valid_schema( $webfont ) );
}
Expand Down