mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-24 02:14:21 -04:00
40 lines
794 B
PHP
40 lines
794 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;
|
|
|
|
/**
|
|
* @test
|
|
* @covers 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}"));
|
|
}
|
|
}
|
|
}
|