Initial Drupal 11 with DDEV setup
This commit is contained in:
		
							
								
								
									
										33
									
								
								web/core/tests/Drupal/FunctionalTests/FolderTest.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										33
									
								
								web/core/tests/Drupal/FunctionalTests/FolderTest.php
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,33 @@
 | 
			
		||||
<?php
 | 
			
		||||
 | 
			
		||||
declare(strict_types=1);
 | 
			
		||||
 | 
			
		||||
namespace Drupal\FunctionalTests;
 | 
			
		||||
 | 
			
		||||
use Drupal\Tests\BrowserTestBase;
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * Tests BrowserTestBase's treatment of hook_install() during setup.
 | 
			
		||||
 *
 | 
			
		||||
 * Image module is used for test.
 | 
			
		||||
 *
 | 
			
		||||
 * @group browsertestbase
 | 
			
		||||
 */
 | 
			
		||||
class FolderTest extends BrowserTestBase {
 | 
			
		||||
 | 
			
		||||
  /**
 | 
			
		||||
   * {@inheritdoc}
 | 
			
		||||
   */
 | 
			
		||||
  protected static $modules = ['image'];
 | 
			
		||||
 | 
			
		||||
  /**
 | 
			
		||||
   * {@inheritdoc}
 | 
			
		||||
   */
 | 
			
		||||
  protected $defaultTheme = 'stark';
 | 
			
		||||
 | 
			
		||||
  public function testFolderSetup(): void {
 | 
			
		||||
    $directory = 'public://styles';
 | 
			
		||||
    $this->assertTrue(\Drupal::service('file_system')->prepareDirectory($directory, FALSE), 'Directory created.');
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user