From 9d2e5ac5c7e3a5ad59b601c0e8e091757f4c63db Mon Sep 17 00:00:00 2001 From: Oliver Klee Date: Fri, 3 Jan 2025 16:28:33 +0100 Subject: [PATCH] [TASK] Switch one testcase to the new data provider package (#1385) Part of #1219 --- .../Unit/HtmlProcessor/AbstractHtmlProcessorTest.php | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/tests/Unit/HtmlProcessor/AbstractHtmlProcessorTest.php b/tests/Unit/HtmlProcessor/AbstractHtmlProcessorTest.php index 6680e346..aae67307 100644 --- a/tests/Unit/HtmlProcessor/AbstractHtmlProcessorTest.php +++ b/tests/Unit/HtmlProcessor/AbstractHtmlProcessorTest.php @@ -8,7 +8,7 @@ use Pelago\Emogrifier\Tests\Unit\HtmlProcessor\Fixtures\TestingHtmlProcessor; use Pelago\Emogrifier\Utilities\Preg; use PHPUnit\Framework\TestCase; -use TRegx\DataProvider\DataProviders; +use TRegx\PhpUnit\DataProviders\DataProvider; /** * @covers \Pelago\Emogrifier\HtmlProcessor\AbstractHtmlProcessor @@ -912,15 +912,9 @@ public function provideHtmlAroundContentType(): array ]; } - /** - * @return array> - */ - public function provideContentTypeTagAndSurroundingHtml(): array + public function provideContentTypeTagAndSurroundingHtml(): DataProvider { - /** @var array> $datasets */ - $datasets = DataProviders::cross($this->provideContentTypeMetaTag(), $this->provideHtmlAroundContentType()); - - return $datasets; + return DataProvider::cross($this->provideContentTypeMetaTag(), $this->provideHtmlAroundContentType()); } /**