mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-01 08:04:35 -04:00
Update domain checklist
This commit is contained in:
parent
8adfb8aa7b
commit
d5e6084ce2
59398
app/DataProviders/Domains.php
Normal file
59398
app/DataProviders/Domains.php
Normal file
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
35
tests/Unit/DomainCheckTest.php
Normal file
35
tests/Unit/DomainCheckTest.php
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
<?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\DataProviders\Domains;
|
||||||
|
use Tests\TestCase;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @test
|
||||||
|
*/
|
||||||
|
class DomainCheckTest extends TestCase
|
||||||
|
{
|
||||||
|
|
||||||
|
protected function setUp() :void
|
||||||
|
{
|
||||||
|
parent::setUp();
|
||||||
|
}
|
||||||
|
|
||||||
|
public function testDomainCheck()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->assertTrue(in_array('yopmail.com', Domains::getDomains()));
|
||||||
|
$this->assertFalse(in_array('invoiceninja.com', Domains::getDomains()));
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user