mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-13 14:42:42 +01:00
f712b789ca
* fix typo * php-cs traits * CS fixer pass * Password protect User routes * Implement checks to prevent editing a deleted record * Clean up payment flows * Fixes for tests
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(14, count($date_formats));
|
|
}
|
|
} |