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

34 lines
705 B
PHP
Raw Normal View History

2021-03-17 09:05:48 +13:00
<?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);
2022-04-08 19:04:15 +12:00
$typeMapping = Builder::getModelTypeMapping($model, $this->response);
2021-03-17 09:05:48 +13:00
}
}