|
27 | 27 |
|
28 | 28 | class IntegrationTest extends TestCase
|
29 | 29 | {
|
30 |
| - public function setUp(): void |
31 |
| - { |
32 |
| - $fs = new Filesystem(); |
33 |
| - $fs->remove(__DIR__.'/../var'); |
34 |
| - } |
35 |
| - |
36 | 30 | /**
|
37 | 31 | * @dataProvider integrationProvider
|
38 | 32 | */
|
@@ -72,16 +66,9 @@ public function testIntegration(string $folder)
|
72 | 66 | );
|
73 | 67 | }
|
74 | 68 |
|
75 |
| - /* |
76 |
| - * TODO - get this from the Builder when it is exposed |
77 |
| - * https://github.com/doctrine/rst-parser/pull/97 |
78 |
| - */ |
79 |
| - $metas = new Metas(); |
80 |
| - $cachedMetasLoader = new CachedMetasLoader(); |
81 |
| - $cachedMetasLoader->loadCachedMetaEntries(__DIR__.'/_output', $metas); |
82 |
| - |
| 69 | + $metas = $builder->getMetas(); |
83 | 70 | $jsonGenerator = new JsonGenerator($metas, $buildConfig);
|
84 |
| - $jsonGenerator->generateJson(new ProgressBar(new NullOutput())); |
| 71 | + $jsonGenerator->generateJson(); |
85 | 72 |
|
86 | 73 | foreach ($finder as $htmlFile) {
|
87 | 74 | $relativePath = $htmlFile->getRelativePathname();
|
@@ -287,8 +274,9 @@ private function createBuildConfig(string $sourceDir): BuildConfig
|
287 | 274 | return (new BuildConfig())
|
288 | 275 | ->setSymfonyVersion('4.0')
|
289 | 276 | ->setContentDir($sourceDir)
|
| 277 | + ->disableBuildCache() |
290 | 278 | ->setOutputDir(__DIR__.'/_output')
|
291 |
| - ->setCacheDir(__DIR__.'/_cache'); |
| 279 | + ; |
292 | 280 | }
|
293 | 281 |
|
294 | 282 | private function createIndenter(): Indenter
|
|
0 commit comments