1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-14 23:22:52 +01:00
invoiceninja/tests/Unit/Migration/ImportTest.php

44 lines
970 B
PHP
Raw Normal View History

<?php
2020-09-14 13:11:46 +02:00
/**
* Invoice Ninja (https://invoiceninja.com).
*
* @link https://github.com/invoiceninja/invoiceninja source repository
*
* @copyright Copyright (c) 2021. Invoice Ninja LLC (https://invoiceninja.com)
2020-09-14 13:11:46 +02:00
*
* @license https://www.elastic.co/licensing/elastic-license
2020-09-14 13:11:46 +02:00
*/
namespace Tests\Unit\Migration;
use Illuminate\Foundation\Testing\DatabaseTransactions;
use Tests\MockAccountData;
use Tests\TestCase;
class ImportTest extends TestCase
{
use MockAccountData;
use DatabaseTransactions;
public $migration_array;
protected function setUp(): void
{
parent::setUp();
$this->makeTestData();
$migration_file = base_path().'/tests/Unit/Migration/migration.json';
$this->migration_array = json_decode(file_get_contents($migration_file), 1);
}
public function testImportClassExists()
{
$status = class_exists(\App\Jobs\Util\Import::class);
$this->assertTrue($status);
}
}