Skip to content

Commit

Permalink
test: Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jawira committed Feb 4, 2024
1 parent 601d46c commit ec8e2d8
Show file tree
Hide file tree
Showing 51 changed files with 24 additions and 3 deletions.
Binary file added docs/images/maxi-exclude.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/images/maxi.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/midi-exclude.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/images/midi.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/mini-exclude.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/images/mini.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/images/theme-_none_.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/images/theme-amiga.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/images/theme-aws-orange.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/images/theme-black-knight.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/images/theme-bluegray.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/images/theme-blueprint.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/images/theme-carbon-gray.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/images/theme-cerulean-outline.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/images/theme-cerulean.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/images/theme-cloudscape-design.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/images/theme-crt-amber.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/images/theme-crt-green.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/images/theme-cyborg-outline.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/images/theme-cyborg.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/images/theme-hacker.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/images/theme-lightgray.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/images/theme-mars.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/images/theme-materia-outline.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/images/theme-materia.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/images/theme-metal.png
Binary file modified docs/images/theme-mimeograph.png
Binary file modified docs/images/theme-minty.png
Binary file added docs/images/theme-mono.png
Binary file modified docs/images/theme-plain.png
Binary file added docs/images/theme-reddress-darkblue.png
Binary file added docs/images/theme-reddress-darkgreen.png
Binary file added docs/images/theme-reddress-darkorange.png
Binary file added docs/images/theme-reddress-darkred.png
Binary file added docs/images/theme-reddress-lightblue.png
Binary file added docs/images/theme-reddress-lightgreen.png
Binary file added docs/images/theme-reddress-lightorange.png
Binary file added docs/images/theme-reddress-lightred.png
Binary file modified docs/images/theme-sandstone.png
Binary file modified docs/images/theme-silver.png
Binary file modified docs/images/theme-sketchy-outline.png
Binary file modified docs/images/theme-sketchy.png
Binary file added docs/images/theme-spacelab-white.png
Binary file modified docs/images/theme-spacelab.png
Binary file modified docs/images/theme-superhero-outline.png
Binary file modified docs/images/theme-superhero.png
Binary file modified docs/images/theme-toy.png
Binary file modified docs/images/theme-united.png
Binary file modified docs/images/theme-vibrant.png
6 changes: 3 additions & 3 deletions tests/ExcludeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public function testMiniDiagram()
{
$drawer = new DbDraw($this->connection);
$puml = $drawer->generatePuml(DbDraw::MINI, exclude: ['Course', 'Assistant']);
file_put_contents('./resources/output/mini.puml', $puml);
file_put_contents('./resources/output/mini-exclude.puml', $puml);
$this->assertIsString($puml);
$this->assertGreaterThan(490, mb_strlen($puml));
$this->assertStringNotContainsString(EntityNames::Course, $puml);
Expand Down Expand Up @@ -80,7 +80,7 @@ public function testMidiDiagram()
{
$drawer = new DbDraw($this->connection);
$puml = $drawer->generatePuml(DbDraw::MIDI, exclude: ['Session', 'Student']);
file_put_contents('./resources/output/midi.puml', $puml);
file_put_contents('./resources/output/midi-exclude.puml', $puml);
$this->assertIsString($puml);
$this->assertGreaterThan(900, mb_strlen($puml));
$this->assertStringContainsString(Entities::Course, $puml);
Expand Down Expand Up @@ -122,7 +122,7 @@ public function testMaxiDiagram()
{
$drawer = new DbDraw($this->connection);
$puml = $drawer->generatePuml(DbDraw::MAXI, exclude: ['CreditCard', 'students_with_no_card']);
file_put_contents('./resources/output/maxi.puml', $puml);
file_put_contents('./resources/output/maxi-exclude.puml', $puml);
$this->assertIsString($puml);
$this->assertGreaterThan(1300, mb_strlen($puml));

Expand Down
21 changes: 21 additions & 0 deletions tests/ThemeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,27 @@ public function themeProvider(): array
['metal'],
['mimeograph'],
['minty'],
['mono'],
['plain'],
['reddress-darkblue'],
['reddress-darkgreen'],
['reddress-darkorange'],
['reddress-darkred'],
['reddress-lightblue'],
['reddress-lightgreen'],
['reddress-lightorange'],
['reddress-lightred'],
['sandstone'],
['silver'],
['sketchy'],
['sketchy-outline'],
['spacelab'],
['spacelab-white'],
['superhero'],
['superhero-outline'],
['toy'],
['united'],
['vibrant'],
];
}
}

0 comments on commit ec8e2d8

Please sign in to comment.