mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-24 02:14:21 -04:00
* Update OpenAPI for TemplateController * Add bulk invoice download functionality * Working on Client portal * Move selective queries to cache instead of DB * Fix formatting in Payments table, implement cache for languages, resolve route model for clientcontacts and users
39 lines
759 B
PHP
39 lines
759 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(13, count($date_formats));
|
|
}
|
|
} |