diff --git a/tests/phpunit/tests/image/functions.php b/tests/phpunit/tests/image/functions.php
index f36fe6f..8dd34cc 100644
--- a/tests/phpunit/tests/image/functions.php
+++ b/tests/phpunit/tests/image/functions.php
@@ -434,6 +434,69 @@ class Tests_Image_Functions extends WP_UnitTestCase {
 	}
 
 	/**
+	 * Crop setting for PDF.
+	 *
+	 * @ticket 43226
+	 */
+	public function test_crop_setting_for_pdf() {
+
+		if ( ! wp_image_editor_supports( array( 'mime_type' => 'application/pdf' ) ) ) {
+			$this->markTestSkipped( 'Rendering PDFs is not supported on this system.' );
+		}
+
+		update_option( 'medium_crop', 1 );
+
+		$orig_file = DIR_TESTDATA . '/images/wordpress-gsoc-flyer.pdf';
+		$test_file = '/tmp/wordpress-gsoc-flyer.pdf';
+		copy( $orig_file, $test_file );
+
+		$attachment_id = $this->factory->attachment->create_object(
+			$test_file, 0, array(
+				'post_mime_type' => 'application/pdf',
+			)
+		);
+
+		$this->assertNotEmpty( $attachment_id );
+
+		$expected = array(
+			'sizes' => array(
+				'thumbnail' => array(
+					'file'      => 'wordpress-gsoc-flyer-pdf-116x150.jpg',
+					'width'     => 116,
+					'height'    => 150,
+					'mime-type' => 'image/jpeg',
+				),
+				'medium'    => array(
+					'file'      => 'wordpress-gsoc-flyer-pdf-232x300.jpg',
+					'width'     => 300,
+					'height'    => 300,
+					'mime-type' => 'image/jpeg',
+				),
+				'large'     => array(
+					'file'      => 'wordpress-gsoc-flyer-pdf-791x1024.jpg',
+					'width'     => 791,
+					'height'    => 1024,
+					'mime-type' => 'image/jpeg',
+				),
+				'full'      => array(
+					'file'      => 'wordpress-gsoc-flyer-pdf.jpg',
+					'width'     => 1088,
+					'height'    => 1408,
+					'mime-type' => 'image/jpeg',
+				),
+			),
+		);
+
+		$metadata = wp_generate_attachment_metadata( $attachment_id, $test_file );
+		$this->assertSame( $expected, $metadata );
+
+		unlink( $test_file );
+		foreach ( $metadata['sizes'] as $size ) {
+			unlink( '/tmp/' . $size['file'] );
+		}
+	}
+
+	/**
 	 * @ticket 39231
 	 */
 	public function test_fallback_intermediate_image_sizes() {
