generated from vjik/package-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathConfigTest.php
33 lines (26 loc) · 821 Bytes
/
ConfigTest.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<?php
declare(strict_types=1);
namespace Vjik\Codeception\DatabasePopulator\Tests\Unit;
use Codeception\Test\Unit;
use Vjik\Codeception\DatabasePopulator\Config;
use Vjik\Codeception\DatabasePopulator\Tests\UnitTester;
use function dirname;
final class ConfigTest extends Unit
{
/**
* @var UnitTester
*/
protected $tester;
public function testBase(): void
{
$config = new Config([
'preloadDump' => 'all',
'preloadRows' => 'users',
'dumpsPath' => 'tests/dumps',
'rowsPath' => 'tests/rows',
]);
$root = dirname(__DIR__, 2);
$this->assertSame($root . DIRECTORY_SEPARATOR . 'tests/dumps', $config->dumpsPath());
$this->assertSame($root . DIRECTORY_SEPARATOR . 'tests/rows', $config->rowsPath());
}
}