1
0
Fork 0
mirror of synced 2024-08-04 04:52:03 +12:00
appwrite/tests/unit/GraphQL/BuilderTest.php
2022-07-12 09:52:00 +12:00

32 lines
698 B
PHP

<?php
namespace Appwrite\Tests;
use Appwrite\Event\Event;
use Appwrite\GraphQL\Builder;
use Appwrite\Utopia\Response;
use Appwrite\Utopia\Response\Model;
use PHPUnit\Framework\TestCase;
use Swoole\Http\Response as SwooleResponse;
use Utopia\App;
class BuilderTest extends TestCase
{
/**
* @var Response
*/
protected $response = null;
public function setUp(): void
{
$this->response = new Response(new SwooleResponse());
Builder::init();
}
public function testCreateTypeMapping()
{
$model = $this->response->getModel(Response::MODEL_COLLECTION);
$typeMapping = Builder::getModelTypeMapping($model, $this->response);
}
}