Skip to content

Commit

Permalink
Add architecture tests for Exchange BC
Browse files Browse the repository at this point in the history
  • Loading branch information
coldic3 committed Jul 30, 2023
1 parent 8172920 commit c85761f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/Architecture/BoundedContextsSeparationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,14 @@ public function test_account_bounded_context_does_not_depend_on_other_bounded_co
->classes(...$this->findBoundedContextsExcept(['Account', 'AccountOHS', ...self::COUPLING_ALLOWED]));
}

public function test_exchange_bounded_context_does_not_depend_on_other_bounded_contexts(): Rule
{
return PHPat::rule()
->classes($this->getBoundedContextClassNamespace('Exchange'))
->shouldNotDependOn()
->classes(...$this->findBoundedContextsExcept(['Exchange', ...self::COUPLING_ALLOWED]));
}

public function test_portfolio_bounded_context_does_not_depend_on_other_bounded_contexts(): Rule
{
return PHPat::rule()
Expand Down

0 comments on commit c85761f

Please sign in to comment.