From 9d66893d5a65faec6823f932e00fab319ef56ade Mon Sep 17 00:00:00 2001 From: jordanbrauer <18744334+jordanbrauer@users.noreply.github.com> Date: Wed, 16 Jun 2021 01:00:23 -0500 Subject: [PATCH] feat: add boolean property to signal dependency proxy calls --- src/Factories/TestCaseFactory.php | 7 +++++++ src/PendingObjects/TestCall.php | 2 ++ 2 files changed, 9 insertions(+) diff --git a/src/Factories/TestCaseFactory.php b/src/Factories/TestCaseFactory.php index 6efe63f4..63eafaff 100644 --- a/src/Factories/TestCaseFactory.php +++ b/src/Factories/TestCaseFactory.php @@ -66,6 +66,13 @@ final class TestCaseFactory */ public $datasets = []; + /** + * Has the current test been marked dependent on others? + * + * @var bool + */ + public $dependent = false; + /** * The FQN of the test case class. * diff --git a/src/PendingObjects/TestCall.php b/src/PendingObjects/TestCall.php index 39486565..6cf9f0f3 100644 --- a/src/PendingObjects/TestCall.php +++ b/src/PendingObjects/TestCall.php @@ -97,6 +97,8 @@ final class TestCall ->factoryProxies ->add(Backtrace::file(), Backtrace::line(), 'addDependencies', [$tests]); + $this->testCaseFactory->dependent = true; + return $this; }