invoiceninja/tests/Unit/PaymentTypeTest.php
2023-03-10 17:38:30 +11:00

41 lines
814 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 Tests\TestCase;
use App\Models\PaymentType;
use Illuminate\Support\Facades\Lang;
/**
* @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)
{nlog($type);
$this->assertTrue(Lang::has("texts.{$type}"));
}
}
}