mirror of
				https://github.com/pelican-dev/panel.git
				synced 2025-11-04 10:46:51 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			41 lines
		
	
	
		
			710 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			41 lines
		
	
	
		
			710 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
<?php
 | 
						|
 | 
						|
namespace Tests;
 | 
						|
 | 
						|
use Cake\Chronos\Chronos;
 | 
						|
use Illuminate\Foundation\Testing\TestCase as BaseTestCase;
 | 
						|
 | 
						|
abstract class TestCase extends BaseTestCase
 | 
						|
{
 | 
						|
    use CreatesApplication;
 | 
						|
 | 
						|
    /**
 | 
						|
     * Setup tests.
 | 
						|
     */
 | 
						|
    public function setUp(): void
 | 
						|
    {
 | 
						|
        parent::setUp();
 | 
						|
 | 
						|
        $this->setKnownUuidFactory();
 | 
						|
    }
 | 
						|
 | 
						|
    /**
 | 
						|
     * Tear down tests.
 | 
						|
     */
 | 
						|
    protected function tearDown(): void
 | 
						|
    {
 | 
						|
        parent::tearDown();
 | 
						|
 | 
						|
        Chronos::setTestNow();
 | 
						|
    }
 | 
						|
 | 
						|
    /**
 | 
						|
     * Handles the known UUID handling in certain unit tests. Use the "KnownUuid" trait
 | 
						|
     * in order to enable this ability.
 | 
						|
     */
 | 
						|
    public function setKnownUuidFactory()
 | 
						|
    {
 | 
						|
        // do nothing
 | 
						|
    }
 | 
						|
}
 |