public function setUp() { Annotations::setConfig(__DIR__ . '/../Mocks/MockAnnotationsConfig.yaml'); Rest::setConfig(__DIR__ . '/../Mocks/MockRestConfig.yaml'); // we need to create the cache files so we can test the router $parser = new Parser(); $parserApi = $parser->parseApi('Webiny\\Component\\Rest\\Tests\\Mocks\\MockApiClassRouter', true); self::$cache = new Cache(new ArrayDriver()); $instance = new Compiler('ExampleApi', true, self::$cache); $instance->writeCacheFiles($parserApi); }
public function setUp() { Annotations::setConfig(__DIR__ . '/../Mocks/MockAnnotationsConfig.yaml'); Cache::setConfig(__DIR__ . '/../Mocks/MockCacheConfig.yaml'); Rest::setConfig(__DIR__ . '/../Mocks/MockRestConfig.yaml'); }
public function setUp() { Annotations::setConfig(__DIR__ . '/ExampleConfig.yaml'); }