Skip to content

Commit

Permalink
Add initial test
Browse files Browse the repository at this point in the history
  • Loading branch information
Khadreal committed Nov 1, 2024
1 parent e74f03d commit 9f5690d
Showing 1 changed file with 31 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<?php

namespace WP_Rocket\Tests\Unit\inc\Engine\Media\Fonts\Controller\Filesystem;


use Brain\Monkey\Functions;
use WP_Rocket\Engine\Media\Fonts\Controller\Filesystem;
use WP_Rocket\Tests\Unit\FilesystemTestCase;

/**
* Test class covering \WP_Rocket\Engine\Media\Fonts\Controller\Filesystem::write_font_css
*
* @group FontOptimisation
*/
class test_WriteFontCss extends FilesystemTestCase {
protected function setUp(): void {
parent::setUp();

Functions\when( 'get_current_blog_id' )->justReturn( 1 );
}


/**
* @dataProvider providerTestData
*/
public function testShouldReturnExpected( $url, $file ) {
$filesystem = new Filesystem( $this->filesystem->getUrl( 'wp-content/cache/wp-rocket/fonts/' ) );


}
}

0 comments on commit 9f5690d

Please sign in to comment.