Skip to content

Commit 9df0777

Browse files
authored
test: add a test for exclude (#379)
1 parent ce38f6e commit 9df0777

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

tests/Command/GenerateCommandTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -504,6 +504,9 @@ public function testActivityStreams(): void
504504
class Page extends Object_
505505
PHP
506506
, $page);
507+
508+
self::assertFalse($this->fs->exists("$outputDir/App/Entity/Delete.php"));
509+
self::assertFalse($this->fs->exists("$outputDir/App/Entity/Travel.php"));
507510
}
508511

509512
public function testGenerationWithoutConfigFileQuestion(): void

tests/config/activity-streams.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,5 @@ types:
99
allProperties: true
1010
properties:
1111
units: { range: 'http://www.w3.org/2001/XMLSchema#string' }
12+
Travel:
13+
exclude: true

0 commit comments

Comments
 (0)