forked from iFreshDevelopment/filemaker-odata-api
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTestCase.php
More file actions
30 lines (22 loc) · 680 Bytes
/
TestCase.php
File metadata and controls
30 lines (22 loc) · 680 Bytes
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
<?php
namespace Tests;
use Dotenv\Dotenv;
use IFresh\FileMakerODataApi\FileMakerODataConnector;
use PHPUnit\Framework\TestCase as BaseTestCase;
abstract class TestCase extends BaseTestCase
{
public FileMakerODataConnector $connector;
protected function setUp(): void
{
parent::setUp();
$dotenv = Dotenv::createImmutable(__DIR__.'/..');
$dotenv->load();
$connector = new FileMakerODataConnector(
host: $_ENV['FM_HOST'],
username: $_ENV['FM_USERNAME'],
password: $_ENV['FM_PASSWORD'],
);
$connector->withMockClient(\mockClient());
$this->connector = $connector;
}
}