mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-11-04 05:27:33 -05:00 
			
		
		
		
	* minor fix for payment notifications * styleci * Limit Self updating to self hosters only : * Fixes for designs * Minor fixes for self-update
		
			
				
	
	
		
			40 lines
		
	
	
		
			772 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			40 lines
		
	
	
		
			772 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
<?php
 | 
						|
 | 
						|
namespace Tests\Integration;
 | 
						|
 | 
						|
use Illuminate\Foundation\Testing\Concerns\InteractsWithDatabase;
 | 
						|
use Illuminate\Foundation\Testing\DatabaseTransactions;
 | 
						|
use Illuminate\Support\Facades\Cache;
 | 
						|
use Tests\MockAccountData;
 | 
						|
use Tests\TestCase;
 | 
						|
 | 
						|
/**
 | 
						|
 * @test
 | 
						|
 */
 | 
						|
class CheckCacheTest extends TestCase
 | 
						|
{
 | 
						|
    use MockAccountData;
 | 
						|
    use DatabaseTransactions;
 | 
						|
 | 
						|
    public function setUp() :void
 | 
						|
    {
 | 
						|
        parent::setUp();
 | 
						|
 | 
						|
        $this->makeTestData();
 | 
						|
    }
 | 
						|
 | 
						|
    public function testWarmedUpCache()
 | 
						|
    {
 | 
						|
        $date_formats = Cache::get('date_formats');
 | 
						|
 | 
						|
        $this->assertNotNull($date_formats);
 | 
						|
    }
 | 
						|
 | 
						|
    public function testCacheCount()
 | 
						|
    {
 | 
						|
        $date_formats = Cache::get('date_formats');
 | 
						|
 | 
						|
        $this->assertEquals(14, count($date_formats));
 | 
						|
    }
 | 
						|
}
 |