mirror of
https://github.com/FOSSBilling/FOSSBilling.git
synced 2026-11-04 02:57:11 +09:00
18 lines
543 B
PHP
18 lines
543 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
use Symfony\Component\Filesystem\Path;
|
|
|
|
test('the demo seeder does not accept API keys as command-line arguments', function (): void {
|
|
$script = file_get_contents(Path::join(dirname(PATH_ROOT), 'tools', 'demo-seed', 'demo-seed.php'));
|
|
$readme = file_get_contents(Path::join(dirname(PATH_ROOT), 'tools', 'demo-seed', 'README.md'));
|
|
|
|
expect($script)
|
|
->not->toBeFalse()
|
|
->not->toContain('--key')
|
|
->and($readme)
|
|
->not->toBeFalse()
|
|
->not->toContain('--key');
|
|
});
|