Skip to content

Commit

Permalink
Merge pull request #640 from patrickkusebauch/graph-docs
Browse files Browse the repository at this point in the history
Update docs for graphviz formatter
  • Loading branch information
Denis Brumann authored Jul 21, 2021
2 parents f51543f + fec2e58 commit 6419763
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 26 deletions.
Binary file modified examples/GraphvizGroups.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 10 additions & 10 deletions tests/OutputFormatter/GraphVizOutputFormatterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,10 @@ public function testGroups(): void
);

$context = new Context([
new Allowed($dependency, 'LayerA_A', 'LayerA_B'),
new Allowed($dependency, 'LayerB_A', 'LayerB_B'),
new Allowed($dependency, 'LayerA_A', 'LayerB_A'),
new Allowed($dependency, 'LayerA_B', 'LayerB_A'),
new Allowed($dependency, 'User Frontend', 'User Backend'),
new Allowed($dependency, 'Admin Frontend', 'Admin Backend'),
new Allowed($dependency, 'User Frontend', 'Admin Frontend'),
new Allowed($dependency, 'User Backend', 'Admin Frontend'),
], [], []);

$bufferedOutput = new BufferedOutput();
Expand All @@ -92,13 +92,13 @@ public function testGroups(): void
],
[
'groups' => [
'groupA' => [
'LayerA_A',
'LayerA_B',
'User' => [
'User Frontend',
'User Backend',
],
'groupB' => [
'LayerB_A',
'LayerB_B',
'Admin' => [
'Admin Frontend',
'Admin Backend',
],
],
]
Expand Down
32 changes: 16 additions & 16 deletions tests/OutputFormatter/data/graphviz-groups.dot
Original file line number Diff line number Diff line change
@@ -1,32 +1,32 @@
digraph "" {
subgraph "cluster_groupA" {
label="groupA"
"LayerA_A" [
group="groupA"
subgraph "cluster_User" {
label="User"
"User Frontend" [
group="User"
]
"LayerA_B" [
group="groupA"
"User Backend" [
group="User"
]
}
subgraph "cluster_groupB" {
label="groupB"
"LayerB_A" [
group="groupB"
subgraph "cluster_Admin" {
label="Admin"
"Admin Frontend" [
group="Admin"
]
"LayerB_B" [
group="groupB"
"Admin Backend" [
group="Admin"
]
}
"LayerA_A" -> "LayerA_B" [
"User Frontend" -> "User Backend" [
label="1"
]
"LayerA_A" -> "LayerB_A" [
"User Frontend" -> "Admin Frontend" [
label="1"
]
"LayerB_A" -> "LayerB_B" [
"Admin Frontend" -> "Admin Backend" [
label="1"
]
"LayerA_B" -> "LayerB_A" [
"User Backend" -> "Admin Frontend" [
label="1"
]
}

0 comments on commit 6419763

Please sign in to comment.