From 816950797f3fc9da35940106d6d62e507c539649 Mon Sep 17 00:00:00 2001 From: philipp lang Date: Sun, 20 Oct 2024 18:30:33 +0200 Subject: [PATCH] Remove old MailgatewayRequestFactory --- .../MailgatewayRequestFactory.php | 61 ------------------- 1 file changed, 61 deletions(-) delete mode 100644 tests/RequestFactories/MailgatewayRequestFactory.php diff --git a/tests/RequestFactories/MailgatewayRequestFactory.php b/tests/RequestFactories/MailgatewayRequestFactory.php deleted file mode 100644 index 26ae0de2..00000000 --- a/tests/RequestFactories/MailgatewayRequestFactory.php +++ /dev/null @@ -1,61 +0,0 @@ - $this->faker->words(5, true), - 'type' => [ - 'cls' => app('mail-gateways')->random(), - 'params' => [], - ], - 'domain' => $this->faker->safeEmailDomain(), - ]; - } - - public function name(string $name): self - { - return $this->state(['name' => $name]); - } - - public function domain(string $domain): self - { - return $this->state(['domain' => $domain]); - } - - /** - * @param class-string $type - * @param array $params - */ - public function type(string $type, array $params): self - { - return $this->state(['type' => [ - 'cls' => $type, - 'params' => $params, - ]]); - } - - public function missingType(): self - { - return $this->state(['type' => [ - 'cls' => null, - 'params' => [], - ]]); - } - - public function withoutName(): self - { - return $this->state(['name' => '']); - } - - public function withoutDomain(): self - { - return $this->state(['domain' => '']); - } -}