Skip to content

Commit 088d187

Browse files
cleaned up file
1 parent 0f9114c commit 088d187

1 file changed

Lines changed: 1 addition & 8 deletions

File tree

tests/phpunit/unit-tests/Api/V1/Pdf/Settings/Test_Api_Pdf_Settings.php

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)