mirror of
https://github.com/retailcrm/transparent-email.git
synced 2024-11-25 23:06:04 +03:00
27 lines
640 B
PHP
27 lines
640 B
PHP
|
<?php
|
||
|
|
||
|
namespace bkrukowski\TransparentEmail\Tests\Services;
|
||
|
|
||
|
use bkrukowski\TransparentEmail\Services\AppsGoogleCom;
|
||
|
|
||
|
class AppsGoogleComTest extends \PHPUnit_Framework_TestCase
|
||
|
{
|
||
|
/**
|
||
|
* @dataProvider providerIsDomainSupported
|
||
|
*
|
||
|
* @param string $domain
|
||
|
* @param bool $result
|
||
|
*/
|
||
|
public function testIsDomainSupported(string $domain, bool $result)
|
||
|
{
|
||
|
$this->assertSame($result, (new AppsGoogleCom())->isDomainSupported($domain));
|
||
|
}
|
||
|
|
||
|
public function providerIsDomainSupported()
|
||
|
{
|
||
|
return [
|
||
|
['example.com', false],
|
||
|
['krukowski.me', true],
|
||
|
];
|
||
|
}
|
||
|
}
|