File tree Expand file tree Collapse file tree
tests/phpunit/unit-tests/Api/V1/Pdf/Settings Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -74,11 +74,7 @@ class TestApiPdfSettings extends WP_UnitTestCase {
7474 /**
7575 * @since 5.2
7676 */
77- public function setUp () {
78-
79- // $this->template_font_location = 'tmp/gravityforms/fonts/';
80-
81- // $this->data = GPDFAPI::get_data_class();
77+ public function setUp () {
8278 $ this ->class = new Api_Pdf_Settings ( GPDFAPI ::get_log_class (), GPDFAPI ::get_misc_class (), $ this ->template_font_location );
8379 $ this ->class ->init ();
8480
@@ -96,7 +92,6 @@ public function test_rest_api_license_endpoints() {
9692 $ this ->assertArrayHasKey ( '/gravity-pdf/v1/pdf/settings ' , $ wp_rest_server ->get_routes () );
9793 }
9894
99-
10095 /**
10196 * @since 5.2
10297 */
@@ -107,7 +102,6 @@ public function test_create_public_tmp_directory_test_file() {
107102
108103 /* Test unable to write to directory */
109104 // $this->assertFileExists( $this->template_font_location . $this->tmp_test_file );
110-
111105 }
112106
113107 /**
@@ -124,7 +118,6 @@ public function test_check_tmp_pdf_security( ) {
124118 $ this ->assertSame ( 400 , $ response ->get_error_data ( 'wp_remote_get_response ' )['status ' ] );
125119
126120 // Test able to read the content of file
127-
128121 }
129122
130123}
You can’t perform that action at this time.
0 commit comments