Skip to content

Commit

Permalink
[TASK] Switch one testcase to the new data provider package (#1385)
Browse files Browse the repository at this point in the history
Part of #1219
  • Loading branch information
oliverklee authored Jan 3, 2025
1 parent 5bad799 commit 9d2e5ac
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions tests/Unit/HtmlProcessor/AbstractHtmlProcessorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -912,15 +912,9 @@ public function provideHtmlAroundContentType(): array
];
}

/**
* @return array<string, array<int, string>>
*/
public function provideContentTypeTagAndSurroundingHtml(): array
public function provideContentTypeTagAndSurroundingHtml(): DataProvider
{
/** @var array<string, array<int, string>> $datasets */
$datasets = DataProviders::cross($this->provideContentTypeMetaTag(), $this->provideHtmlAroundContentType());

return $datasets;
return DataProvider::cross($this->provideContentTypeMetaTag(), $this->provideHtmlAroundContentType());
}

/**
Expand Down

0 comments on commit 9d2e5ac

Please sign in to comment.