Index: tests/phpunit/tests/multisite/site.php
===================================================================
--- tests/phpunit/tests/multisite/site.php	(revision 34255)
+++ tests/phpunit/tests/multisite/site.php	(working copy)
@@ -1184,6 +1184,29 @@
 		$blogaddress = get_blogaddress_by_id( 42 );
 		$this->assertEquals( '', $blogaddress );
 	}
+
+	/**
+	 * @ticket 33620, test to make sure a site will be created as https if its a subdomain install and the sireurl is https
+	 */
+	function test_create_https_blog(){
+		// test only works on subdomain installs
+		$this->assertEquals( SUBDOMAIN_INSTALL, false );
+
+		//get the current siteurl
+		$existing_siteurl = get_site_option( 'siteurl' );
+
+		// set the site url to https
+		update_site_option( 'siteurl', str_replace( "http://", "https://", $existing_siteurl ) );
+
+		//make a new blog
+		$blog_id = $this->factory->blog->create();
+
+		//get the new blogs details
+		$details = get_blog_details( $blog_id );
+
+		//test if the blog home is https
+		$this->assertContains( 'https', $details->siteurl );
+	}
 }
 
 endif;
