Changed mime type map to deal with the reality that certain file types have multiple extensions and/or multiple mime types, as well as constants supporting all of the data. Created new functions using the updated mime type map to resolve mime types and extensions. Updated various items around the project that determine mime/extension to take advantage of the new functions.
		
			
				
	
	
		
			17 lines
		
	
	
		
			517 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			517 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
| <?php declare(strict_types=1);
 | |
| class RSSCommentsTest extends ShimmiePHPUnitTestCase
 | |
| {
 | |
|     public function testImageFeed()
 | |
|     {
 | |
|         global $user;
 | |
|         $this->log_in_as_user();
 | |
|         $image_id = $this->post_image("tests/pbx_screenshot.jpg", "pbx");
 | |
|         send_event(new CommentPostingEvent($image_id, $user, "ASDFASDF"));
 | |
| 
 | |
|         $this->get_page('rss/comments');
 | |
|         //$this->assert_mime(MIME_TYPE_RSS);
 | |
|         $this->assert_no_content("Exception");
 | |
|         $this->assert_content("ASDFASDF");
 | |
|     }
 | |
| }
 |