invoiceninja/tests/Unit/PaymentTypeTest.php
2023-11-26 18:41:42 +11:00

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}"));
}
}
}