mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-06 16:46:30 +02:00
Improve Factory variable names (#2895)
This commit is contained in:
@@ -46,10 +46,10 @@ class ListActionTest extends TestCase
|
||||
'Item count doesn\'t match'
|
||||
);
|
||||
|
||||
$bridgeFac = new BridgeFactory();
|
||||
$bridgeFactory = new BridgeFactory();
|
||||
|
||||
$this->assertEquals(
|
||||
count($bridgeFac->getBridgeNames()),
|
||||
count($bridgeFactory->getBridgeNames()),
|
||||
count($items['bridges']),
|
||||
'Number of bridges doesn\'t match'
|
||||
);
|
||||
@@ -80,9 +80,9 @@ class ListActionTest extends TestCase
|
||||
|
||||
private function initAction()
|
||||
{
|
||||
$actionFac = new ActionFactory();
|
||||
$actionFactory = new ActionFactory();
|
||||
|
||||
$action = $actionFac->create('list');
|
||||
$action = $actionFactory->create('list');
|
||||
|
||||
ob_start();
|
||||
$action->execute();
|
||||
|
@@ -58,8 +58,8 @@ abstract class BaseFormatTest extends TestCase
|
||||
|
||||
protected function formatData(string $formatName, \stdClass $sample): string
|
||||
{
|
||||
$formatFac = new FormatFactory();
|
||||
$format = $formatFac->create($formatName);
|
||||
$formatFactory = new FormatFactory();
|
||||
$format = $formatFactory->create($formatName);
|
||||
$format->setItems($sample->items);
|
||||
$format->setExtraInfos($sample->meta);
|
||||
$format->setLastModified(strtotime('2000-01-01 12:00:00 UTC'));
|
||||
|
Reference in New Issue
Block a user