mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-10 08:44:38 -04:00
39 lines
783 B
PHP
39 lines
783 B
PHP
<?php
|
|
/**
|
|
* Invoice Ninja (https://invoiceninja.com).
|
|
*
|
|
* @link https://github.com/invoiceninja/invoiceninja source repository
|
|
*
|
|
* @copyright Copyright (c) 2021. Invoice Ninja LLC (https://invoiceninja.com)
|
|
*
|
|
* @license https://www.elastic.co/licensing/elastic-license
|
|
*/
|
|
|
|
namespace Tests\Unit;
|
|
|
|
use App\Models\PaymentType;
|
|
use Illuminate\Support\Facades\Lang;
|
|
use Tests\TestCase;
|
|
|
|
/**
|
|
*
|
|
* App\Models\PaymentType
|
|
*/
|
|
class PaymentTypeTest extends TestCase
|
|
{
|
|
protected function setUp(): void
|
|
{
|
|
parent::setUp();
|
|
|
|
}
|
|
|
|
public function testTranslationsExist()
|
|
{
|
|
$payment_type_class = new PaymentType();
|
|
|
|
foreach($payment_type_class->type_names as $type) {
|
|
$this->assertTrue(Lang::has("texts.{$type}"));
|
|
}
|
|
}
|
|
}
|